Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Changelog

# 0.10.1

- add new AudienceFeedMethodErrorResponse interface in prevision of the error handling:

```
export interface AudienceFeedMethodErrorResponse {
error_code?: string;
error_origin?: string;
}

```

# 0.10.0 - 2022-10-28

Breaking changes in UserSegmentUpdatePluginResponse.

- update the Audience feed onUserSegmentUpdate method return type. Interface UserSegmentUpdatePluginResponse data optional element is now of type DeliveryType.
- status can be 'no_eligible_identifier' now (status code 400);
- stats field is changed (UserSegmentUpdatePluginResponseStats);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mediarithmics/plugins-nodejs-sdk",
"version": "0.10.0",
"version": "0.10.1",
"description": "This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate",
"repository": "github:MEDIARITHMICS/plugins-nodejs-sdk",
"main": "./lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type AudienceFeedConnectorStatus = 'ok' | 'error';
export declare type AudienceFeedConnectorConnectionStatus = 'ok' | 'error' | 'external_segment_not_ready_yet';
export type AudienceFeedConnectorContentType = 'text/csv' | 'application/json' | 'text/plain';

export interface UserSegmentUpdatePluginResponse {
export interface UserSegmentUpdatePluginResponse extends AudienceFeedMethodErrorResponse {
status: UserSegmentUpdatePluginResponseStatus;
data?: DeliveryType[];
stats?: UserSegmentUpdatePluginResponseStats[];
Expand Down Expand Up @@ -37,13 +37,13 @@ export interface UserSegmentUpdatePluginResponseStats {
tags?: AudienceFeedStatTag[];
}

export interface ExternalSegmentCreationPluginResponse {
export interface ExternalSegmentCreationPluginResponse extends AudienceFeedMethodErrorResponse {
status: AudienceFeedConnectorStatus;
message?: string;
visibility?: 'PRIVATE' | 'PUBLIC';
}

export interface ExternalSegmentConnectionPluginResponse {
export interface ExternalSegmentConnectionPluginResponse extends AudienceFeedMethodErrorResponse {
status: AudienceFeedConnectorConnectionStatus;
message?: string;
}
Expand All @@ -54,3 +54,8 @@ export interface AudienceFeedStatTag {
key: string;
value: string;
}

export interface AudienceFeedMethodErrorResponse {
error_code?: string;
error_origin?: string;
}