@coscine/api-client 2.4.0 → 2.5.0

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 (37) hide show
  1. package/dist/index.js +403 -155
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +403 -154
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api.Pid/api.js +204 -0
  6. package/dist/lib/Coscine.Api.Pid/api.js.map +1 -0
  7. package/dist/lib/Coscine.Api.Pid/base.js +65 -0
  8. package/dist/lib/Coscine.Api.Pid/base.js.map +1 -0
  9. package/dist/lib/Coscine.Api.Pid/common.js +153 -0
  10. package/dist/lib/Coscine.Api.Pid/common.js.map +1 -0
  11. package/dist/lib/Coscine.Api.Pid/configuration.js +43 -0
  12. package/dist/lib/Coscine.Api.Pid/configuration.js.map +1 -0
  13. package/dist/lib/Coscine.Api.Pid/index.js +28 -0
  14. package/dist/lib/Coscine.Api.Pid/index.js.map +1 -0
  15. package/dist/lib/Coscine.Api.Search/api.js +13 -2
  16. package/dist/lib/Coscine.Api.Search/api.js.map +1 -1
  17. package/dist/lib/Coscine.Api.Search/base.js +2 -2
  18. package/dist/lib/Coscine.Api.Search/common.js +1 -1
  19. package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
  20. package/dist/lib/Coscine.Api.Search/index.js +1 -1
  21. package/dist/lib/apis.js +27 -25
  22. package/dist/lib/apis.js.map +1 -1
  23. package/dist/lib/index.js +2 -1
  24. package/dist/lib/index.js.map +1 -1
  25. package/dist/types/Coscine.Api.Pid/api.d.ts +149 -0
  26. package/dist/types/Coscine.Api.Pid/base.d.ts +55 -0
  27. package/dist/types/Coscine.Api.Pid/common.d.ts +65 -0
  28. package/dist/types/Coscine.Api.Pid/configuration.d.ts +83 -0
  29. package/dist/types/Coscine.Api.Pid/index.d.ts +13 -0
  30. package/dist/types/Coscine.Api.Search/api.d.ts +17 -448
  31. package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
  32. package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
  33. package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
  34. package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
  35. package/dist/types/apis.d.ts +4 -0
  36. package/dist/types/index.d.ts +8 -0
  37. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
  * Coscine.Api.Search
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.2
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,439 +13,39 @@ import { Configuration } from './configuration';
13
13
  import { AxiosPromise, AxiosInstance } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from './base';
15
15
  /**
16
- *
16
+ * Item Search Result Object
17
17
  * @export
18
- * @interface DisciplineObject
18
+ * @interface ItemSearchResult
19
19
  */
