@akad/sdk 1.0.6 → 1.0.8

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 CHANGED
@@ -13,6 +13,8 @@ export default function sdkInitialize(config: Config): {
13
13
  postFullQuote: (data: import('./quotation/fullQuoteType').fullQuoteType) => Promise<import('./quotation/fullQuoteType').fullQuoteType>;
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
+ getVersions: (data: import('./quotation/versionsType').versionsType) => Promise<import('./quotation/versionsType').versionsType>;
17
+ switchSelectedVersion: (data: import('./quotation/switchSelectedVersionType').switchSelectedVersionType) => Promise<import('./quotation/switchSelectedVersionType').switchSelectedVersionType>;
16
18
  };
17
19
  payment: {
18
20
  postPayment: (data: import('./payment/types').paymentType) => Promise<import('./payment/types').paymentType>;
@@ -27,6 +29,8 @@ export default function sdkInitialize(config: Config): {
27
29
  };
28
30
  plugin: {
29
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>;
30
34
  };
31
35
  report: {
32
36
  getReportStream: (data: import('./report/types').certificateReportType) => Promise<import('./report/types').certificateReportType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akad/sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "./ts-lib.umd.cjs",
5
5
  "module": "./ts-lib.js",
6
6
  "exports": {
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
@@ -2,3 +2,8 @@ export type CnpjStatus = {
2
2
  status: boolean;
3
3
  name: string;
4
4
  };
5
+ export interface keyNumberType {
6
+ }
7
+ export type proposalNumberByKeyNumberType = {
8
+ keyNumber: string;
9
+ };
@@ -3,10 +3,14 @@ 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';
7
+ import { versionsType } from './versionsType';
6
8
 
7
9
  export declare const createQuote: (config: Config) => {
8
10
  postQuickQuote: (data: quickQuoteType) => Promise<quickQuoteType>;
9
11
  postFullQuote: (data: fullQuoteType) => Promise<fullQuoteType>;
10
12
  postBind: (data: bindType) => Promise<bindType>;
11
13
  getQuotation: (data: quotationType) => Promise<quotationType>;
14
+ getVersions: (data: versionsType) => Promise<versionsType>;
15
+ switchSelectedVersion: (data: switchSelectedVersionType) => Promise<switchSelectedVersionType>;
12
16
  };
@@ -0,0 +1,4 @@
1
+ export interface switchSelectedVersionType {
2
+ policyId: string;
3
+ quotationVersionId: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface versionsType {
2
+ policyId: string;
3
+ }