@coscine/api-client 3.1.0 → 3.2.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 (44) hide show
  1. package/dist/index.js +2069 -1997
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +2071 -1999
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api/api.js +1968 -1252
  6. package/dist/lib/Coscine.Api/api.js.map +1 -1
  7. package/dist/lib/apis.js +8 -8
  8. package/dist/lib/apis.js.map +1 -1
  9. package/dist/lib/index.js +4 -4
  10. package/dist/lib/index.js.map +1 -1
  11. package/dist/types/Coscine.Api/api.d.ts +1743 -992
  12. package/dist/types/apis.d.ts +23 -23
  13. package/dist/types/index.d.ts +46 -46
  14. package/package.json +1 -1
  15. package/dist/lib/Coscine.Api.Admin/api.js +0 -232
  16. package/dist/lib/Coscine.Api.Admin/api.js.map +0 -1
  17. package/dist/lib/Coscine.Api.Admin/base.js +0 -65
  18. package/dist/lib/Coscine.Api.Admin/base.js.map +0 -1
  19. package/dist/lib/Coscine.Api.Admin/common.js +0 -153
  20. package/dist/lib/Coscine.Api.Admin/common.js.map +0 -1
  21. package/dist/lib/Coscine.Api.Admin/configuration.js +0 -43
  22. package/dist/lib/Coscine.Api.Admin/configuration.js.map +0 -1
  23. package/dist/lib/Coscine.Api.Admin/index.js +0 -32
  24. package/dist/lib/Coscine.Api.Admin/index.js.map +0 -1
  25. package/dist/lib/Coscine.Api.Search/api.js +0 -224
  26. package/dist/lib/Coscine.Api.Search/api.js.map +0 -1
  27. package/dist/lib/Coscine.Api.Search/base.js +0 -65
  28. package/dist/lib/Coscine.Api.Search/base.js.map +0 -1
  29. package/dist/lib/Coscine.Api.Search/common.js +0 -153
  30. package/dist/lib/Coscine.Api.Search/common.js.map +0 -1
  31. package/dist/lib/Coscine.Api.Search/configuration.js +0 -43
  32. package/dist/lib/Coscine.Api.Search/configuration.js.map +0 -1
  33. package/dist/lib/Coscine.Api.Search/index.js +0 -32
  34. package/dist/lib/Coscine.Api.Search/index.js.map +0 -1
  35. package/dist/types/Coscine.Api.Admin/api.d.ts +0 -233
  36. package/dist/types/Coscine.Api.Admin/base.d.ts +0 -55
  37. package/dist/types/Coscine.Api.Admin/common.d.ts +0 -65
  38. package/dist/types/Coscine.Api.Admin/configuration.d.ts +0 -83
  39. package/dist/types/Coscine.Api.Admin/index.d.ts +0 -13
  40. package/dist/types/Coscine.Api.Search/api.d.ts +0 -160
  41. package/dist/types/Coscine.Api.Search/base.d.ts +0 -55
  42. package/dist/types/Coscine.Api.Search/common.d.ts +0 -65
  43. package/dist/types/Coscine.Api.Search/configuration.d.ts +0 -83
  44. package/dist/types/Coscine.Api.Search/index.d.ts +0 -13
