- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
feat: add getallrecords api #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 6 commits
      Commits
    
    
            Show all changes
          
          
            12 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      dfe1654
              
                ft: Add graphQL endpoint
              
              
                ramraut-osm 0a569c5
              
                Add API to fetch all jobs in db
              
              
                ramraut-osm b65ae3a
              
                Fixed file upload
              
              
                ramraut-osm e3b4796
              
                Merge remote-tracking branch 'origin/main' into REST-529
              
              
                ramraut-osm e46747f
              
                Removed un-used imports
              
              
                ramraut-osm b8b3471
              
                Add getAllRecords API
              
              
                ramraut-osm 9c413c5
              
                Removed un-used imports
              
              
                ramraut-osm 50d0b48
              
                Added suggested changes
              
              
                ramraut-osm ff8ada5
              
                feat: add in operator support
              
              
                 70db786
              
                Updated table name in entity
              
              
                ramraut-osm 18f1059
              
                Update apps/api/src/common/graphql/services/core.service.ts
              
              
                ramraut-osm f0cc275
              
                Added suggested changes
              
              
                ramraut-osm File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import { ObjectType, Field, Int } from '@nestjs/graphql'; | ||
| import { Summary } from '../entities/summary.entity'; | ||
| 
     | 
||
| @ObjectType() | ||
| export class SummaryResponse { | ||
| @Field(() => [Summary]) | ||
| summaries: Summary[]; | ||
| 
     | 
||
| @Field(() => Int) | ||
| total: number; | ||
| 
     | 
||
| @Field(() => Int) | ||
| offset: number; | ||
| 
     | 
||
| @Field(() => Int) | ||
| limit: number; | ||
| 
     | 
||
| constructor(items: Summary[], total: number, offset?: number, limit?: number) { | ||
| this.summaries = items; | ||
| this.total = total; | ||
| this.offset = offset ?? 0; | ||
| this.limit = limit ?? items.length; | ||
| } | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # ------------------------------------------------------ | ||
                
      
                  xixas marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) | ||
| # ------------------------------------------------------ | ||
| 
     | 
||
| input CreateSummaryDTO { | ||
| inputFile: Upload! | ||
| } | ||
| 
     | 
||
| """ | ||
| A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. | ||
| """ | ||
| scalar DateTime | ||
| 
     | 
||
| type Mutation { | ||
| createSummary(createSummaryInput: CreateSummaryDTO!): Summary! | ||
| } | ||
| 
     | 
||
| type Query { | ||
| summaries(options: QueryOptionsDto = {}): SummaryResponse! | ||
| } | ||
| 
     | 
||
| input QueryOptionsDto { | ||
| filters: [UniversalFilter!] | ||
| limit: Int = 10 | ||
| offset: Int = 0 | ||
| search: String | ||
| sortBy: String | ||
| sortOrder: SortOrder = ASC | ||
| } | ||
| 
     | 
||
| enum SortOrder { | ||
| ASC | ||
| DESC | ||
| } | ||
| 
     | 
||
| type Summary { | ||
| createdBy: String! | ||
| createdOn: DateTime! | ||
| id: Float! | ||
| inputFile: String! | ||
| jobStatus: Float! | ||
| modifiedBy: String! | ||
| modifiedOn: DateTime | ||
| outputText: String | ||
| status: Float! | ||
| } | ||
| 
     | 
||
| type SummaryResponse { | ||
| limit: Int! | ||
| offset: Int! | ||
| summaries: [Summary!]! | ||
| total: Int! | ||
| } | ||
| 
     | 
||
| input UniversalFilter { | ||
| field: String! | ||
| operator: String! | ||
| value: String! | ||
| } | ||
| 
     | 
||
| """The `Upload` scalar type represents a file upload.""" | ||
| scalar Upload | ||
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.