Skip to content

Commit

Permalink
#autocommit #release - 3.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cfculhane committed Mar 27, 2024
1 parent d5e5cb1 commit 0f1ce8d
Show file tree
Hide file tree
Showing 46 changed files with 2,388 additions and 130 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.15.0] - 2024-03-27
### Added
- Add validation_results endpoints
- Add US1 region
- Add strict attribute to RegionBias
- Add hideReject, hideEditPages, hideRunOcr and hideReparse options to Organization validationToolConfig
- `compact` parameter for upload document endpoint
- Add AnnotationBatchUpdate endpoint

## [3.14.0] - 2024-01-31
### Added
- Add sourceEmailAddress to DocumentMeta model
Expand Down
2 changes: 1 addition & 1 deletion affinda-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.affinda.api</groupId>
<artifactId>affinda-api-client</artifactId>
<version>3.14.0</version>
<version>3.15.0</version>
<packaging>jar</packaging>
<name>Java Client Library for Affinda Resume Parser API</name>
<description>This package contains Java Client Library for the Affinda Resume Parser API. For documentation on how
Expand Down
429 changes: 395 additions & 34 deletions affinda-api-client/src/main/java/com/affinda/api/client/AffindaAPI.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,73 @@

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The AnnotationBatchUpdate model. */
@Fluent
public final class AnnotationBatchUpdate extends AnnotationUpdate {
public final class AnnotationBatchUpdate {
/*
* Annotation's ID
*/
@JsonProperty(value = "id", required = true)
private int id;

/*
* x/y coordinates for the rectangles containing the data. An annotation
* can be contained within multiple rectangles.
*/
@JsonProperty(value = "rectangles")
private List<Rectangle> rectangles;

/*
* Unique identifier for the document
*/
@JsonProperty(value = "document")
private String document;

/*
* The page number within the document, starting from 0.
*/
@JsonProperty(value = "pageIndex")
private Integer pageIndex;

/*
* Raw data extracted from the before any post-processing
*/
@JsonProperty(value = "raw")
private String raw;

/*
* Anything
*/
@JsonProperty(value = "parsed")
private Object parsed;

/*
* Indicates whether the data has been validated by a human
*/
@JsonProperty(value = "isClientVerified")
private Boolean isClientVerified;

/*
* Data point's identifier
*/
@JsonProperty(value = "dataPoint")
private String dataPoint;

/*
* The parent annotation's ID
*/
@JsonProperty(value = "parent")
private Integer parent;

/*
* The validation results created, changed or deleted as a result of
* updating the annotation.
*/
@JsonProperty(value = "validationResults")
private List<ChangedValidationResults> validationResults;

/**
* Get the id property: Annotation's ID.
*
Expand All @@ -31,4 +88,188 @@ public AnnotationBatchUpdate setId(int id) {
this.id = id;
return this;
}

/**
* Get the rectangles property: x/y coordinates for the rectangles containing the data. An annotation can be
* contained within multiple rectangles.
*
* @return the rectangles value.
*/
public List<Rectangle> getRectangles() {
return this.rectangles;
}

/**
* Set the rectangles property: x/y coordinates for the rectangles containing the data. An annotation can be
* contained within multiple rectangles.
*
* @param rectangles the rectangles value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setRectangles(List<Rectangle> rectangles) {
this.rectangles = rectangles;
return this;
}

/**
* Get the document property: Unique identifier for the document.
*
* @return the document value.
*/
public String getDocument() {
return this.document;
}

/**
* Set the document property: Unique identifier for the document.
*
* @param document the document value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setDocument(String document) {
this.document = document;
return this;
}

/**
* Get the pageIndex property: The page number within the document, starting from 0.
*
* @return the pageIndex value.
*/
public Integer getPageIndex() {
return this.pageIndex;
}

/**
* Set the pageIndex property: The page number within the document, starting from 0.
*
* @param pageIndex the pageIndex value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setPageIndex(Integer pageIndex) {
this.pageIndex = pageIndex;
return this;
}

/**
* Get the raw property: Raw data extracted from the before any post-processing.
*
* @return the raw value.
*/
public String getRaw() {
return this.raw;
}

/**
* Set the raw property: Raw data extracted from the before any post-processing.
*
* @param raw the raw value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setRaw(String raw) {
this.raw = raw;
return this;
}

/**
* Get the parsed property: Anything.
*
* @return the parsed value.
*/
public Object getParsed() {
return this.parsed;
}

/**
* Set the parsed property: Anything.
*
* @param parsed the parsed value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setParsed(Object parsed) {
this.parsed = parsed;
return this;
}

/**
* Get the isClientVerified property: Indicates whether the data has been validated by a human.
*
* @return the isClientVerified value.
*/
public Boolean isClientVerified() {
return this.isClientVerified;
}

/**
* Set the isClientVerified property: Indicates whether the data has been validated by a human.
*
* @param isClientVerified the isClientVerified value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setIsClientVerified(Boolean isClientVerified) {
this.isClientVerified = isClientVerified;
return this;
}

/**
* Get the dataPoint property: Data point's identifier.
*
* @return the dataPoint value.
*/
public String getDataPoint() {
return this.dataPoint;
}

/**
* Set the dataPoint property: Data point's identifier.
*
* @param dataPoint the dataPoint value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setDataPoint(String dataPoint) {
this.dataPoint = dataPoint;
return this;
}

/**
* Get the parent property: The parent annotation's ID.
*
* @return the parent value.
*/
public Integer getParent() {
return this.parent;
}

/**
* Set the parent property: The parent annotation's ID.
*
* @param parent the parent value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setParent(Integer parent) {
this.parent = parent;
return this;
}

/**
* Get the validationResults property: The validation results created, changed or deleted as a result of updating
* the annotation.
*
* @return the validationResults value.
*/
public List<ChangedValidationResults> getValidationResults() {
return this.validationResults;
}

/**
* Set the validationResults property: The validation results created, changed or deleted as a result of updating
* the annotation.
*
* @param validationResults the validationResults value to set.
* @return the AnnotationBatchUpdate object itself.
*/
public AnnotationBatchUpdate setValidationResults(List<ChangedValidationResults> validationResults) {
this.validationResults = validationResults;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ public final class AnnotationCreate {
@JsonProperty(value = "parent")
private Integer parent;

/*
* The validation results created, changed or deleted as a result of
* creating the annotation.
*/
@JsonProperty(value = "validationResults")
private List<ChangedValidationResults> validationResults;

/**
* Get the rectangles property: x/y coordinates for the rectangles containing the data. An annotation can be
* contained within multiple rectangles.
Expand Down Expand Up @@ -217,4 +224,26 @@ public AnnotationCreate setParent(Integer parent) {
this.parent = parent;
return this;
}

/**
* Get the validationResults property: The validation results created, changed or deleted as a result of creating
* the annotation.
*
* @return the validationResults value.
*/
public List<ChangedValidationResults> getValidationResults() {
return this.validationResults;
}

/**
* Set the validationResults property: The validation results created, changed or deleted as a result of creating
* the annotation.
*
* @param validationResults the validationResults value to set.
* @return the AnnotationCreate object itself.
*/
public AnnotationCreate setValidationResults(List<ChangedValidationResults> validationResults) {
this.validationResults = validationResults;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/** The AnnotationUpdate model. */
@Fluent
public class AnnotationUpdate {
public final class AnnotationUpdate {
/*
* x/y coordinates for the rectangles containing the data. An annotation
* can be contained within multiple rectangles.
Expand Down Expand Up @@ -56,6 +56,13 @@ public class AnnotationUpdate {
@JsonProperty(value = "parent")
private Integer parent;

/*
* The validation results created, changed or deleted as a result of
* updating the annotation.
*/
@JsonProperty(value = "validationResults")
private List<ChangedValidationResults> validationResults;

/**
* Get the rectangles property: x/y coordinates for the rectangles containing the data. An annotation can be
* contained within multiple rectangles.
Expand Down Expand Up @@ -217,4 +224,26 @@ public AnnotationUpdate setParent(Integer parent) {
this.parent = parent;
return this;
}

/**
* Get the validationResults property: The validation results created, changed or deleted as a result of updating
* the annotation.
*
* @return the validationResults value.
*/
public List<ChangedValidationResults> getValidationResults() {
return this.validationResults;
}

/**
* Set the validationResults property: The validation results created, changed or deleted as a result of updating
* the annotation.
*
* @param validationResults the validationResults value to set.
* @return the AnnotationUpdate object itself.
*/
public AnnotationUpdate setValidationResults(List<ChangedValidationResults> validationResults) {
this.validationResults = validationResults;
return this;
}
}
Loading

0 comments on commit 0f1ce8d

Please sign in to comment.