Skip to content

Commit 72295d7

Browse files
SDK regeneration
1 parent a6e1c6a commit 72295d7

48 files changed

Lines changed: 6227 additions & 4680 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.mock/definition/ticketing/__package__.yml

Lines changed: 212 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,19 @@ types:
256256
id: string
257257
source:
258258
openapi: openapi/openapi.yml
259+
ActionsEnum:
260+
enum:
261+
- VIEW
262+
- CREATE
263+
- EDIT
264+
- DELETE
265+
docs: |-
266+
* `VIEW` - VIEW
267+
* `CREATE` - CREATE
268+
* `EDIT` - EDIT
269+
* `DELETE` - DELETE
270+
source:
271+
openapi: openapi/openapi.yml
259272
AdvancedMetadata:
260273
properties:
261274
id:
@@ -791,6 +804,16 @@ types:
791804
source:
792805
openapi: openapi/openapi.yml
793806
inline: true
807+
CollectionPermissionsItem:
808+
discriminated: false
809+
union:
810+
- type: string
811+
validation:
812+
format: uuid
813+
- Permission
814+
source:
815+
openapi: openapi/openapi.yml
816+
inline: true
794817
Collection:
795818
docs: >-
796819
# The Collection Object
@@ -847,6 +870,9 @@ types:
847870
parent_collection:
848871
type: optional<CollectionParentCollection>
849872
docs: The parent collection for this collection.
873+
permissions:
874+
type: optional<list<CollectionPermissionsItem>>
875+
access: read-only
850876
collection_url:
851877
type: optional<string>
852878
docs: The 3rd party url of the Collection.
@@ -1302,6 +1328,17 @@ types:
13021328
status_code: integer
13031329
source:
13041330
openapi: openapi/openapi.yml
1331+
EffectEnum:
1332+
enum:
1333+
- ALLOWED
1334+
- DENIED
1335+
- INHERITED
1336+
docs: |-
1337+
* `ALLOWED` - ALLOWED
1338+
* `DENIED` - DENIED
1339+
* `INHERITED` - INHERITED
1340+
source:
1341+
openapi: openapi/openapi.yml
13051342
EnabledActionsEnum:
13061343
enum:
13071344
- READ
@@ -2168,6 +2205,139 @@ types:
21682205
access: write-only
21692206
source:
21702207
openapi: openapi/openapi.yml
2208+
PermissionEffect:
2209+
discriminated: false
2210+
docs: |-
2211+
Outcome of this permission rule for matching users.
2212+
2213+
* `ALLOWED` - ALLOWED
2214+
* `DENIED` - DENIED
2215+
* `INHERITED` - INHERITED
2216+
union:
2217+
- EffectEnum
2218+
- string
2219+
source:
2220+
openapi: openapi/openapi.yml
2221+
inline: true
2222+
Permission:
2223+
docs: >-
2224+
# The Permission Object
2225+
2226+
### Description
2227+
2228+
The `Permission` object is used to represent permissions that can be
2229+
applied to users, roles, teams, collections, and tickets.
2230+
2231+
2232+
### Usage Example
2233+
2234+
TODO
2235+
properties:
2236+
id:
2237+
type: optional<string>
2238+
validation:
2239+
format: uuid
2240+
access: read-only
2241+
remote_id:
2242+
type: optional<string>
2243+
docs: The third-party API ID of the matching object.
2244+
created_at:
2245+
type: optional<datetime>
2246+
docs: The datetime that this object was created by Merge.
2247+
access: read-only
2248+
modified_at:
2249+
type: optional<datetime>
2250+
docs: The datetime that this object was modified by Merge.
2251+
access: read-only
2252+
effect:
2253+
type: optional<PermissionEffect>
2254+
docs: |-
2255+
Outcome of this permission rule for matching users.
2256+
2257+
* `ALLOWED` - ALLOWED
2258+
* `DENIED` - DENIED
2259+
* `INHERITED` - INHERITED
2260+
actions:
2261+
type: optional<list<optional<ActionsEnum>>>
2262+
docs: >-
2263+
Operations that this permission applies to. If the entity inherits
2264+
permission from a parent entity, then this should be an empty array.
2265+
In that case, the entity would inherit the parent entity’s actions.
2266+
applied_to_users: optional<list<optional<string>>>
2267+
applied_to_roles: optional<list<optional<string>>>
2268+
applied_to_teams: optional<list<optional<string>>>
2269+
applied_to_collections: optional<list<optional<string>>>
2270+
remote_was_deleted:
2271+
type: optional<boolean>
2272+
docs: >-
2273+
Indicates whether or not this object has been deleted in the third
2274+
party platform. Full coverage deletion detection is a premium add-on.
2275+
Native deletion detection is offered for free with limited coverage.
2276+
[Learn
2277+
more](https://docs.merge.dev/integrations/hris/supported-features/).
2278+
access: read-only
2279+
field_mappings:
2280+
type: optional<map<string, unknown>>
2281+
access: read-only
2282+
source:
2283+
openapi: openapi/openapi.yml
2284+
PermissionRequestEffect:
2285+
discriminated: false
2286+
docs: |-
2287+
Outcome of this permission rule for matching users.
2288+
2289+
* `ALLOWED` - ALLOWED
2290+
* `DENIED` - DENIED
2291+
* `INHERITED` - INHERITED
2292+
union:
2293+
- EffectEnum
2294+
- string
2295+
source:
2296+
openapi: openapi/openapi.yml
2297+
inline: true
2298+
PermissionRequest:
2299+
docs: >-
2300+
# The Permission Object
2301+
2302+
### Description
2303+
2304+
The `Permission` object is used to represent permissions that can be
2305+
applied to users, roles, teams, collections, and tickets.
2306+
2307+
2308+
### Usage Example
2309+
2310+
TODO
2311+
properties:
2312+
remote_id:
2313+
type: optional<string>
2314+
docs: The third-party API ID of the matching object.
2315+
effect:
2316+
type: optional<PermissionRequestEffect>
2317+
docs: |-
2318+
Outcome of this permission rule for matching users.
2319+
2320+
* `ALLOWED` - ALLOWED
2321+
* `DENIED` - DENIED
2322+
* `INHERITED` - INHERITED
2323+
actions:
2324+
type: optional<list<optional<ActionsEnum>>>
2325+
docs: >-
2326+
Operations that this permission applies to. If the entity inherits
2327+
permission from a parent entity, then this should be an empty array.
2328+
In that case, the entity would inherit the parent entity’s actions.
2329+
applied_to_users: optional<list<optional<string>>>
2330+
applied_to_roles: optional<list<optional<string>>>
2331+
applied_to_teams: optional<list<optional<string>>>
2332+
applied_to_collections: optional<list<optional<string>>>
2333+
integration_params:
2334+
type: optional<map<string, unknown>>
2335+
access: write-only
2336+
linked_account_params:
2337+
type: optional<map<string, unknown>>
2338+
access: write-only
2339+
source:
2340+
openapi: openapi/openapi.yml
21712341
PriorityEnum:
21722342
enum:
21732343
- URGENT
@@ -2233,6 +2403,24 @@ types:
22332403
access: read-only
22342404
source:
22352405
openapi: openapi/openapi.yml
2406+
RegenerateAccountToken:
2407+
docs: >-
2408+
# The RegenerateAccountToken Object
2409+
2410+
### Description
2411+
2412+
The `RegenerateAccountToken` object is used to exchange an old account
2413+
token for a new one.
2414+
2415+
2416+
### Usage Example
2417+
2418+
Post to receive a new `RegenerateAccountToken`.
2419+
properties:
2420+
linked_account_id: string
2421+
account_token: string
2422+
source:
2423+
openapi: openapi/openapi.yml
22362424
RemoteData:
22372425
docs: >-
22382426
# The RemoteData Object
@@ -2524,13 +2712,15 @@ types:
25242712
- API
25252713
- SYSTEM
25262714
- MERGE_TEAM
2715+
- SUPPORT
25272716
docs: |-
25282717
* `ADMIN` - ADMIN
25292718
* `DEVELOPER` - DEVELOPER
25302719
* `MEMBER` - MEMBER
25312720
* `API` - API
25322721
* `SYSTEM` - SYSTEM
25332722
* `MERGE_TEAM` - MERGE_TEAM
2723+
* `SUPPORT` - SUPPORT
25342724
source:
25352725
openapi: openapi/openapi.yml
25362726
SelectiveSyncConfigurationsUsageEnum:
@@ -2567,6 +2757,14 @@ types:
25672757
source:
25682758
openapi: openapi/openapi.yml
25692759
inline: true
2760+
SyncStatusStatus:
2761+
discriminated: false
2762+
union:
2763+
- StatusFd5Enum
2764+
- string
2765+
source:
2766+
openapi: openapi/openapi.yml
2767+
inline: true
25702768
SyncStatus:
25712769
docs: >-
25722770
# The SyncStatus Object
@@ -2588,7 +2786,7 @@ types:
25882786
next_sync_start: optional<datetime>
25892787
last_sync_result: optional<SyncStatusLastSyncResult>
25902788
last_sync_finished: optional<datetime>
2591-
status: StatusFd5Enum
2789+
status: SyncStatusStatus
25922790
is_initial_sync: boolean
25932791
selective_sync_configurations_usage: optional<SelectiveSyncConfigurationsUsageEnum>
25942792
source:
@@ -2808,6 +3006,16 @@ types:
28083006
source:
28093007
openapi: openapi/openapi.yml
28103008
inline: true
3009+
TicketPermissionsItem:
3010+
discriminated: false
3011+
union:
3012+
- type: string
3013+
validation:
3014+
format: uuid
3015+
- Permission
3016+
source:
3017+
openapi: openapi/openapi.yml
3018+
inline: true
28113019
TicketPriority:
28123020
discriminated: false
28133021
docs: |-
@@ -2918,6 +3126,9 @@ types:
29183126
* `PRIVATE` - PRIVATE
29193127
29203128
* `COLLECTION` - COLLECTION
3129+
permissions:
3130+
type: optional<list<TicketPermissionsItem>>
3131+
access: read-only
29213132
tags: optional<list<optional<string>>>
29223133
roles: optional<list<optional<string>>>
29233134
remote_created_at:

.mock/definition/ticketing/accountToken.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,24 @@ service:
4343
category_beta_status:
4444
key: value
4545
id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd
46+
regenerateCreate:
47+
path: /ticketing/v1/account-token/regenerate
48+
method: POST
49+
auth:
50+
- tokenAuth: []
51+
docs: Exchange Linked Account account tokens.
52+
source:
53+
openapi: openapi/openapi.yml
54+
response:
55+
docs: ''
56+
type: root.RegenerateAccountToken
57+
status-code: 200
58+
examples:
59+
- headers:
60+
X-Account-Token: X-Account-Token
61+
response:
62+
body:
63+
linked_account_id: e59b1821-f85c-4e28-a6b3-1804156f3563
64+
account_token: hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA
4665
source:
4766
openapi: openapi/openapi.yml

.mock/definition/ticketing/accounts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ service:
5656
will be returned.
5757
page_size:
5858
type: optional<integer>
59-
docs: Number of results to return per page.
59+
docs: Number of results to return per page. The maximum limit is 100.
6060
remote_id:
6161
type: optional<string>
6262
docs: The API provider's ID for the given object.

.mock/definition/ticketing/collections.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ service:
141141
access_level: PRIVATE
142142
collection_type: LIST
143143
parent_collection: parent_collection
144+
permissions:
145+
- 17a54124-287f-494d-965e-3c5b330c9a68
144146
collection_url: https://example.com
145147
remote_created_at: '2022-01-01T00:00:00Z'
146148
remote_updated_at: '2022-01-01T00:00:00Z'
@@ -291,6 +293,8 @@ service:
291293
access_level: PRIVATE
292294
collection_type: LIST
293295
parent_collection: parent_collection
296+
permissions:
297+
- 17a54124-287f-494d-965e-3c5b330c9a68
294298
collection_url: https://example.com
295299
remote_created_at: '2022-01-01T00:00:00Z'
296300
remote_updated_at: '2022-01-01T00:00:00Z'

.mock/definition/ticketing/fieldMapping.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ service:
245245
mapping instance (i.e. `remote_fields.remote_key_name` and
246246
`remote_fields.schema` will be null). This will increase the speed
247247
of the request since these fields require some calculations.
248+
remote_data_iteration_count:
249+
type: optional<integer>
250+
docs: >-
251+
Number of common model instances to iterate through when fetching
252+
remote data for field mappings. Defaults to 250 if not provided.
248253
body:
249254
properties:
250255
target_field_name:
@@ -302,6 +307,7 @@ service:
302307
examples:
303308
- query-parameters:
304309
exclude_remote_field_metadata: true
310+
remote_data_iteration_count: 1
305311
headers:
306312
X-Account-Token: X-Account-Token
307313
request:
@@ -428,6 +434,12 @@ service:
428434
field_mapping_id: string
429435
request:
430436
name: PatchedEditFieldMappingRequest
437+
query-parameters:
438+
remote_data_iteration_count:
439+
type: optional<integer>
440+
docs: >-
441+
Number of common model instances to iterate through when fetching
442+
remote data for field mappings. Defaults to 250 if not provided.
431443
body:
432444
properties:
433445
remote_field_traversal_path:
@@ -464,6 +476,8 @@ service:
464476
examples:
465477
- path-parameters:
466478
field_mapping_id: field_mapping_id
479+
query-parameters:
480+
remote_data_iteration_count: 1
467481
headers:
468482
X-Account-Token: X-Account-Token
469483
request: {}

0 commit comments

Comments
 (0)