@spaciv/sdk 0.1.11 → 0.1.12

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @spaciv/sdk@0.1.11
1
+ ## @spaciv/sdk@0.1.12
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @spaciv/sdk@0.1.11 --save
39
+ npm install @spaciv/sdk@0.1.12 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -65,7 +65,7 @@ export interface DataCollectionApiInterface {
65
65
  */
66
66
  delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
67
67
  /**
68
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
68
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
69
69
  * @summary Get a data collection survey
70
70
  * @param {string} id
71
71
  * @param {*} [options] Override http request option.
@@ -74,7 +74,7 @@ export interface DataCollectionApiInterface {
74
74
  */
75
75
  getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
76
76
  /**
77
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
77
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
78
78
  * Get a data collection survey
79
79
  */
80
80
  get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
@@ -174,12 +174,12 @@ export declare class DataCollectionApi extends runtime.BaseAPI implements DataCo
174
174
  */
175
175
  delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
176
176
  /**
177
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
177
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
178
178
  * Get a data collection survey
179
179
  */
180
180
  getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
181
181
  /**
182
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
182
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
183
183
  * Get a data collection survey
184
184
  */
185
185
  get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
@@ -104,7 +104,7 @@ class DataCollectionApi extends runtime.BaseAPI {
104
104
  });
105
105
  }
106
106
  /**
107
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
107
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
108
108
  * Get a data collection survey
109
109
  */
110
110
  getRaw(requestParameters, initOverrides) {
@@ -133,7 +133,7 @@ class DataCollectionApi extends runtime.BaseAPI {
133
133
  });
134
134
  }
135
135
  /**
136
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
136
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
137
137
  * Get a data collection survey
138
138
  */
139
139
  get(requestParameters, initOverrides) {
@@ -65,7 +65,7 @@ export interface DataCollectionApiInterface {
65
65
  */
66
66
  delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
67
67
  /**
68
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
68
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
69
69
  * @summary Get a data collection survey
70
70
  * @param {string} id
71
71
  * @param {*} [options] Override http request option.
@@ -74,7 +74,7 @@ export interface DataCollectionApiInterface {
74
74
  */
75
75
  getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
76
76
  /**
77
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
77
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
78
78
  * Get a data collection survey
79
79
  */
80
80
  get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
@@ -174,12 +174,12 @@ export declare class DataCollectionApi extends runtime.BaseAPI implements DataCo
174
174
  */
175
175
  delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
176
176
  /**
177
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
177
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
178
178
  * Get a data collection survey
179
179
  */
180
180
  getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
181
181
  /**
182
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
182
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
183
183
  * Get a data collection survey
184
184
  */
185
185
  get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
@@ -101,7 +101,7 @@ export class DataCollectionApi extends runtime.BaseAPI {
101
101
  });
102
102
  }
103
103
  /**
104
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
104
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
105
105
  * Get a data collection survey
106
106
  */
107
107
  getRaw(requestParameters, initOverrides) {
@@ -130,7 +130,7 @@ export class DataCollectionApi extends runtime.BaseAPI {
130
130
  });
131
131
  }
132
132
  /**
133
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
133
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
134
134
  * Get a data collection survey
135
135
  */
