@atomsolution/invoice-sdk-api 1.26.1 → 1.27.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/dist/auth.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare const PROVIDERS: IProvider[];
11
11
  * Returns a list of available providers
12
12
  * @returns {IProvider[]}
13
13
  */
14
- export declare function getListProviders(bank: string, mode: string): Promise<IProvider[]>;
14
+ export declare function getListProviders(mode: string, bank: string): Promise<IProvider[]>;
15
15
  /**
16
16
  * Save one provider info (encrypted)
17
17
  */
package/dist/index.esm.js CHANGED
@@ -124,11 +124,10 @@ const PROVIDERS = [
124
124
  logo: fptLogo
125
125
  }
126
126
  ];
127
- function getListProviders(bank, mode) {
127
+ function getListProviders(mode, bank) {
128
128
  return __async(this, null, function* () {
129
129
  const widget = yield loadSettingsFromCDN();
130
- const settings = widget.getSettings();
131
- const bankSettings = settings[mode][bank];
130
+ const bankSettings = widget.getSettings(mode, bank);
132
131
  const providers = PROVIDERS.map((provider) => {
133
132
  const { invoiceLookupUrl, sso } = bankSettings[provider.route];
134
133
  return __spreadProps(__spreadValues({}, provider), {