Skip to content

Commit 1b75f52

Browse files
authored
Merge pull request #143 from moneytree/upgrade-typescript
build(all) upgrade typescript to 4.9.5
2 parents 6fc3b56 + ab74095 commit 1b75f52

File tree

3 files changed

+114
-64
lines changed

3 files changed

+114
-64
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typings.d.ts

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export declare const supportedAuthAction: readonly ["login", "signup"];
2-
export declare type AuthAction = typeof supportedAuthAction[number];
2+
export type AuthAction = typeof supportedAuthAction[number];
33
export interface PrivateParams {
44
cobrandClientId?: string;
55
samlSubjectId?: string;
@@ -9,7 +9,7 @@ export interface PrivateConfigsOptions {
99
sdkVersion?: string;
1010
}
1111
export declare const supportedAuthnMethod: readonly ["passwordless", "sso", "credentials"];
12-
export declare type AuthnMethod = typeof supportedAuthnMethod[number];
12+
export type AuthnMethod = typeof supportedAuthnMethod[number];
1313
export interface ConfigsOptions extends PrivateConfigsOptions {
1414
email?: string;
1515
backTo?: string;
@@ -20,43 +20,43 @@ export interface ConfigsOptions extends PrivateConfigsOptions {
2020
forceLogout?: boolean;
2121
authnMethod?: AuthnMethod;
2222
}
23-
export declare type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
24-
export declare type VaultViewServiceList = {
23+
export type ConfigsOptionsWithoutIsNewTab = Omit<ConfigsOptions, 'isNewTab'>;
24+
export type VaultViewServiceList = {
2525
view: 'services-list';
2626
group?: 'grouping_bank' | 'grouping_bank_credit_card' | 'grouping_bank_dc_card' | 'grouping_corporate_credit_card' | 'grouping_credit_card' | 'grouping_credit_coop' | 'grouping_credit_union' | 'grouping_dc_pension_plan' | 'grouping_debit_card' | 'grouping_digital_money' | 'grouping_ja_bank' | 'grouping_life_insurance' | 'grouping_point' | 'grouping_regional_bank' | 'grouping_stock' | 'grouping_testing';
2727
type?: 'bank' | 'credit_card' | 'stored_value' | 'point' | 'corporate';
2828
search?: string;
2929
};
30-
export declare type VaultViewServiceConnection = {
30+
export type VaultViewServiceConnection = {
3131
view: 'service-connection';
3232
entityKey: string;
3333
};
34-
export declare type VaultViewConnectionSetting = {
34+
export type VaultViewConnectionSetting = {
3535
view: 'connection-setting';
3636
credentialId: string;
3737
};
38-
export declare type VaultViewCustomerSupport = {
38+
export type VaultViewCustomerSupport = {
3939
view: 'customer-support';
4040
};
41-
export declare type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewCustomerSupport;
42-
export declare type MyAccountServiceTypes = {
41+
export type VaultServiceTypes = VaultViewServiceList | VaultViewServiceConnection | VaultViewConnectionSetting | VaultViewCustomerSupport;
42+
export type MyAccountServiceTypes = {
4343
view: LoginLinkTo;
4444
};
45-
export declare type MyAccountOpenServiceOptions = ConfigsOptions | (ConfigsOptions & MyAccountServiceTypes);
46-
export declare type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab | (ConfigsOptionsWithoutIsNewTab & MyAccountServiceTypes);
47-
export declare type VaultOpenServiceViewServiceList = ConfigsOptions & VaultViewServiceList;
48-
export declare type VaultOpenServiceViewServiceConnection = ConfigsOptions & VaultViewServiceConnection;
49-
export declare type VaultOpenServiceViewConnectionSetting = ConfigsOptions & VaultViewConnectionSetting;
50-
export declare type VaultOpenServiceViewCustomerSupport = ConfigsOptions & VaultViewCustomerSupport;
51-
export declare type VaultOpenServiceUrlViewServiceList = ConfigsOptionsWithoutIsNewTab & VaultViewServiceList;
52-
export declare type VaultOpenServiceUrlViewServiceConnection = ConfigsOptionsWithoutIsNewTab & VaultViewServiceConnection;
53-
export declare type VaultOpenServiceUrlViewConnectionSetting = ConfigsOptionsWithoutIsNewTab & VaultViewConnectionSetting;
54-
export declare type VaultOpenServiceUrlViewCustomerSupport = ConfigsOptionsWithoutIsNewTab & VaultViewCustomerSupport;
55-
export declare type LinkKitOpenServiceOptions = ConfigsOptions;
56-
export declare type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
57-
export declare type OpenServiceOptions = MyAccountOpenServiceOptions | ConfigsOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
58-
export declare type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | ConfigsOptionsWithoutIsNewTab | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
59-
export declare type Scopes = string | string[];
45+
export type MyAccountOpenServiceOptions = ConfigsOptions | (ConfigsOptions & MyAccountServiceTypes);
46+
export type MyAccountOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab | (ConfigsOptionsWithoutIsNewTab & MyAccountServiceTypes);
47+
export type VaultOpenServiceViewServiceList = ConfigsOptions & VaultViewServiceList;
48+
export type VaultOpenServiceViewServiceConnection = ConfigsOptions & VaultViewServiceConnection;
49+
export type VaultOpenServiceViewConnectionSetting = ConfigsOptions & VaultViewConnectionSetting;
50+
export type VaultOpenServiceViewCustomerSupport = ConfigsOptions & VaultViewCustomerSupport;
51+
export type VaultOpenServiceUrlViewServiceList = ConfigsOptionsWithoutIsNewTab & VaultViewServiceList;
52+
export type VaultOpenServiceUrlViewServiceConnection = ConfigsOptionsWithoutIsNewTab & VaultViewServiceConnection;
53+
export type VaultOpenServiceUrlViewConnectionSetting = ConfigsOptionsWithoutIsNewTab & VaultViewConnectionSetting;
54+
export type VaultOpenServiceUrlViewCustomerSupport = ConfigsOptionsWithoutIsNewTab & VaultViewCustomerSupport;
55+
export type LinkKitOpenServiceOptions = ConfigsOptions;
56+
export type LinkKitOpenServiceUrlOptions = ConfigsOptionsWithoutIsNewTab;
57+
export type OpenServiceOptions = MyAccountOpenServiceOptions | ConfigsOptions | VaultOpenServiceViewServiceList | VaultOpenServiceViewConnectionSetting | VaultOpenServiceViewCustomerSupport | LinkKitOpenServiceOptions;
58+
export type OpenServiceUrlOptions = MyAccountOpenServiceUrlOptions | ConfigsOptionsWithoutIsNewTab | VaultOpenServiceUrlViewServiceList | VaultOpenServiceUrlViewConnectionSetting | VaultOpenServiceUrlViewCustomerSupport | LinkKitOpenServiceUrlOptions;
59+
export type Scopes = string | string[];
6060
interface AuthorizeConfigsOptions {
6161
forceLogout?: boolean;
6262
}
@@ -69,9 +69,9 @@ export interface AuthorizeOptions extends OAuthSharedParams, ConfigsOptions, Aut
6969
codeChallenge?: string;
7070
pkce?: boolean;
7171
}
72-
export declare type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
73-
export declare type Mode = 'production' | 'staging' | 'develop' | 'local';
74-
export declare type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
72+
export type AuthorizeUrlOptions = Omit<AuthorizeOptions, 'isNewTab'>;
73+
export type Mode = 'production' | 'staging' | 'develop' | 'local';
74+
export type InitOptions = Omit<Omit<Omit<AuthorizeOptions, 'forceLogout'>, 'codeChallenge'>, 'pkce'> & PrivateParams & {
7575
mode?: Mode;
7676
locale?: string;
7777
};
@@ -83,12 +83,12 @@ export interface ExchangeTokenOptions extends OAuthSharedParams {
8383
code?: string;
8484
codeVerifier?: string;
8585
}
86-
export declare type LogoutOptions = ConfigsOptions;
87-
export declare type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
88-
export declare type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
89-
export declare type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
90-
export declare type ServiceId = 'vault' | 'myaccount' | 'link-kit';
91-
export declare type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
86+
export type LogoutOptions = ConfigsOptions;
87+
export type LogoutUrlOptions = Omit<ConfigsOptions, 'isNewTab'>;
88+
export type OnboardOptions = Omit<Omit<Omit<Omit<AuthorizeOptions, 'showAuthToggle'>, 'forceLogout'>, 'showRememberMe'>, 'authAction'>;
89+
export type OnboardUrlOptions = Omit<OnboardOptions, 'isNewTab'>;
90+
export type ServiceId = 'vault' | 'myaccount' | 'link-kit';
91+
export type LoginLinkTo = 'settings' | 'settings/authorized-applications' | 'settings/change-language' | 'settings/email-preferences' | 'settings/delete-account' | 'settings/update-email' | 'settings/update-password';
9292
export interface RequestLoginLinkOptions extends ConfigsOptions {
9393
loginLinkTo?: LoginLinkTo;
9494
}

0 commit comments

Comments
 (0)