czapp-shared 1.0.15 → 1.0.16

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/dist/index.d.mts CHANGED
@@ -98,6 +98,7 @@ declare enum AppError {
98
98
  REQUEST_UPDATE_FAMILIARITY_FAILED = "Failed to update familiarity",
99
99
  REQUEST_UPDATE_USER_SETTINGS_FAILED = "Failed to update user settings",
100
100
  REQUEST_INSERT_OR_UPDATE_LEXEME_PAIR_FAILED = "Failed to insert or update lexeme pair",
101
+ REQUEST_RECYCLE_LEXEME_PAIR_FAILED = "Failed to recycle lexeme pair",
101
102
  REQUEST_TRANSLATION_FAILED = "Failed to get translation",
102
103
  REQUEST_TEST_COMPLETE_FAILED = "Failed to complete test",
103
104
  REQUEST_TEST_SKIP_FAILED = "Failed to skip to the next deck"
@@ -204,6 +205,7 @@ interface IUserData {
204
205
  signUpDate: MySQLDate;
205
206
  testsCompletedCount: number;
206
207
  uiLanguage: Language;
208
+ onboardingStatus: boolean;
207
209
  }
208
210
 
209
211
  declare enum HttpStatusCode {
@@ -242,6 +244,7 @@ declare enum ApiPath {
242
244
  TRANSLATE = "/translate",
243
245
  TRANSLATIONS_ALL = "/lexemes/allTranslations/:sourceText/:sourceLang",
244
246
  USER = "/user",
247
+ USER_ONBOARDING = "/user/onboarding",
245
248
  USER_RESET_TEST = "/user/test/reset/:flashcardReviewCompletedCount/:currentStreakEnd"
246
249
  }
247
250
  declare enum ClientPlatform {
@@ -286,6 +289,9 @@ interface InsertOrUpdateRequestBody {
286
289
  interface SignInRequestBody {
287
290
  rememberMe: boolean;
288
291
  }
292
+ interface UpdateOnboardingStatusRequestBody {
293
+ onboardingStatus: boolean;
294
+ }
289
295
  /**
290
296
  * Request Params
291
297
  */
@@ -369,4 +375,4 @@ type DeeplTranslation = {
369
375
  }>;
370
376
  };
371
377
 
372
- export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, HttpStatusCode, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ITestResult, type IUserData, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SignInRequestBody, type SignInResponseData, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
378
+ export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, HttpStatusCode, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ITestResult, type IUserData, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SignInRequestBody, type SignInResponseData, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
package/dist/index.d.ts CHANGED
@@ -98,6 +98,7 @@ declare enum AppError {
98
98
  REQUEST_UPDATE_FAMILIARITY_FAILED = "Failed to update familiarity",
99
99
  REQUEST_UPDATE_USER_SETTINGS_FAILED = "Failed to update user settings",
100
100
  REQUEST_INSERT_OR_UPDATE_LEXEME_PAIR_FAILED = "Failed to insert or update lexeme pair",
101
+ REQUEST_RECYCLE_LEXEME_PAIR_FAILED = "Failed to recycle lexeme pair",
101
102
  REQUEST_TRANSLATION_FAILED = "Failed to get translation",
102
103
  REQUEST_TEST_COMPLETE_FAILED = "Failed to complete test",
103
104
  REQUEST_TEST_SKIP_FAILED = "Failed to skip to the next deck"
@@ -204,6 +205,7 @@ interface IUserData {
204
205
  signUpDate: MySQLDate;
205
206
  testsCompletedCount: number;
206
207
  uiLanguage: Language;
208
+ onboardingStatus: boolean;
207
209
  }
208
210
 
209
211
  declare enum HttpStatusCode {
@@ -242,6 +244,7 @@ declare enum ApiPath {
242
244
  TRANSLATE = "/translate",
243
245
  TRANSLATIONS_ALL = "/lexemes/allTranslations/:sourceText/:sourceLang",
244
246
  USER = "/user",
247
+ USER_ONBOARDING = "/user/onboarding",
245
248
  USER_RESET_TEST = "/user/test/reset/:flashcardReviewCompletedCount/:currentStreakEnd"
246
249
  }
247
250
  declare enum ClientPlatform {
@@ -286,6 +289,9 @@ interface InsertOrUpdateRequestBody {
286
289
  interface SignInRequestBody {
287
290
  rememberMe: boolean;
288
291
  }
292
+ interface UpdateOnboardingStatusRequestBody {
293
+ onboardingStatus: boolean;
294
+ }
289
295
  /**
290
296
  * Request Params
291
297
  */
@@ -369,4 +375,4 @@ type DeeplTranslation = {
369
375
  }>;
370
376
  };
371
377
 
372
- export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, HttpStatusCode, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ITestResult, type IUserData, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SignInRequestBody, type SignInResponseData, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
378
+ export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, HttpStatusCode, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ITestResult, type IUserData, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SignInRequestBody, type SignInResponseData, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
package/dist/index.js CHANGED
@@ -153,6 +153,7 @@ var AppError = /* @__PURE__ */ ((AppError2) => {
153
153
  AppError2["REQUEST_UPDATE_FAMILIARITY_FAILED"] = "Failed to update familiarity";
154
154
  AppError2["REQUEST_UPDATE_USER_SETTINGS_FAILED"] = "Failed to update user settings";
155
155
  AppError2["REQUEST_INSERT_OR_UPDATE_LEXEME_PAIR_FAILED"] = "Failed to insert or update lexeme pair";
156
+ AppError2["REQUEST_RECYCLE_LEXEME_PAIR_FAILED"] = "Failed to recycle lexeme pair";
156
157
  AppError2["REQUEST_TRANSLATION_FAILED"] = "Failed to get translation";
157
158
  AppError2["REQUEST_TEST_COMPLETE_FAILED"] = "Failed to complete test";
158
159
  AppError2["REQUEST_TEST_SKIP_FAILED"] = "Failed to skip to the next deck";
@@ -252,6 +253,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
252
253
  ApiPath2["TRANSLATE"] = "/translate";
253
254
  ApiPath2["TRANSLATIONS_ALL"] = "/lexemes/allTranslations/:sourceText/:sourceLang";
254
255
  ApiPath2["USER"] = "/user";
256
+ ApiPath2["USER_ONBOARDING"] = "/user/onboarding";
255
257
  ApiPath2["USER_RESET_TEST"] = "/user/test/reset/:flashcardReviewCompletedCount/:currentStreakEnd";
256
258
  return ApiPath2;
257
259
  })(ApiPath || {});
package/dist/index.mjs CHANGED
@@ -104,6 +104,7 @@ var AppError = /* @__PURE__ */ ((AppError2) => {
104
104
  AppError2["REQUEST_UPDATE_FAMILIARITY_FAILED"] = "Failed to update familiarity";
105
105
  AppError2["REQUEST_UPDATE_USER_SETTINGS_FAILED"] = "Failed to update user settings";
106
106
  AppError2["REQUEST_INSERT_OR_UPDATE_LEXEME_PAIR_FAILED"] = "Failed to insert or update lexeme pair";
107
+ AppError2["REQUEST_RECYCLE_LEXEME_PAIR_FAILED"] = "Failed to recycle lexeme pair";
107
108
  AppError2["REQUEST_TRANSLATION_FAILED"] = "Failed to get translation";
108
109
  AppError2["REQUEST_TEST_COMPLETE_FAILED"] = "Failed to complete test";
109
110
  AppError2["REQUEST_TEST_SKIP_FAILED"] = "Failed to skip to the next deck";
@@ -203,6 +204,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
203
204
  ApiPath2["TRANSLATE"] = "/translate";
204
205
  ApiPath2["TRANSLATIONS_ALL"] = "/lexemes/allTranslations/:sourceText/:sourceLang";
205
206
  ApiPath2["USER"] = "/user";
207
+ ApiPath2["USER_ONBOARDING"] = "/user/onboarding";
206
208
  ApiPath2["USER_RESET_TEST"] = "/user/test/reset/:flashcardReviewCompletedCount/:currentStreakEnd";
207
209
  return ApiPath2;
208
210
  })(ApiPath || {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "This is a shared library for Czapp projects. It contains common code that is used across multiple projects.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/design/api.ts CHANGED
@@ -40,6 +40,7 @@ export enum ApiPath {
40
40
  TRANSLATE = '/translate',
41
41
  TRANSLATIONS_ALL = '/lexemes/allTranslations/:sourceText/:sourceLang',
42
42
  USER = '/user',
43
+ USER_ONBOARDING = '/user/onboarding',
43
44
  USER_RESET_TEST = '/user/test/reset/:flashcardReviewCompletedCount/:currentStreakEnd',
44
45
  }
45
46
 
@@ -87,6 +88,10 @@ export interface SignInRequestBody {
87
88
  rememberMe: boolean;
88
89
  }
89
90
 
91
+ export interface UpdateOnboardingStatusRequestBody {
92
+ onboardingStatus: boolean;
93
+ }
94
+
90
95
  /**
91
96
  * Request Params
92
97
  */
@@ -55,6 +55,7 @@ export enum AppError {
55
55
  REQUEST_UPDATE_FAMILIARITY_FAILED = 'Failed to update familiarity',
56
56
  REQUEST_UPDATE_USER_SETTINGS_FAILED = 'Failed to update user settings',
57
57
  REQUEST_INSERT_OR_UPDATE_LEXEME_PAIR_FAILED = 'Failed to insert or update lexeme pair',
58
+ REQUEST_RECYCLE_LEXEME_PAIR_FAILED = 'Failed to recycle lexeme pair',
58
59
  REQUEST_TRANSLATION_FAILED = 'Failed to get translation',
59
60
  REQUEST_TEST_COMPLETE_FAILED = 'Failed to complete test',
60
61
  REQUEST_TEST_SKIP_FAILED = "Failed to skip to the next deck"
@@ -18,4 +18,5 @@ export interface IUserData {
18
18
  signUpDate: MySQLDate,
19
19
  testsCompletedCount: number,
20
20
  uiLanguage: Language,
21
+ onboardingStatus: boolean
21
22
  }