Skip to content

Commit

Permalink
Bump version & add ExcludedRoles Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ssarwar-topleft committed Oct 7, 2024
1 parent 7d12716 commit c2649c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions djautotask/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ class ContractsExcludedWorkTypesAPIClient(AutotaskAPIClient):
API = 'ContractExclusionSetExcludedWorkTypes'


class ContractsExcludedRolesAPIClient(AutotaskAPIClient):
API = 'ContractExclusionSetExcludedRoles'


class AccountPhysicalLocationsAPIClient(AutotaskAPIClient):
API = 'CompanyLocations'

Expand Down
13 changes: 13 additions & 0 deletions djautotask/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,19 @@ def __init__(self, contract_exclusion_set_id=None, *args, **kwargs):
)


class ContractExcludedRolesSynchronizer(Synchronizer):
client_class = api.ContractsExcludedRolesAPIClient

def __init__(self, contract_exclusion_set_id=None, *args, **kwargs):
super().__init__(*args, **kwargs)
self.contract_exclusion_set_id = contract_exclusion_set_id

if contract_exclusion_set_id:
self.client.add_condition(
A(op='eq', field="contractExclusionSetID", value=self.contract_exclusion_set_id)
)


class NoteTypeSynchronizer(PicklistSynchronizer):
# Ticket note types are including task note types, and there are other
# note types currently not used. e.g. project note types
Expand Down

0 comments on commit c2649c6

Please sign in to comment.