@agenus-io/webhook-centralizer 1.0.30 → 1.0.32
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.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class WebhookCentralizerSDK implements IWebhookCentralizeSDK {
|
|
|
15
15
|
Create({ workSpaceId, ...data }: ICreatePlatformDTO.Params): Promise<ICreatePlatformDTO.Result>;
|
|
16
16
|
Update({ id, workSpaceId, ...data }: IUpdatePlatformDTO.Params): Promise<IUpdatePlatformDTO.Result>;
|
|
17
17
|
Delete({ id, workSpaceId }: IDeletePlatformDTO.Params): Promise<IDeletePlatformDTO.Result>;
|
|
18
|
-
Get({ page, pageSize, filter, workSpaceId }: IGetPlatformDTO.Params): Promise<IGetPlatformDTO.Result>;
|
|
18
|
+
Get({ page, pageSize, filter, workSpaceId, type }: IGetPlatformDTO.Params): Promise<IGetPlatformDTO.Result>;
|
|
19
19
|
GetByTitle({ title, workSpaceId }: IGetPlatformByTitleDTO.Params): Promise<IGetPlatformByTitleDTO.Result>;
|
|
20
20
|
GetWebhooks({ id, page, pageSize, filter, workSpaceId }: IGetPlatformWebhooksDTO.Params): Promise<IGetPlatformWebhooksDTO.Result>;
|
|
21
21
|
GetById({ id, workSpaceId }: IGetPlatformByIdDTO.Params): Promise<IGetPlatformByIdDTO.Result>;
|
package/dist/Class/index.js
CHANGED
|
@@ -130,7 +130,7 @@ class WebhookCentralizerSDK {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
async Get({ page, pageSize, filter, workSpaceId }) {
|
|
133
|
+
async Get({ page, pageSize, filter, workSpaceId, type }) {
|
|
134
134
|
try {
|
|
135
135
|
const token = {
|
|
136
136
|
appId: this.appId,
|
|
@@ -139,7 +139,7 @@ class WebhookCentralizerSDK {
|
|
|
139
139
|
};
|
|
140
140
|
const response = await axios_1.default.get(`${this.apiUrl}/platform`, {
|
|
141
141
|
headers: { "app-id": token.appId, "app-secret-token": token.secretToken, "work-space-id": token.workSpaceId },
|
|
142
|
-
params: { page, pageSize, filter },
|
|
142
|
+
params: { page, pageSize, filter, type },
|
|
143
143
|
});
|
|
144
144
|
return response.data;
|
|
145
145
|
}
|
|
@@ -15,6 +15,8 @@ export declare namespace ICreatePlatformDTO {
|
|
|
15
15
|
type Params = ICreatePlatformDTO;
|
|
16
16
|
type Result = {
|
|
17
17
|
id?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
urlWithParams?: string;
|
|
18
20
|
error?: any;
|
|
19
21
|
isError?: boolean;
|
|
20
22
|
};
|
|
@@ -45,6 +47,7 @@ export declare namespace IGetPlatformDTO {
|
|
|
45
47
|
pageSize: number;
|
|
46
48
|
filter?: string;
|
|
47
49
|
workSpaceId: string;
|
|
50
|
+
type?: webhookCentralizerPlatform;
|
|
48
51
|
};
|
|
49
52
|
type Result = {
|
|
50
53
|
data: {
|
|
@@ -187,6 +190,7 @@ export declare namespace IGetPlatformSettingsDTO {
|
|
|
187
190
|
hasPostBack: boolean;
|
|
188
191
|
hasToken: boolean;
|
|
189
192
|
hasSlug: boolean;
|
|
193
|
+
hasEmailAffiliate: boolean;
|
|
190
194
|
hasApi: boolean;
|
|
191
195
|
meta: Record<string, any> | null;
|
|
192
196
|
createdAt: Date;
|
package/package.json
CHANGED