@@ -1,13 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
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
- export * from "./api";
13
- export * from "./configuration";
@@ -1,160 +0,0 @@
1
- /**
2
- * Coscine.Api.Search
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.7.0
6
- *
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 { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from './base';
15
- /**
16
- *
17
- * @export
18
- * @enum {string}
19
- */
20
- export declare enum CategoryFilter {
21
- None = "None",
22
- Resource = "Resource",
23
- Project = "Project",
24
- Metadata = "Metadata"
25
- }
26
- /**
27
- * Item Search Result Object
28
- * @export
29
- * @interface ItemSearchResult
30
- */
31
- export interface ItemSearchResult {
32
- /**
33
- * Graph Name
34
- * @type {string}
35
- * @memberof ItemSearchResult
36
- */
37
- graphName?: string;
38
- /**
39
- * Graph Name
40
- * @type {ItemType}
41
- * @memberof ItemSearchResult
42
- */
43
- type?: ItemType;
44
- /**
45
- * Search result fields
46
- * @type {any}
47
- * @memberof ItemSearchResult
48
- */
49
- source?: any | null;
50
- }
51
- /**
52
- *
53
- * @export
54
- * @enum {string}
55
- */
56
- export declare enum ItemType {
57
- Metadata = "Metadata",
58
- Project = "Project",
59
- Resource = "Resource"
60
- }
61
- /**
62
- *
63
- * @export
64
- * @enum {string}
65
- */
66
- export declare enum OrderBy {
67
- DateCreatedAsc = "Date_Created_Asc",
68
- DateCreatedDesc = "Date_Created_Desc",
69
- ScoreAsc = "Score_Asc",
70
- ScoreDesc = "Score_Desc",
71
- NameAsc = "Name_Asc",
72
- NameDesc = "Name_Desc"
73
- }
74
- /**
75
- * SearchApi - axios parameter creator
76
- * @export
77
- */
78
- export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => {
79
- /**
80
- *
81
- * @summary Search Elasticsearch
82
- * @param {string} [searchQuery] The actual search query
83
- * @param {boolean} [includeUsers] Specify user or only public metadata records could be found
84
- * @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
85
- * @param {Array<string>} [includedLanguages] Set the used languages
86
- * @param {CategoryFilter} [categoryFilter] Set the category filter
87
- * @param {OrderBy} [orderBy] Set the order for sorting
88
- * @param {number} [pageNumber] The requested page number
89
- * @param {number} [pageSize] The size of a page
90
- * @param {*} [options] Override http request option.
91
- * @throws {RequiredError}
92
- */
93
- searchSearch: (searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: Array<string>, categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any) => Promise<RequestArgs>;
94
- };
95
- /**
96
- * SearchApi - functional programming interface
97
- * @export
98
- */
99
- export declare const SearchApiFp: (configuration?: Configuration) => {
100
- /**
101
- *
102
- * @summary Search Elasticsearch
103
- * @param {string} [searchQuery] The actual search query
104
- * @param {boolean} [includeUsers] Specify user or only public metadata records could be found
105
- * @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
106
- * @param {Array<string>} [includedLanguages] Set the used languages
107
- * @param {CategoryFilter} [categoryFilter] Set the category filter
108
- * @param {OrderBy} [orderBy] Set the order for sorting
109
- * @param {number} [pageNumber] The requested page number
110
- * @param {number} [pageSize] The size of a page
111
- * @param {*} [options] Override http request option.
112
- * @throws {RequiredError}
113
- */
114
- searchSearch(searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: Array<string>, categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ItemSearchResult>>>;
115
- };
116
- /**
117
- * SearchApi - factory interface
118
- * @export
119
- */
120
- export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
121
- /**
122
- *
123
- * @summary Search Elasticsearch
124
- * @param {string} [searchQuery] The actual search query
125
- * @param {boolean} [includeUsers] Specify user or only public metadata records could be found
126
- * @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
127
- * @param {Array<string>} [includedLanguages] Set the used languages
128
- * @param {CategoryFilter} [categoryFilter] Set the category filter
129
- * @param {OrderBy} [orderBy] Set the order for sorting
130
- * @param {number} [pageNumber] The requested page number
131
- * @param {number} [pageSize] The size of a page
132
- * @param {*} [options] Override http request option.
133
- * @throws {RequiredError}
134
- */
135
- searchSearch(searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: Array<string>, categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<Array<ItemSearchResult>>;
136
- };
137
- /**
138
- * SearchApi - object-oriented interface
139
- * @export
140
- * @class SearchApi
141
- * @extends {BaseAPI}
142
- */
143
- export declare class SearchApi extends BaseAPI {
144
- /**
145
- *
146
- * @summary Search Elasticsearch
147
- * @param {string} [searchQuery] The actual search query
148
- * @param {boolean} [includeUsers] Specify user or only public metadata records could be found
149
- * @param {boolean} [useAdvancedSyntax] Set true for advanced Elasticsearch search syntax
150
- * @param {Array<string>} [includedLanguages] Set the used languages
151
- * @param {CategoryFilter} [categoryFilter] Set the category filter
152
- * @param {OrderBy} [orderBy] Set the order for sorting
153
- * @param {number} [pageNumber] The requested page number
154
- * @param {number} [pageSize] The size of a page
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- * @memberof SearchApi
158
- */
159
- searchSearch(searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: Array<string>, categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any): Promise<import("axios").AxiosResponse<ItemSearchResult[]>>;
160
- }
@@ -1,55 +0,0 @@
1
- /**
2
- * Coscine.Api.Search
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.7.0
6
- *
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 { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: any;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- name: "RequiredError";
54
- constructor(field: string, msg?: string);
55
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Coscine.Api.Search
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.7.0
6
- *
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 { Configuration } from "./configuration";
13
- import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const DUMMY_BASE_URL = "https://example.com";
20
- /**
21
- *
22
- * @throws {RequiredError}
23
- * @export
24
- */
25
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
- export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,83 +0,0 @@
1
- /**
2
- * Coscine.Api.Search
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.7.0
6
- *
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
- export interface ConfigurationParameters {
13
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
- username?: string;
15
- password?: string;
16
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
- basePath?: string;
18
- baseOptions?: any;
19
- formDataCtor?: new () => any;
20
- }
21
- export declare class Configuration {
22
- /**
23
- * parameter for apiKey security
24
- * @param name security name
25
- * @memberof Configuration
26
- */
27
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
- /**
29
- * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
- */
34
- username?: string;
35
- /**
36
- * parameter for basic security
37
- *
38
- * @type {string}
39
- * @memberof Configuration
40
- */
41
- password?: string;
42
- /**
43
- * parameter for oauth2 security
44
- * @param name security name
45
- * @param scopes oauth2 scope
46
- * @memberof Configuration
47
- */
48
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
- /**
50
- * override base path
51
- *
52
- * @type {string}
53
- * @memberof Configuration
54
- */
55
- basePath?: string;
56
- /**
57
- * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
- */
62
- baseOptions?: any;
63
- /**
64
- * The FormData constructor that will be used to create multipart form data
65
- * requests. You can inject this here so that execution environments that
66
- * do not support the FormData class can still run the generated client.
67
- *
68
- * @type {new () => FormData}
69
- */
70
- formDataCtor?: new () => any;
71
- constructor(param?: ConfigurationParameters);
72
- /**
73
- * Check if the given MIME is a JSON MIME.
74
- * JSON MIME examples:
75
- * application/json
76
- * application/json; charset=UTF8
77
- * APPLICATION/JSON
78
- * application/vnd.company+json
79
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
- * @return True if the given MIME is JSON, false otherwise.
81
- */
82
- isJsonMime(mime: string): boolean;
83
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Coscine.Api.Search
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.7.0
6
- *
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
- export * from "./api";
13
- export * from "./configuration";