@contentchef/contentchef-types 2.5.5 → 2.5.6
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/dist/api/AuditLog.d.ts +11 -5
- package/dist/api/MediaGallery.d.ts +22 -1
- package/lib/api/AuditLog.ts +10 -5
- package/lib/api/MediaGallery.ts +24 -1
- package/package.json +2 -2
package/dist/api/AuditLog.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AuthorResponse } from './Author';
|
|
2
|
+
import { PublishingChannelId } from './Channel';
|
|
1
3
|
import { PagedListResponse } from './common';
|
|
2
4
|
import { ContentId } from './Content';
|
|
3
|
-
import { ContentRepositoryId } from './ContentRepository';
|
|
4
5
|
import { ContentDefinitionId } from './ContentDefinition';
|
|
6
|
+
import { ContentRepositoryId } from './ContentRepository';
|
|
5
7
|
import { MediaGalleryId } from './MediaGallery';
|
|
6
|
-
import { PublishingChannelId } from './Channel';
|
|
7
|
-
import { AuthorResponse } from './Author';
|
|
8
8
|
/**
|
|
9
9
|
* This type represent the audit log unique id type
|
|
10
10
|
*/
|
|
@@ -94,8 +94,13 @@ export declare enum SubjectActions {
|
|
|
94
94
|
export declare type ListAuditLogRequest = {
|
|
95
95
|
skip: number;
|
|
96
96
|
take: number;
|
|
97
|
-
filters
|
|
97
|
+
filters?: ListAuditLogFilters;
|
|
98
98
|
};
|
|
99
|
+
declare type LatestActivitesRequest<ToRemove extends keyof ListAuditLogFilters> = Omit<ListAuditLogRequest, 'filters'> & {
|
|
100
|
+
filters: Omit<ListAuditLogFilters, ToRemove>;
|
|
101
|
+
};
|
|
102
|
+
export declare type UserTeamLatestActivitiesRequest = LatestActivitesRequest<'userTeamLatestActivities'>;
|
|
103
|
+
export declare type UserLatestActivitiesRequest = LatestActivitesRequest<'userLatestActivities'>;
|
|
99
104
|
/**
|
|
100
105
|
* This type represent all the filters used to filter a list of audit logs
|
|
101
106
|
*/
|
|
@@ -133,7 +138,7 @@ export declare type ListByRepositoryIdRequest = {
|
|
|
133
138
|
* The unique repository id
|
|
134
139
|
*/
|
|
135
140
|
repositoryId: ContentRepositoryId;
|
|
136
|
-
};
|
|
141
|
+
} & (Partial<UserTeamLatestActivitiesRequest> | Partial<UserLatestActivitiesRequest>);
|
|
137
142
|
/**
|
|
138
143
|
* The model the represent the audit log parent filter used in the list of audit logs
|
|
139
144
|
*/
|
|
@@ -196,3 +201,4 @@ export declare type ListAuditLogItem = {
|
|
|
196
201
|
* This type represent the response of a list audit log API request
|
|
197
202
|
*/
|
|
198
203
|
export declare type ListAuditLogResponse = PagedListResponse<ListAuditLogItem>;
|
|
204
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PagedListResponse } from './common';
|
|
2
1
|
import { AuthorResponse } from './Author';
|
|
2
|
+
import { PagedListResponse } from './common';
|
|
3
3
|
/**
|
|
4
4
|
* This type describe the result of a list request on media
|
|
5
5
|
* @template T The type of media requested
|
|
@@ -481,3 +481,24 @@ export declare type UpdateMediaResponse = Media;
|
|
|
481
481
|
* This type represent the possible type of media accepted
|
|
482
482
|
*/
|
|
483
483
|
export declare type MediaType = 'image' | 'video' | 'raw';
|
|
484
|
+
/**
|
|
485
|
+
* Parameters needed to delete a media
|
|
486
|
+
*/
|
|
487
|
+
export declare type DeleteMediaRequest = {
|
|
488
|
+
/**
|
|
489
|
+
* The media gallery unique id where the media is located
|
|
490
|
+
*/
|
|
491
|
+
mediaGalleryId: number;
|
|
492
|
+
/**
|
|
493
|
+
* The media public id
|
|
494
|
+
*/
|
|
495
|
+
mediaPublicId: string;
|
|
496
|
+
/**
|
|
497
|
+
* The type of the media to add
|
|
498
|
+
*/
|
|
499
|
+
resourceType: MediaType;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Success or failure (boolean) of a delete media request
|
|
503
|
+
*/
|
|
504
|
+
export declare type DeleteMediaResponse = boolean;
|
package/lib/api/AuditLog.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AuthorResponse } from './Author';
|
|
2
|
+
import { PublishingChannelId } from './Channel';
|
|
1
3
|
import { PagedListResponse } from './common';
|
|
2
4
|
import { ContentId } from './Content';
|
|
3
|
-
import { ContentRepositoryId } from './ContentRepository';
|
|
4
5
|
import { ContentDefinitionId } from './ContentDefinition';
|
|
6
|
+
import { ContentRepositoryId } from './ContentRepository';
|
|
5
7
|
import { MediaGalleryId } from './MediaGallery';
|
|
6
|
-
import { PublishingChannelId } from './Channel';
|
|
7
|
-
import { AuthorResponse } from './Author';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* This type represent the audit log unique id type
|
|
@@ -98,9 +98,14 @@ export enum SubjectActions {
|
|
|
98
98
|
export type ListAuditLogRequest = {
|
|
99
99
|
skip: number;
|
|
100
100
|
take: number;
|
|
101
|
-
filters
|
|
101
|
+
filters?: ListAuditLogFilters;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
+
type LatestActivitesRequest<ToRemove extends keyof ListAuditLogFilters> = Omit<ListAuditLogRequest, 'filters'> & {filters: Omit<ListAuditLogFilters, ToRemove>}
|
|
105
|
+
|
|
106
|
+
export type UserTeamLatestActivitiesRequest = LatestActivitesRequest<'userTeamLatestActivities'>;
|
|
107
|
+
export type UserLatestActivitiesRequest = LatestActivitesRequest<'userLatestActivities'>;
|
|
108
|
+
|
|
104
109
|
/**
|
|
105
110
|
* This type represent all the filters used to filter a list of audit logs
|
|
106
111
|
*/
|
|
@@ -139,7 +144,7 @@ export type ListByRepositoryIdRequest = {
|
|
|
139
144
|
* The unique repository id
|
|
140
145
|
*/
|
|
141
146
|
repositoryId: ContentRepositoryId;
|
|
142
|
-
};
|
|
147
|
+
} & (Partial<UserTeamLatestActivitiesRequest> | Partial<UserLatestActivitiesRequest>);
|
|
143
148
|
|
|
144
149
|
/**
|
|
145
150
|
* The model the represent the audit log parent filter used in the list of audit logs
|
package/lib/api/MediaGallery.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PagedListResponse } from './common';
|
|
2
1
|
import { AuthorResponse } from './Author';
|
|
2
|
+
import { PagedListResponse } from './common';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This type describe the result of a list request on media
|
|
@@ -509,3 +509,26 @@ export type UpdateMediaResponse = Media;
|
|
|
509
509
|
* This type represent the possible type of media accepted
|
|
510
510
|
*/
|
|
511
511
|
export type MediaType = 'image' | 'video' | 'raw';
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Parameters needed to delete a media
|
|
515
|
+
*/
|
|
516
|
+
export type DeleteMediaRequest = {
|
|
517
|
+
/**
|
|
518
|
+
* The media gallery unique id where the media is located
|
|
519
|
+
*/
|
|
520
|
+
mediaGalleryId: number;
|
|
521
|
+
/**
|
|
522
|
+
* The media public id
|
|
523
|
+
*/
|
|
524
|
+
mediaPublicId: string;
|
|
525
|
+
/**
|
|
526
|
+
* The type of the media to add
|
|
527
|
+
*/
|
|
528
|
+
resourceType: MediaType;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Success or failure (boolean) of a delete media request
|
|
533
|
+
*/
|
|
534
|
+
export type DeleteMediaResponse = boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentchef/contentchef-types",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "ContentChef types",
|
|
5
5
|
"author": "PierpaoloIannone <piannone@byte-code.com>",
|
|
6
6
|
"homepage": "https://github.com/ContentChef/contentchef-management-js-client#readme",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^4.0.5"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "abbd192cd0a8e8de0dde6b886c558d0133ce3056"
|
|
38
38
|
}
|