@paddle/paddle-node-sdk 1.8.0 → 1.9.0
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/CHANGELOG.md +6 -0
- package/dist/cjs/entities/notification-settings/notification-settings.js +1 -0
- package/dist/cjs/enums/notification-settings/index.js +1 -0
- package/dist/cjs/enums/notification-settings/traffic-source.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/notification-settings/notification-settings.js +1 -0
- package/dist/esm/enums/notification-settings/index.js +1 -0
- package/dist/esm/enums/notification-settings/traffic-source.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/entities/notification-settings/notification-settings.d.ts +2 -1
- package/dist/types/enums/notification-settings/index.d.ts +1 -0
- package/dist/types/enums/notification-settings/traffic-source.d.ts +1 -0
- package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -1
- package/dist/types/resources/notification-settings/operations/list-notification-settings-query-parameters.d.ts +2 -0
- package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +2 -0
- package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,12 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
|
|
|
12
12
|
|
|
13
13
|
This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.
|
|
14
14
|
|
|
15
|
+
## 1.9.0 - 2024-10-15
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Added the `trafficSource` filter on notification settings
|
|
20
|
+
|
|
15
21
|
## 1.8.0 - 2024-10-08
|
|
16
22
|
|
|
17
23
|
### Added
|
|
@@ -11,6 +11,7 @@ class NotificationSettings {
|
|
|
11
11
|
this.active = notificationSettings.active;
|
|
12
12
|
this.apiVersion = notificationSettings.api_version;
|
|
13
13
|
this.includeSensitiveFields = notificationSettings.include_sensitive_fields;
|
|
14
|
+
this.trafficSource = notificationSettings.traffic_source;
|
|
14
15
|
this.subscribedEvents = notificationSettings.subscribed_events.map((subscribed_event) => new event_types_1.EventType(subscribed_event));
|
|
15
16
|
this.endpointSecretKey = notificationSettings.endpoint_secret_key;
|
|
16
17
|
}
|
package/dist/cjs/version.js
CHANGED
|
@@ -8,6 +8,7 @@ export class NotificationSettings {
|
|
|
8
8
|
this.active = notificationSettings.active;
|
|
9
9
|
this.apiVersion = notificationSettings.api_version;
|
|
10
10
|
this.includeSensitiveFields = notificationSettings.include_sensitive_fields;
|
|
11
|
+
this.trafficSource = notificationSettings.traffic_source;
|
|
11
12
|
this.subscribedEvents = notificationSettings.subscribed_events.map((subscribed_event) => new EventType(subscribed_event));
|
|
12
13
|
this.endpointSecretKey = notificationSettings.endpoint_secret_key;
|
|
13
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '1.
|
|
1
|
+
export const SDK_VERSION = '1.9.0';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NotificationSettingsType } from '../../enums';
|
|
1
|
+
import { type TrafficSource, type NotificationSettingsType } from '../../enums';
|
|
2
2
|
import { EventType } from '../event-types';
|
|
3
3
|
import { type INotificationSettingsResponse } from '../../types/notification-settings';
|
|
4
4
|
export declare class NotificationSettings {
|
|
@@ -9,6 +9,7 @@ export declare class NotificationSettings {
|
|
|
9
9
|
readonly active: boolean;
|
|
10
10
|
readonly apiVersion: number;
|
|
11
11
|
readonly includeSensitiveFields: boolean;
|
|
12
|
+
readonly trafficSource: TrafficSource;
|
|
12
13
|
readonly subscribedEvents: EventType[];
|
|
13
14
|
readonly endpointSecretKey: string;
|
|
14
15
|
constructor(notificationSettings: INotificationSettingsResponse);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TrafficSource = 'platform' | 'simulation' | 'all';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NotificationSettingsType } from '../../../enums';
|
|
1
|
+
import { type TrafficSource, type NotificationSettingsType } from '../../../enums';
|
|
2
2
|
import { type IEventName } from '../../../notifications';
|
|
3
3
|
export interface CreateNotificationSettingsRequestBody {
|
|
4
4
|
description: string;
|
|
@@ -7,4 +7,5 @@ export interface CreateNotificationSettingsRequestBody {
|
|
|
7
7
|
type: NotificationSettingsType;
|
|
8
8
|
apiVersion?: number | null;
|
|
9
9
|
includeSensitiveFields?: boolean | null;
|
|
10
|
+
trafficSource?: TrafficSource | null;
|
|
10
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TrafficSource } from '../../../enums';
|
|
1
2
|
import { type IEventName } from '../../../notifications';
|
|
2
3
|
export interface UpdateNotificationSettingsRequestBody {
|
|
3
4
|
description?: string;
|
|
@@ -6,4 +7,5 @@ export interface UpdateNotificationSettingsRequestBody {
|
|
|
6
7
|
apiVersion?: number;
|
|
7
8
|
includeSensitiveFields?: boolean;
|
|
8
9
|
subscribedEvents?: IEventName[];
|
|
10
|
+
trafficSource?: TrafficSource;
|
|
9
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NotificationSettingsType } from '../../enums';
|
|
1
|
+
import { type TrafficSource, type NotificationSettingsType } from '../../enums';
|
|
2
2
|
import { type IEventTypeResponse } from '../event-types';
|
|
3
3
|
export interface INotificationSettingsResponse {
|
|
4
4
|
id: string;
|
|
@@ -8,6 +8,7 @@ export interface INotificationSettingsResponse {
|
|
|
8
8
|
active: boolean;
|
|
9
9
|
api_version: number;
|
|
10
10
|
include_sensitive_fields: boolean;
|
|
11
|
+
traffic_source: TrafficSource;
|
|
11
12
|
subscribed_events: IEventTypeResponse[];
|
|
12
13
|
endpoint_secret_key: string;
|
|
13
14
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.9.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|