@agravity/private 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 +101 -67
- package/api/assetIconRuleManagement.agravity.ts +434 -400
- package/api/assetManagement.agravity.ts +856 -737
- package/api/assetOperations.agravity.ts +1415 -1309
- package/api/assetPublishing.agravity.ts +549 -511
- package/api/assetVersioning.agravity.ts +707 -657
- package/api/authenticationManagement.agravity.ts +473 -502
- package/api/collectionManagement.agravity.ts +731 -618
- package/api/collectionSharing.agravity.ts +359 -329
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +373 -340
- package/api/collectionTypeManagement.agravity.ts +609 -533
- package/api/configurationManagement.agravity.ts +316 -311
- package/api/downloadFormatManagement.agravity.ts +440 -400
- package/api/downloadZip.agravity.ts +149 -151
- package/api/generalManagement.agravity.ts +328 -348
- package/api/helperTools.agravity.ts +619 -682
- package/api/historyEntryManagement.agravity.ts +149 -139
- package/api/iccProfileManagement.agravity.ts +123 -134
- package/api/listBlobs.agravity.ts +168 -185
- package/api/listQueues.agravity.ts +123 -134
- package/api/permissionsManagement.agravity.ts +276 -262
- package/api/publishing.agravity.ts +160 -148
- package/api/quickshareManagement.agravity.ts +378 -385
- package/api/savedSearchManagement.agravity.ts +293 -271
- package/api/searchManagement.agravity.ts +365 -345
- package/api/secureUpload.agravity.ts +375 -371
- package/api/signalRConnectionManagement.agravity.ts +200 -218
- package/api/staticDefinedListManagement.agravity.ts +457 -408
- package/api/stockImport.agravity.ts +242 -221
- package/api/structureImport.agravity.ts +126 -137
- package/api/translationManagement.agravity.ts +490 -404
- package/api/webAppData.agravity.ts +274 -300
- package/api/wordpressManagement.agravity.ts +326 -282
- package/api/workspaceManagement.agravity.ts +543 -513
- package/api.module.ts +61 -63
- package/configuration.ts +125 -130
- package/encoder.ts +20 -20
- package/index.ts +5 -5
- package/model/agravityErrorResponse.agravity.ts +17 -19
- package/model/agravityInfoResponse.agravity.ts +17 -19
- package/model/agravityUser.agravity.ts +35 -37
- package/model/agravityVersion.agravity.ts +22 -24
- package/model/allWebAppData.agravity.ts +22 -24
- package/model/apiKeyResponse.agravity.ts +16 -18
- package/model/appConfigTableEntity.agravity.ts +23 -25
- package/model/artificialIntelligenceGroup.agravity.ts +18 -20
- package/model/asset.agravity.ts +45 -47
- package/model/assetAvailability.agravity.ts +17 -19
- package/model/assetBlob.agravity.ts +79 -82
- package/model/assetBulkUpdate.agravity.ts +18 -20
- package/model/assetCollectionLink.agravity.ts +16 -18
- package/model/assetIconRule.agravity.ts +33 -35
- package/model/assetIdFormat.agravity.ts +17 -19
- package/model/assetPageResult.agravity.ts +21 -23
- package/model/assetsOperationBody.agravity.ts +18 -20
- package/model/azSearchOptions.agravity.ts +23 -25
- package/model/azureIdentity.agravity.ts +27 -30
- package/model/blobInfoObj.agravity.ts +21 -23
- package/model/collTypeItem.agravity.ts +36 -38
- package/model/collTypeItemBlueprint.agravity.ts +29 -31
- package/model/collection.agravity.ts +33 -35
- package/model/collectionType.agravity.ts +33 -35
- package/model/collectionUDL.agravity.ts +19 -21
- package/model/createSftpUserResult.agravity.ts +16 -18
- package/model/dataResult.agravity.ts +20 -22
- package/model/distZipResponse.agravity.ts +17 -19
- package/model/downloadFormat.agravity.ts +32 -34
- package/model/downloadObject.agravity.ts +30 -32
- package/model/downloadZipRequest.agravity.ts +23 -25
- package/model/dynamicImageOperation.agravity.ts +16 -18
- package/model/emailAddress.agravity.ts +16 -18
- package/model/entityId.agravity.ts +15 -17
- package/model/entityIdName.agravity.ts +17 -19
- package/model/entityTranslations.agravity.ts +16 -18
- package/model/frontendAppConfig.agravity.ts +19 -21
- package/model/groupAllAppData.agravity.ts +24 -26
- package/model/historyEntry.agravity.ts +40 -43
- package/model/infoEntitySkillEnhanced.agravity.ts +23 -25
- package/model/metadata.agravity.ts +17 -19
- package/model/models.ts +73 -73
- package/model/moveCollectionBody.agravity.ts +17 -19
- package/model/permissionChange.agravity.ts +26 -29
- package/model/permissionSetting.agravity.ts +25 -27
- package/model/publishEntity.agravity.ts +26 -28
- package/model/publishedAsset.agravity.ts +23 -25
- package/model/quickShare.agravity.ts +30 -32
- package/model/quickShareFull.agravity.ts +35 -37
- package/model/sasToken.agravity.ts +20 -22
- package/model/savedSearch.agravity.ts +29 -31
- package/model/searchAdminDataSourceStatus.agravity.ts +16 -18
- package/model/searchAdminIndexStatus.agravity.ts +18 -20
- package/model/searchAdminIndexerLastRun.agravity.ts +19 -21
- package/model/searchAdminIndexerStatus.agravity.ts +18 -20
- package/model/searchAdminSkillStatus.agravity.ts +16 -18
- package/model/searchAdminStatistics.agravity.ts +16 -18
- package/model/searchAdminStatus.agravity.ts +22 -24
- package/model/searchFacet.agravity.ts +17 -19
- package/model/searchFacetEntity.agravity.ts +17 -19
- package/model/searchResult.agravity.ts +21 -23
- package/model/searchableItem.agravity.ts +24 -26
- package/model/secureUploadEntity.agravity.ts +25 -27
- package/model/sharedAsset.agravity.ts +23 -25
- package/model/sharedCollection.agravity.ts +22 -24
- package/model/sharedCollectionFull.agravity.ts +27 -29
- package/model/signalRConnectionInfo.agravity.ts +16 -18
- package/model/simpleAsset.agravity.ts +24 -26
- package/model/staticDefinedList.agravity.ts +28 -30
- package/model/uiTutorials.agravity.ts +23 -26
- package/model/versionEntity.agravity.ts +26 -28
- package/model/versionedAsset.agravity.ts +18 -20
- package/model/whereParam.agravity.ts +40 -43
- package/model/workspace.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
package/api.module.ts
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
|
-
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
|
2
|
-
import { AgravityConfiguration } from './configuration';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
|
|
5
|
-
import { AssetIconRuleManagementService } from './api/assetIconRuleManagement.agravity';
|
|
6
|
-
import { AssetManagementService } from './api/assetManagement.agravity';
|
|
7
|
-
import { AssetOperationsService } from './api/assetOperations.agravity';
|
|
8
|
-
import { AssetPublishingService } from './api/assetPublishing.agravity';
|
|
9
|
-
import { AssetVersioningService } from './api/assetVersioning.agravity';
|
|
10
|
-
import { AuthenticationManagementService } from './api/authenticationManagement.agravity';
|
|
11
|
-
import { CollectionManagementService } from './api/collectionManagement.agravity';
|
|
12
|
-
import { CollectionSharingService } from './api/collectionSharing.agravity';
|
|
13
|
-
import { CollectionTypeItemBlueprintManagementService } from './api/collectionTypeItemBlueprintManagement.agravity';
|
|
14
|
-
import { CollectionTypeManagementService } from './api/collectionTypeManagement.agravity';
|
|
15
|
-
import { ConfigurationManagementService } from './api/configurationManagement.agravity';
|
|
16
|
-
import { DownloadFormatManagementService } from './api/downloadFormatManagement.agravity';
|
|
17
|
-
import { DownloadZipService } from './api/downloadZip.agravity';
|
|
18
|
-
import { GeneralManagementService } from './api/generalManagement.agravity';
|
|
19
|
-
import { HelperToolsService } from './api/helperTools.agravity';
|
|
20
|
-
import { HistoryEntryManagementService } from './api/historyEntryManagement.agravity';
|
|
21
|
-
import { IccProfileManagementService } from './api/iccProfileManagement.agravity';
|
|
22
|
-
import { ListBlobsService } from './api/listBlobs.agravity';
|
|
23
|
-
import { ListQueuesService } from './api/listQueues.agravity';
|
|
24
|
-
import { PermissionsManagementService } from './api/permissionsManagement.agravity';
|
|
25
|
-
import { PublishingService } from './api/publishing.agravity';
|
|
26
|
-
import { QuickshareManagementService } from './api/quickshareManagement.agravity';
|
|
27
|
-
import { SavedSearchManagementService } from './api/savedSearchManagement.agravity';
|
|
28
|
-
import { SearchManagementService } from './api/searchManagement.agravity';
|
|
29
|
-
import { SecureUploadService } from './api/secureUpload.agravity';
|
|
30
|
-
import { SignalRConnectionManagementService } from './api/signalRConnectionManagement.agravity';
|
|
31
|
-
import { StaticDefinedListManagementService } from './api/staticDefinedListManagement.agravity';
|
|
32
|
-
import { StockImportService } from './api/stockImport.agravity';
|
|
33
|
-
import { StructureImportService } from './api/structureImport.agravity';
|
|
34
|
-
import { TranslationManagementService } from './api/translationManagement.agravity';
|
|
35
|
-
import { WebAppDataService } from './api/webAppData.agravity';
|
|
36
|
-
import { WordpressManagementService } from './api/wordpressManagement.agravity';
|
|
37
|
-
import { WorkspaceManagementService } from './api/workspaceManagement.agravity';
|
|
38
|
-
|
|
39
|
-
@NgModule({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
})
|
|
45
|
-
export class AgravityApiModule {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
|
2
|
+
import { AgravityConfiguration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
import { AssetIconRuleManagementService } from './api/assetIconRuleManagement.agravity';
|
|
6
|
+
import { AssetManagementService } from './api/assetManagement.agravity';
|
|
7
|
+
import { AssetOperationsService } from './api/assetOperations.agravity';
|
|
8
|
+
import { AssetPublishingService } from './api/assetPublishing.agravity';
|
|
9
|
+
import { AssetVersioningService } from './api/assetVersioning.agravity';
|
|
10
|
+
import { AuthenticationManagementService } from './api/authenticationManagement.agravity';
|
|
11
|
+
import { CollectionManagementService } from './api/collectionManagement.agravity';
|
|
12
|
+
import { CollectionSharingService } from './api/collectionSharing.agravity';
|
|
13
|
+
import { CollectionTypeItemBlueprintManagementService } from './api/collectionTypeItemBlueprintManagement.agravity';
|
|
14
|
+
import { CollectionTypeManagementService } from './api/collectionTypeManagement.agravity';
|
|
15
|
+
import { ConfigurationManagementService } from './api/configurationManagement.agravity';
|
|
16
|
+
import { DownloadFormatManagementService } from './api/downloadFormatManagement.agravity';
|
|
17
|
+
import { DownloadZipService } from './api/downloadZip.agravity';
|
|
18
|
+
import { GeneralManagementService } from './api/generalManagement.agravity';
|
|
19
|
+
import { HelperToolsService } from './api/helperTools.agravity';
|
|
20
|
+
import { HistoryEntryManagementService } from './api/historyEntryManagement.agravity';
|
|
21
|
+
import { IccProfileManagementService } from './api/iccProfileManagement.agravity';
|
|
22
|
+
import { ListBlobsService } from './api/listBlobs.agravity';
|
|
23
|
+
import { ListQueuesService } from './api/listQueues.agravity';
|
|
24
|
+
import { PermissionsManagementService } from './api/permissionsManagement.agravity';
|
|
25
|
+
import { PublishingService } from './api/publishing.agravity';
|
|
26
|
+
import { QuickshareManagementService } from './api/quickshareManagement.agravity';
|
|
27
|
+
import { SavedSearchManagementService } from './api/savedSearchManagement.agravity';
|
|
28
|
+
import { SearchManagementService } from './api/searchManagement.agravity';
|
|
29
|
+
import { SecureUploadService } from './api/secureUpload.agravity';
|
|
30
|
+
import { SignalRConnectionManagementService } from './api/signalRConnectionManagement.agravity';
|
|
31
|
+
import { StaticDefinedListManagementService } from './api/staticDefinedListManagement.agravity';
|
|
32
|
+
import { StockImportService } from './api/stockImport.agravity';
|
|
33
|
+
import { StructureImportService } from './api/structureImport.agravity';
|
|
34
|
+
import { TranslationManagementService } from './api/translationManagement.agravity';
|
|
35
|
+
import { WebAppDataService } from './api/webAppData.agravity';
|
|
36
|
+
import { WordpressManagementService } from './api/wordpressManagement.agravity';
|
|
37
|
+
import { WorkspaceManagementService } from './api/workspaceManagement.agravity';
|
|
38
|
+
|
|
39
|
+
@NgModule({
|
|
40
|
+
imports: [],
|
|
41
|
+
declarations: [],
|
|
42
|
+
exports: [],
|
|
43
|
+
providers: []
|
|
44
|
+
})
|
|
45
|
+
export class AgravityApiModule {
|
|
46
|
+
public static forRoot(configurationFactory: () => AgravityConfiguration): ModuleWithProviders<AgravityApiModule> {
|
|
47
|
+
return {
|
|
48
|
+
ngModule: AgravityApiModule,
|
|
49
|
+
providers: [{ provide: AgravityConfiguration, useFactory: configurationFactory }]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(@Optional() @SkipSelf() parentModule: AgravityApiModule, @Optional() http: HttpClient) {
|
|
54
|
+
if (parentModule) {
|
|
55
|
+
throw new Error('AgravityApiModule is already loaded. Import in your base AppModule only.');
|
|
56
|
+
}
|
|
57
|
+
if (!http) {
|
|
58
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' + 'See also https://github.com/angular/angular/issues/20575');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
package/configuration.ts
CHANGED
|
@@ -1,130 +1,125 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
-
|
|
3
|
-
export interface AgravityConfigurationParameters {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class AgravityConfiguration {
|
|
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
|
-
return typeof value === 'function'
|
|
127
|
-
? value()
|
|
128
|
-
: value;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
|
|
3
|
+
export interface AgravityConfigurationParameters {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
6
|
+
*/
|
|
7
|
+
apiKeys?: { [key: string]: string };
|
|
8
|
+
username?: string;
|
|
9
|
+
password?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
12
|
+
*/
|
|
13
|
+
accessToken?: string | (() => string);
|
|
14
|
+
basePath?: string;
|
|
15
|
+
withCredentials?: boolean;
|
|
16
|
+
encoder?: HttpParameterCodec;
|
|
17
|
+
/**
|
|
18
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
19
|
+
* document. They should map to the value used for authentication
|
|
20
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
21
|
+
*/
|
|
22
|
+
credentials?: { [key: string]: string | (() => string | undefined) };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class AgravityConfiguration {
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
28
|
+
*/
|
|
29
|
+
apiKeys?: { [key: string]: string };
|
|
30
|
+
username?: string;
|
|
31
|
+
password?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
34
|
+
*/
|
|
35
|
+
accessToken?: string | (() => string);
|
|
36
|
+
basePath?: string;
|
|
37
|
+
withCredentials?: boolean;
|
|
38
|
+
encoder?: HttpParameterCodec;
|
|
39
|
+
/**
|
|
40
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
41
|
+
* document. They should map to the value used for authentication
|
|
42
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
43
|
+
*/
|
|
44
|
+
credentials: { [key: string]: string | (() => string | undefined) };
|
|
45
|
+
|
|
46
|
+
constructor(configurationParameters: AgravityConfigurationParameters = {}) {
|
|
47
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
48
|
+
this.username = configurationParameters.username;
|
|
49
|
+
this.password = configurationParameters.password;
|
|
50
|
+
this.accessToken = configurationParameters.accessToken;
|
|
51
|
+
this.basePath = configurationParameters.basePath;
|
|
52
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
53
|
+
this.encoder = configurationParameters.encoder;
|
|
54
|
+
if (configurationParameters.credentials) {
|
|
55
|
+
this.credentials = configurationParameters.credentials;
|
|
56
|
+
} else {
|
|
57
|
+
this.credentials = {};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// init default msal_auth credential
|
|
61
|
+
if (!this.credentials['msal_auth']) {
|
|
62
|
+
this.credentials['msal_auth'] = () => {
|
|
63
|
+
return typeof this.accessToken === 'function' ? this.accessToken() : this.accessToken;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Select the correct content-type to use for a request.
|
|
70
|
+
* Uses {@link AgravityConfiguration#isJsonMime} to determine the correct content-type.
|
|
71
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
72
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
73
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
74
|
+
*/
|
|
75
|
+
public selectHeaderContentType(contentTypes: string[]): string | undefined {
|
|
76
|
+
if (contentTypes.length === 0) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const type = contentTypes.find((x: string) => this.isJsonMime(x));
|
|
81
|
+
if (type === undefined) {
|
|
82
|
+
return contentTypes[0];
|
|
83
|
+
}
|
|
84
|
+
return type;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Select the correct accept content-type to use for a request.
|
|
89
|
+
* Uses {@link AgravityConfiguration#isJsonMime} to determine the correct accept content-type.
|
|
90
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
91
|
+
* @param accepts - the array of content types that are available for selection.
|
|
92
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
93
|
+
*/
|
|
94
|
+
public selectHeaderAccept(accepts: string[]): string | undefined {
|
|
95
|
+
if (accepts.length === 0) {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const type = accepts.find((x: string) => this.isJsonMime(x));
|
|
100
|
+
if (type === undefined) {
|
|
101
|
+
return accepts[0];
|
|
102
|
+
}
|
|
103
|
+
return type;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Check if the given MIME is a JSON MIME.
|
|
108
|
+
* JSON MIME examples:
|
|
109
|
+
* application/json
|
|
110
|
+
* application/json; charset=UTF8
|
|
111
|
+
* APPLICATION/JSON
|
|
112
|
+
* application/vnd.company+json
|
|
113
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
114
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
115
|
+
*/
|
|
116
|
+
public isJsonMime(mime: string): boolean {
|
|
117
|
+
const jsonMime: RegExp = new RegExp('^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
118
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public lookupCredential(key: string): string | undefined {
|
|
122
|
+
const value = this.credentials[key];
|
|
123
|
+
return typeof value === 'function' ? value() : value;
|
|
124
|
+
}
|
|
125
|
+
}
|
package/encoder.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Custom HttpParameterCodec
|
|
5
|
-
* Workaround for https://github.com/angular/angular/issues/18261
|
|
6
|
-
*/
|
|
7
|
-
export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom HttpParameterCodec
|
|
5
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
6
|
+
*/
|
|
7
|
+
export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
8
|
+
encodeKey(k: string): string {
|
|
9
|
+
return encodeURIComponent(k);
|
|
10
|
+
}
|
|
11
|
+
encodeValue(v: string): string {
|
|
12
|
+
return encodeURIComponent(v);
|
|
13
|
+
}
|
|
14
|
+
decodeKey(k: string): string {
|
|
15
|
+
return decodeURIComponent(k);
|
|
16
|
+
}
|
|
17
|
+
decodeValue(v: string): string {
|
|
18
|
+
return decodeURIComponent(v);
|
|
19
|
+
}
|
|
20
|
+
}
|
package/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './api/api';
|
|
2
|
-
export * from './model/models';
|
|
3
|
-
export * from './variables';
|
|
4
|
-
export * from './configuration';
|
|
5
|
-
export * from './api.module';
|
|
1
|
+
export * from './api/api';
|
|
2
|
+
export * from './model/models';
|
|
3
|
+
export * from './variables';
|
|
4
|
+
export * from './configuration';
|
|
5
|
+
export * from './api.module';
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
-
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
+
|
|
13
|
+
export interface AgravityErrorResponse {
|
|
14
|
+
error_id?: string;
|
|
15
|
+
error_message?: string;
|
|
16
|
+
exception?: string;
|
|
17
|
+
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
-
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
+
|
|
13
|
+
export interface AgravityInfoResponse {
|
|
14
|
+
info_id?: string;
|
|
15
|
+
info_message?: string;
|
|
16
|
+
info_object?: object;
|
|
17
|
+
}
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
-
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
-
import { UiTutorials } from './uiTutorials.agravity';
|
|
13
|
-
import { DownloadObject } from './downloadObject.agravity';
|
|
14
|
-
import { SecureUploadEntity } from './secureUploadEntity.agravity';
|
|
15
|
-
import { SharedCollection } from './sharedCollection.agravity';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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
|
+
import { UiTutorials } from './uiTutorials.agravity';
|
|
13
|
+
import { DownloadObject } from './downloadObject.agravity';
|
|
14
|
+
import { SecureUploadEntity } from './secureUploadEntity.agravity';
|
|
15
|
+
import { SharedCollection } from './sharedCollection.agravity';
|
|
16
|
+
|
|
17
|
+
export interface AgravityUser {
|
|
18
|
+
id?: string;
|
|
19
|
+
entity_type?: string;
|
|
20
|
+
downloads?: Array<DownloadObject>;
|
|
21
|
+
sharedcollections?: Array<SharedCollection>;
|
|
22
|
+
secureuploads?: Array<SecureUploadEntity>;
|
|
23
|
+
name?: string;
|
|
24
|
+
email?: string;
|
|
25
|
+
roles?: Array<string>;
|
|
26
|
+
groups?: Array<string>;
|
|
27
|
+
tutorials?: Array<UiTutorials>;
|
|
28
|
+
status?: string;
|
|
29
|
+
created_date?: string | null;
|
|
30
|
+
created_by?: string;
|
|
31
|
+
modified_date?: string | null;
|
|
32
|
+
modified_by?: string;
|
|
33
|
+
pk?: string;
|
|
34
|
+
_etag?: string;
|
|
35
|
+
}
|