@akad/sdk 1.0.24 → 1.0.26
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/address/index.d.ts +1 -1
- package/auth/index.d.ts +2 -2
- package/authAkad/index.d.ts +5 -5
- package/authAkad/types.d.ts +4 -9
- package/base.d.ts +6 -5
- package/broker/index.d.ts +2 -2
- package/data/index.d.ts +1 -1
- package/endorsement/index.d.ts +1 -1
- package/main.d.ts +33 -31
- package/package.json +2 -1
- package/payment/index.d.ts +3 -3
- package/plugin/index.d.ts +4 -4
- package/quotation/index.d.ts +8 -8
- package/report/index.d.ts +1 -1
- package/subscriber/index.d.ts +1 -1
- package/ts-lib.js +671 -651
- package/ts-lib.umd.cjs +4 -4
- package/types/errorTypes.d.ts +11 -0
- package/types/index.d.ts +2 -0
- package/types/responseTypes.d.ts +11 -0
package/address/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { Config } from '../base';
|
|
|
2
2
|
import { addressType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare function createAddress(config: Config): {
|
|
5
|
-
getAddress: (data: addressType) => Promise<addressType
|
|
5
|
+
getAddress: (data: addressType) => Promise<import('../types').SdkResponse<addressType>>;
|
|
6
6
|
};
|
package/auth/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const postToken: (digitalRefresh: {
|
|
|
8
8
|
clientSecret: string;
|
|
9
9
|
}, headers: Record<string, string> | undefined, axiosClient: AxiosInstance) => Promise<getTokenType>;
|
|
10
10
|
export declare const createAuth: (config: Config) => {
|
|
11
|
-
postLogin: (data: loginType) => Promise<loginType
|
|
12
|
-
getToken: (exchangeCode: string) => Promise<getTokenType
|
|
11
|
+
postLogin: (data: loginType) => Promise<import('../types').SdkResponse<loginType>>;
|
|
12
|
+
getToken: (exchangeCode: string) => Promise<import('../types').SdkResponse<getTokenType>>;
|
|
13
13
|
postToken: (() => Promise<getTokenType>) | undefined;
|
|
14
14
|
postLogout: () => Promise<void>;
|
|
15
15
|
};
|
package/authAkad/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Config } from '../base';
|
|
|
2
2
|
import { SignUpPayload, SignInPayload, SignInResponse, UserProfile, SignUpResponse, RecoverPasswordPayload, RecoverPasswordResponse, UpdatePasswordResponse, UpdatePasswordPayload } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createAuthAkad: (config: Config) => {
|
|
5
|
-
signUp: (data: SignUpPayload) => Promise<SignUpResponse
|
|
6
|
-
signIn: (data: SignInPayload) => Promise<SignInResponse
|
|
7
|
-
getProfile: () => Promise<UserProfile
|
|
8
|
-
recoverPassword: (data: RecoverPasswordPayload) => Promise<RecoverPasswordResponse
|
|
9
|
-
updatePassword: (data: UpdatePasswordPayload) => Promise<UpdatePasswordResponse
|
|
5
|
+
signUp: (data: SignUpPayload) => Promise<import('../types').SdkResponse<SignUpResponse>>;
|
|
6
|
+
signIn: (data: SignInPayload) => Promise<import('../types').SdkResponse<SignInResponse>>;
|
|
7
|
+
getProfile: () => Promise<import('../types').SdkResponse<UserProfile>>;
|
|
8
|
+
recoverPassword: (data: RecoverPasswordPayload) => Promise<import('../types').SdkResponse<RecoverPasswordResponse>>;
|
|
9
|
+
updatePassword: (data: UpdatePasswordPayload) => Promise<import('../types').SdkResponse<UpdatePasswordResponse>>;
|
|
10
10
|
};
|
package/authAkad/types.d.ts
CHANGED
|
@@ -10,21 +10,16 @@ export interface SignUpPayload {
|
|
|
10
10
|
userType: UserType;
|
|
11
11
|
}
|
|
12
12
|
export interface SignUpResponse {
|
|
13
|
-
|
|
14
|
-
statusText: string;
|
|
15
|
-
data: string | object;
|
|
13
|
+
[key: string]: unknown;
|
|
16
14
|
}
|
|
17
15
|
export interface SignInPayload {
|
|
18
16
|
email: string;
|
|
19
17
|
password: string;
|
|
20
18
|
}
|
|
21
19
|
export interface SignInResponse {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
refreshToken: string;
|
|
26
|
-
expiresIn: number;
|
|
27
|
-
};
|
|
20
|
+
accessToken: string;
|
|
21
|
+
refreshToken: string;
|
|
22
|
+
expiresIn: number;
|
|
28
23
|
}
|
|
29
24
|
export interface UserProfile {
|
|
30
25
|
name: string;
|
package/base.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseType } from 'axios';
|
|
2
2
|
import { TokenResponse } from './helpers/TokenRefreshManager';
|
|
3
|
+
import { SdkResponse, SdkError } from './types';
|
|
3
4
|
|
|
4
5
|
export interface Config {
|
|
5
6
|
apiVersion?: string;
|
|
@@ -16,8 +17,8 @@ export interface Config {
|
|
|
16
17
|
};
|
|
17
18
|
refreshLogoutUrl?: string;
|
|
18
19
|
responseInterceptor?: {
|
|
19
|
-
onFulfilled: (
|
|
20
|
-
onReject: (error:
|
|
20
|
+
onFulfilled: (response: SdkResponse) => SdkResponse | Promise<SdkResponse>;
|
|
21
|
+
onReject: (error: SdkError) => void | Promise<never>;
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
@@ -42,6 +43,6 @@ export declare const createBase: (config: Config) => {
|
|
|
42
43
|
clearTokens: () => void;
|
|
43
44
|
request: <T>(endpoint: string, options?: RequestOptions & {
|
|
44
45
|
method: string;
|
|
45
|
-
data
|
|
46
|
-
}) => Promise<T
|
|
46
|
+
data?: RequestData;
|
|
47
|
+
}) => Promise<SdkResponse<T>>;
|
|
47
48
|
};
|
package/broker/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { Config } from '../base';
|
|
|
2
2
|
import { BrokerageFirmType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createBroker: (config: Config) => {
|
|
5
|
-
getBroker: () => Promise<unknown
|
|
6
|
-
getAllBrokerages: (name: string) => Promise<BrokerageFirmType
|
|
5
|
+
getBroker: () => Promise<import('../types').SdkResponse<unknown>>;
|
|
6
|
+
getAllBrokerages: (name: string) => Promise<import('../types').SdkResponse<BrokerageFirmType>>;
|
|
7
7
|
};
|
package/data/index.d.ts
CHANGED
package/endorsement/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '../base';
|
|
2
2
|
|
|
3
3
|
export declare const createEndorsement: (config: Config) => {
|
|
4
|
-
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<ResPayload
|
|
4
|
+
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<import('../types').SdkResponse<ResPayload>>;
|
|
5
5
|
};
|
package/main.d.ts
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
1
|
import { Config } from './base';
|
|
2
2
|
|
|
3
|
+
export type { SdkResponse, SdkError, SdkErrorData } from './types';
|
|
4
|
+
export type { Config, RequestData, RequestOptions } from './base';
|
|
3
5
|
export default function sdkInitialize(config: Config): {
|
|
4
6
|
auth: {
|
|
5
|
-
postLogin: (data: import('./auth/types').loginType) => Promise<import('./auth/types').loginType
|
|
6
|
-
getToken: (exchangeCode: string) => Promise<import('./auth/types').getTokenType
|
|
7
|
+
postLogin: (data: import('./auth/types').loginType) => Promise<import('./types').SdkResponse<import('./auth/types').loginType>>;
|
|
8
|
+
getToken: (exchangeCode: string) => Promise<import('./types').SdkResponse<import('./auth/types').getTokenType>>;
|
|
7
9
|
postToken: (() => Promise<import('./auth/types').getTokenType>) | undefined;
|
|
8
10
|
postLogout: () => Promise<void>;
|
|
9
11
|
};
|
|
10
12
|
authAkad: {
|
|
11
|
-
signUp: (data: import('./authAkad/types').SignUpPayload) => Promise<import('./authAkad/types').SignUpResponse
|
|
12
|
-
signIn: (data: import('./authAkad/types').SignInPayload) => Promise<import('./authAkad/types').SignInResponse
|
|
13
|
-
getProfile: () => Promise<import('./authAkad/types').UserProfile
|
|
14
|
-
recoverPassword: (data: import('./authAkad/types').RecoverPasswordPayload) => Promise<import('./authAkad/types').RecoverPasswordResponse
|
|
15
|
-
updatePassword: (data: import('./authAkad/types').UpdatePasswordPayload) => Promise<import('./authAkad/types').UpdatePasswordResponse
|
|
13
|
+
signUp: (data: import('./authAkad/types').SignUpPayload) => Promise<import('./types').SdkResponse<import('./authAkad/types').SignUpResponse>>;
|
|
14
|
+
signIn: (data: import('./authAkad/types').SignInPayload) => Promise<import('./types').SdkResponse<import('./authAkad/types').SignInResponse>>;
|
|
15
|
+
getProfile: () => Promise<import('./types').SdkResponse<import('./authAkad/types').UserProfile>>;
|
|
16
|
+
recoverPassword: (data: import('./authAkad/types').RecoverPasswordPayload) => Promise<import('./types').SdkResponse<import('./authAkad/types').RecoverPasswordResponse>>;
|
|
17
|
+
updatePassword: (data: import('./authAkad/types').UpdatePasswordPayload) => Promise<import('./types').SdkResponse<import('./authAkad/types').UpdatePasswordResponse>>;
|
|
16
18
|
};
|
|
17
19
|
data: {
|
|
18
|
-
postData: (data: import('./data/types').dataType) => Promise<import('./data/types').dataType
|
|
20
|
+
postData: (data: import('./data/types').dataType) => Promise<import('./types').SdkResponse<import('./data/types').dataType>>;
|
|
19
21
|
};
|
|
20
22
|
quotation: {
|
|
21
|
-
getQuotations: (params: import('./quotation/quotationType').QuotationListParams) => Promise<import('./quotation/quotationType').QuotationDetail[]
|
|
22
|
-
getQuotationDetail: (params: import('./quotation/quotationType').QuotationType) => Promise<import('./quotation/quotationType').QuotationDetail
|
|
23
|
-
postQuickQuote: (data: import('./quotation/quickQuoteType').QuickQuoteType) => Promise<import('./quotation/quickQuoteType').QuickQuoteType
|
|
24
|
-
postFullQuote: (data: import('./quotation/fullQuoteType').FullQuoteType) => Promise<import('./quotation/fullQuoteType').FullQuoteType
|
|
25
|
-
postBind: (data: import('./quotation/bindType').BindType) => Promise<import('./quotation/bindType').BindType
|
|
26
|
-
getQuotation: (data: import('./quotation/quotationType').QuotationType) => Promise<import('./quotation/quotationType').QuotationType
|
|
27
|
-
getVersions: (data: import('./quotation/versionsType').VersionsType) => Promise<import('./quotation/versionsType').VersionsType
|
|
28
|
-
switchSelectedVersion: (data: import('./quotation/switchSelectedVersionType').SwitchSelectedVersionType) => Promise<import('./quotation/switchSelectedVersionType').SwitchSelectedVersionType
|
|
23
|
+
getQuotations: (params: import('./quotation/quotationType').QuotationListParams) => Promise<import('./types').SdkResponse<import('./quotation/quotationType').QuotationDetail[]>>;
|
|
24
|
+
getQuotationDetail: (params: import('./quotation/quotationType').QuotationType) => Promise<import('./types').SdkResponse<import('./quotation/quotationType').QuotationDetail>>;
|
|
25
|
+
postQuickQuote: (data: import('./quotation/quickQuoteType').QuickQuoteType) => Promise<import('./types').SdkResponse<import('./quotation/quickQuoteType').QuickQuoteType>>;
|
|
26
|
+
postFullQuote: (data: import('./quotation/fullQuoteType').FullQuoteType) => Promise<import('./types').SdkResponse<import('./quotation/fullQuoteType').FullQuoteType>>;
|
|
27
|
+
postBind: (data: import('./quotation/bindType').BindType) => Promise<import('./types').SdkResponse<import('./quotation/bindType').BindType>>;
|
|
28
|
+
getQuotation: (data: import('./quotation/quotationType').QuotationType) => Promise<import('./types').SdkResponse<import('./quotation/quotationType').QuotationType>>;
|
|
29
|
+
getVersions: (data: import('./quotation/versionsType').VersionsType) => Promise<import('./types').SdkResponse<import('./quotation/versionsType').VersionsType>>;
|
|
30
|
+
switchSelectedVersion: (data: import('./quotation/switchSelectedVersionType').SwitchSelectedVersionType) => Promise<import('./types').SdkResponse<import('./quotation/switchSelectedVersionType').SwitchSelectedVersionType>>;
|
|
29
31
|
};
|
|
30
32
|
payment: {
|
|
31
|
-
postPayment: (data: import('./payment/types').PaymentType) => Promise<import('./payment/types').PaymentType
|
|
32
|
-
getPaymentStatus: (data: import('./payment/types').PaymentStatusType) => Promise<import('./payment/types').PaymentStatusType
|
|
33
|
-
getPaymentSummary: (data: import('./payment/types').PaymentSummaryType) => Promise<import('./payment/types').PaymentSummaryType
|
|
33
|
+
postPayment: (data: import('./payment/types').PaymentType) => Promise<import('./types').SdkResponse<import('./payment/types').PaymentType>>;
|
|
34
|
+
getPaymentStatus: (data: import('./payment/types').PaymentStatusType) => Promise<import('./types').SdkResponse<import('./payment/types').PaymentStatusType>>;
|
|
35
|
+
getPaymentSummary: (data: import('./payment/types').PaymentSummaryType) => Promise<import('./types').SdkResponse<import('./payment/types').PaymentSummaryType>>;
|
|
34
36
|
};
|
|
35
37
|
address: {
|
|
36
|
-
getAddress: (data: import('./address/types').addressType) => Promise<import('./address/types').addressType
|
|
38
|
+
getAddress: (data: import('./address/types').addressType) => Promise<import('./types').SdkResponse<import('./address/types').addressType>>;
|
|
37
39
|
};
|
|
38
40
|
broker: {
|
|
39
|
-
getBroker: () => Promise<unknown
|
|
40
|
-
getAllBrokerages: (name: string) => Promise<import('./broker/types').BrokerageFirmType
|
|
41
|
+
getBroker: () => Promise<import('./types').SdkResponse<unknown>>;
|
|
42
|
+
getAllBrokerages: (name: string) => Promise<import('./types').SdkResponse<import('./broker/types').BrokerageFirmType>>;
|
|
41
43
|
};
|
|
42
44
|
endorsement: {
|
|
43
|
-
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<ResPayload
|
|
45
|
+
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<import('./types').SdkResponse<ResPayload>>;
|
|
44
46
|
};
|
|
45
47
|
plugin: {
|
|
46
|
-
getCnpjStatus: (cnpj: string, brokerageIdentity?: string | undefined, isBrokerageDefinedAtStart?: boolean | undefined) => Promise<import('./plugin/types').CnpjStatus
|
|
47
|
-
getKeyNumber: () => Promise<unknown
|
|
48
|
-
getProposalNumberByKeyNumber: (data: import('./plugin/types').ProposalNumberByKeyNumberType) => Promise<import('./plugin/types').ProposalNumberByKeyNumberType
|
|
49
|
-
postCoveragesAndClausesRules: (data: import('./plugin/types').CoveragesAndClausesRulesType) => Promise<import('./plugin/types').CoveragesAndClausesRulesType
|
|
48
|
+
getCnpjStatus: (cnpj: string, brokerageIdentity?: string | undefined, isBrokerageDefinedAtStart?: boolean | undefined) => Promise<import('./types').SdkResponse<import('./plugin/types').CnpjStatus>>;
|
|
49
|
+
getKeyNumber: () => Promise<import('./types').SdkResponse<unknown>>;
|
|
50
|
+
getProposalNumberByKeyNumber: (data: import('./plugin/types').ProposalNumberByKeyNumberType) => Promise<import('./types').SdkResponse<import('./plugin/types').ProposalNumberByKeyNumberType>>;
|
|
51
|
+
postCoveragesAndClausesRules: (data: import('./plugin/types').CoveragesAndClausesRulesType) => Promise<import('./types').SdkResponse<import('./plugin/types').CoveragesAndClausesRulesType>>;
|
|
50
52
|
};
|
|
51
53
|
report: {
|
|
52
|
-
getReportStream: (data: import('./report/types').CertificateReportType) => Promise<import('./report/types').CertificateReportType
|
|
54
|
+
getReportStream: (data: import('./report/types').CertificateReportType) => Promise<import('./types').SdkResponse<import('./report/types').CertificateReportType>>;
|
|
53
55
|
};
|
|
54
56
|
subscriber: {
|
|
55
|
-
getSubscriber: (cnpj: string) => Promise<import('./subscriber/types').getSubscriberType
|
|
57
|
+
getSubscriber: (cnpj: string) => Promise<import('./types').SdkResponse<import('./subscriber/types').getSubscriberType>>;
|
|
56
58
|
};
|
|
57
59
|
base: {
|
|
58
60
|
axiosClient: import('axios').AxiosInstance;
|
|
@@ -61,7 +63,7 @@ export default function sdkInitialize(config: Config): {
|
|
|
61
63
|
clearTokens: () => void;
|
|
62
64
|
request: <T>(endpoint: string, options?: (import('./base').RequestOptions & {
|
|
63
65
|
method: string;
|
|
64
|
-
data
|
|
65
|
-
}) | undefined) => Promise<T
|
|
66
|
+
data?: import('./base').RequestData | undefined;
|
|
67
|
+
}) | undefined) => Promise<import('./types').SdkResponse<T>>;
|
|
66
68
|
};
|
|
67
69
|
};
|
package/package.json
CHANGED
package/payment/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Config } from '../base';
|
|
|
2
2
|
import { PaymentType, PaymentStatusType, PaymentSummaryType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createPayment: (config: Config) => {
|
|
5
|
-
postPayment: (data: PaymentType) => Promise<PaymentType
|
|
6
|
-
getPaymentStatus: (data: PaymentStatusType) => Promise<PaymentStatusType
|
|
7
|
-
getPaymentSummary: (data: PaymentSummaryType) => Promise<PaymentSummaryType
|
|
5
|
+
postPayment: (data: PaymentType) => Promise<import('../types').SdkResponse<PaymentType>>;
|
|
6
|
+
getPaymentStatus: (data: PaymentStatusType) => Promise<import('../types').SdkResponse<PaymentStatusType>>;
|
|
7
|
+
getPaymentSummary: (data: PaymentSummaryType) => Promise<import('../types').SdkResponse<PaymentSummaryType>>;
|
|
8
8
|
};
|
package/plugin/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Config } from '../base';
|
|
|
2
2
|
import { CnpjStatus, CoveragesAndClausesRulesType, ProposalNumberByKeyNumberType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createPlugin: (config: Config) => {
|
|
5
|
-
getCnpjStatus: (cnpj: string, brokerageIdentity?: string, isBrokerageDefinedAtStart?: boolean) => Promise<CnpjStatus
|
|
6
|
-
getKeyNumber: () => Promise<unknown
|
|
7
|
-
getProposalNumberByKeyNumber: (data: ProposalNumberByKeyNumberType) => Promise<ProposalNumberByKeyNumberType
|
|
8
|
-
postCoveragesAndClausesRules: (data: CoveragesAndClausesRulesType) => Promise<CoveragesAndClausesRulesType
|
|
5
|
+
getCnpjStatus: (cnpj: string, brokerageIdentity?: string, isBrokerageDefinedAtStart?: boolean) => Promise<import('../types').SdkResponse<CnpjStatus>>;
|
|
6
|
+
getKeyNumber: () => Promise<import('../types').SdkResponse<unknown>>;
|
|
7
|
+
getProposalNumberByKeyNumber: (data: ProposalNumberByKeyNumberType) => Promise<import('../types').SdkResponse<ProposalNumberByKeyNumberType>>;
|
|
8
|
+
postCoveragesAndClausesRules: (data: CoveragesAndClausesRulesType) => Promise<import('../types').SdkResponse<CoveragesAndClausesRulesType>>;
|
|
9
9
|
};
|
package/quotation/index.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ import { SwitchSelectedVersionType } from './switchSelectedVersionType';
|
|
|
7
7
|
import { VersionsType } from './versionsType';
|
|
8
8
|
|
|
9
9
|
export declare const createQuote: (config: Config) => {
|
|
10
|
-
getQuotations: (params: QuotationListParams) => Promise<QuotationDetail[]
|
|
11
|
-
getQuotationDetail: (params: QuotationType) => Promise<QuotationDetail
|
|
12
|
-
postQuickQuote: (data: QuickQuoteType) => Promise<QuickQuoteType
|
|
13
|
-
postFullQuote: (data: FullQuoteType) => Promise<FullQuoteType
|
|
14
|
-
postBind: (data: BindType) => Promise<BindType
|
|
15
|
-
getQuotation: (data: QuotationType) => Promise<QuotationType
|
|
16
|
-
getVersions: (data: VersionsType) => Promise<VersionsType
|
|
17
|
-
switchSelectedVersion: (data: SwitchSelectedVersionType) => Promise<SwitchSelectedVersionType
|
|
10
|
+
getQuotations: (params: QuotationListParams) => Promise<import('../types').SdkResponse<QuotationDetail[]>>;
|
|
11
|
+
getQuotationDetail: (params: QuotationType) => Promise<import('../types').SdkResponse<QuotationDetail>>;
|
|
12
|
+
postQuickQuote: (data: QuickQuoteType) => Promise<import('../types').SdkResponse<QuickQuoteType>>;
|
|
13
|
+
postFullQuote: (data: FullQuoteType) => Promise<import('../types').SdkResponse<FullQuoteType>>;
|
|
14
|
+
postBind: (data: BindType) => Promise<import('../types').SdkResponse<BindType>>;
|
|
15
|
+
getQuotation: (data: QuotationType) => Promise<import('../types').SdkResponse<QuotationType>>;
|
|
16
|
+
getVersions: (data: VersionsType) => Promise<import('../types').SdkResponse<VersionsType>>;
|
|
17
|
+
switchSelectedVersion: (data: SwitchSelectedVersionType) => Promise<import('../types').SdkResponse<SwitchSelectedVersionType>>;
|
|
18
18
|
};
|
package/report/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { Config } from '../base';
|
|
|
2
2
|
import { CertificateReportType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createReport: (config: Config) => {
|
|
5
|
-
getReportStream: (data: CertificateReportType) => Promise<CertificateReportType
|
|
5
|
+
getReportStream: (data: CertificateReportType) => Promise<import('../types').SdkResponse<CertificateReportType>>;
|
|
6
6
|
};
|
package/subscriber/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { Config } from '../base';
|
|
|
2
2
|
import { getSubscriberType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createSubscriber: (config: Config) => {
|
|
5
|
-
getSubscriber: (cnpj: string) => Promise<getSubscriberType
|
|
5
|
+
getSubscriber: (cnpj: string) => Promise<import('../types').SdkResponse<getSubscriberType>>;
|
|
6
6
|
};
|