Skip to content

Commit

Permalink
feat(sources): add new source properties and sorting options (#812)
Browse files Browse the repository at this point in the history
CTCORE-9943 [PlatformClient] Update list filter interfaces and SourceModel
  • Loading branch information
ClaudineL authored Apr 10, 2024
1 parent 45406ae commit b328a6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ export enum SortingType {
NAME = 'NAME',
STATUS = 'STATUS',
CONTENT = 'CONTENT',
LAST_MODIFIED_DATE = 'LAST_MODIFIED_DATE',
LAST_OPERATION = 'LAST_OPERATION',
CONTENT_TOTAL_DOCUMENT_SIZE = 'CONTENT_TOTAL_DOCUMENT_SIZE',
}

export enum SnapshotSortingType {
Expand Down
4 changes: 4 additions & 0 deletions src/resources/Sources/SourcesInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export interface RawSourceConfig extends GranularResource {
crawlingModuleId?: string;
fromRaw?: boolean;
id?: string;
lastModifiedDate?: number;
lastModifier?: string;
logicalIndex?: string;
mappings?: MappingModel[];
name?: string;
Expand All @@ -87,6 +89,8 @@ export interface SourceModel extends GranularResource {
formAuthenticationConfig?: SourcesSubInterface.FormAuthenticationConfig;
id?: string;
information?: SourcesSubInterface.SourceInformation;
lastModifiedDate?: number;
lastModifier?: string;
logicalIndex?: string;
mappings?: MappingModel[];
name?: string;
Expand Down
1 change: 1 addition & 0 deletions src/resources/Sources/SourcesSubInterfaces/Information.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface SourceLastOperation {
operationType: OperationType;
result?: string;
timestamp?: number;
startedDate?: number;
}

export interface NextOperation {
Expand Down

0 comments on commit b328a6b

Please sign in to comment.