@agenus-io/webhook-centralizer 1.0.31 → 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.
@@ -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>;
@@ -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
  }
@@ -47,6 +47,7 @@ export declare namespace IGetPlatformDTO {
47
47
  pageSize: number;
48
48
  filter?: string;
49
49
  workSpaceId: string;
50
+ type?: webhookCentralizerPlatform;
50
51
  };
51
52
  type Result = {
52
53
  data: {
@@ -189,6 +190,7 @@ export declare namespace IGetPlatformSettingsDTO {
189
190
  hasPostBack: boolean;
190
191
  hasToken: boolean;
191
192
  hasSlug: boolean;
193
+ hasEmailAffiliate: boolean;
192
194
  hasApi: boolean;
193
195
  meta: Record<string, any> | null;
194
196
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenus-io/webhook-centralizer",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "SDK para centralização de webhooks focado atualmente em plataformas de pagamentos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",