fluffychat/lib/pangea/network/urls.dart
ggurdin 1317989db0
1179 toolbar changes (#1209)
* updated toolbar buttons

* initial work for toolbar updates

* Add WordZoomWidget to display word and lemma information (#1214)

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pangeachat/client/tree/1179-toolbar-changes?shareId=XXXX-XXXX-XXXX-XXXX).

* word zoom card prototyped, activity generation in progress

* adding copy for new construct uses

* laying down TODOs

* initial work for word zoom card

* Always add part of speech to token's morph list

* Prevent duplicate choices in lemma activity

* Don't play token audio at start of morph activity

* Only grant +1 points for emoji activity

* Uncomment tryToSpeak function

* Always update activity once complete

* Added queuing / UI logic for morph activity buttons

* code cleanup

* added required data argument to logError calls

* fix overflowing practice activity card and audio player on mobile

---------

Co-authored-by: wcjord <32568597+wcjord@users.noreply.github.com>
2024-12-27 12:42:49 -05:00

78 lines
3.1 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 choreoPrefix = "/choreo";
static String subscriptionPrefix = "/subscription";
static String accountPrefix = "/account";
static String choreoEndpoint =
"${Environment.choreoApi}${PApiUrls.choreoPrefix}";
static String subscriptionEndpoint =
"${Environment.choreoApi}${PApiUrls.subscriptionPrefix}";
static String accountEndpoint =
"${Environment.choreoApi}${PApiUrls.accountPrefix}";
/// ---------------------- Util --------------------------------------
static String appVersion = "${PApiUrls.choreoEndpoint}/version";
/// ---------------------- Languages --------------------------------------
static String getLanguages = "${PApiUrls.choreoEndpoint}/languages";
/// ---------------------- Users --------------------------------------
static String paymentLink = "${PApiUrls.subscriptionEndpoint}/payment_link";
/// ---------------------- Conversation Partner -------------------------
/// PTODO: Migrate or remove
static String searchUserProfiles = "${PApiUrls.accountEndpoint}/search";
///-------------------------------- choreo --------------------------
static String igc = "${PApiUrls.choreoEndpoint}/grammar";
static String languageDetection =
"${PApiUrls.choreoEndpoint}/language_detection";
static String igcLite = "${PApiUrls.choreoEndpoint}/grammar_lite";
static String spanDetails = "${PApiUrls.choreoEndpoint}/span_details";
static String wordNet = "${PApiUrls.choreoEndpoint}/wordnet";
static String contextualizedTranslation =
"${PApiUrls.choreoEndpoint}/translation/contextual";
static String simpleTranslation =
"${PApiUrls.choreoEndpoint}/translation/direct";
static String tokenize = "${PApiUrls.choreoEndpoint}/tokenize";
static String contextualDefinition =
"${PApiUrls.choreoEndpoint}/contextual_definition";
static String similarity = "${PApiUrls.choreoEndpoint}/similarity";
static String topicInfo = "${PApiUrls.choreoEndpoint}/vocab_list";
static String itFeedback = "${PApiUrls.choreoEndpoint}/translation/feedback";
static String firstStep = "${PApiUrls.choreoEndpoint}/it_initialstep";
static String subseqStep = "${PApiUrls.choreoEndpoint}/it_step";
static String textToSpeech = "${PApiUrls.choreoEndpoint}/text_to_speech";
static String speechToText = "${PApiUrls.choreoEndpoint}/speech_to_text";
static String messageActivityGeneration =
"${PApiUrls.choreoEndpoint}/practice";
static String lemmaDictionary = "${PApiUrls.choreoEndpoint}/lemma_definition";
///-------------------------------- revenue cat --------------------------
static String rcApiV1 = "https://api.revenuecat.com/v1";
static String rcAppsChoreo = "${PApiUrls.subscriptionEndpoint}/app_ids";
static String rcProductsChoreo =
"${PApiUrls.subscriptionEndpoint}/all_products";
static String rcSubscription = "$rcApiV1/subscribers";
}