@agenus-io/webhook-centralizer 1.0.5 → 1.0.6
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/dist/Class/index.js +6 -2
- package/dist/Class/interface.d.ts +1 -1
- package/package.json +1 -1
package/dist/Class/index.js
CHANGED
|
@@ -56,7 +56,9 @@ class WebhookCentralizerSDK {
|
|
|
56
56
|
secretToken: this.appToken,
|
|
57
57
|
workSpaceId,
|
|
58
58
|
};
|
|
59
|
-
const response = await axios_1.default.post(`${this.apiUrl}/platform`, {
|
|
59
|
+
const response = await axios_1.default.post(`${this.apiUrl}/platform`, { ...data }, {
|
|
60
|
+
headers: { "app-id": token.appId, "app-secret-token": token.secretToken, "work-space-id": token.workSpaceId }
|
|
61
|
+
});
|
|
60
62
|
return response.data;
|
|
61
63
|
}
|
|
62
64
|
catch (error) {
|
|
@@ -79,7 +81,9 @@ class WebhookCentralizerSDK {
|
|
|
79
81
|
secretToken: this.appToken,
|
|
80
82
|
workSpaceId,
|
|
81
83
|
};
|
|
82
|
-
const res = await axios_1.default.put(`${this.apiUrl}/platform/${id}`, { token, ...data }
|
|
84
|
+
const res = await axios_1.default.put(`${this.apiUrl}/platform/${id}`, { token, ...data }, {
|
|
85
|
+
headers: { "app-id": token.appId, "app-secret-token": token.secretToken, "work-space-id": token.workSpaceId }
|
|
86
|
+
});
|
|
83
87
|
const result = res.data;
|
|
84
88
|
return result;
|
|
85
89
|
}
|
|
@@ -3,7 +3,7 @@ import { webhookCentralizerDispatchType } from '../types';
|
|
|
3
3
|
import { JsonValue } from 'aws-sdk/clients/appmesh';
|
|
4
4
|
interface ICreatePlatformDTO {
|
|
5
5
|
title: string;
|
|
6
|
-
platformToken
|
|
6
|
+
platformToken?: string;
|
|
7
7
|
dispatchType: webhookCentralizerDispatchType;
|
|
8
8
|
type: webhookCentralizerPlatform;
|
|
9
9
|
apiToken?: string;
|
package/package.json
CHANGED