Skip to content

Commit

Permalink
feat: elastic search catalog indexing
Browse files Browse the repository at this point in the history
- moved from separate repo
  • Loading branch information
bugslifesolutions committed Jan 28, 2024
1 parent e3ca1e9 commit 927a6e4
Show file tree
Hide file tree
Showing 27 changed files with 8,731 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilly-ants-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bugslifesolutions/api-plugin-es-catalog-sync": major
"@bugslifesolutions/api-plugin-payments-stripe-sca": minor
---

New Elastic Search Catalog indexing
3 changes: 2 additions & 1 deletion apps/reaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@bugslifesolutions/api-plugin-translations": "workspace:2.1.0-next.10",
"@bugslifesolutions/api-utils": "workspace:2.1.0-next.10",
"@bugslifesolutions/bl-api-plugin-nodemailer": "workspace:1.0.0-next.10",
"@bugslifesolutions/api-plugin-es-catalog-sync": "*",
"@bugslifesolutions/db-version-check": "workspace:1.1.0-next.10",
"@bugslifesolutions/file-collections": "workspace:0.11.0-next.10",
"@bugslifesolutions/file-collections-sa-gridfs": "workspace:0.3.0-next.10",
Expand Down Expand Up @@ -157,4 +158,4 @@
},
"snyk": true,
"private": true
}
}
61 changes: 61 additions & 0 deletions packages/bl-api-plugin-es-catalog-sync/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
1 change: 1 addition & 0 deletions packages/bl-api-plugin-es-catalog-sync/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
1 change: 1 addition & 0 deletions packages/bl-api-plugin-es-catalog-sync/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.2
1 change: 1 addition & 0 deletions packages/bl-api-plugin-es-catalog-sync/.nvsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.2
13 changes: 13 additions & 0 deletions packages/bl-api-plugin-es-catalog-sync/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2022 BugsLife Solutions

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
26 changes: 26 additions & 0 deletions packages/bl-api-plugin-es-catalog-sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# api-plugin-es-catalog-sync

[![npm (scoped)](https://img.shields.io/npm/v/@bugslifesolutions/api-plugin-es-catalog-sync.svg)](https://www.npmjs.com/package/@bugslifesolutions/api-plugin-es-catalog-sync)
[![CircleCI](https://circleci.com/gh/bugslifesolutions/api-plugin-es-catalog-sync.svg?style=svg)](https://circleci.com/gh/bugslifesolutions/api-plugin-es-catalog-sync)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

## Summary

es-catalog-sync plugin for the [Reaction API](https://github.com/reactioncommerce/reaction)

## Developer Certificate of Origin
We use the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) in lieu of a Contributor License Agreement for all contributions to Reaction Commerce open source projects. We request that contributors agree to the terms of the DCO and indicate that agreement by signing all commits made to Bugslife Solutions projects by adding a line with your name and email address to every Git commit message contributed:
```
Signed-off-by: Jane Doe <[email protected]>
```

You can sign your commit automatically with Git by using `git commit -s` if you have your `user.name` and `user.email` set as part of your Git configuration.

We ask that you use your real name (please no anonymous contributions or pseudonyms). By signing your commit you are certifying that you have the right have the right to submit it under the open source license used by that particular Reaction Commerce project. You must use your real name (no pseudonyms or anonymous contributions are allowed.)

We use the [Probot DCO GitHub app](https://github.com/apps/dco) to check for DCO signoffs of every commit.

If you forget to sign your commits, the DCO bot will remind you and give you detailed instructions for how to amend your commits to add a signature.

## License
This Reaction plugin is [Apache License, Version 2.0](./LICENSE)
1 change: 1 addition & 0 deletions packages/bl-api-plugin-es-catalog-sync/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@bugslifesolutions/api-utils/lib/configs/babel.config.cjs");
3 changes: 3 additions & 0 deletions packages/bl-api-plugin-es-catalog-sync/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import register from "./src/index.js";

export default register;
64 changes: 64 additions & 0 deletions packages/bl-api-plugin-es-catalog-sync/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "@bugslifesolutions/api-plugin-es-catalog-sync",
"description": "Reaction API Plugin for Elastic Search Catalog synchronization",
"version": "1.0.0",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=18"
},
"homepage": "https://github.com/bugslifesolutions/reaction",
"url": "https://github.com/bugslifesolutions/reaction",
"email": "[email protected]",
"repository": {
"type": "git",
"url": "https://github.com/bugslifesolutions/reaction.git",
"directory": "packages/bl-api-plugin-es-catalog-sync"
},
"author": {
"name": "BugsLife Solutions",
"email": "[email protected]",
"url": "https://bugslifesolutions.com"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/bugslifesolutions/reaction/issues"
},
"sideEffects": false,
"dependencies": {
"@bugslifesolutions/api-utils": "*",
"@bugslifesolutions/logger": "workspace:^1.2.0-next.10",
"@bugslifesolutions/random": "workspace:^1.1.0-next.10",
"@elastic/app-search-node": "^7.17.0",
"dotenv": "^16.3.1",
"envalid": "^7.3.1",
"fastpriorityqueue": "^0.7.4",
"lodash": "^4.17.21",
"simpl-schema": "~3.2.0",
"typescript": "^5.0.4"
},
"devDependencies": {
"@bugslifesolutions/data-factory": "^1.2.1",
"@reactioncommerce/babel-remove-es-create-require": "~1.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"lint": "npm run lint:eslint",
"lint:eslint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "npm run test:ci",
"test:ci": "jest --passWithNoTests --setupFiles=dotenv/config --ci",
"test:watch": "jest --watch",
"test:file": "jest --no-cache --watch --coverage=false"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"arrowParens": "always"
}
}
Loading

0 comments on commit 927a6e4

Please sign in to comment.