@adtrackify/at-service-common 1.0.19 → 1.0.20
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/index.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ declare module '@adtrackify/at-service-common/clients/index' {
|
|
|
77
77
|
}
|
|
78
78
|
declare module '@adtrackify/at-service-common/clients/internal-api/destinations-client' {
|
|
79
79
|
import { Destination } from 'aws-sdk/clients/lexmodelbuildingservice';
|
|
80
|
-
import { ApiResponse } from '@adtrackify/at-service-common/types/api-response';
|
|
80
|
+
import { ApiResponse, ErrorData } from '@adtrackify/at-service-common/types/api-response';
|
|
81
81
|
export class DestinationsClient {
|
|
82
82
|
BASE_API_URL: string;
|
|
83
83
|
DESTINATIONS_API_KEY: string;
|
|
@@ -124,7 +124,7 @@ declare module '@adtrackify/at-service-common/clients/internal-api/destinations-
|
|
|
124
124
|
} | any>>;
|
|
125
125
|
getPixelDestinations: (pixelId: string) => Promise<ApiResponse<{
|
|
126
126
|
destinations: Destination[];
|
|
127
|
-
} |
|
|
127
|
+
} | ErrorData>>;
|
|
128
128
|
}
|
|
129
129
|
export default DestinationsClient;
|
|
130
130
|
|
|
@@ -303,6 +303,7 @@ declare module '@adtrackify/at-service-common/types/api-response' {
|
|
|
303
303
|
status: number;
|
|
304
304
|
headers?: AxiosResponseHeaders;
|
|
305
305
|
}
|
|
306
|
+
export type ErrorData = any;
|
|
306
307
|
|
|
307
308
|
}
|
|
308
309
|
declare module '@adtrackify/at-service-common/types/db/destination' {
|
package/dist/index.js
CHANGED
|
@@ -628304,9 +628304,13 @@ var DestinationsClient = class {
|
|
|
628304
628304
|
};
|
|
628305
628305
|
getPixelDestinations = async (pixelId) => {
|
|
628306
628306
|
const client2 = await this.getClient();
|
|
628307
|
-
const
|
|
628308
|
-
log2.info("
|
|
628309
|
-
return
|
|
628307
|
+
const response = await client2.get(`/?pixelId=${pixelId}`);
|
|
628308
|
+
log2.info("getPixelResponse", { response });
|
|
628309
|
+
return {
|
|
628310
|
+
status: response.status,
|
|
628311
|
+
headers: response.headers,
|
|
628312
|
+
data: response.status === 200 /* OK */ ? response.data : response.data
|
|
628313
|
+
};
|
|
628310
628314
|
};
|
|
628311
628315
|
};
|
|
628312
628316
|
|