react-native-priv-sdk
Version:
Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.
18 lines (15 loc) • 615 B
text/typescript
import ApiService from "../data/api/api_service";
let apiServiceInstanceV2: ApiService | null = null;
let apiServiceInstanceV1: ApiService | null = null;
export function getApiServiceV2( isFormData?: boolean): ApiService {
if (!apiServiceInstanceV2) {
apiServiceInstanceV2 = new ApiService('https://staging.api.mycover.ai/v2', isFormData);
}
return apiServiceInstanceV2;
}
export function getApiServiceV1( isFormData?: boolean): ApiService {
if (!apiServiceInstanceV1) {
apiServiceInstanceV1 = new ApiService("https://staging.api.mycover.ai/v1", isFormData);
}
return apiServiceInstanceV1;
}