@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.
Files changed (117) hide show
  1. package/README.md +2 -2
  2. package/api/api.ts +101 -67
  3. package/api/assetIconRuleManagement.agravity.ts +434 -400
  4. package/api/assetManagement.agravity.ts +856 -737
  5. package/api/assetOperations.agravity.ts +1415 -1309
  6. package/api/assetPublishing.agravity.ts +549 -511
  7. package/api/assetVersioning.agravity.ts +707 -657
  8. package/api/authenticationManagement.agravity.ts +473 -502
  9. package/api/collectionManagement.agravity.ts +731 -618
  10. package/api/collectionSharing.agravity.ts +359 -329
  11. package/api/collectionTypeItemBlueprintManagement.agravity.ts +373 -340
  12. package/api/collectionTypeManagement.agravity.ts +609 -533
  13. package/api/configurationManagement.agravity.ts +316 -311
  14. package/api/downloadFormatManagement.agravity.ts +440 -400
  15. package/api/downloadZip.agravity.ts +149 -151
  16. package/api/generalManagement.agravity.ts +328 -348
  17. package/api/helperTools.agravity.ts +619 -682
  18. package/api/historyEntryManagement.agravity.ts +149 -139
  19. package/api/iccProfileManagement.agravity.ts +123 -134
  20. package/api/listBlobs.agravity.ts +168 -185
  21. package/api/listQueues.agravity.ts +123 -134
  22. package/api/permissionsManagement.agravity.ts +276 -262
  23. package/api/publishing.agravity.ts +160 -148
  24. package/api/quickshareManagement.agravity.ts +378 -385
  25. package/api/savedSearchManagement.agravity.ts +293 -271
  26. package/api/searchManagement.agravity.ts +365 -345
  27. package/api/secureUpload.agravity.ts +375 -371
  28. package/api/signalRConnectionManagement.agravity.ts +200 -218
  29. package/api/staticDefinedListManagement.agravity.ts +457 -408
  30. package/api/stockImport.agravity.ts +242 -221
  31. package/api/structureImport.agravity.ts +126 -137
  32. package/api/translationManagement.agravity.ts +490 -404
  33. package/api/webAppData.agravity.ts +274 -300
  34. package/api/wordpressManagement.agravity.ts +326 -282
  35. package/api/workspaceManagement.agravity.ts +543 -513
  36. package/api.module.ts +61 -63
  37. package/configuration.ts +125 -130
  38. package/encoder.ts +20 -20
  39. package/index.ts +5 -5
  40. package/model/agravityErrorResponse.agravity.ts +17 -19
  41. package/model/agravityInfoResponse.agravity.ts +17 -19
  42. package/model/agravityUser.agravity.ts +35 -37
  43. package/model/agravityVersion.agravity.ts +22 -24
  44. package/model/allWebAppData.agravity.ts +22 -24
  45. package/model/apiKeyResponse.agravity.ts +16 -18
  46. package/model/appConfigTableEntity.agravity.ts +23 -25
  47. package/model/artificialIntelligenceGroup.agravity.ts +18 -20
  48. package/model/asset.agravity.ts +45 -47
  49. package/model/assetAvailability.agravity.ts +17 -19
  50. package/model/assetBlob.agravity.ts +79 -82
  51. package/model/assetBulkUpdate.agravity.ts +18 -20
  52. package/model/assetCollectionLink.agravity.ts +16 -18
  53. package/model/assetIconRule.agravity.ts +33 -35
  54. package/model/assetIdFormat.agravity.ts +17 -19
  55. package/model/assetPageResult.agravity.ts +21 -23
  56. package/model/assetsOperationBody.agravity.ts +18 -20
  57. package/model/azSearchOptions.agravity.ts +23 -25
  58. package/model/azureIdentity.agravity.ts +27 -30
  59. package/model/blobInfoObj.agravity.ts +21 -23
  60. package/model/collTypeItem.agravity.ts +36 -38
  61. package/model/collTypeItemBlueprint.agravity.ts +29 -31
  62. package/model/collection.agravity.ts +33 -35
  63. package/model/collectionType.agravity.ts +33 -35
  64. package/model/collectionUDL.agravity.ts +19 -21
  65. package/model/createSftpUserResult.agravity.ts +16 -18
  66. package/model/dataResult.agravity.ts +20 -22
  67. package/model/distZipResponse.agravity.ts +17 -19
  68. package/model/downloadFormat.agravity.ts +32 -34
  69. package/model/downloadObject.agravity.ts +30 -32
  70. package/model/downloadZipRequest.agravity.ts +23 -25
  71. package/model/dynamicImageOperation.agravity.ts +16 -18
  72. package/model/emailAddress.agravity.ts +16 -18
  73. package/model/entityId.agravity.ts +15 -17
  74. package/model/entityIdName.agravity.ts +17 -19
  75. package/model/entityTranslations.agravity.ts +16 -18
  76. package/model/frontendAppConfig.agravity.ts +19 -21
  77. package/model/groupAllAppData.agravity.ts +24 -26
  78. package/model/historyEntry.agravity.ts +40 -43
  79. package/model/infoEntitySkillEnhanced.agravity.ts +23 -25
  80. package/model/metadata.agravity.ts +17 -19
  81. package/model/models.ts +73 -73
  82. package/model/moveCollectionBody.agravity.ts +17 -19
  83. package/model/permissionChange.agravity.ts +26 -29
  84. package/model/permissionSetting.agravity.ts +25 -27
  85. package/model/publishEntity.agravity.ts +26 -28
  86. package/model/publishedAsset.agravity.ts +23 -25
  87. package/model/quickShare.agravity.ts +30 -32
  88. package/model/quickShareFull.agravity.ts +35 -37
  89. package/model/sasToken.agravity.ts +20 -22
  90. package/model/savedSearch.agravity.ts +29 -31
  91. package/model/searchAdminDataSourceStatus.agravity.ts +16 -18
  92. package/model/searchAdminIndexStatus.agravity.ts +18 -20
  93. package/model/searchAdminIndexerLastRun.agravity.ts +19 -21
  94. package/model/searchAdminIndexerStatus.agravity.ts +18 -20
  95. package/model/searchAdminSkillStatus.agravity.ts +16 -18
  96. package/model/searchAdminStatistics.agravity.ts +16 -18
  97. package/model/searchAdminStatus.agravity.ts +22 -24
  98. package/model/searchFacet.agravity.ts +17 -19
  99. package/model/searchFacetEntity.agravity.ts +17 -19
  100. package/model/searchResult.agravity.ts +21 -23
  101. package/model/searchableItem.agravity.ts +24 -26
  102. package/model/secureUploadEntity.agravity.ts +25 -27
  103. package/model/sharedAsset.agravity.ts +23 -25
  104. package/model/sharedCollection.agravity.ts +22 -24
  105. package/model/sharedCollectionFull.agravity.ts +27 -29
  106. package/model/signalRConnectionInfo.agravity.ts +16 -18
  107. package/model/simpleAsset.agravity.ts +24 -26
  108. package/model/staticDefinedList.agravity.ts +28 -30
  109. package/model/uiTutorials.agravity.ts +23 -26
  110. package/model/versionEntity.agravity.ts +26 -28
  111. package/model/versionedAsset.agravity.ts +18 -20
  112. package/model/whereParam.agravity.ts +40 -43
  113. package/model/workspace.agravity.ts +32 -34
  114. package/ng-package.json +6 -6
  115. package/package.json +45 -45
  116. package/tsconfig.json +20 -28
  117. 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
