Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Juno SDK files #42

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Update Juno SDK files #42

merged 1 commit into from
Mar 4, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 3, 2025

Update Juno SDK files

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disclaimer: This comment was AI-generated and is not necessarily completely accurate. Please take code comments with a grain of salt.

PR Summary

This PR standardizes formatting across the Juno SDK codebase, focusing on consistent indentation, spacing, and quote styles.

  • Modified all API and model files with consistent 4-space indentation instead of 2-space indentation
  • Changed attribute type maps to use double quotes instead of single quotes throughout model files
  • Consolidated multi-line imports into more compact single-line imports in API files
  • Removed ProjectResponses export and import from models.ts which could potentially break dependent code
  • Added consistent blank lines at the end of files for better git compatibility

PR Checklist ✅

General

  • ❌ Avoids unused imports, variables, or functions - The removal of ProjectResponses from models.ts could break dependent code

Your PR score is 95/100. The formatting changes are well-executed and consistent, but the removal of ProjectResponses should be verified to ensure it doesn't break existing functionality.

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

44 file(s) reviewed, 20 comment(s)
Edit PR Review Bot Settings | Greptile

}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Missing semicolon at the end of this line

Suggested change
this.basePath = basePathOrUsername
this.basePath = basePathOrUsername;

}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Missing semicolon at the end of this line

Suggested change
this.basePath = basePathOrUsername
this.basePath = basePathOrUsername;

Comment on lines +55 to +56
this.basePath = basePathOrUsername
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Missing semicolon at the end of this line

Comment on lines +42 to +43
'API_Key': new HttpBearerAuth(),
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: Missing semicolon after object declaration

Comment on lines +133 to +135
let authenticationPromise = Promise.resolve();
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Authentication is only applying the default auth, but not checking if API_Key.accessToken exists like in other API files (e.g., authApi.ts)

export enum TypeEnum {
_0 = <any> '0',
_1 = <any> '1',
_12 = <any> '-1'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The enum value '_12' is named inconsistently with its value '-1'. Consider renaming to '_MINUS_1' for clarity and consistency with other model files like userResponse.ts.

"name": "data",
"baseName": "data",
"type": "string"
} ];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The closing bracket of the array is on the same line as the last object entry, which is inconsistent with the opening bracket style on line 23. Consider moving it to a new line for better readability.

"name": "dkim2",
"baseName": "dkim2",
"type": "SendGridDNSRecord"
} ];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: There's an extra closing bracket ']' at the end of this line that should be on its own line for better readability.

Comment on lines +23 to +38
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "mailCname",
"baseName": "mail_cname",
"type": "SendGridDNSRecord"
},
{
"name": "dkim1",
"baseName": "dkim1",
"type": "SendGridDNSRecord"
},
{
"name": "dkim2",
"baseName": "dkim2",
"type": "SendGridDNSRecord"
} ];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The formatting of this array is inconsistent with TypeScript best practices. Consider using consistent quotes (either single or double) throughout the codebase.

"name": "projectIds",
"baseName": "projectIds",
"type": "Array<number>"
} ];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: There's an extra closing bracket at the end of line 64 that's attached to the array declaration without proper spacing. This should be on a new line for better readability.

Copy link
Contributor

@UZ9 UZ9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most changes are only a result of prettier not being run on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants