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

feature(integrations): Adding Shopify Integration #12758

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
12453fd
Shopify first draft
bassamtantawi-botpress Aug 3, 2023
4d3fbc5
Prettier
bassamtantawi-botpress Aug 3, 2023
1e8e4a2
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 3, 2023
01ce3f8
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 4, 2023
27c402b
Review comments & the automated checks fixes.
bassamtantawi-botpress Aug 4, 2023
a96d268
Merge branch 'bt-shopify' of https://github.com/botpress/botpress int…
bassamtantawi-botpress Aug 4, 2023
641322c
prettier
bassamtantawi-botpress Aug 4, 2023
5911d96
fixes for schema and lint
bassamtantawi-botpress Aug 4, 2023
a7a2ad7
prettier
bassamtantawi-botpress Aug 4, 2023
cd89fcb
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 7, 2023
f6387d9
Updates
bassamtantawi-botpress Aug 7, 2023
b9ef614
fixing some of the errors
bassamtantawi-botpress Aug 8, 2023
d997809
adding botpresshub to the package
bassamtantawi-botpress Aug 8, 2023
d75e369
for checks
bassamtantawi-botpress Aug 8, 2023
5dae2d9
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 8, 2023
7e1f2e9
Update integrations/shopify/src/setup/register.ts
bassamtantawi-botpress Aug 9, 2023
a619a65
Update integrations/shopify/src/setup/unregister.ts
bassamtantawi-botpress Aug 9, 2023
2ddc3c7
Update integrations/shopify/src/setup/unregister.ts
bassamtantawi-botpress Aug 9, 2023
34dcea7
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 9, 2023
e932a4f
Review comments
bassamtantawi-botpress Aug 9, 2023
4c5b018
Merge branch 'bt-shopify' of https://github.com/botpress/botpress int…
bassamtantawi-botpress Aug 9, 2023
4f0a853
review comments
bassamtantawi-botpress Aug 9, 2023
975fe7c
fix
bassamtantawi-botpress Aug 9, 2023
6f5db53
prettier
bassamtantawi-botpress Aug 9, 2023
1f883b6
adding types
bassamtantawi-botpress Aug 9, 2023
0a8742f
lint check
bassamtantawi-botpress Aug 9, 2023
bbc3fff
fix for lint
bassamtantawi-botpress Aug 9, 2023
52844ad
fix
bassamtantawi-botpress Aug 9, 2023
8a7f8cc
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 9, 2023
9122b66
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 10, 2023
03445a3
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 10, 2023
ed5cedb
Updates for the states and a fix
bassamtantawi-botpress Aug 10, 2023
bdd8802
Merge branch 'bt-shopify' of https://github.com/botpress/botpress int…
bassamtantawi-botpress Aug 10, 2023
15e22ab
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 15, 2023
3ba6899
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 16, 2023
f7d1e37
updating the scripts
bassamtantawi-botpress Aug 16, 2023
62bf551
Merge branch 'bt-shopify' of https://github.com/botpress/botpress int…
bassamtantawi-botpress Aug 16, 2023
a96b027
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 17, 2023
962ae4e
Merge branch 'master' into bt-shopify
michaelmass Aug 23, 2023
04baa7e
update
michaelmass Aug 23, 2023
47b466c
update
michaelmass Aug 23, 2023
d901e51
update
michaelmass Aug 23, 2023
26d449b
update
michaelmass Aug 23, 2023
e4ec8ce
update
michaelmass Aug 23, 2023
26c7f9e
update
michaelmass Aug 23, 2023
93df815
update
michaelmass Aug 23, 2023
babcd04
update
michaelmass Aug 23, 2023
227e616
update
michaelmass Aug 23, 2023
931df59
Removing the state, counting on the "get webhooks"
bassamtantawi-botpress Aug 28, 2023
5271885
Merge branch 'master' into bt-shopify
michaelmass Aug 29, 2023
685e2c5
Merge branch 'master' into bt-shopify
bassamtantawi-botpress Aug 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions integrations/shopify/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
dist
gen
local/data
.DS_Store
*.tsbuildinfo
__snapshots__
.ignore.me.*
.env
.botpress
12 changes: 12 additions & 0 deletions integrations/shopify/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions integrations/shopify/integration.definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { IntegrationDefinition } from '@botpress/sdk'
import { INTEGRATION_NAME } from './src/const'
import { actions } from './src/definitions/actions'
import { configuration } from './src/definitions/configuration'
import { events } from './src/definitions/events'
import { states } from './src/definitions/states'

export default new IntegrationDefinition({
name: INTEGRATION_NAME,
title: 'Shopify',
description: 'This integration allows your bot to interact with Shopify.',
version: '0.0.1',
icon: 'icon.svg',
readme: 'readme.md',
configuration,
actions,
states,
events,
})
33 changes: 33 additions & 0 deletions integrations/shopify/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@botpresshub/shopify",
"scripts": {
"bump": "ts-node -T ./scripts/depsynky bump",
"type:check": "pnpm -r --stream type:check",
"format:check": "prettier --check .",
"format:fix": "prettier --write .",
"lint:check": "eslint ./ --ext .ts --ext .tsx",
"lint:fix": "eslint --fix ./ --ext .ts --ext .tsx",
"dep:check": "ts-node -T ./scripts/depsynky check",
"dep:fix": "ts-node -T ./scripts/depsynky sync",
"check": "pnpm dep:check && pnpm format:check && pnpm lint:check && pnpm type:check",
"test": "pnpm vitest --run",
"fix": "pnpm dep:fix && pnpm format:fix && pnpm lint:fix"
},
"keywords": [],
"private": true,
"author": "",
"license": "MIT",
"dependencies": {
"@botpress/client": "workspace:*",
"@botpress/sdk": "workspace:*",
"axios": "^1.4.0",
"zod": "^3.21.4"
},
"devDependencies": {
"@tsconfig/node18-strictest": "^1.0.0",
"@types/node": "^18.11.17",
"prettier": "^2.8.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
}
}