@paddle/paddle-node-sdk 0.2.8 → 0.3.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 CHANGED
@@ -8,6 +8,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
 
9
9
  Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-node-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.
10
10
 
11
+ ## 0.3.0 - 2024-01-11
12
+
13
+ ### Changed
14
+
15
+ - The repo and the npm package is now generally available.
16
+
17
+ ---
18
+
19
+ ## 0.2.9 - 2024-01-11
20
+
21
+ ### Fixed
22
+
23
+ - Marked `endsAt` as optional in discount under Subscriptions entity.
24
+
25
+ ---
26
+
11
27
  ## 0.2.8 - 2024-01-09
12
28
 
13
29
  ### Fixed
@@ -2,6 +2,6 @@ import { type ISubscriptionDiscountResponse } from '../../types';
2
2
  export declare class SubscriptionDiscount {
3
3
  readonly id: string;
4
4
  readonly startsAt: string;
5
- readonly endsAt: string;
5
+ readonly endsAt: string | null;
6
6
  constructor(subscriptionDiscount: ISubscriptionDiscountResponse);
7
7
  }
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionDiscount = void 0;
4
4
  class SubscriptionDiscount {
5
5
  constructor(subscriptionDiscount) {
6
+ var _a;
6
7
  this.id = subscriptionDiscount.id;
7
8
  this.startsAt = subscriptionDiscount.starts_at;
8
- this.endsAt = subscriptionDiscount.ends_at;
9
+ this.endsAt = (_a = subscriptionDiscount.ends_at) !== null && _a !== void 0 ? _a : null;
9
10
  }
10
11
  }
11
12
  exports.SubscriptionDiscount = SubscriptionDiscount;
@@ -1,5 +1,5 @@
1
1
  export interface ISubscriptionDiscountResponse {
2
2
  id: string;
3
3
  starts_at: string;
4
- ends_at: string;
4
+ ends_at?: string | null;
5
5
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.8";
1
+ export declare const SDK_VERSION = "0.3.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '0.2.8';
4
+ exports.SDK_VERSION = '0.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paddle/paddle-node-sdk",
3
- "version": "0.2.8",
3
+ "version": "0.3.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/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "lint:fix": "eslint --ext .ts,.tsx ./src --fix",
15
15
  "clean": "rm -rf ./dist",
16
16
  "release:beta": "yarn version --prerelease --preid beta --no-git-tag-version --no-commit-hooks",
17
- "publish:beta": "yarn publish --tag beta",
18
- "publish:latest": "yarn publish"
17
+ "publish:beta": "yarn publish --tag beta --access public",
18
+ "publish:latest": "yarn publish --access public"
19
19
  },
20
20
  "files": [
21
21
  "dist"