@pinelab/vendure-plugin-webhook 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vendure Webhook plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### [Official documentation here](https://pinelab-plugins.com/plugin/vendure-plugin-webhook)
|
|
4
4
|
|
|
5
5
|
Triggers an outgoing webhook based on configured events. Events are specified in `vendure-config` and webhooks are configured per
|
|
6
6
|
channel via the admin UI.
|
|
@@ -18,11 +18,10 @@ platforms when orders are placed by subscribing to OrderPlacedEvents!
|
|
|
18
18
|
|
|
19
19
|
## Getting started
|
|
20
20
|
|
|
21
|
-
1. `
|
|
22
|
-
2. Add the `WebhookPlugin` to your plugins in your `vendure-config.ts`:
|
|
21
|
+
1. Add the `WebhookPlugin` to your plugins in your `vendure-config.ts`:
|
|
23
22
|
|
|
24
23
|
```ts
|
|
25
|
-
import { WebhookPlugin } from 'vendure-plugin-webhook';
|
|
24
|
+
import { WebhookPlugin } from '@pinelab/vendure-plugin-webhook';
|
|
26
25
|
|
|
27
26
|
plugins: [
|
|
28
27
|
WebhookPlugin.init({
|
|
@@ -62,7 +61,7 @@ Request transformers are used to create a custom POST body and custom headers fo
|
|
|
62
61
|
|
|
63
62
|
```ts
|
|
64
63
|
import { Logger, ProductEvent } from '@vendure/core';
|
|
65
|
-
import { RequestTransformer } from 'vendure-plugin-webhook';
|
|
64
|
+
import { RequestTransformer } from '@pinelab/vendure-plugin-webhook';
|
|
66
65
|
|
|
67
66
|
export const stringifyProductTransformer = new RequestTransformer({
|
|
68
67
|
name: 'Stringify Product events',
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api/request-transformer"), exports);
|
|
17
18
|
__exportStar(require("./webhook.plugin"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinelab/vendure-plugin-webhook",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Call webhooks based on configured events from Vendure",
|
|
5
|
+
"icon": "hook",
|
|
5
6
|
"author": "Martijn van de Brug <martijn@pinelab.studio>",
|
|
6
7
|
"homepage": "https://pinelab-plugins.com/",
|
|
7
8
|
"repository": "https://github.com/Pinelab-studio/pinelab-vendure-plugins",
|
|
@@ -22,5 +23,5 @@
|
|
|
22
23
|
"start": "yarn ts-node test/dev-server.ts",
|
|
23
24
|
"test": "vitest run"
|
|
24
25
|
},
|
|
25
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e69fea87dbeed4f491dbfc3b43c6c2ff29ad6ab6"
|
|
26
27
|
}
|