Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ src/main/java/com/merge/legacy
# added to QueryStringMapper.java. Once that is fixed, we can remove this file from
# .fernignore.
src/main/java/com/merge/api/core/QueryStringMapper.java

src/test/java/com/merge/api/integration/CursorPaginationIntegrationTest.java
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:

- name: Test
run: ./gradlew test
env:
MERGE_API_KEY_FILESTORAGE: ${{ secrets.MERGE_API_KEY_FILESTORAGE }}
MERGE_ACCOUNT_TOKEN_FILESTORAGE: ${{ secrets.MERGE_ACCOUNT_TOKEN_FILESTORAGE }}

publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/ATS/accountDetails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /ats/v1/account-details
method: GET
auth: true
auth:
- tokenAuth: []
docs: Get details for a linked account.
source:
openapi: ats_v3.yml
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/ATS/accountToken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /ats/v1/account-token/{public_token}
method: GET
auth: true
auth:
- tokenAuth: []
docs: >-
Returns the account token for the end user with the provided public
token.
Expand Down
34 changes: 29 additions & 5 deletions .mock/definition/ATS/activities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ service:
list:
path: /ats/v1/activities
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `Activity` objects.
pagination:
cursor: $request.cursor
Expand Down Expand Up @@ -121,7 +122,19 @@ service:
status-code: 200
examples:
- query-parameters:
created_after: '2024-01-15T09:30:00Z'
created_before: '2024-01-15T09:30:00Z'
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
include_deleted_data: true
include_remote_data: true
include_shell_data: true
modified_after: '2024-01-15T09:30:00Z'
modified_before: '2024-01-15T09:30:00Z'
page_size: 1
remote_fields: activity_type
remote_id: remote_id
show_enum_origins: activity_type
user_id: user_id
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -153,7 +166,8 @@ service:
create:
path: /ats/v1/activities
method: POST
auth: true
auth:
- tokenAuth: []
docs: Creates an `Activity` object with the given values.
source:
openapi: ats_v3.yml
Expand All @@ -178,7 +192,10 @@ service:
type: atsRoot.ActivityResponse
status-code: 201
examples:
- headers:
- query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request:
model: {}
Expand Down Expand Up @@ -230,7 +247,8 @@ service:
retrieve:
path: /ats/v1/activities/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Activity` object with the given `id`.
source:
openapi: ats_v3.yml
Expand Down Expand Up @@ -272,6 +290,11 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
remote_fields: activity_type
show_enum_origins: activity_type
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -300,7 +323,8 @@ service:
metaPostRetrieve:
path: /ats/v1/activities/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `Activity` POSTs.
source:
openapi: ats_v3.yml
Expand Down
45 changes: 38 additions & 7 deletions .mock/definition/ATS/applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ service:
list:
path: /ats/v1/applications
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `Application` objects.
pagination:
cursor: $request.cursor
Expand Down Expand Up @@ -124,7 +125,22 @@ service:
status-code: 200
examples:
- query-parameters:
candidate_id: candidate_id
created_after: '2024-01-15T09:30:00Z'
created_before: '2024-01-15T09:30:00Z'
credited_to_id: credited_to_id
current_stage_id: current_stage_id
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
include_deleted_data: true
include_remote_data: true
include_shell_data: true
job_id: job_id
modified_after: '2024-01-15T09:30:00Z'
modified_before: '2024-01-15T09:30:00Z'
page_size: 1
reject_reason_id: reject_reason_id
remote_id: remote_id
source: source
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -162,7 +178,8 @@ service:
create:
path: /ats/v1/applications
method: POST
auth: true
auth:
- tokenAuth: []
docs: >
Creates an `Application` object with the given values.

Expand Down Expand Up @@ -198,7 +215,10 @@ service:
type: atsRoot.ApplicationResponse
status-code: 201
examples:
- headers:
- query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request:
model: {}
Expand Down Expand Up @@ -256,7 +276,8 @@ service:
retrieve:
path: /ats/v1/applications/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Application` object with the given `id`.
source:
openapi: ats_v3.yml
Expand Down Expand Up @@ -288,6 +309,9 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -322,7 +346,8 @@ service:
changeStageCreate:
path: /ats/v1/applications/{id}/change-stage
method: POST
auth: true
auth:
- tokenAuth: []
docs: Updates the `current_stage` field of an `Application` object
source:
openapi: ats_v3.yml
Expand Down Expand Up @@ -358,6 +383,9 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request: {}
Expand Down Expand Up @@ -414,7 +442,8 @@ service:
metaPostRetrieve:
path: /ats/v1/applications/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `Application` POSTs.
source:
openapi: ats_v3.yml
Expand All @@ -431,7 +460,9 @@ service:
type: atsRoot.MetaResponse
status-code: 200
examples:
- headers:
- query-parameters:
application_remote_template_id: application_remote_template_id
headers:
X-Account-Token: X-Account-Token
response:
body:
Expand Down
6 changes: 4 additions & 2 deletions .mock/definition/ATS/asyncPassthrough.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
create:
path: /ats/v1/async-passthrough
method: POST
auth: true
auth:
- tokenAuth: []
docs: >-
Asynchronously pull data from an endpoint not currently supported by
Merge.
Expand All @@ -32,7 +33,8 @@ service:
retrieve:
path: /ats/v1/async-passthrough/{async_passthrough_receipt_id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Retrieves data from earlier async-passthrough POST request
source:
openapi: ats_v3.yml
Expand Down
34 changes: 29 additions & 5 deletions .mock/definition/ATS/attachments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
list:
path: /ats/v1/attachments
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `Attachment` objects.
pagination:
cursor: $request.cursor
Expand Down Expand Up @@ -88,7 +89,19 @@ service:
status-code: 200
examples:
- query-parameters:
candidate_id: candidate_id
created_after: '2024-01-15T09:30:00Z'
created_before: '2024-01-15T09:30:00Z'
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
include_deleted_data: true
include_remote_data: true
include_shell_data: true
modified_after: '2024-01-15T09:30:00Z'
modified_before: '2024-01-15T09:30:00Z'
page_size: 1
remote_fields: attachment_type
remote_id: remote_id
show_enum_origins: attachment_type
headers:
X-Account-Token: X-Account-Token
response:
Expand Down Expand Up @@ -117,7 +130,8 @@ service:
create:
path: /ats/v1/attachments
method: POST
auth: true
auth:
- tokenAuth: []
docs: Creates an `Attachment` object with the given values.
source:
openapi: ats_v3.yml
Expand All @@ -142,7 +156,10 @@ service:
type: atsRoot.AttachmentResponse
status-code: 201
examples:
- headers:
- query-parameters:
is_debug_mode: true
run_async: true
headers:
X-Account-Token: X-Account-Token
request:
model: {}
Expand Down Expand Up @@ -191,7 +208,8 @@ service:
retrieve:
path: /ats/v1/attachments/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Attachment` object with the given `id`.
source:
openapi: ats_v3.yml
Expand Down Expand Up @@ -233,6 +251,11 @@ service:
examples:
- path-parameters:
id: id
query-parameters:
include_remote_data: true
include_shell_data: true
remote_fields: attachment_type
show_enum_origins: attachment_type
headers:
X-Account-Token: X-Account-Token
response:
Expand All @@ -258,7 +281,8 @@ service:
metaPostRetrieve:
path: /ats/v1/attachments/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `Attachment` POSTs.
source:
openapi: ats_v3.yml
Expand Down
8 changes: 7 additions & 1 deletion .mock/definition/ATS/auditTrail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
list:
path: /ats/v1/audit-trail
method: GET
auth: true
auth:
- tokenAuth: []
docs: Gets a list of audit trail events.
pagination:
cursor: $request.cursor
Expand Down Expand Up @@ -81,6 +82,11 @@ service:
examples:
- query-parameters:
cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
end_date: end_date
event_type: event_type
page_size: 1
start_date: start_date
user_email: user_email
headers:
X-Account-Token: '[object Object]'
response:
Expand Down
3 changes: 2 additions & 1 deletion .mock/definition/ATS/availableActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ service:
retrieve:
path: /ats/v1/available-actions
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of models and actions available for an account.
source:
openapi: ats_v3.yml
Expand Down
Loading