20
- export interface DisciplineObject {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof DisciplineObject
25
- */
26
- id?: string;
27
- /**
28
- *
29
- * @type {string}
30
- * @memberof DisciplineObject
31
- */
32
- url?: string | null;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof DisciplineObject
37
- */
38
- displayNameDe?: string | null;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof DisciplineObject
43
- */
44
- displayNameEn?: string | null;
45
- }
46
- /**
47
- * File Search Result Object
48
- * @export
49
- * @interface FileSearchResult
50
- */
51
- export interface FileSearchResult {
20
+ export interface ItemSearchResult {
52
21
  /**
53
22
  * Graph Name
54
23
  * @type {string}
55
- * @memberof FileSearchResult
24
+ * @memberof ItemSearchResult
56
25
  */
57
26
  graphName?: string | null;
58
27
  /**
59
- * ID of Project containing the file
60
- * @type {string}
61
- * @memberof FileSearchResult
62
- */
63
- projectId?: string | null;
64
- /**
65
- * ID of Resource containing the file
66
- * @type {string}
67
- * @memberof FileSearchResult
28
+ * Graph Name
29
+ * @type {ItemType}
30
+ * @memberof ItemSearchResult
68
31
  */
69
- resourceId?: string | null;
32
+ type?: ItemType;
70
33
  /**
71
34
  * Search result fields
72
35
  * @type {any}
73
- * @memberof FileSearchResult
36
+ * @memberof ItemSearchResult
74
37
  */
75
38
  source?: any | null;
76
39
  }
77
40
  /**
78
41
  *
79
42
  * @export
80
- * @interface LicenseObject
81
- */
82
- export interface LicenseObject {
83
- /**
84
- *
85
- * @type {string}
86
- * @memberof LicenseObject
87
- */
88
- id?: string;
89
- /**
90
- *
91
- * @type {string}
92
- * @memberof LicenseObject
93
- */
94
- displayName?: string | null;
95
- }
96
- /**
97
- *
98
- * @export
99
- * @interface OrganizationObject
100
- */
101
- export interface OrganizationObject {
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof OrganizationObject
106
- */
107
- url?: string | null;
108
- /**
109
- *
110
- * @type {string}
111
- * @memberof OrganizationObject
112
- */
113
- displayName?: string | null;
114
- }
115
- /**
116
- *
117
- * @export
118
- * @interface ProjectObject
119
- */
120
- export interface ProjectObject {
121
- /**
122
- *
123
- * @type {string}
124
- * @memberof ProjectObject
125
- */
126
- id?: string;
127
- /**
128
- *
129
- * @type {string}
130
- * @memberof ProjectObject
131
- */
132
- description?: string | null;
133
- /**
134
- *
135
- * @type {string}
136
- * @memberof ProjectObject
137
- */
138
- displayName?: string | null;
139
- /**
140
- *
141
- * @type {string}
142
- * @memberof ProjectObject
143
- */
144
- startDate?: string;
145
- /**
146
- *
147
- * @type {string}
148
- * @memberof ProjectObject
149
- */
150
- endDate?: string;
151
- /**
152
- *
153
- * @type {string}
154
- * @memberof ProjectObject
155
- */
156
- keywords?: string | null;
157
- /**
158
- *
159
- * @type {string}
160
- * @memberof ProjectObject
161
- */
162
- projectName?: string | null;
163
- /**
164
- *
165
- * @type {string}
166
- * @memberof ProjectObject
167
- */
168
- principleInvestigators?: string | null;
169
- /**
170
- *
171
- * @type {string}
172
- * @memberof ProjectObject
173
- */
174
- grantId?: string | null;
175
- /**
176
- *
177
- * @type {string}
178
- * @memberof ProjectObject
179
- */
180
- slug?: string | null;
181
- /**
182
- *
183
- * @type {Array<DisciplineObject>}
184
- * @memberof ProjectObject
185
- */
186
- disciplines?: Array<DisciplineObject> | null;
187
- /**
188
- *
189
- * @type {Array<OrganizationObject>}
190
- * @memberof ProjectObject
191
- */
192
- organizations?: Array<OrganizationObject> | null;
193
- /**
194
- *
195
- * @type {VisibilityObject}
196
- * @memberof ProjectObject
197
- */
198
- visibility?: VisibilityObject | null;
199
- /**
200
- *
201
- * @type {string}
202
- * @memberof ProjectObject
203
- */
204
- parentId?: string;
205
- }
206
- /**
207
- *
208
- * @export
209
- * @interface ResourceObject
210
- */
211
- export interface ResourceObject {
212
- /**
213
- *
214
- * @type {string}
215
- * @memberof ResourceObject
216
- */
217
- id?: string;
218
- /**
219
- *
220
- * @type {string}
221
- * @memberof ResourceObject
222
- */
223
- pid?: string | null;
224
- /**
225
- *
226
- * @type {string}
227
- * @memberof ResourceObject
228
- */
229
- displayName?: string | null;
230
- /**
231
- *
232
- * @type {string}
233
- * @memberof ResourceObject
234
- */
235
- resourceName?: string | null;
236
- /**
237
- *
238
- * @type {string}
239
- * @memberof ResourceObject
240
- */
241
- description?: string | null;
242
- /**
243
- *
244
- * @type {string}
245
- * @memberof ResourceObject
246
- */
247
- keywords?: string | null;
248
- /**
249
- *
250
- * @type {string}
251
- * @memberof ResourceObject
252
- */
253
- usageRights?: string | null;
254
- /**
255
- *
256
- * @type {ResourceTypeObject}
257
- * @memberof ResourceObject
258
- */
259
- type?: ResourceTypeObject | null;
260
- /**
261
- *
262
- * @type {Array<DisciplineObject>}
263
- * @memberof ResourceObject
264
- */
265
- disciplines?: Array<DisciplineObject> | null;
266
- /**
267
- *
268
- * @type {VisibilityObject}
269
- * @memberof ResourceObject
270
- */
271
- visibility?: VisibilityObject | null;
272
- /**
273
- *
274
- * @type {LicenseObject}
275
- * @memberof ResourceObject
276
- */
277
- license?: LicenseObject | null;
278
- /**
279
- *
280
- * @type {any}
281
- * @memberof ResourceObject
282
- */
283
- resourceTypeOption?: any | null;
284
- /**
285
- *
286
- * @type {string}
287
- * @memberof ResourceObject
288
- */
289
- applicationProfile?: string | null;
290
- /**
291
- *
292
- * @type {any}
293
- * @memberof ResourceObject
294
- */
295
- fixedValues?: any | null;
296
- /**
297
- *
298
- * @type {string}
299
- * @memberof ResourceObject
300
- */
301
- creator?: string | null;
302
- /**
303
- *
304
- * @type {boolean}
305
- * @memberof ResourceObject
306
- */
307
- archived?: boolean;
308
- }
309
- /**
310
- *
311
- * @export
312
- * @interface ResourceSearchResult
43
+ * @enum {string}
313
44
  */
314
- export interface ResourceSearchResult {
315
- /**
316
- *
317
- * @type {string}
318
- * @memberof ResourceSearchResult
319
- */
320
- id?: string;
321
- /**
322
- *
323
- * @type {string}
324
- * @memberof ResourceSearchResult
325
- */
326
- pid?: string | null;
327
- /**
328
- *
329
- * @type {string}
330
- * @memberof ResourceSearchResult
331
- */
332
- displayName?: string | null;
333
- /**
334
- *
335
- * @type {string}
336
- * @memberof ResourceSearchResult
337
- */
338
- resourceName?: string | null;
339
- /**
340
- *
341
- * @type {string}
342
- * @memberof ResourceSearchResult
343
- */
344
- description?: string | null;
345
- /**
346
- *
347
- * @type {string}
348
- * @memberof ResourceSearchResult
349
- */
350
- keywords?: string | null;
351
- /**
352
- *
353
- * @type {string}
354
- * @memberof ResourceSearchResult
355
- */
356
- usageRights?: string | null;
357
- /**
358
- *
359
- * @type {ResourceTypeObject}
360
- * @memberof ResourceSearchResult
361
- */
362
- type?: ResourceTypeObject | null;
363
- /**
364
- *
365
- * @type {Array<DisciplineObject>}
366
- * @memberof ResourceSearchResult
367
- */
368
- disciplines?: Array<DisciplineObject> | null;
369
- /**
370
- *
371
- * @type {VisibilityObject}
372
- * @memberof ResourceSearchResult
373
- */
374
- visibility?: VisibilityObject | null;
375
- /**
376
- *
377
- * @type {LicenseObject}
378
- * @memberof ResourceSearchResult
379
- */
380
- license?: LicenseObject | null;
381
- /**
382
- *
383
- * @type {any}
384
- * @memberof ResourceSearchResult
385
- */
386
- resourceTypeOption?: any | null;
387
- /**
388
- *
389
- * @type {string}
390
- * @memberof ResourceSearchResult
391
- */
392
- applicationProfile?: string | null;
393
- /**
394
- *
395
- * @type {any}
396
- * @memberof ResourceSearchResult
397
- */
398
- fixedValues?: any | null;
399
- /**
400
- *
401
- * @type {string}
402
- * @memberof ResourceSearchResult
403
- */
404
- creator?: string | null;
405
- /**
406
- *
407
- * @type {boolean}
408
- * @memberof ResourceSearchResult
409
- */
410
- archived?: boolean;
411
- /**
412
- *
413
- * @type {string}
414
- * @memberof ResourceSearchResult
415
- */
416
- projectId?: string | null;
417
- }
418
- /**
419
- *
420
- * @export
421
- * @interface ResourceSearchResultAllOf
422
- */
423
- export interface ResourceSearchResultAllOf {
424
- /**
425
- *
426
- * @type {string}
427
- * @memberof ResourceSearchResultAllOf
428
- */
429
- projectId?: string | null;
430
- }
431
- /**
432
- *
433
- * @export
434
- * @interface ResourceTypeObject
435
- */
436
- export interface ResourceTypeObject {
437
- /**
438
- *
439
- * @type {string}
440
- * @memberof ResourceTypeObject
441
- */
442
- id?: string;
443
- /**
444
- *
445
- * @type {string}
446
- * @memberof ResourceTypeObject
447
- */
448
- displayName?: string | null;
45
+ export declare enum ItemType {
46
+ Metadata = "Metadata",
47
+ Project = "Project",
48
+ Resource = "Resource"
449
49
  }
450
50
  /**
451
51
  * Search result return object
@@ -453,43 +53,12 @@ export interface ResourceTypeObject {
453
53
  * @interface SearchResult
454
54
  */
455
55
  export interface SearchResult {
456
- /**
457
- * Search result projects
458
- * @type {Array<ProjectObject>}
459
- * @memberof SearchResult
460
- */
461
- projects?: Array<ProjectObject> | null;
462
- /**
463
- * Search result resources
464
- * @type {Array<ResourceSearchResult>}
465
- * @memberof SearchResult
466
- */
467
- resources?: Array<ResourceSearchResult> | null;
468
56
  /**
469
57
  * Search result files
470
- * @type {Array<FileSearchResult>}
58
+ * @type {Array<ItemSearchResult>}
471
59
  * @memberof SearchResult
472
60
  */
473
- files?: Array<FileSearchResult> | null;
474
- }
475
- /**
476
- *
477
- * @export
478
- * @interface VisibilityObject
479
- */
480
- export interface VisibilityObject {
481
- /**
482
- *
483
- * @type {string}
484
- * @memberof VisibilityObject
485
- */
486
- id?: string;
487
- /**
488
- *
489
- * @type {string}
490
- * @memberof VisibilityObject
491
- */
492
- displayName?: string | null;
61
+ items?: Array<ItemSearchResult> | null;
493
62
  }
494
63
  /**
495
64
  * SearchApi - axios parameter creator
@@ -2,7 +2,7 @@
2
2
  * Coscine.Api.Search
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.2
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Coscine.Api.Search
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.2
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Coscine.Api.Search
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.2
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Coscine.Api.Search
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.3.2
5
+ * The version of the OpenAPI document: 1.4.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -42,6 +42,10 @@ declare function implementations(axios?: AxiosInstance): {
42
42
  organizationIsMember(url: string, options?: any): import("axios").AxiosPromise<any>;
43
43
  organizationIsMember2(options?: any): import("axios").AxiosPromise<any>;
44
44
  };
45
+ PidApi: {
46
+ pidIsValid(pid: string, options?: any): import("axios").AxiosPromise<any>;
47
+ pidSendMailToOwner(messageObject: import("./Coscine.Api.Pid/api").MessageObject, options?: any): import("axios").AxiosPromise<any>;
48
+ };
45
49
  ProjectApi: {
46
50
  projectCreateApplicationProfile(projectId: string, options?: any): import("axios").AxiosPromise<any>;
47
51
  projectDelete(id: string, options?: any): import("axios").AxiosPromise<any>;
@@ -41,6 +41,10 @@ declare const apis: {
41
41
  organizationIsMember(url: string, options?: any): import("axios").AxiosPromise<any>;
42
42
  organizationIsMember2(options?: any): import("axios").AxiosPromise<any>;
43
43
  };
44
+ PidApi: {
45
+ pidIsValid(pid: string, options?: any): import("axios").AxiosPromise<any>;
46
+ pidSendMailToOwner(messageObject: import("./Coscine.Api.Pid").MessageObject, options?: any): import("axios").AxiosPromise<any>;
47
+ };
44
48
  ProjectApi: {
45
49
  projectCreateApplicationProfile(projectId: string, options?: any): import("axios").AxiosPromise<any>;
46
50
  projectDelete(id: string, options?: any): import("axios").AxiosPromise<any>;
@@ -166,6 +170,10 @@ export declare const OrganizationApi: {
166
170
  organizationIsMember(url: string, options?: any): import("axios").AxiosPromise<any>;
167
171
  organizationIsMember2(options?: any): import("axios").AxiosPromise<any>;
168
172
  };
173
+ export declare const PidApi: {
174
+ pidIsValid(pid: string, options?: any): import("axios").AxiosPromise<any>;
175
+ pidSendMailToOwner(messageObject: import("./Coscine.Api.Pid").MessageObject, options?: any): import("axios").AxiosPromise<any>;
176
+ };
169
177
  export declare const ProjectApi: {
170
178
  projectCreateApplicationProfile(projectId: string, options?: any): import("axios").AxiosPromise<any>;
171
179
  projectDelete(id: string, options?: any): import("axios").AxiosPromise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coscine/api-client",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "This project contains the generated api connection classes.",
5
5
  "keywords": [
6
6
  "coscine",
@@ -129,5 +129,5 @@
129
129
  "dependencies": {
130
130
  "axios": "^0.21.1"
131
131
  },
132
- "packageManager": "yarn@3.2.2"
132
+ "packageManager": "yarn@3.2.3"
133
133
  }