Skip to content

Commit

Permalink
chore: update ariadne-codegen to latest (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulalgorithm authored Sep 19, 2024
1 parent 85c0af7 commit 82102b0
Show file tree
Hide file tree
Showing 8 changed files with 3,080 additions and 3,426 deletions.
7 changes: 4 additions & 3 deletions aesop/commands/info/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
@exception_handler(command="info", exception_type=Exception)
def info(config: AesopConfig) -> None:
setup_info_query = Query.setup_info().fields(
SetupInfoFields.oidc().fields(OIDCFields.sign_in_redirect_url),
SetupInfoFields.oidc().fields(OIDCFields.signInRedirectUrl),
SetupInfoFields.saml().fields(
SAMLFields.entity_id, SAMLFields.reply_acs_url, SAMLFields.sign_on_url
SAMLFields.entityId, SAMLFields.replyACSUrl, SAMLFields.signOnUrl
),
SetupInfoFields.crawlerIpAddresses,
)
res = config.get_graphql_client().query(
setup_info_query, Query.crawler_ip_addresses(), operation_name="getInfo"
setup_info_query, operation_name="getInfo"
)
print(res)
4 changes: 1 addition & 3 deletions aesop/graphql/generated/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def query(self, *fields: GraphQLField, operation_name: str) -> Dict[str, Any]:
*fields, operation_type=OperationType.QUERY, operation_name=operation_name
)

def mutation(
self, *fields: GraphQLField, operation_name: str
) -> Dict[str, Any]:
def mutation(self, *fields: GraphQLField, operation_name: str) -> Dict[str, Any]:
return self.execute_custom_operation(
*fields,
operation_type=OperationType.MUTATION,
Expand Down
5,060 changes: 2,509 additions & 2,551 deletions aesop/graphql/generated/custom_fields.py

Large diffs are not rendered by default.

22 changes: 10 additions & 12 deletions aesop/graphql/generated/custom_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ def follow(cls, input: FollowAssetInput) -> FollowOrUnfollowOutputFields:
)

@classmethod
def install_teams(cls, teams_tenant_id: str) -> GraphQLField:
def install_teams(cls, teamsTenantId: str) -> GraphQLField:
arguments: Dict[str, Dict[str, Any]] = {
"teamsTenantId": {"type": "String!", "value": teams_tenant_id}
"teamsTenantId": {"type": "String!", "value": teamsTenantId}
}
cleared_arguments = {
key: value for key, value in arguments.items() if value["value"] is not None
Expand All @@ -316,10 +316,10 @@ def install_teams(cls, teams_tenant_id: str) -> GraphQLField:

@classmethod
def invite_people(
cls, invitees: InvitedPersonInput, *, invitation_message: Optional[str] = None
cls, invitees: InvitedPersonInput, *, invitationMessage: Optional[str] = None
) -> PersonFields:
arguments: Dict[str, Dict[str, Any]] = {
"invitationMessage": {"type": "String", "value": invitation_message},
"invitationMessage": {"type": "String", "value": invitationMessage},
"invitees": {"type": "InvitedPersonInput!", "value": invitees},
}
cleared_arguments = {
Expand Down Expand Up @@ -378,9 +378,9 @@ def record_last_active(cls, input: LastActiveInput) -> PersonFields:
return PersonFields(field_name="recordLastActive", arguments=cleared_arguments)

@classmethod
def run_crawler(cls, crawler_id: str) -> RunCrawlerResponseFields:
def run_crawler(cls, crawlerId: str) -> RunCrawlerResponseFields:
arguments: Dict[str, Dict[str, Any]] = {
"crawlerId": {"type": "String!", "value": crawler_id}
"crawlerId": {"type": "String!", "value": crawlerId}
}
cleared_arguments = {
key: value for key, value in arguments.items() if value["value"] is not None
Expand All @@ -404,9 +404,9 @@ def toggle_mute_notification(
)

@classmethod
def uninstall_teams(cls, teams_tenant_id: str) -> GraphQLField:
def uninstall_teams(cls, teamsTenantId: str) -> GraphQLField:
arguments: Dict[str, Dict[str, Any]] = {
"teamsTenantId": {"type": "String!", "value": teams_tenant_id}
"teamsTenantId": {"type": "String!", "value": teamsTenantId}
}
cleared_arguments = {
key: value for key, value in arguments.items() if value["value"] is not None
Expand Down Expand Up @@ -459,11 +459,9 @@ def update_common_column_attributes(
)

@classmethod
def update_crawler(
cls, crawler_id: str, input: UpdateCrawlerInput
) -> CrawlerFields:
def update_crawler(cls, crawlerId: str, input: UpdateCrawlerInput) -> CrawlerFields:
arguments: Dict[str, Dict[str, Any]] = {
"crawlerId": {"type": "ID!", "value": crawler_id},
"crawlerId": {"type": "ID!", "value": crawlerId},
"input": {"type": "UpdateCrawlerInput!", "value": input},
}
cleared_arguments = {
Expand Down
Loading

0 comments on commit 82102b0

Please sign in to comment.