136
136
  get(requestParameters, initOverrides) {
@@ -24,22 +24,22 @@ export interface GetDatacollectionRes {
24
24
  completed: number;
25
25
  /**
26
26
  *
27
- * @type {DatacollectionChangelogBody}
27
+ * @type {number}
28
28
  * @memberof GetDatacollectionRes
29
29
  */
30
- datacollection: DatacollectionChangelogBody;
30
+ contributorCount: number;
31
31
  /**
32
32
  *
33
- * @type {string}
33
+ * @type {DatacollectionChangelogBody}
34
34
  * @memberof GetDatacollectionRes
35
35
  */
36
- id: string;
36
+ datacollection: DatacollectionChangelogBody;
37
37
  /**
38
38
  *
39
- * @type {number}
39
+ * @type {string}
40
40
  * @memberof GetDatacollectionRes
41
41
  */
42
- legacyContributors?: number;
42
+ id: string;
43
43
  /**
44
44
  *
45
45
  * @type {number}
@@ -18,6 +18,8 @@ import { DatacollectionChangelogBodyFromJSON, DatacollectionChangelogBodyToJSON,
18
18
  export function instanceOfGetDatacollectionRes(value) {
19
19
  if (!('completed' in value) || value['completed'] === undefined)
20
20
  return false;
21
+ if (!('contributorCount' in value) || value['contributorCount'] === undefined)
22
+ return false;
21
23
  if (!('datacollection' in value) || value['datacollection'] === undefined)
22
24
  return false;
23
25
  if (!('id' in value) || value['id'] === undefined)
@@ -37,9 +39,9 @@ export function GetDatacollectionResFromJSONTyped(json, ignoreDiscriminator) {
37
39
  }
38
40
  return {
39
41
  'completed': json['completed'],
42
+ 'contributorCount': json['contributorCount'],
40
43
  'datacollection': DatacollectionChangelogBodyFromJSON(json['datacollection']),
41
44
  'id': json['id'],
42
- 'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
43
45
  'started': json['started'],
44
46
  'total': json['total'],
45
47
  };
@@ -53,9 +55,9 @@ export function GetDatacollectionResToJSONTyped(value, ignoreDiscriminator = fal
53
55
  }
54
56
  return {
55
57
  'completed': value['completed'],
58
+ 'contributorCount': value['contributorCount'],
56
59
  'datacollection': DatacollectionChangelogBodyToJSON(value['datacollection']),
57
60
  'id': value['id'],
58
- 'legacyContributors': value['legacyContributors'],
59
61
  'started': value['started'],
60
62
  'total': value['total'],
61
63
  };
@@ -24,22 +24,22 @@ export interface GetDatacollectionRes {
24
24
  completed: number;
25
25
  /**
26
26
  *
27
- * @type {DatacollectionChangelogBody}
27
+ * @type {number}
28
28
  * @memberof GetDatacollectionRes
29
29
  */
30
- datacollection: DatacollectionChangelogBody;
30
+ contributorCount: number;
31
31
  /**
32
32
  *
33
- * @type {string}
33
+ * @type {DatacollectionChangelogBody}
34
34
  * @memberof GetDatacollectionRes
35
35
  */
36
- id: string;
36
+ datacollection: DatacollectionChangelogBody;
37
37
  /**
38
38
  *
39
- * @type {number}
39
+ * @type {string}
40
40
  * @memberof GetDatacollectionRes
41
41
  */
42
- legacyContributors?: number;
42
+ id: string;
43
43
  /**
44
44
  *
45
45
  * @type {number}
@@ -25,6 +25,8 @@ const DatacollectionChangelogBody_1 = require("./DatacollectionChangelogBody");
25
25
  function instanceOfGetDatacollectionRes(value) {
26
26
  if (!('completed' in value) || value['completed'] === undefined)
27
27
  return false;
28
+ if (!('contributorCount' in value) || value['contributorCount'] === undefined)
29
+ return false;
28
30
  if (!('datacollection' in value) || value['datacollection'] === undefined)
29
31
  return false;
30
32
  if (!('id' in value) || value['id'] === undefined)
@@ -44,9 +46,9 @@ function GetDatacollectionResFromJSONTyped(json, ignoreDiscriminator) {
44
46
  }
45
47
  return {
46
48
  'completed': json['completed'],
49
+ 'contributorCount': json['contributorCount'],
47
50
  'datacollection': (0, DatacollectionChangelogBody_1.DatacollectionChangelogBodyFromJSON)(json['datacollection']),
48
51
  'id': json['id'],
49
- 'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
50
52
  'started': json['started'],
51
53
  'total': json['total'],
52
54
  };
@@ -60,9 +62,9 @@ function GetDatacollectionResToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  }
61
63
  return {
62
64
  'completed': value['completed'],
65
+ 'contributorCount': value['contributorCount'],
63
66
  'datacollection': (0, DatacollectionChangelogBody_1.DatacollectionChangelogBodyToJSON)(value['datacollection']),
64
67
  'id': value['id'],
65
- 'legacyContributors': value['legacyContributors'],
66
68
  'started': value['started'],
67
69
  'total': value['total'],
68
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaciv/sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "OpenAPI client for @spaciv/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -101,7 +101,7 @@ export interface DataCollectionApiInterface {
101
101
  delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
102
102
 
103
103
  /**
104
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
104
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
105
105
  * @summary Get a data collection survey
106
106
  * @param {string} id
107
107
  * @param {*} [options] Override http request option.
@@ -111,7 +111,7 @@ export interface DataCollectionApiInterface {
111
111
  getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
112
112
 
113
113
  /**
114
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
114
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
115
115
  * Get a data collection survey
116
116
  */
117
117
  get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
@@ -290,7 +290,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
290
290
  }
291
291
 
292
292
  /**
293
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
293
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
294
294
  * Get a data collection survey
295
295
  */
296
296
  async getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>> {
@@ -328,7 +328,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
328
328
  }
329
329
 
330
330
  /**
331
- * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
331
+ * Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. `contributorCount` is the number of uploaded contributors for callers with *View crowd modelling* or *Configure crowd modelling*, and 0 otherwise.
332
332
  * Get a data collection survey
333
333
  */
334
334
  async get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes> {
@@ -35,22 +35,22 @@ export interface GetDatacollectionRes {
35
35
  completed: number;
36
36
  /**
37
37
  *
38
- * @type {DatacollectionChangelogBody}
38
+ * @type {number}
39
39
  * @memberof GetDatacollectionRes
40
40
  */
41
- datacollection: DatacollectionChangelogBody;
41
+ contributorCount: number;
42
42
  /**
43
43
  *
44
- * @type {string}
44
+ * @type {DatacollectionChangelogBody}
45
45
  * @memberof GetDatacollectionRes
46
46
  */
47
- id: string;
47
+ datacollection: DatacollectionChangelogBody;
48
48
  /**
49
49
  *
50
- * @type {number}
50
+ * @type {string}
51
51
  * @memberof GetDatacollectionRes
52
52
  */
53
- legacyContributors?: number;
53
+ id: string;
54
54
  /**
55
55
  *
56
56
  * @type {number}
@@ -70,6 +70,7 @@ export interface GetDatacollectionRes {
70
70
  */
71
71
  export function instanceOfGetDatacollectionRes(value: object): value is GetDatacollectionRes {
72
72
  if (!('completed' in value) || value['completed'] === undefined) return false;
73
+ if (!('contributorCount' in value) || value['contributorCount'] === undefined) return false;
73
74
  if (!('datacollection' in value) || value['datacollection'] === undefined) return false;
74
75
  if (!('id' in value) || value['id'] === undefined) return false;
75
76
  if (!('started' in value) || value['started'] === undefined) return false;
@@ -88,9 +89,9 @@ export function GetDatacollectionResFromJSONTyped(json: any, ignoreDiscriminator
88
89
  return {
89
90
 
90
91
  'completed': json['completed'],
92
+ 'contributorCount': json['contributorCount'],
91
93
  'datacollection': DatacollectionChangelogBodyFromJSON(json['datacollection']),
92
94
  'id': json['id'],
93
- 'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
94
95
  'started': json['started'],
95
96
  'total': json['total'],
96
97
  };
@@ -108,9 +109,9 @@ export function GetDatacollectionResToJSONTyped(value?: GetDatacollectionRes | n
108
109
  return {
109
110
 
110
111
  'completed': value['completed'],
112
+ 'contributorCount': value['contributorCount'],
111
113
  'datacollection': DatacollectionChangelogBodyToJSON(value['datacollection']),
112
114
  'id': value['id'],
113
- 'legacyContributors': value['legacyContributors'],
114
115
  'started': value['started'],
115
116
  'total': value['total'],
116
117
  };