Skip to content

Commit

Permalink
chore(release): 1.0.1 [skip ci]
Browse files Browse the repository at this point in the history
## [1.0.1](v1.0.0...v1.0.1) (2020-12-07)

### Bug Fixes

* export Eligibility class from top-level index ([7212dbf](7212dbf))
  • Loading branch information
github-actions committed Dec 7, 2020
1 parent 7212dbf commit 33ebf29
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.0.1](https://github.com/alma/alma-js-client/compare/v1.0.0...v1.0.1) (2020-12-07)


### Bug Fixes

* export Eligibility class from top-level index ([7212dbf](https://github.com/alma/alma-js-client/commit/7212dbf0f0d06cc7232e8fc891e6b426cfbb52d9))

# 1.0.0 (2020-11-17)


Expand Down
2 changes: 1 addition & 1 deletion dist/alma-client.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.m.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.m.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alma-client.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/types/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApiMode } from './consts';
import PaymentsEndpoint from './endpoints/payments';
import Credentials from './credentials/base';
export declare const CLIENT_VERSION = "1.0.0";
export declare const CLIENT_VERSION = "1.0.1";
export declare type ApiRootObject = Record<ApiMode, string>;
export interface ClientConfig {
apiRoot: ApiRootObject;
Expand Down
5 changes: 3 additions & 2 deletions dist/types/endpoints/payments.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Endpoint from './base';
import { PaymentEligibilityPayload } from '../types';
import { MultipleEligibilityPayload, PaymentEligibilityPayload } from '../types';
import Eligibility from '../entities/eligibility';
declare type EligibilityResult<T extends PaymentEligibilityPayload> = T['payment'] extends MultipleEligibilityPayload ? Eligibility[] : Eligibility;
export declare class PaymentsEndpoint extends Endpoint {
eligibility(data: PaymentEligibilityPayload): Promise<Eligibility | Eligibility[]>;
eligibility<T extends PaymentEligibilityPayload>(data: T): Promise<EligibilityResult<T>>;
}
export default PaymentsEndpoint;
1 change: 1 addition & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ import 'core-js/stable/string/ends-with';
import 'regenerator-runtime/runtime';
export { Client, ClientOptions } from './client';
export { ApiMode } from './consts';
export { Eligibility } from './entities/eligibility';
10 changes: 7 additions & 3 deletions dist/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ interface PaymentPayloadBase {
orders?: OrderData[];
order?: OrderData;
}
export declare type SingleEligibilityPayload = {
installments_count?: integer;
};
export declare type MultipleEligibilityPayload = {
installments_count?: integer[];
};
export interface PaymentEligibilityPayload extends PaymentPayloadBase {
payment: Omit<PartialBy<PaymentDataProps, 'return_url'>, 'installments_count'> & {
installments_count?: integer | integer[];
};
payment: Omit<PartialBy<PaymentDataProps, 'return_url'>, 'installments_count'> & (SingleEligibilityPayload | MultipleEligibilityPayload);
}
export interface PaymentPayload extends PaymentPayloadBase {
payment: AtLeastOne<PaymentDataProps, 'billing_address' | 'shipping_address'>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alma/client",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript client library for Alma API - https://getalma.eu",
"keywords": [],
"main": "dist/alma-client.js",
Expand Down

0 comments on commit 33ebf29

Please sign in to comment.