Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed May 7, 2023
1 parent 5f2317e commit 3c76cf3
Show file tree
Hide file tree
Showing 47 changed files with 457 additions and 72 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ Available groups:
- [jiraExpressions](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-jira-expressions/#api-group-jira-expressions)
- [jiraSettings](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-jira-settings/#api-group-jira-settings)
- [jql](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-jql/#api-group-jql)
- [jqlFunctionsApps](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-jql-functions--apps-/#api-group-jql-functions--apps-)
- [labels](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-labels/#api-group-labels)
- [licenseMetrics](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-license-metrics/#api-group-license-metrics)
- [myself](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-myself/#api-group-myself)
Expand Down Expand Up @@ -433,6 +434,7 @@ Available groups:
- [jiraExpressions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jira-expressions/#api-group-jira-expressions)
- [jiraSettings](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jira-settings/#api-group-jira-settings)
- [jql](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jql/#api-group-jql)
- [jqlFunctionsApps](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-jql-functions--apps-/#api-group-jql-functions--apps-)
- [labels](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/#api-group-labels)
- [licenseMetrics](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-license-metrics/#api-group-license-metrics)
- [myself](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-myself/#api-group-myself)
Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"replace:expansion:version3": "grep -rl \"(#expansion)\" ./src/version3 | xargs sed -i '' 's/(#expansion)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v3\\/intro\\/#expansion)/g'",
"replace:groupMember:version2": "grep -rl \"(#api-rest-api-2-group-member-get)\" ./src/version2 | xargs sed -i '' 's/(#api-rest-api-2-group-member-get)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v2\\/api-group-groups\\/#api-rest-api-2-group-member-get)/g'",
"replace:workflowPaginated:version2": "grep -rl \"(#api-rest-api-2-workflow-search-get)\" ./src/version2 | xargs sed -i '' 's/(#api-rest-api-2-workflow-search-get)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v2\\/api-group-workflows\\/#api-rest-api-2-workflow-search-get)/g'",
"code:formatting": "npm run replace:all && npm run lint:fix && npm run prettier"
"code:formatting": "npm run replace:all && npm run prettier && npm run lint:fix"
},
"ava": {
"extensions": [
Expand All @@ -66,14 +66,14 @@
"@swc-node/register": "^1.6.5",
"@swc/helpers": "^0.5.1",
"@types/express": "^4.17.17",
"@types/node": "^18.16.3",
"@types/node": "^10.17.60",
"@types/oauth": "^0.9.1",
"@types/sinon": "^10.0.14",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"ava": "^5.2.0",
"dotenv": "^16.0.3",
"eslint": "^8.39.0",
"eslint": "^8.40.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.5",
Expand Down
3 changes: 3 additions & 0 deletions src/version2/appProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class AppProperties {
const config: RequestConfig = {
url: `/rest/atlassian-connect/1/addons/${parameters.addonKey}/properties/${parameters.propertyKey}`,
method: 'PUT',
data: parameters.propertyValue,
};

return this.client.sendRequest(config, callback);
Expand Down Expand Up @@ -183,9 +184,11 @@ export class AppProperties {
parameters: Parameters.PutAppProperty,
callback?: Callback<T>,
): Promise<void | T> {
// todo
const config: RequestConfig = {
url: `/rest/forge/1/app/properties/${parameters.propertyKey}`,
method: 'PUT',
data: parameters.propertyValue,
};

return this.client.sendRequest(config, callback);
Expand Down
2 changes: 2 additions & 0 deletions src/version2/client/version2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
JiraExpressions,
JiraSettings,
JQL,
JqlFunctionsApps,
Labels,
LicenseMetrics,
Myself,
Expand Down Expand Up @@ -136,6 +137,7 @@ export class Version2Client extends BaseClient {
jiraExpressions = new JiraExpressions(this);
jiraSettings = new JiraSettings(this);
jql = new JQL(this);
jqlFunctionsApps = new JqlFunctionsApps(this);
labels = new Labels(this);
licenseMetrics = new LicenseMetrics(this);
myself = new Myself(this);
Expand Down
1 change: 1 addition & 0 deletions src/version2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export * from './issueWorklogs';
export * from './jiraExpressions';
export * from './jiraSettings';
export * from './jQL';
export * from './jqlFunctionsApps';
export * from './labels';
export * from './licenseMetrics';
export * from './myself';
Expand Down
Loading

0 comments on commit 3c76cf3

Please sign in to comment.