@agravity/public 5.3.0 → 5.3.2
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 +2 -2
- package/api/api.ts +65 -43
- package/api/publicAssetManagement.pub.agravity.ts +615 -504
- package/api/publicAssetOperations.pub.agravity.ts +740 -633
- package/api/publicAssetPublishing.pub.agravity.ts +277 -263
- package/api/publicAssetVersioning.pub.agravity.ts +613 -552
- package/api/publicAuthenticationManagement.pub.agravity.ts +125 -135
- package/api/publicCollectionManagement.pub.agravity.ts +680 -562
- package/api/publicCollectionSecureUpload.pub.agravity.ts +243 -229
- package/api/publicCollectionTypeManagement.pub.agravity.ts +293 -266
- package/api/publicConfigurationManagement.pub.agravity.ts +118 -128
- package/api/publicDownloadFormatManagement.pub.agravity.ts +125 -135
- package/api/publicGeneralManagement.pub.agravity.ts +206 -221
- package/api/publicHelperTools.pub.agravity.ts +269 -288
- package/api/publicPublishing.pub.agravity.ts +160 -148
- package/api/publicSavedSearch.pub.agravity.ts +160 -148
- package/api/publicSearchManagement.pub.agravity.ts +237 -197
- package/api/publicSharingManagement.pub.agravity.ts +259 -215
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +125 -136
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +325 -203
- package/api/publicTranslationManagement.pub.agravity.ts +322 -267
- package/api/publicWebAppData.pub.agravity.ts +179 -193
- package/api/publicWorkspaceManagement.pub.agravity.ts +199 -204
- package/api.module.ts +49 -51
- package/configuration.ts +129 -132
- package/encoder.ts +20 -20
- package/index.ts +5 -5
- package/model/agravityErrorResponse.pub.agravity.ts +17 -19
- package/model/agravityVersion.pub.agravity.ts +22 -24
- package/model/allWebAppData.pub.agravity.ts +22 -24
- package/model/artificialIntelligenceGroup.pub.agravity.ts +18 -20
- package/model/asset.pub.agravity.ts +45 -47
- package/model/assetAvailability.pub.agravity.ts +17 -19
- package/model/assetBlob.pub.agravity.ts +79 -82
- package/model/assetIdFormat.pub.agravity.ts +17 -19
- package/model/assetPageResult.pub.agravity.ts +21 -23
- package/model/azSearchOptions.pub.agravity.ts +23 -25
- package/model/badRequestResult.pub.agravity.ts +15 -17
- package/model/collTypeItem.pub.agravity.ts +36 -38
- package/model/collection.pub.agravity.ts +33 -35
- package/model/collectionType.pub.agravity.ts +33 -35
- package/model/collectionUDL.pub.agravity.ts +19 -21
- package/model/createSftpUserResult.pub.agravity.ts +16 -18
- package/model/dataResult.pub.agravity.ts +20 -22
- package/model/distZipResponse.pub.agravity.ts +17 -19
- package/model/downloadFormat.pub.agravity.ts +32 -34
- package/model/dynamicImageOperation.pub.agravity.ts +16 -18
- package/model/entityId.pub.agravity.ts +15 -17
- package/model/entityIdName.pub.agravity.ts +17 -19
- package/model/frontendAppConfig.pub.agravity.ts +19 -21
- package/model/groupAllAppData.pub.agravity.ts +24 -26
- package/model/metadata.pub.agravity.ts +17 -19
- package/model/models.ts +44 -44
- package/model/okResult.pub.agravity.ts +15 -17
- package/model/publishEntity.pub.agravity.ts +26 -28
- package/model/publishedAsset.pub.agravity.ts +23 -25
- package/model/quickShareFull.pub.agravity.ts +35 -37
- package/model/sasToken.pub.agravity.ts +20 -22
- package/model/savedSearch.pub.agravity.ts +29 -31
- package/model/searchFacet.pub.agravity.ts +17 -19
- package/model/searchFacetEntity.pub.agravity.ts +17 -19
- package/model/searchResult.pub.agravity.ts +21 -23
- package/model/searchableItem.pub.agravity.ts +24 -26
- package/model/secureUploadEntity.pub.agravity.ts +25 -27
- package/model/sharedAsset.pub.agravity.ts +23 -25
- package/model/sharedCollectionFull.pub.agravity.ts +27 -29
- package/model/signalRConnectionInfo.pub.agravity.ts +16 -18
- package/model/staticDefinedList.pub.agravity.ts +28 -30
- package/model/versionEntity.pub.agravity.ts +26 -28
- package/model/versionedAsset.pub.agravity.ts +18 -20
- package/model/whereParam.pub.agravity.ts +40 -43
- package/model/workspace.pub.agravity.ts +32 -34
- package/ng-package.json +6 -6
- package/package.json +45 -45
- package/tsconfig.json +20 -28
- package/variables.ts +9 -9
|
@@ -1,204 +1,199 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
-
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
6
|
-
* Contact: office@agravity.io
|
|
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
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
-
|
|
14
|
-
import { Inject, Injectable, Optional }
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.3.2
|
|
6
|
+
* Contact: office@agravity.io
|
|
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
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
16
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
|
+
import { Observable } from 'rxjs';
|
|
18
|
+
|
|
19
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
20
|
+
import { Workspace } from '../model/models';
|
|
21
|
+
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
24
|
+
|
|
25
|
+
@Injectable({
|
|
26
|
+
providedIn: 'root'
|
|
27
|
+
})
|
|
28
|
+
export class PublicWorkspaceManagementService {
|
|
29
|
+
protected basePath = 'http://localhost:7072/api';
|
|
30
|
+
public defaultHeaders = new HttpHeaders();
|
|
31
|
+
public configuration = new AgravityPublicConfiguration();
|
|
32
|
+
public encoder: HttpParameterCodec;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
protected httpClient: HttpClient,
|
|
36
|
+
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
37
|
+
@Optional() configuration: AgravityPublicConfiguration
|
|
38
|
+
) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (typeof basePath !== 'string') {
|
|
44
|
+
basePath = this.basePath;
|
|
45
|
+
}
|
|
46
|
+
this.configuration.basePath = basePath;
|
|
47
|
+
}
|
|
48
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
54
|
+
} else {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
56
|
+
}
|
|
57
|
+
return httpParams;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return httpParams;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (typeof value === 'object') {
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
|
+
} else if (value instanceof Date) {
|
|
69
|
+
if (key != null) {
|
|
70
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
71
|
+
} else {
|
|
72
|
+
throw Error('key may not be null if value is Date');
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
76
|
+
}
|
|
77
|
+
} else if (key != null) {
|
|
78
|
+
httpParams = httpParams.append(key, value);
|
|
79
|
+
} else {
|
|
80
|
+
throw Error('key may not be null if value is not object or array');
|
|
81
|
+
}
|
|
82
|
+
return httpParams;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This lists all available workspaces which are stored in the database and not deleted (status \"A\").
|
|
87
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
88
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
|
+
* @param reportProgress flag to report request and response progress.
|
|
90
|
+
*/
|
|
91
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<Workspace>>;
|
|
92
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<Workspace>>>;
|
|
93
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<Workspace>>>;
|
|
94
|
+
public httpWorkspacesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
95
|
+
let queryParameters = new HttpParams({ encoder: this.encoder });
|
|
96
|
+
if (translations !== undefined && translations !== null) {
|
|
97
|
+
queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let headers = this.defaultHeaders;
|
|
101
|
+
|
|
102
|
+
let credential: string | undefined;
|
|
103
|
+
// authentication (function_key) required
|
|
104
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
105
|
+
if (credential) {
|
|
106
|
+
headers = headers.set('x-functions-key', credential);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
110
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
111
|
+
// to determine the Accept header
|
|
112
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
113
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
114
|
+
}
|
|
115
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
116
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
120
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
121
|
+
responseType_ = 'text';
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return this.httpClient.get<Array<Workspace>>(`${this.configuration.basePath}/workspaces`, {
|
|
125
|
+
params: queryParameters,
|
|
126
|
+
responseType: <any>responseType_,
|
|
127
|
+
withCredentials: this.configuration.withCredentials,
|
|
128
|
+
headers: headers,
|
|
129
|
+
observe: observe,
|
|
130
|
+
reportProgress: reportProgress
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns one single workspace (from ID).
|
|
136
|
+
* @param id The ID of the workspace.
|
|
137
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
138
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
139
|
+
* @param reportProgress flag to report request and response progress.
|
|
140
|
+
*/
|
|
141
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Workspace>;
|
|
142
|
+
public httpWorkspacesGetById(
|
|
143
|
+
id: string,
|
|
144
|
+
translations?: boolean,
|
|
145
|
+
observe?: 'response',
|
|
146
|
+
reportProgress?: boolean,
|
|
147
|
+
options?: { httpHeaderAccept?: 'application/json' }
|
|
148
|
+
): Observable<HttpResponse<Workspace>>;
|
|
149
|
+
public httpWorkspacesGetById(
|
|
150
|
+
id: string,
|
|
151
|
+
translations?: boolean,
|
|
152
|
+
observe?: 'events',
|
|
153
|
+
reportProgress?: boolean,
|
|
154
|
+
options?: { httpHeaderAccept?: 'application/json' }
|
|
155
|
+
): Observable<HttpEvent<Workspace>>;
|
|
156
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
157
|
+
if (id === null || id === undefined) {
|
|
158
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesGetById.');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let queryParameters = new HttpParams({ encoder: this.encoder });
|
|
162
|
+
if (translations !== undefined && translations !== null) {
|
|
163
|
+
queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
let headers = this.defaultHeaders;
|
|
167
|
+
|
|
168
|
+
let credential: string | undefined;
|
|
169
|
+
// authentication (function_key) required
|
|
170
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
171
|
+
if (credential) {
|
|
172
|
+
headers = headers.set('x-functions-key', credential);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
176
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
177
|
+
// to determine the Accept header
|
|
178
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
179
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
180
|
+
}
|
|
181
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
182
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
186
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
187
|
+
responseType_ = 'text';
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return this.httpClient.get<Workspace>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}`, {
|
|
191
|
+
params: queryParameters,
|
|
192
|
+
responseType: <any>responseType_,
|
|
193
|
+
withCredentials: this.configuration.withCredentials,
|
|
194
|
+
headers: headers,
|
|
195
|
+
observe: observe,
|
|
196
|
+
reportProgress: reportProgress
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
package/api.module.ts
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
|
2
|
-
import { AgravityPublicConfiguration } from './configuration';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
|
|
5
|
-
import { PublicAssetManagementService } from './api/publicAssetManagement.pub.agravity';
|
|
6
|
-
import { PublicAssetOperationsService } from './api/publicAssetOperations.pub.agravity';
|
|
7
|
-
import { PublicAssetPublishingService } from './api/publicAssetPublishing.pub.agravity';
|
|
8
|
-
import { PublicAssetVersioningService } from './api/publicAssetVersioning.pub.agravity';
|
|
9
|
-
import { PublicAuthenticationManagementService } from './api/publicAuthenticationManagement.pub.agravity';
|
|
10
|
-
import { PublicCollectionManagementService } from './api/publicCollectionManagement.pub.agravity';
|
|
11
|
-
import { PublicCollectionSecureUploadService } from './api/publicCollectionSecureUpload.pub.agravity';
|
|
12
|
-
import { PublicCollectionTypeManagementService } from './api/publicCollectionTypeManagement.pub.agravity';
|
|
13
|
-
import { PublicConfigurationManagementService } from './api/publicConfigurationManagement.pub.agravity';
|
|
14
|
-
import { PublicDownloadFormatManagementService } from './api/publicDownloadFormatManagement.pub.agravity';
|
|
15
|
-
import { PublicGeneralManagementService } from './api/publicGeneralManagement.pub.agravity';
|
|
16
|
-
import { PublicHelperToolsService } from './api/publicHelperTools.pub.agravity';
|
|
17
|
-
import { PublicPublishingService } from './api/publicPublishing.pub.agravity';
|
|
18
|
-
import { PublicSavedSearchService } from './api/publicSavedSearch.pub.agravity';
|
|
19
|
-
import { PublicSearchManagementService } from './api/publicSearchManagement.pub.agravity';
|
|
20
|
-
import { PublicSharingManagementService } from './api/publicSharingManagement.pub.agravity';
|
|
21
|
-
import { PublicSignalRConnectionManagementService } from './api/publicSignalRConnectionManagement.pub.agravity';
|
|
22
|
-
import { PublicStaticDefinedListManagementService } from './api/publicStaticDefinedListManagement.pub.agravity';
|
|
23
|
-
import { PublicTranslationManagementService } from './api/publicTranslationManagement.pub.agravity';
|
|
24
|
-
import { PublicWebAppDataService } from './api/publicWebAppData.pub.agravity';
|
|
25
|
-
import { PublicWorkspaceManagementService } from './api/publicWorkspaceManagement.pub.agravity';
|
|
26
|
-
|
|
27
|
-
@NgModule({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})
|
|
33
|
-
export class AgravityPublicApiModule {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
|
2
|
+
import { AgravityPublicConfiguration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
import { PublicAssetManagementService } from './api/publicAssetManagement.pub.agravity';
|
|
6
|
+
import { PublicAssetOperationsService } from './api/publicAssetOperations.pub.agravity';
|
|
7
|
+
import { PublicAssetPublishingService } from './api/publicAssetPublishing.pub.agravity';
|
|
8
|
+
import { PublicAssetVersioningService } from './api/publicAssetVersioning.pub.agravity';
|
|
9
|
+
import { PublicAuthenticationManagementService } from './api/publicAuthenticationManagement.pub.agravity';
|
|
10
|
+
import { PublicCollectionManagementService } from './api/publicCollectionManagement.pub.agravity';
|
|
11
|
+
import { PublicCollectionSecureUploadService } from './api/publicCollectionSecureUpload.pub.agravity';
|
|
12
|
+
import { PublicCollectionTypeManagementService } from './api/publicCollectionTypeManagement.pub.agravity';
|
|
13
|
+
import { PublicConfigurationManagementService } from './api/publicConfigurationManagement.pub.agravity';
|
|
14
|
+
import { PublicDownloadFormatManagementService } from './api/publicDownloadFormatManagement.pub.agravity';
|
|
15
|
+
import { PublicGeneralManagementService } from './api/publicGeneralManagement.pub.agravity';
|
|
16
|
+
import { PublicHelperToolsService } from './api/publicHelperTools.pub.agravity';
|
|
17
|
+
import { PublicPublishingService } from './api/publicPublishing.pub.agravity';
|
|
18
|
+
import { PublicSavedSearchService } from './api/publicSavedSearch.pub.agravity';
|
|
19
|
+
import { PublicSearchManagementService } from './api/publicSearchManagement.pub.agravity';
|
|
20
|
+
import { PublicSharingManagementService } from './api/publicSharingManagement.pub.agravity';
|
|
21
|
+
import { PublicSignalRConnectionManagementService } from './api/publicSignalRConnectionManagement.pub.agravity';
|
|
22
|
+
import { PublicStaticDefinedListManagementService } from './api/publicStaticDefinedListManagement.pub.agravity';
|
|
23
|
+
import { PublicTranslationManagementService } from './api/publicTranslationManagement.pub.agravity';
|
|
24
|
+
import { PublicWebAppDataService } from './api/publicWebAppData.pub.agravity';
|
|
25
|
+
import { PublicWorkspaceManagementService } from './api/publicWorkspaceManagement.pub.agravity';
|
|
26
|
+
|
|
27
|
+
@NgModule({
|
|
28
|
+
imports: [],
|
|
29
|
+
declarations: [],
|
|
30
|
+
exports: [],
|
|
31
|
+
providers: []
|
|
32
|
+
})
|
|
33
|
+
export class AgravityPublicApiModule {
|
|
34
|
+
public static forRoot(configurationFactory: () => AgravityPublicConfiguration): ModuleWithProviders<AgravityPublicApiModule> {
|
|
35
|
+
return {
|
|
36
|
+
ngModule: AgravityPublicApiModule,
|
|
37
|
+
providers: [{ provide: AgravityPublicConfiguration, useFactory: configurationFactory }]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(@Optional() @SkipSelf() parentModule: AgravityPublicApiModule, @Optional() http: HttpClient) {
|
|
42
|
+
if (parentModule) {
|
|
43
|
+
throw new Error('AgravityPublicApiModule is already loaded. Import in your base AppModule only.');
|
|
44
|
+
}
|
|
45
|
+
if (!http) {
|
|
46
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' + 'See also https://github.com/angular/angular/issues/20575');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|