@atomsolution/invoice-sdk-api 1.25.1 → 1.26.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/dist/api.d.ts +206 -488
- package/dist/auth.d.ts +8 -8
- package/dist/index.esm.js +84 -97
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { Provider } from './configuration';
|
|
2
|
+
export declare function loadSettingsFromCDN(): Promise<any | undefined>;
|
|
2
3
|
export declare const STORAGE_KEY = "api_providers_cipher";
|
|
3
4
|
export interface IProvider {
|
|
4
5
|
name: string;
|
|
5
6
|
route: Provider | string;
|
|
6
7
|
logo: string;
|
|
7
|
-
invoiceLookupUrls: Record<string, string>;
|
|
8
8
|
}
|
|
9
9
|
export declare const PROVIDERS: IProvider[];
|
|
10
10
|
/**
|
|
11
11
|
* Returns a list of available providers
|
|
12
12
|
* @returns {IProvider[]}
|
|
13
13
|
*/
|
|
14
|
-
export declare function getListProviders(): IProvider[]
|
|
14
|
+
export declare function getListProviders(bank: string, mode: string): Promise<IProvider[]>;
|
|
15
15
|
/**
|
|
16
16
|
* Save one provider info (encrypted)
|
|
17
17
|
*/
|
|
18
|
-
export declare function saveProviderInfo<T>(provider: string, detailInfo: T): void;
|
|
18
|
+
export declare function saveProviderInfo<T>(provider: string, merchantId: string, detailInfo: T): void;
|
|
19
19
|
/**
|
|
20
20
|
* Get one provider’s decrypted info
|
|
21
21
|
*/
|
|
22
|
-
export declare function getProviderInfo(provider: string): {} | null;
|
|
22
|
+
export declare function getProviderInfo(provider: string, merchantId: string): {} | null;
|
|
23
23
|
/**
|
|
24
24
|
* Get all provider’s decrypted info
|
|
25
25
|
*/
|
|
26
|
-
export declare function getAllProvidersInfo(): Record<string, unknown>;
|
|
26
|
+
export declare function getAllProvidersInfo(merchantId: string): Record<string, unknown>;
|
|
27
27
|
/**
|
|
28
28
|
* Sets only the given provider as default,
|
|
29
29
|
* clearing isDefault on every other entry.
|
|
@@ -31,12 +31,12 @@ export declare function getAllProvidersInfo(): Record<string, unknown>;
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function setProviderDefault<T extends {
|
|
33
33
|
isDefault: boolean;
|
|
34
|
-
}>(provider: string): void;
|
|
34
|
+
}>(provider: string, merchantId: string): void;
|
|
35
35
|
/**
|
|
36
36
|
* Remove a single provider’s info
|
|
37
37
|
*/
|
|
38
|
-
export declare function clearProvider(provider: string): void;
|
|
38
|
+
export declare function clearProvider(provider: string, merchantId: string): void;
|
|
39
39
|
/**
|
|
40
40
|
* (Optional) Remove all providers at once
|
|
41
41
|
*/
|
|
42
|
-
export declare function clearAllProviders(): void;
|
|
42
|
+
export declare function clearAllProviders(merchantId: string): void;
|