@paddle/paddle-node-sdk 2.1.0 → 2.1.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 +6 -0
- package/dist/cjs/resources/customer-portal-sessions/index.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/esm/resources/customer-portal-sessions/index.js +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/resources/customer-portal-sessions/index.d.ts +1 -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
|
+
## 2.1.1 - 2024-11-25
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Updated imports to use `.js` extension
|
|
20
|
+
|
|
15
21
|
## 2.1.0 - 2024-11-21
|
|
16
22
|
|
|
17
23
|
### Added
|
|
@@ -11,14 +11,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CustomerPortalSessionsResource = void 0;
|
|
13
13
|
const index_js_1 = require("../../entities/index.js");
|
|
14
|
-
const
|
|
14
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
15
15
|
const CustomerPortalSessionPaths = {
|
|
16
16
|
create: '/customers/{customer_id}/portal-sessions',
|
|
17
17
|
};
|
|
18
|
-
class CustomerPortalSessionsResource extends
|
|
18
|
+
class CustomerPortalSessionsResource extends index_js_2.BaseResource {
|
|
19
19
|
create(customerId, subscriptionIds) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const urlWithPathParams = new
|
|
21
|
+
const urlWithPathParams = new index_js_2.PathParameters(CustomerPortalSessionPaths.create, {
|
|
22
22
|
customer_id: customerId,
|
|
23
23
|
}).deriveUrl();
|
|
24
24
|
const response = yield this.client.post(urlWithPathParams, {
|
package/dist/cjs/version.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { CustomerPortalSession } from '../../entities/index.js';
|
|
11
|
-
import { BaseResource, PathParameters } from '../../internal/base';
|
|
11
|
+
import { BaseResource, PathParameters } from '../../internal/base/index.js';
|
|
12
12
|
const CustomerPortalSessionPaths = {
|
|
13
13
|
create: '/customers/{customer_id}/portal-sessions',
|
|
14
14
|
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.1.
|
|
1
|
+
export const SDK_VERSION = '2.1.1';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomerPortalSession } from '../../entities/index.js';
|
|
2
|
-
import { BaseResource } from '../../internal/base';
|
|
2
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
3
3
|
export declare class CustomerPortalSessionsResource extends BaseResource {
|
|
4
4
|
create(customerId: string, subscriptionIds: string[]): Promise<CustomerPortalSession>;
|
|
5
5
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.1.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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.cjs.node.js",
|
|
6
6
|
"module": "dist/esm/index.esm.node.js",
|