@agenus-io/pixel-backend-sdk 1.0.21 → 1.0.22
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
|
@@ -25,7 +25,7 @@ export declare class PixelSDK implements IPixelSdk {
|
|
|
25
25
|
Create({ data, workspaceId }: ICreatePixelDTO.Params): Promise<ICreatePixelDTO.Result>;
|
|
26
26
|
Update({ data, workspaceId, id }: IUpdatePixelDTO.Params): Promise<void>;
|
|
27
27
|
Delete({ id, workspaceId }: IDeletePixelDTO.Params): Promise<void>;
|
|
28
|
-
Get({ page, pageSize, filter, workSpaceId }: IGetPixelDTO.Params): Promise<IGetPixelDTO.Result>;
|
|
28
|
+
Get({ page, pageSize, filter, workSpaceId, platform, productIds, offerIds }: IGetPixelDTO.Params): Promise<IGetPixelDTO.Result>;
|
|
29
29
|
GetOne({ id, workSpaceId }: IGetOnePixelDTO.Params): Promise<IGetOnePixelDTO.Result>;
|
|
30
30
|
UpdateOffers({ id, workspaceId, offerIds, type }: IUpdateOffersDTO.Params): Promise<void>;
|
|
31
31
|
}
|
package/dist/Class/index.js
CHANGED
|
@@ -151,7 +151,7 @@ class PixelSDK {
|
|
|
151
151
|
throw "Erro ao deletar pixel";
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
async Get({ page, pageSize, filter, workSpaceId }) {
|
|
154
|
+
async Get({ page, pageSize, filter, workSpaceId, platform, productIds, offerIds }) {
|
|
155
155
|
try {
|
|
156
156
|
const token = {
|
|
157
157
|
appId: this.appId,
|
|
@@ -160,7 +160,7 @@ class PixelSDK {
|
|
|
160
160
|
};
|
|
161
161
|
const response = await axios_1.default.get(`${this.apiUrl}/pixels`, {
|
|
162
162
|
headers: { "app-id": token.appId, "app-secret-token": token.secretToken, "work-space-id": token.workSpaceId },
|
|
163
|
-
params: { page, pageSize, filter },
|
|
163
|
+
params: { page, pageSize, filter, platform, productIds, offerIds },
|
|
164
164
|
});
|
|
165
165
|
return response.data;
|
|
166
166
|
}
|