Skip to content

Commit

Permalink
chore(deps-dev): bump the npm group across 1 directory with 15 updates (
Browse files Browse the repository at this point in the history
#94)

* chore(deps-dev): bump the npm group across 1 directory with 15 updates

Bumps the npm group with 15 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.23.0` | `7.26.0` |
| [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.22.20` | `7.26.0` |
| [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) | `7.23.0` | `7.26.0` |
| [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) | `29.5.6` | `29.5.14` |
| [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) | `4.14.202` | `4.17.13` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.6.0` | `22.10.2` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.7.5` | `8.18.1` |
| [dotenv](https://github.com/motdotla/dotenv) | `16.3.1` | `16.4.7` |
| [eslint](https://github.com/eslint/eslint) | `8.51.0` | `9.17.0` |
| [eslint-config-standard-with-typescript](https://github.com/mightyiam/eslint-config-standard-with-typescript) | `39.1.1` | `43.0.1` |
| [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) | `2.28.1` | `2.31.0` |
| [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) | `16.2.0` | `17.15.1` |
| [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise) | `6.1.1` | `7.2.1` |
| [prettier](https://github.com/prettier/prettier) | `3.0.3` | `3.4.2` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.2.2` | `5.7.2` |



Updates `@babel/core` from 7.23.0 to 7.26.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-core)

Updates `@babel/preset-env` from 7.22.20 to 7.26.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-preset-env)

Updates `@babel/preset-typescript` from 7.23.0 to 7.26.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-preset-typescript)

Updates `@types/jest` from 29.5.6 to 29.5.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Updates `@types/lodash` from 4.14.202 to 4.17.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Updates `@types/node` from 20.6.0 to 22.10.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@typescript-eslint/eslint-plugin` from 6.7.5 to 8.18.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.18.1/packages/eslint-plugin)

Updates `dotenv` from 16.3.1 to 16.4.7
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v16.3.1...v16.4.7)

Updates `eslint` from 8.51.0 to 9.17.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.51.0...v9.17.0)

Updates `eslint-config-standard-with-typescript` from 39.1.1 to 43.0.1
- [Release notes](https://github.com/mightyiam/eslint-config-standard-with-typescript/releases)
- [Changelog](https://github.com/mightyiam/eslint-config-love/blob/main/CHANGELOG.md)
- [Commits](mightyiam/eslint-config-love@v39.1.1...v43.0.1)

Updates `eslint-plugin-import` from 2.28.1 to 2.31.0
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](import-js/eslint-plugin-import@v2.28.1...v2.31.0)

Updates `eslint-plugin-n` from 16.2.0 to 17.15.1
- [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-n/blob/master/CHANGELOG.md)
- [Commits](eslint-community/eslint-plugin-n@16.2.0...v17.15.1)

Updates `eslint-plugin-promise` from 6.1.1 to 7.2.1
- [Release notes](https://github.com/eslint-community/eslint-plugin-promise/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-promise/blob/main/CHANGELOG.md)
- [Commits](eslint-community/eslint-plugin-promise@v6.1.1...v7.2.1)

Updates `prettier` from 3.0.3 to 3.4.2
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.0.3...3.4.2)

Updates `typescript` from 5.2.2 to 5.7.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.2.2...v5.7.2)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@babel/preset-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: eslint-config-standard-with-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: eslint-plugin-n
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: eslint-plugin-promise
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(dependabot): Package updates

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vijayasingam Thanasekaran <[email protected]>
Co-authored-by: Vijayasingam Thanasekaran <[email protected]>
  • Loading branch information
3 people authored Jan 6, 2025
1 parent 4f7d37e commit a8e6b07
Show file tree
Hide file tree
Showing 36 changed files with 2,076 additions and 1,261 deletions.
31 changes: 0 additions & 31 deletions .eslintrc.yml

This file was deleted.

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,55 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a

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.

## 2.3.1 - 2025-01-06

### Fixed

- Dependabot updates

---

## 2.3.0 - 2025-01-06

### Added

- Added `onResume` property to subscription resume and pause operations to [control billing for subscriptions when resuming](https://developer.paddle.com/changelog/2024/resume-subscription-billing-period-options)

---

## 2.2.2 - 2024-12-16

### Fixed

- `discount.startsAt` for Subscriptions can now be `null`

---

## 2.2.1 - 2024-12-16

### Fixed

- Added `proration` to transaction line items

---

## 2.2.0 - 2024-12-12

### Added

- `VND` (Vietnamese dong) as new currency
- Added `adjustment.type` which is either `partial` which should include `items` or `full` where `items` are not required

---

## 2.1.3 - 2024-11-29

### Changed

- `paddle.webhooks.unmarshal` will now return an event for unhandled event types instead of `null` this is only possible for legacy/no longer supported events or for new events that have not been added to the sdk yet

---

## 2.1.2 - 2024-11-26

### Fixed
Expand All @@ -53,6 +71,8 @@ This means when upgrading minor versions of the SDK, you may notice type errors.

- ESLint rule to ensure `.js` extension is provided

---

## 2.1.1 - 2024-11-25

### Fixed
Expand All @@ -65,6 +85,8 @@ This means when upgrading minor versions of the SDK, you may notice type errors.

- Added `customerPortalSessions` resources

---

## 2.0.0 - 2024-11-20

> **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
Expand Down
40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
import importPlugin from 'eslint-plugin-import';

/** @type {import('eslint').Linter.Config[]} */
export default [
pluginJs.configs.recommended,
importPlugin.flatConfigs.recommended,
...tseslint.configs.strict,
stylistic.configs['recommended-flat'],
{
files: ['**/*.ts'],
languageOptions: {
globals: globals.node,
},
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
rules: {
'@typescript-eslint/no-extraneous-class': 'off',
'@stylistic/semi': 'off',
'@stylistic/member-delimiter-style': 'off',
'@stylistic/quotes': 'off',
'@stylistic/quote-props': 'off',
'@stylistic/brace-style': 'off',
'@stylistic/arrow-parens': 'off',
'@stylistic/operator-linebreak': 'off',
'import/no-unresolved': 'off',
'import/extensions': [
'error',
'always',
{
js: 'always',
},
],
},
},
];
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paddle/paddle-node-sdk",
"version": "2.3.0",
"version": "2.3.1",
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
"main": "dist/cjs/index.cjs.node.js",
"module": "dist/esm/index.esm.node.js",
Expand All @@ -17,8 +17,8 @@
"build-types": "tsc -b tsconfig.types.json",
"prettier": "prettier --check ./src",
"prettier:fix": "prettier --check ./src --write",
"lint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --ext .ts,.tsx ./src --fix",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"clean": "rm -rf ./dist",
"release:rc": "yarn version --prerelease --preid rc --no-git-tag-version --no-commit-hooks",
"publish:rc": "yarn publish --tag rc --access public",
Expand All @@ -43,20 +43,24 @@
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.22.20",
"@babel/preset-typescript": "^7.23.0",
"@eslint/js": "^9.17.0",
"@stylistic/eslint-plugin": "^2.12.1",
"@types/jest": "^29.5.6",
"@types/lodash": "^4.14.202",
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"babel-jest": "^29.7.0",
"dotenv": "^16.3.1",
"eslint": "^8.0.1",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint": "^9.17.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^16.0.0 ",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-n": "^17.15.1 ",
"eslint-plugin-promise": "^7.2.1",
"globals": "^15.14.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"typescript-eslint": "^8.19.0"
},
"exports": {
"types": "./dist/types/index.cjs.node.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { ICustomerPortalSessionResponse } from '../../../types/index.js';
import { Response, ResponsePaginated } from '../../../internal/index.js';
import { Response } from '../../../internal/index.js';

export const CustomerPortalSessionMock: ICustomerPortalSessionResponse = {
id: 'cpls_01h4ge9r64c22exjsx0fy8b48b',
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/notifications/notifications-parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe('Notifications Parser', () => {
[TransactionUpdatedMock.event_type, TransactionUpdatedMock, TransactionUpdatedMockExpectation],
// Generic Event
[InvoicePaidMock.event_type, InvoicePaidMock, InvoicePaidMockExpectation],
])('validate %s ', (_eventType: string, eventMock: IEventsResponse, expectedValue: any = {}) => {
])('validate %s ', (_eventType: string, eventMock: IEventsResponse, expectedValue: unknown = {}) => {
expect(Webhooks.fromJson(eventMock as IEvents)).toEqual(expectedValue);
});
});
2 changes: 1 addition & 1 deletion src/__tests__/resources/addresses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('AddressesResource', () => {
};

const addressCollection = addressesResource.list('ctm_1234', queryParams);
let addresses = await addressCollection.next();
const addresses = await addressCollection.next();

expect(paddleInstance.get).toBeCalledWith('/customers/ctm_1234/addresses?after=2&id=1234');
expect(addresses.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/adjustments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('AdjustmentsResource', () => {
};

const adjustmentCollection = adjustmentsResource.list(queryParams);
let adjustments = await adjustmentCollection.next();
const adjustments = await adjustmentCollection.next();

expect(paddleInstance.get).toBeCalledWith('/adjustments?after=2&id=1234');
expect(adjustments.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/businesses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('BusinessesResource', () => {
};

const businessCollection = businessesResource.list('ctm_1234', queryParams);
let businesses = await businessCollection.next();
const businesses = await businessCollection.next();

expect(paddleInstance.get).toBeCalledWith('/customers/ctm_1234/businesses?after=2&id=1234');
expect(businesses.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/customers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('CustomersResource', () => {
};

const customerCollection = customersResource.list(queryParams);
let customers = await customerCollection.next();
const customers = await customerCollection.next();

expect(paddleInstance.get).toBeCalledWith('/customers?after=2&id=1234');
expect(customers.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/discounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('DiscountsResource', () => {
};

const discountCollection = discountsResource.list(queryParams);
let discounts = await discountCollection.next();
const discounts = await discountCollection.next();

expect(paddleInstance.get).toBeCalledWith('/discounts?after=2&id=1234');
expect(discounts.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('EventsResource', () => {
};

const eventCollection = eventsResource.list(queryParams);
let events = await eventCollection.next();
const events = await eventCollection.next();

expect(paddleInstance.get).toBeCalledWith('/events?after=2&order_by=id%5BASC%5D');
expect(events.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/notifications.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('NotificationsResource', () => {
};

const notificationCollection = notificationsResource.list(queryParams);
let notifications = await notificationCollection.next();
const notifications = await notificationCollection.next();

expect(paddleInstance.get).toBeCalledWith('/notifications?after=2&notification_setting_id=ntfset_1234');
expect(notifications.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/payment-methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('PaymentMethodsResource', () => {
};

const paymentMethodCollection = paymentMethodsResource.list(customerId, queryParams);
let paymentMethods = await paymentMethodCollection.next();
const paymentMethods = await paymentMethodCollection.next();

expect(paddleInstance.get).toBeCalledWith(`/customers/${customerId}/payment-methods?after=2&address_id=adr_123`);
expect(paymentMethods.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/prices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('PricesResource', () => {
};

const priceCollection = pricesResource.list(queryParams);
let prices = await priceCollection.next();
const prices = await priceCollection.next();

expect(paddleInstance.get).toBeCalledWith('/prices?after=2&id=1234');
expect(prices.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/products.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('ProductsResource', () => {
};

const productCollection = productsResource.list(queryParams);
let products = await productCollection.next();
const products = await productCollection.next();

expect(paddleInstance.get).toBeCalledWith('/products?after=2&id=1234&include=price');
expect(products.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/reports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('ReportsResource', () => {
};

const reportCollection = reportsResource.list(queryParams);
let reports = await reportCollection.next();
const reports = await reportCollection.next();

expect(paddleInstance.get).toBeCalledWith('/reports?after=2');
expect(reports.length).toBe(1);
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/resources/simulation-run-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import { SimulationRunEventsResource, type ListSimulationRunEventsQueryParameters } from '../../resources/index.js';
import { getPaddleTestClient } from '../helpers/test-client.js';
import { ListSimulationRunEventMockResponse } from '../mocks/resources/simulation-run-events.mock.js';
import {
SimulationRunEventMock,
SimulationRunEventMockResponse,
ListSimulationRunEventMockResponse,
} from '../mocks/resources/simulation-run-events.mock.js';

const simulationId = 'ntfsim_123';
Expand Down Expand Up @@ -42,7 +42,7 @@ describe('SimulationRunEventsResource', () => {
};

const simulationRunEventCollection = simulationRunEventsResource.list(simulationId, simulationRunId, queryParams);
let simulationRunEvents = await simulationRunEventCollection.next();
const simulationRunEvents = await simulationRunEventCollection.next();

expect(paddleInstance.get).toBeCalledWith(
`/simulations/${simulationId}/runs/${simulationRunId}/events?after=2&id=1234`,
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/simulation-runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('SimulationRunsResource', () => {
};

const simulationRunCollection = simulationRunsResource.list(simulationId, queryParams);
let simulationRuns = await simulationRunCollection.next();
const simulationRuns = await simulationRunCollection.next();

expect(paddleInstance.get).toBeCalledWith(`/simulations/${simulationId}/runs?after=2&id=1234&include=price`);
expect(simulationRuns.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/simulations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('SimulationsResource', () => {
};

const simulationCollection = simulationsResource.list(queryParams);
let simulations = await simulationCollection.next();
const simulations = await simulationCollection.next();

expect(paddleInstance.get).toBeCalledWith('/simulations?after=2&id=1234');
expect(simulations.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/subscriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('SubscriptionsResource', () => {
};

const subscriptionCollection = subscriptionsResource.list(queryParams);
let subscriptions = await subscriptionCollection.next();
const subscriptions = await subscriptionCollection.next();

expect(paddleInstance.get).toBeCalledWith('/subscriptions?after=2&id=1234');
expect(subscriptions.length).toBe(1);
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/resources/transactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('TransactionsResource', () => {
};

const transactionCollection = transactionsResource.list(queryParams);
let transactions = await transactionCollection.next();
const transactions = await transactionCollection.next();

expect(paddleInstance.get).toBeCalledWith(
'/transactions?after=2&id=1234&created_at%5BGTE%5D=2024-09-10T15%3A38%3A35.675098Z',
Expand Down
5 changes: 2 additions & 3 deletions src/entities/customer-portal-session/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export class Urls {

constructor(urlsResponse: IUrlsResponse) {
this.general = new General(urlsResponse.general);
this.subscriptions = urlsResponse.subscriptions?.map(
(subscription) => new CustomerPortalSubscriptionUrl(subscription) ?? [],
);
this.subscriptions =
urlsResponse.subscriptions?.map((subscription) => new CustomerPortalSubscriptionUrl(subscription)) ?? [];
}
}
1 change: 1 addition & 0 deletions src/entities/notifications/notification-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class NotificationLog {
public readonly responseBody: string;
public readonly attemptedAt: string;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(notificationLogResponse: any) {
this.id = notificationLogResponse.id;
this.responseCode = notificationLogResponse.response_code;
Expand Down
1 change: 1 addition & 0 deletions src/entities/simulation-run-event/simulation-run-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class SimulationRunEvent {
public readonly id: string;
public readonly status: SimulationRunEventStatus;
public readonly eventType: IEventName | SimulationScenarioType;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Payload is a generic object that can be any type
public readonly payload: any;
public readonly request: SimulationEventRequest | null;
public readonly response: SimulationEventResponse | null;
Expand Down
Loading

0 comments on commit a8e6b07

Please sign in to comment.