@akad/sdk 1.0.7 → 1.0.9
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/main.d.ts +6 -0
- package/package.json +1 -1
- package/plugin/index.d.ts +3 -1
- package/plugin/types.d.ts +5 -0
- package/quotation/index.d.ts +2 -0
- package/quotation/switchSelectedVersionType.d.ts +4 -0
- package/subscriber/index.d.ts +5 -0
- package/subscriber/index.test.d.ts +1 -0
- package/subscriber/types.d.ts +3 -0
- package/ts-lib.js +393 -361
- package/ts-lib.umd.cjs +6 -6
package/main.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export default function sdkInitialize(config: Config): {
|
|
|
14
14
|
postBind: (data: import('./quotation/bindType').bindType) => Promise<import('./quotation/bindType').bindType>;
|
|
15
15
|
getQuotation: (data: import('./quotation/quotationType').quotationType) => Promise<import('./quotation/quotationType').quotationType>;
|
|
16
16
|
getVersions: (data: import('./quotation/versionsType').versionsType) => Promise<import('./quotation/versionsType').versionsType>;
|
|
17
|
+
switchSelectedVersion: (data: import('./quotation/switchSelectedVersionType').switchSelectedVersionType) => Promise<import('./quotation/switchSelectedVersionType').switchSelectedVersionType>;
|
|
17
18
|
};
|
|
18
19
|
payment: {
|
|
19
20
|
postPayment: (data: import('./payment/types').paymentType) => Promise<import('./payment/types').paymentType>;
|
|
@@ -28,8 +29,13 @@ export default function sdkInitialize(config: Config): {
|
|
|
28
29
|
};
|
|
29
30
|
plugin: {
|
|
30
31
|
getCnpjStatus: (cnpj: string) => Promise<import('./plugin/types').CnpjStatus>;
|
|
32
|
+
getKeyNumber: () => Promise<import('./plugin/types').keyNumberType>;
|
|
33
|
+
getProposalNumberByKeyNumber: (data: import('./plugin/types').proposalNumberByKeyNumberType) => Promise<import('./plugin/types').proposalNumberByKeyNumberType>;
|
|
31
34
|
};
|
|
32
35
|
report: {
|
|
33
36
|
getReportStream: (data: import('./report/types').certificateReportType) => Promise<import('./report/types').certificateReportType>;
|
|
34
37
|
};
|
|
38
|
+
subscriber: {
|
|
39
|
+
getSubscriber: (cnpj: string) => void;
|
|
40
|
+
};
|
|
35
41
|
};
|
package/package.json
CHANGED
package/plugin/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Config } from '../base';
|
|
2
|
-
import { CnpjStatus } from './types';
|
|
2
|
+
import { CnpjStatus, keyNumberType, proposalNumberByKeyNumberType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createPlugin: (config: Config) => {
|
|
5
5
|
getCnpjStatus: (cnpj: string) => Promise<CnpjStatus>;
|
|
6
|
+
getKeyNumber: () => Promise<keyNumberType>;
|
|
7
|
+
getProposalNumberByKeyNumber: (data: proposalNumberByKeyNumberType) => Promise<proposalNumberByKeyNumberType>;
|
|
6
8
|
};
|
package/plugin/types.d.ts
CHANGED
package/quotation/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { bindType } from './bindType';
|
|
|
3
3
|
import { fullQuoteType } from './fullQuoteType';
|
|
4
4
|
import { quickQuoteType } from './quickQuoteType';
|
|
5
5
|
import { quotationType } from './quotationType';
|
|
6
|
+
import { switchSelectedVersionType } from './switchSelectedVersionType';
|
|
6
7
|
import { versionsType } from './versionsType';
|
|
7
8
|
|
|
8
9
|
export declare const createQuote: (config: Config) => {
|
|
@@ -11,4 +12,5 @@ export declare const createQuote: (config: Config) => {
|
|
|
11
12
|
postBind: (data: bindType) => Promise<bindType>;
|
|
12
13
|
getQuotation: (data: quotationType) => Promise<quotationType>;
|
|
13
14
|
getVersions: (data: versionsType) => Promise<versionsType>;
|
|
15
|
+
switchSelectedVersion: (data: switchSelectedVersionType) => Promise<switchSelectedVersionType>;
|
|
14
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|