File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Extremely simple example of runtime action, which
3+ * can be used to call external APIs, receiving events
4+ * from Adobe Commerce or anything else.
5+ */
6+
17// eslint-disable-next-line no-unused-vars
28export const main = ( params ) => {
39 let result
410
511 try {
6- // let's do something
12+ // @todo let's do something
713 result = {
814 success : true
915 }
Original file line number Diff line number Diff line change 66 "type" : " module" ,
77 "scripts" : {
88 "lint" : " eslint" ,
9- "lint:fix" : " eslint --fix"
9+ "lint:fix" : " eslint --fix" ,
10+ "onboarding" : " node ./scripts/onboarding/index.js"
1011 },
1112 "engines" : {
1213 "node" : " >=20"
Original file line number Diff line number Diff line change 1+ /**
2+ * The purpose of the onboarding script primarily is
3+ * to create new entities in Adobe I/O Events
4+ * or registering the app in the backoffice.
5+ */
6+
7+ console . log ( 'You are onboarding!' )
You can’t perform that action at this time.
0 commit comments