Skip to content
Open
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
  •  
  •  
  •  
32,829 changes: 32,829 additions & 0 deletions .mock/accounting_v3.yml

Large diffs are not rendered by default.

10,845 changes: 10,845 additions & 0 deletions .mock/ats_v3.yml

Large diffs are not rendered by default.

12,652 changes: 12,652 additions & 0 deletions .mock/crm_v3.yml

Large diffs are not rendered by default.

1,056 changes: 839 additions & 217 deletions .mock/definition/ats/__package__.yml → .mock/definition/ATS/__package__.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
imports:
root: __package__.yml
atsRoot: __package__.yml
service:
auth: false
base-path: ''
endpoints:
retrieve:
path: /ats/v1/account-details
method: GET
auth: true
auth:
- tokenAuth: []
docs: Get details for a linked account.
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
response:
docs: ''
type: root.AccountDetails
type: atsRoot.AccountDetails
status-code: 200
examples:
- headers: {}
- headers:
X-Account-Token: X-Account-Token
response:
body:
id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd
Expand All @@ -33,4 +35,4 @@ service:
account_type: PRODUCTION
completed_at: '2024-08-26T20:11:19Z'
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
imports:
root: __package__.yml
atsRoot: __package__.yml
service:
auth: false
base-path: ''
endpoints:
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.
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
path-parameters:
public_token: string
response:
docs: ''
type: root.AccountToken
type: atsRoot.AccountToken
status-code: 200
examples:
- path-parameters:
public_token: public_token
headers:
X-Account-Token: '[object Object]'
response:
body:
account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB
Expand All @@ -41,4 +44,4 @@ service:
key: value
id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,49 @@ types:
name: ActivityTypeVisibility
- visibility
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
ActivitiesListRequestShowEnumOrigins:
enum:
- activity_type
- value: activity_type,visibility
name: ActivityTypeVisibility
- visibility
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
ActivitiesRetrieveRequestRemoteFields:
enum:
- activity_type
- value: activity_type,visibility
name: ActivityTypeVisibility
- visibility
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
ActivitiesRetrieveRequestShowEnumOrigins:
enum:
- activity_type
- value: activity_type,visibility
name: ActivityTypeVisibility
- visibility
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
imports:
root: __package__.yml
atsRoot: __package__.yml
service:
auth: false
base-path: ''
endpoints:
list:
path: /ats/v1/activities
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns a list of `Activity` objects.
pagination:
cursor: $request.cursor
next_cursor: $response.next
results: $response.results
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
request:
name: ActivitiesListRequest
query-parameters:
Expand All @@ -60,6 +65,7 @@ service:
docs: The pagination cursor value.
expand:
type: optional<literal<"user">>
allow-multiple: true
docs: >-
Which relations should be returned in expanded form. Multiple
relation names should be comma separated without spaces.
Expand Down Expand Up @@ -112,10 +118,25 @@ service:
docs: If provided, will only return activities done by this user.
response:
docs: ''
type: root.PaginatedActivityList
type: atsRoot.PaginatedActivityList
status-code: 200
examples:
- headers: {}
- 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:
body:
next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw
Expand Down Expand Up @@ -145,10 +166,11 @@ service:
create:
path: /ats/v1/activities
method: POST
auth: true
auth:
- tokenAuth: []
docs: Creates an `Activity` object with the given values.
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
request:
name: ActivityEndpointRequest
query-parameters:
Expand All @@ -162,15 +184,19 @@ service:
docs: Whether or not third-party updates should be run asynchronously.
body:
properties:
model: root.ActivityRequest
model: atsRoot.ActivityRequest
remote_user_id: string
content-type: application/json
response:
docs: ''
type: root.ActivityResponse
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: {}
remote_user_id: remote_user_id
Expand Down Expand Up @@ -221,17 +247,19 @@ service:
retrieve:
path: /ats/v1/activities/{id}
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns an `Activity` object with the given `id`.
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
path-parameters:
id: string
request:
name: ActivitiesRetrieveRequest
query-parameters:
expand:
type: optional<literal<"user">>
allow-multiple: true
docs: >-
Which relations should be returned in expanded form. Multiple
relation names should be comma separated without spaces.
Expand All @@ -257,12 +285,18 @@ service:
more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
response:
docs: ''
type: root.Activity
type: atsRoot.Activity
status-code: 200
examples:
- path-parameters:
id: id
headers: {}
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:
body:
id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4
Expand All @@ -289,16 +323,18 @@ service:
metaPostRetrieve:
path: /ats/v1/activities/meta/post
method: GET
auth: true
auth:
- tokenAuth: []
docs: Returns metadata for `Activity` POSTs.
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
response:
docs: ''
type: root.MetaResponse
type: atsRoot.MetaResponse
status-code: 200
examples:
- headers: {}
- headers:
X-Account-Token: X-Account-Token
response:
body:
request_schema:
Expand Down Expand Up @@ -471,4 +507,4 @@ service:
has_conditional_params: true
has_required_linked_account_params: true
source:
openapi: openapi/openapi.yml
openapi: ats_v3.yml
Loading
Loading