- 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,
54
- @Optional() http: HttpClient) {
55
- if (parentModule) {
56
- throw new Error('AgravityApiModule is already loaded. Import in your base AppModule only.');
57
- }
58
- if (!http) {
59
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
60
- 'See also https://github.com/angular/angular/issues/20575');
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
- * @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
- }
57
- else {
58
- this.credentials = {};
59
- }
60
-
61
- // init default msal_auth credential
62
- if (!this.credentials['msal_auth']) {
63
- this.credentials['msal_auth'] = () => {
64
- return typeof this.accessToken === 'function'
65
- ? this.accessToken()
66
- : this.accessToken;
67
- };
68
- }
69
- }
70
-
71
- /**
72
- * Select the correct content-type to use for a request.
73
- * Uses {@link AgravityConfiguration#isJsonMime} to determine the correct content-type.
74
- * If no content type is found return the first found type if the contentTypes is not empty
75
- * @param contentTypes - the array of content types that are available for selection
76
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
77
- */
78
- public selectHeaderContentType (contentTypes: string[]): string | undefined {
79
- if (contentTypes.length === 0) {
80
- return undefined;
81
- }
82
-
83
- const type = contentTypes.find((x: string) => this.isJsonMime(x));
84
- if (type === undefined) {
85
- return contentTypes[0];
86
- }
87
- return type;
88
- }
89
-
90
- /**
91
- * Select the correct accept content-type to use for a request.
92
- * Uses {@link AgravityConfiguration#isJsonMime} to determine the correct accept content-type.
93
- * If no content type is found return the first found type if the contentTypes is not empty
94
- * @param accepts - the array of content types that are available for selection.
95
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
96
- */
97
- public selectHeaderAccept(accepts: string[]): string | undefined {
98
- if (accepts.length === 0) {
99
- return undefined;
100
- }
101
-
102
- const type = accepts.find((x: string) => this.isJsonMime(x));
103
- if (type === undefined) {
104
- return accepts[0];
105
- }
106
- return type;
107
- }
108
-
109
- /**
110
- * Check if the given MIME is a JSON MIME.
111
- * JSON MIME examples:
112
- * application/json
113
- * application/json; charset=UTF8
114
- * APPLICATION/JSON
115
- * application/vnd.company+json
116
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
117
- * @return True if the given MIME is JSON, false otherwise.
118
- */
119
- public isJsonMime(mime: string): boolean {
120
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
121
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
122
- }
123
-
124
- public lookupCredential(key: string): string | undefined {
125
- const value = this.credentials[key];
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
- 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
- }
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.0
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
- export interface AgravityErrorResponse {
15
- error_id?: string;
16
- error_message?: string;
17
- exception?: string;
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.0
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
- export interface AgravityInfoResponse {
15
- info_id?: string;
16
- info_message?: string;
17
- info_object?: object;
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.0
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
- export interface AgravityUser {
19
- id?: string;
20
- entity_type?: string;
21
- downloads?: Array<DownloadObject>;
22
- sharedcollections?: Array<SharedCollection>;
23
- secureuploads?: Array<SecureUploadEntity>;
24
- name?: string;
25
- email?: string;
26
- roles?: Array<string>;
27
- groups?: Array<string>;
28
- tutorials?: Array<UiTutorials>;
29
- status?: string;
30
- created_date?: string | null;
31
- created_by?: string;
32
- modified_date?: string | null;
33
- modified_by?: string;
34
- pk?: string;
35
- _etag?: string;
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
+ }