Skip to content

Commit

Permalink
@oada/job based's zendesk-sync
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Balmos <[email protected]>
  • Loading branch information
abalmos committed Jul 1, 2024
1 parent 989cc87 commit 8104237
Show file tree
Hide file tree
Showing 69 changed files with 19,393 additions and 3,330 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,3 @@ dist
!.yarn/plugins
!.yarn/versions
.pnp.*

# Template build
dist-template
test/output.pdf
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.1.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.1.cjs
nodeLinker: "node-modules"
yarnPath: .yarn/releases/yarn-4.3.1.cjs
28 changes: 9 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
# USING THIS TEMPLATE
# Qlever-LLC/zendesk-sync

Once you clone this template repo,
be sure to change the name by replacing `Qlever-LLC/oada-service-template`
(e.g., `sed -i 's/Qlever-LLC\/oada-service-template/trellisfw\/awesome-service/g' *`).

You probably will also want to update the license stuff.

Finally, remove this section from the README.

# Qlever-LLC/oada-service-template

[![Coverage Status](https://coveralls.io/repos/Qlever-LLC/oada-service-template/badge.svg?branch=master)](https://coveralls.io/r/Qlever-LLC/oada-service-template?branch=master)
[![Docker Pulls](https://img.shields.io/docker/pulls/Qlever-LLC/oada-service-template)][dockerhub]
[![Coverage Status](https://coveralls.io/repos/Qlever-LLC/zendesk-sync/badge.svg?branch=master)](https://coveralls.io/r/Qlever-LLC/zendesk-sync?branch=master)
[![Docker Pulls](https://img.shields.io/docker/pulls/Qlever-LLC/zendesk-sync)][dockerhub]
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![License](https://img.shields.io/github/license/Qlever-LLC/oada-service-template)](LICENSE)
[![License](https://img.shields.io/github/license/Qlever-LLC/zendesk-sync)](LICENSE)

## Usage

Docker images for Qlever-LLC/oada-service-template are available from GitHub Container Registry.
Docker images for Qlever-LLC/zendesk-sync are available from GitHub Container Registry.

### docker-compose

Expand All @@ -26,7 +16,7 @@ Here is an example of using this service with docker-compose.
```yaml
services:
service:
image: Qlever-LLC/oada-service-template
image: Qlever-LLC/zendesk-sync
restart: unless-stopped
environment:
NODE_TLS_REJECT_UNAUTHORIZED:
Expand All @@ -40,7 +30,7 @@ services:
TOKEN: ${TOKEN:-abc123,def456}
```
### Running Qlever-LLC/oada-service-template within the [OADA Reference API Server][]
### Running Qlever-LLC/zendesk-sync within the [OADA Reference API Server][]
To add this service to the services run with an OADA v3 server,
simply add a snippet like the one in the previous section
Expand All @@ -61,5 +51,5 @@ echo TOKEN=abc123 >> .env # Set API token(s) for the service
docker-compose up -d
```

[dockerhub]: https://hub.docker.com/repository/docker/Qlever-LLC/oada-service-template
[oada reference api server]: https://github.com/OADA/server
[dockerhub]: https://hub.docker.com/repository/docker/Qlever-LLC/zendesk-sync
[oada reference api server]: https://github.com/OADA/server
6 changes: 0 additions & 6 deletions docker-compose.oada.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 30 additions & 15 deletions .eslintrc.yaml → service/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
root: true

extends:
- 'plugin:@typescript-eslint/recommended'
- plugin:@typescript-eslint/recommended
- plugin:node/recommended
- plugin:github/recommended
- plugin:promise/recommended
- plugin:regexp/recommended
- plugin:array-func/recommended
#- plugin:array-func/recommended
- plugin:optimize-regex/recommended
- plugin:import/recommended
- plugin:unicorn/recommended
- plugin:security/recommended
- plugin:sonarjs/recommended
#- plugin:security/recommended
#- plugin:sonarjs/recommended
- plugin:ava/recommended
- xo
- prettier
- plugin:prettier/recommended

plugins:
- '@typescript-eslint'
- node
- github
- promise
- regexp
- array-func
#- array-func
- optimize-regex
- no-constructor-bind
- import
Expand All @@ -37,23 +37,24 @@ parser: '@typescript-eslint/parser'

parserOptions:
ecmaVersion: 2020
project: './**/tsconfig*.json'
project: ./tsconfig*.json

overrides:
- files: '*.{c,m,}ts'
- files: '*.ts'
extends:
- plugin:github/typescript
- plugin:import/typescript
- xo-typescript
- prettier
- plugin:prettier/recommended
parserOptions:
ecmaVersion: 2020
project: './**/tsconfig*.json'
project: ./tsconfig*.json
rules:
'@typescript-eslint/naming-convention':
[
error,
{ selector: default, format: [camelCase] },
{ selector: import, modifiers: [default], format: null },
{ selector: objectLiteralProperty, format: null },
{ selector: enumMember, format: [PascalCase] },
{ selector: typeProperty, format: null },
Expand All @@ -63,6 +64,7 @@ overrides:
format: [camelCase, UPPER_CASE],
leadingUnderscore: allow,
},
{ selector: variable, modifiers: [destructured], format: null },
{
selector: parameter,
format: [camelCase],
Expand All @@ -77,17 +79,18 @@ overrides:
},

{ selector: typeLike, format: [PascalCase] },
{ selector: parameter, modifiers: [destructured], format: null },
]
'@typescript-eslint/restrict-template-expressions': off
'@typescript-eslint/restrict-template-expressions': 0
'@typescript-eslint/no-shadow': warn
'@typescript-eslint/no-unused-vars':
[
warn,
{
args: after-used,
ignoreRestSiblings: true,
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
varsIgnorePattern: ^_,
argsIgnorePattern: ^_,
},
]
'@typescript-eslint/consistent-type-definitions': [warn, interface]
Expand All @@ -114,7 +117,8 @@ rules:
*/
onNonMatchingHeader: append
nonMatchingTolerance: 0.7
sonarjs/no-duplicate-string: [warn, 5]
'@typescript-eslint/no-shadow': [warn, { allow: [_] }]
sonarjs/no-duplicate-string: [warn, { threshold: 5 }]
sonarjs/cognitive-complexity: warn
eslint-comments/no-unused-disable: off
import/extensions: off
Expand All @@ -126,14 +130,25 @@ rules:
eslint-comments/no-use: off
no-secrets/no-secrets: [error, { tolerance: 5 }]
no-empty-label: off
no-warning-comments: off
no-return-await: 0
no-warning-comments: 0
node/no-missing-import: off
import/no-unresolved: off
unicorn/prefer-spread: off
unicorn/prevent-abbreviations:
- warn
- replacements:
db: false
req: false
res: false
err: false
doc: false
docs: false
no-constructor-bind/no-constructor-bind: error
no-constructor-bind/no-constructor-state: error
sort-imports: [warn, { allowSeparatedGroups: true }]
ava/no-ignored-test-files: off
ava/no-import-test-files: off
ava/no-skip-test: warn
ava/no-skip-assert: warn
ava/use-test: off
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions .vscode/settings.json → service/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.useESLintClass": true,
"explorerExclude.backup": null,
"npm.packageManager": "yarn",
"debug.javascript.autoAttachFilter": "smart",
"debug.javascript.breakOnConditionalError": true,
Expand All @@ -80,4 +79,4 @@
"!**/yarn-*",
"!**/ava-*/**/cli.mjs"
]
}
}
File renamed without changes.
Binary file added service/.yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 8104237

Please sign in to comment.