@paddle/paddle-node-sdk 1.9.0 → 1.9.1
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 +10 -0
- package/dist/cjs/notifications/entities/subscription/index.js +1 -0
- package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +38 -0
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +0 -1
- package/dist/cjs/notifications/events/subscription/subscription-created-event.js +1 -1
- package/dist/cjs/notifications/types/subscription/index.js +1 -0
- package/dist/cjs/notifications/types/subscription/subscription-created-notification-response.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/notifications/entities/subscription/index.js +1 -0
- package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +34 -0
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +0 -1
- package/dist/esm/notifications/events/subscription/subscription-created-event.js +2 -2
- package/dist/esm/notifications/types/subscription/index.js +1 -0
- package/dist/esm/notifications/types/subscription/subscription-created-notification-response.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/notifications/entities/subscription/index.d.ts +1 -0
- package/dist/types/notifications/entities/subscription/subscription-created-notification.d.ts +30 -0
- package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +0 -1
- package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +4 -4
- package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +1 -1
- package/dist/types/notifications/types/subscription/index.d.ts +1 -0
- package/dist/types/notifications/types/subscription/subscription-created-notification-response.d.ts +28 -0
- package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +0 -1
- package/dist/types/types/events/events-response.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,12 +12,22 @@ 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.1 - 2024-10-16
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Omitted the `transactionId` completely from `SubscriptionNotification` and created a separate `SubscriptionCreatedNotification` with the non-null `transactionId`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
15
23
|
## 1.9.0 - 2024-10-15
|
|
16
24
|
|
|
17
25
|
### Added
|
|
18
26
|
|
|
19
27
|
- Added the `trafficSource` filter on notification settings
|
|
20
28
|
|
|
29
|
+
---
|
|
30
|
+
|
|
21
31
|
## 1.8.0 - 2024-10-08
|
|
22
32
|
|
|
23
33
|
### Added
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./subscription-created-notification"), exports);
|
|
17
18
|
__exportStar(require("./subscription-discount-notification"), exports);
|
|
18
19
|
__exportStar(require("./subscription-time-period-notification"), exports);
|
|
19
20
|
__exportStar(require("./subscription-scheduled-change-notification"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionCreatedNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class SubscriptionCreatedNotification {
|
|
6
|
+
constructor(subscription) {
|
|
7
|
+
this.id = subscription.id;
|
|
8
|
+
this.status = subscription.status;
|
|
9
|
+
this.transactionId = subscription.transaction_id;
|
|
10
|
+
this.customerId = subscription.customer_id;
|
|
11
|
+
this.addressId = subscription.address_id;
|
|
12
|
+
this.businessId = subscription.business_id ? subscription.business_id : null;
|
|
13
|
+
this.currencyCode = subscription.currency_code;
|
|
14
|
+
this.createdAt = subscription.created_at;
|
|
15
|
+
this.updatedAt = subscription.updated_at;
|
|
16
|
+
this.startedAt = subscription.started_at ? subscription.started_at : null;
|
|
17
|
+
this.firstBilledAt = subscription.first_billed_at ? subscription.first_billed_at : null;
|
|
18
|
+
this.nextBilledAt = subscription.next_billed_at ? subscription.next_billed_at : null;
|
|
19
|
+
this.pausedAt = subscription.paused_at ? subscription.paused_at : null;
|
|
20
|
+
this.canceledAt = subscription.canceled_at ? subscription.canceled_at : null;
|
|
21
|
+
this.discount = subscription.discount ? new index_1.SubscriptionDiscountNotification(subscription.discount) : null;
|
|
22
|
+
this.collectionMode = subscription.collection_mode;
|
|
23
|
+
this.billingDetails = subscription.billing_details
|
|
24
|
+
? new index_1.BillingDetailsNotification(subscription.billing_details)
|
|
25
|
+
: null;
|
|
26
|
+
this.currentBillingPeriod = subscription.current_billing_period
|
|
27
|
+
? new index_1.SubscriptionTimePeriodNotification(subscription.current_billing_period)
|
|
28
|
+
: null;
|
|
29
|
+
this.billingCycle = new index_1.TimePeriodNotification(subscription.billing_cycle);
|
|
30
|
+
this.scheduledChange = subscription.scheduled_change
|
|
31
|
+
? new index_1.SubscriptionScheduledChangeNotification(subscription.scheduled_change)
|
|
32
|
+
: null;
|
|
33
|
+
this.items = subscription.items.map((item) => new index_1.SubscriptionItemNotification(item));
|
|
34
|
+
this.customData = subscription.custom_data ? subscription.custom_data : null;
|
|
35
|
+
this.importMeta = subscription.import_meta ? new index_1.ImportMetaNotification(subscription.import_meta) : null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.SubscriptionCreatedNotification = SubscriptionCreatedNotification;
|
|
@@ -6,7 +6,6 @@ class SubscriptionNotification {
|
|
|
6
6
|
constructor(subscription) {
|
|
7
7
|
this.id = subscription.id;
|
|
8
8
|
this.status = subscription.status;
|
|
9
|
-
this.transactionId = subscription.transaction_id ? subscription.transaction_id : null;
|
|
10
9
|
this.customerId = subscription.customer_id;
|
|
11
10
|
this.addressId = subscription.address_id;
|
|
12
11
|
this.businessId = subscription.business_id ? subscription.business_id : null;
|
|
@@ -8,7 +8,7 @@ class SubscriptionCreatedEvent extends event_1.Event {
|
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.SubscriptionCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.SubscriptionCreatedNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.SubscriptionCreatedEvent = SubscriptionCreatedEvent;
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./subscription-created-notification-response"), exports);
|
|
17
18
|
__exportStar(require("./subscription-discount-notification-response"), exports);
|
|
18
19
|
__exportStar(require("./subscription-time-period-notification-response"), exports);
|
|
19
20
|
__exportStar(require("./subscription-scheduled-change-notification-response"), exports);
|
package/dist/cjs/version.js
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BillingDetailsNotification, ImportMetaNotification, SubscriptionDiscountNotification, SubscriptionItemNotification, SubscriptionScheduledChangeNotification, SubscriptionTimePeriodNotification, TimePeriodNotification, } from '../index';
|
|
2
|
+
export class SubscriptionCreatedNotification {
|
|
3
|
+
constructor(subscription) {
|
|
4
|
+
this.id = subscription.id;
|
|
5
|
+
this.status = subscription.status;
|
|
6
|
+
this.transactionId = subscription.transaction_id;
|
|
7
|
+
this.customerId = subscription.customer_id;
|
|
8
|
+
this.addressId = subscription.address_id;
|
|
9
|
+
this.businessId = subscription.business_id ? subscription.business_id : null;
|
|
10
|
+
this.currencyCode = subscription.currency_code;
|
|
11
|
+
this.createdAt = subscription.created_at;
|
|
12
|
+
this.updatedAt = subscription.updated_at;
|
|
13
|
+
this.startedAt = subscription.started_at ? subscription.started_at : null;
|
|
14
|
+
this.firstBilledAt = subscription.first_billed_at ? subscription.first_billed_at : null;
|
|
15
|
+
this.nextBilledAt = subscription.next_billed_at ? subscription.next_billed_at : null;
|
|
16
|
+
this.pausedAt = subscription.paused_at ? subscription.paused_at : null;
|
|
17
|
+
this.canceledAt = subscription.canceled_at ? subscription.canceled_at : null;
|
|
18
|
+
this.discount = subscription.discount ? new SubscriptionDiscountNotification(subscription.discount) : null;
|
|
19
|
+
this.collectionMode = subscription.collection_mode;
|
|
20
|
+
this.billingDetails = subscription.billing_details
|
|
21
|
+
? new BillingDetailsNotification(subscription.billing_details)
|
|
22
|
+
: null;
|
|
23
|
+
this.currentBillingPeriod = subscription.current_billing_period
|
|
24
|
+
? new SubscriptionTimePeriodNotification(subscription.current_billing_period)
|
|
25
|
+
: null;
|
|
26
|
+
this.billingCycle = new TimePeriodNotification(subscription.billing_cycle);
|
|
27
|
+
this.scheduledChange = subscription.scheduled_change
|
|
28
|
+
? new SubscriptionScheduledChangeNotification(subscription.scheduled_change)
|
|
29
|
+
: null;
|
|
30
|
+
this.items = subscription.items.map((item) => new SubscriptionItemNotification(item));
|
|
31
|
+
this.customData = subscription.custom_data ? subscription.custom_data : null;
|
|
32
|
+
this.importMeta = subscription.import_meta ? new ImportMetaNotification(subscription.import_meta) : null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -3,7 +3,6 @@ export class SubscriptionNotification {
|
|
|
3
3
|
constructor(subscription) {
|
|
4
4
|
this.id = subscription.id;
|
|
5
5
|
this.status = subscription.status;
|
|
6
|
-
this.transactionId = subscription.transaction_id ? subscription.transaction_id : null;
|
|
7
6
|
this.customerId = subscription.customer_id;
|
|
8
7
|
this.addressId = subscription.address_id;
|
|
9
8
|
this.businessId = subscription.business_id ? subscription.business_id : null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { SubscriptionCreatedNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionCreatedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
7
7
|
this.eventType = EventName.SubscriptionCreated;
|
|
8
|
-
this.data = new
|
|
8
|
+
this.data = new SubscriptionCreatedNotification(response.data);
|
|
9
9
|
}
|
|
10
10
|
}
|
package/dist/esm/notifications/types/subscription/subscription-created-notification-response.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '1.9.
|
|
1
|
+
export const SDK_VERSION = '1.9.1';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BillingDetailsNotification, ImportMetaNotification, SubscriptionDiscountNotification, SubscriptionItemNotification, SubscriptionScheduledChangeNotification, SubscriptionTimePeriodNotification, TimePeriodNotification } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums';
|
|
3
|
+
import { type ISubscriptionCreatedNotificationResponse } from '../../types';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class SubscriptionCreatedNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly status: SubscriptionStatus;
|
|
8
|
+
readonly transactionId: string;
|
|
9
|
+
readonly customerId: string;
|
|
10
|
+
readonly addressId: string;
|
|
11
|
+
readonly businessId: string | null;
|
|
12
|
+
readonly currencyCode: CurrencyCode;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
readonly startedAt: string | null;
|
|
16
|
+
readonly firstBilledAt: string | null;
|
|
17
|
+
readonly nextBilledAt: string | null;
|
|
18
|
+
readonly pausedAt: string | null;
|
|
19
|
+
readonly canceledAt: string | null;
|
|
20
|
+
readonly discount: SubscriptionDiscountNotification | null;
|
|
21
|
+
readonly collectionMode: CollectionMode;
|
|
22
|
+
readonly billingDetails: BillingDetailsNotification | null;
|
|
23
|
+
readonly currentBillingPeriod: SubscriptionTimePeriodNotification | null;
|
|
24
|
+
readonly billingCycle: TimePeriodNotification;
|
|
25
|
+
readonly scheduledChange: SubscriptionScheduledChangeNotification | null;
|
|
26
|
+
readonly items: SubscriptionItemNotification[];
|
|
27
|
+
readonly customData: CustomData | null;
|
|
28
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
29
|
+
constructor(subscription: ISubscriptionCreatedNotificationResponse);
|
|
30
|
+
}
|
|
@@ -5,7 +5,6 @@ import { type CustomData } from '../../../entities';
|
|
|
5
5
|
export declare class SubscriptionNotification {
|
|
6
6
|
readonly id: string;
|
|
7
7
|
readonly status: SubscriptionStatus;
|
|
8
|
-
readonly transactionId: string | null;
|
|
9
8
|
readonly customerId: string;
|
|
10
9
|
readonly addressId: string;
|
|
11
10
|
readonly businessId: string | null;
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionActivatedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionActivated;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionCanceledEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionCanceled;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { SubscriptionCreatedNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
4
|
import { type IEventsResponse } from '../../../types';
|
|
5
|
-
import { type
|
|
5
|
+
import { type ISubscriptionCreatedNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionCreatedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionCreated;
|
|
8
|
-
readonly data:
|
|
9
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: SubscriptionCreatedNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ISubscriptionCreatedNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionImportedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionImported;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionPastDueEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionPastDue;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionPausedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionPaused;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionResumedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionResumed;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionTrialingEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionTrialing;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
|
@@ -5,6 +5,6 @@ import { type IEventsResponse } from '../../../types';
|
|
|
5
5
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
6
6
|
export declare class SubscriptionUpdatedEvent extends Event {
|
|
7
7
|
readonly eventType = EventName.SubscriptionUpdated;
|
|
8
|
-
readonly data:
|
|
8
|
+
readonly data: SubscriptionNotification;
|
|
9
9
|
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
10
10
|
}
|
package/dist/types/notifications/types/subscription/subscription-created-notification-response.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IBillingDetailsNotificationResponse, type IImportMetaNotificationResponse, type ISubscriptionDiscountNotificationResponse, type ISubscriptionItemNotificationResponse, type ISubscriptionScheduledChangeNotificationResponse, type ISubscriptionTimePeriodNotificationResponse, type ITimePeriodNotification } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums';
|
|
3
|
+
import { type ICustomData } from '../../../types';
|
|
4
|
+
export interface ISubscriptionCreatedNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: SubscriptionStatus;
|
|
7
|
+
transaction_id: string;
|
|
8
|
+
customer_id: string;
|
|
9
|
+
address_id: string;
|
|
10
|
+
business_id?: string | null;
|
|
11
|
+
currency_code: CurrencyCode;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
started_at?: string | null;
|
|
15
|
+
first_billed_at?: string | null;
|
|
16
|
+
next_billed_at?: string | null;
|
|
17
|
+
paused_at?: string | null;
|
|
18
|
+
canceled_at?: string | null;
|
|
19
|
+
discount?: ISubscriptionDiscountNotificationResponse | null;
|
|
20
|
+
collection_mode: CollectionMode;
|
|
21
|
+
billing_details?: IBillingDetailsNotificationResponse | null;
|
|
22
|
+
current_billing_period?: ISubscriptionTimePeriodNotificationResponse | null;
|
|
23
|
+
billing_cycle: ITimePeriodNotification;
|
|
24
|
+
scheduled_change?: ISubscriptionScheduledChangeNotificationResponse | null;
|
|
25
|
+
items: ISubscriptionItemNotificationResponse[];
|
|
26
|
+
custom_data?: ICustomData | null;
|
|
27
|
+
import_meta?: IImportMetaNotificationResponse | null;
|
|
28
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications';
|
|
1
|
+
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionCreatedNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications';
|
|
2
2
|
export interface IEventsResponse<T = object> {
|
|
3
3
|
event_id: string;
|
|
4
4
|
notification_id: string | null;
|
|
@@ -78,7 +78,7 @@ interface ISubscriptionActivated extends IEventsResponse<ISubscriptionNotificati
|
|
|
78
78
|
interface ISubscriptionCanceled extends IEventsResponse<ISubscriptionNotificationResponse> {
|
|
79
79
|
event_type: EventName.SubscriptionCanceled;
|
|
80
80
|
}
|
|
81
|
-
interface ISubscriptionCreated extends IEventsResponse<
|
|
81
|
+
interface ISubscriptionCreated extends IEventsResponse<ISubscriptionCreatedNotificationResponse> {
|
|
82
82
|
event_type: EventName.SubscriptionCreated;
|
|
83
83
|
}
|
|
84
84
|
interface ISubscriptionImported extends IEventsResponse<ISubscriptionNotificationResponse> {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.9.
|
|
1
|
+
export declare const SDK_VERSION = "1.9.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
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",
|