* drafting toolbar with practice * moved some code around * turning overlay message content into text buttons for selection, updated toolbar buttons progress bar * activities displaying and forwarding toolbar * experimenting with using choice value rather than index for logic * reimplementation of wordnet results and translation for individual words * cache and timer * mostly done with activities in toolbar flow --------- Co-authored-by: ggurdin <ggurdin@gmail.com> Co-authored-by: choreo development <williamjordan-cooley@Williams-MacBook-Pro-3.local>
66 lines
2.6 KiB
Dart
66 lines
2.6 KiB
Dart
//TODO move baseAPI addition to request function
|
|
|
|
import 'package:fluffychat/pangea/config/environment.dart';
|
|
|
|
/// autodocs
|
|
/// https://api.staging.pangea.chat/choreo/docs
|
|
/// username: admin
|
|
/// password: admin
|
|
///
|
|
/// https://api.staging.pangea.chat/api/v1/
|
|
class PApiUrls {
|
|
static String baseAPI = Environment.baseAPI;
|
|
|
|
/// ---------------------- Languages --------------------------------------
|
|
static String getLanguages = "/languages";
|
|
|
|
/// ---------------------- Users --------------------------------------
|
|
static String createUser = "/account/create";
|
|
static String userDetails = "/account/get_user_access_token?pangea_user_id=";
|
|
static String updateUserProfile = "/account/update";
|
|
static String paymentLink = "/account/payment_link";
|
|
static String subscriptionExpiration = "/account/premium_expires_date";
|
|
|
|
/// ---------------------- Conversation Partner -------------------------
|
|
static String searchUserProfiles = "/account/search";
|
|
|
|
///-------------------------------- choreo --------------------------
|
|
static String igc = "${Environment.choreoApi}/grammar";
|
|
|
|
static String languageDetection =
|
|
"${Environment.choreoApi}/language_detection";
|
|
|
|
static String igcLite = "${Environment.choreoApi}/grammar_lite";
|
|
static String spanDetails = "${Environment.choreoApi}/span_details";
|
|
|
|
static String wordNet = "${Environment.choreoApi}/wordnet";
|
|
static String contextualizedTranslation =
|
|
"${Environment.choreoApi}/translation/contextual";
|
|
static String simpleTranslation =
|
|
"${Environment.choreoApi}/translation/direct";
|
|
static String tokenize = "${Environment.choreoApi}/tokenize";
|
|
static String contextualDefinition =
|
|
"${Environment.choreoApi}/contextual_definition";
|
|
static String similarity = "${Environment.choreoApi}/similarity";
|
|
static String topicInfo = "${Environment.choreoApi}/vocab_list";
|
|
|
|
static String itFeedback = "${Environment.choreoApi}/translation/feedback";
|
|
|
|
static String firstStep = "/it_initialstep";
|
|
static String subseqStep = "/it_step";
|
|
|
|
static String textToSpeech = "${Environment.choreoApi}/text_to_speech";
|
|
static String speechToText = "${Environment.choreoApi}/speech_to_text";
|
|
|
|
static String messageActivityGeneration =
|
|
"${Environment.choreoApi}/practice/message";
|
|
|
|
///-------------------------------- revenue cat --------------------------
|
|
static String rcApiV1 = "https://api.revenuecat.com/v1";
|
|
static String rcApiV2 =
|
|
"https://api.revenuecat.com/v2/projects/${Environment.rcProjectId}";
|
|
|
|
static String rcApps = "$rcApiV2/apps";
|
|
static String rcProducts = "$rcApiV2/offerings?expand=items.package.product";
|
|
static String rcSubscribers = "$rcApiV1/subscribers";
|
|
}
|