czapp-shared 1.0.31 → 1.0.33

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
@@ -77,7 +77,8 @@ declare enum VocabCheckType {
77
77
  declare enum LearningStage {
78
78
  NEW = "NEW",
79
79
  LEARNING = "LEARNING",
80
- RETIRED = "RETIRED"
80
+ RETIRED = "RETIRED",
81
+ QUEUED = "QUEUED"
81
82
  }
82
83
  declare enum Progress {
83
84
  WORSE = "WORSE",
@@ -179,6 +180,7 @@ interface ILexemeLearningInfo {
179
180
  newCount: number;
180
181
  learningCount: number;
181
182
  retiredCount: number;
183
+ queuedCount: number;
182
184
  }
183
185
 
184
186
  declare class Lexeme implements ILexeme {
@@ -234,6 +236,7 @@ interface IUserData {
234
236
  testsCompletedCount: number;
235
237
  uiLanguage: Language;
236
238
  completedOnboarding: boolean;
239
+ learningSet: number;
237
240
  }
238
241
 
239
242
  declare enum HttpStatusCode {
@@ -266,6 +269,7 @@ declare enum ApiPath {
266
269
  LEXEME_PAIR_FAMILIARITY = "/lexemePair/:czId/:enId/:familiarity",
267
270
  LEXEME_PAIR_COUNT = "/lexemePairCount",
268
271
  LEXEME_PAIR_RECYCLE = "/lexemePair/recycle/:czId/:enId",
272
+ PUSH_TOKEN = "/user/pushToken",
269
273
  SIGN_IN = "/signIn",
270
274
  SIGN_OUT = "/signOut",
271
275
  TEST_COMPLETE = "/test/complete",
@@ -307,6 +311,7 @@ type LexemePairRequestBody = {
307
311
  interface UpdateUserRequestBody {
308
312
  learningLanguage: Language;
309
313
  uiLanguage: Language;
314
+ learningSet: number;
310
315
  }
311
316
  interface AutologinRequestBody {
312
317
  clientDate: MySQLDate;
@@ -322,6 +327,11 @@ interface SignInRequestBody {
322
327
  interface UpdateOnboardingStatusRequestBody {
323
328
  completedOnboarding: boolean;
324
329
  }
330
+ interface RegisterPushTokenRequestBody {
331
+ expoPushToken: string;
332
+ platform: ClientPlatform;
333
+ timezone: string;
334
+ }
325
335
  /**
326
336
  * Request Params
327
337
  */
@@ -421,4 +431,4 @@ type DeeplTranslation = {
421
431
  }>;
422
432
  };
423
433
 
424
- export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DateString, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, type HeatMapParams, type HeatMapResponseData, HttpStatusCode, type IActivityCount, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ILexemePairTexts, type ISession, type ITestResult, type IUserData, type IVocabCheckActivity, 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 SelectVocabCheckActivityParams, type SignInRequestBody, type SignInResponseData, type Streaks, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, deriveStreakFromVocabCheckActivity, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isExpired, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
434
+ export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DateString, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, type HeatMapParams, type HeatMapResponseData, HttpStatusCode, type IActivityCount, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ILexemePairTexts, type ISession, type ITestResult, type IUserData, type IVocabCheckActivity, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, type RegisterPushTokenRequestBody, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SelectVocabCheckActivityParams, type SignInRequestBody, type SignInResponseData, type Streaks, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, deriveStreakFromVocabCheckActivity, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isExpired, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
package/dist/index.d.ts CHANGED
@@ -77,7 +77,8 @@ declare enum VocabCheckType {
77
77
  declare enum LearningStage {
78
78
  NEW = "NEW",
79
79
  LEARNING = "LEARNING",
80
- RETIRED = "RETIRED"
80
+ RETIRED = "RETIRED",
81
+ QUEUED = "QUEUED"
81
82
  }
82
83
  declare enum Progress {
83
84
  WORSE = "WORSE",
@@ -179,6 +180,7 @@ interface ILexemeLearningInfo {
179
180
  newCount: number;
180
181
  learningCount: number;
181
182
  retiredCount: number;
183
+ queuedCount: number;
182
184
  }
183
185
 
184
186
  declare class Lexeme implements ILexeme {
@@ -234,6 +236,7 @@ interface IUserData {
234
236
  testsCompletedCount: number;
235
237
  uiLanguage: Language;
236
238
  completedOnboarding: boolean;
239
+ learningSet: number;
237
240
  }
238
241
 
239
242
  declare enum HttpStatusCode {
@@ -266,6 +269,7 @@ declare enum ApiPath {
266
269
  LEXEME_PAIR_FAMILIARITY = "/lexemePair/:czId/:enId/:familiarity",
267
270
  LEXEME_PAIR_COUNT = "/lexemePairCount",
268
271
  LEXEME_PAIR_RECYCLE = "/lexemePair/recycle/:czId/:enId",
272
+ PUSH_TOKEN = "/user/pushToken",
269
273
  SIGN_IN = "/signIn",
270
274
  SIGN_OUT = "/signOut",
271
275
  TEST_COMPLETE = "/test/complete",
@@ -307,6 +311,7 @@ type LexemePairRequestBody = {
307
311
  interface UpdateUserRequestBody {
308
312
  learningLanguage: Language;
309
313
  uiLanguage: Language;
314
+ learningSet: number;
310
315
  }
311
316
  interface AutologinRequestBody {
312
317
  clientDate: MySQLDate;
@@ -322,6 +327,11 @@ interface SignInRequestBody {
322
327
  interface UpdateOnboardingStatusRequestBody {
323
328
  completedOnboarding: boolean;
324
329
  }
330
+ interface RegisterPushTokenRequestBody {
331
+ expoPushToken: string;
332
+ platform: ClientPlatform;
333
+ timezone: string;
334
+ }
325
335
  /**
326
336
  * Request Params
327
337
  */
@@ -421,4 +431,4 @@ type DeeplTranslation = {
421
431
  }>;
422
432
  };
423
433
 
424
- export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DateString, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, type HeatMapParams, type HeatMapResponseData, HttpStatusCode, type IActivityCount, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ILexemePairTexts, type ISession, type ITestResult, type IUserData, type IVocabCheckActivity, 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 SelectVocabCheckActivityParams, type SignInRequestBody, type SignInResponseData, type Streaks, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, deriveStreakFromVocabCheckActivity, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isExpired, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
434
+ export { ApiMethod, ApiPath, AppError, type AutologinRequestBody, ClientPlatform, type ControllerResponse, type DateString, type DeeplTranslation, type DeleteLexemePairRequestParams, Familiarity, type HeatMapParams, type HeatMapResponseData, HttpStatusCode, type IActivityCount, type ICount, type ILexeme, type ILexemeIdPair, type ILexemeLearningInfo, type ILexemePair, type ILexemePairTexts, type ISession, type ITestResult, type IUserData, type IVocabCheckActivity, type InsertOrUpdateRequestBody, type InsertOrUpdateResponseData, Language, LearningStage, Lexeme, LexemePair, type LexemePairRequestBody, type LexemePairWithLang, type MySQLDate, Progress, type RecycleLexemePairParams, type RegisterPushTokenRequestBody, ReminderFrequency, type ResetTestUserParams, type Result, Scenario, type SelectAllTranslationsParams, type SelectLexemeCountParams, type SelectLexemePairParams, type SelectLexemePairsByTextParams, type SelectLexemesParams, type SelectTestLexemesParams, type SelectVocabCheckActivityParams, type SignInRequestBody, type SignInResponseData, type Streaks, type TestCompleteRequestBody, type TestCompleteResponseData, type TestInitRequestBody, type TestInitResponseData, type TranslationRequestBody, type TranslationResponseData, type UpdateLexemePairFamiliarityParams, type UpdateOnboardingStatusRequestBody, type UpdateUserRequestBody, VocabCheckType, convertJSDateStringToMySQLDate, dateDifferenceInDays, deriveStreakFromVocabCheckActivity, getFormattedDate, getMysqlDateIgnoreTZ, isClientDateTooFarFromServerDate, isExpired, isStringContainingInteger, isThePreviousDay, isTheSameDay, isValidJsDateString, isValidMysqlDateString, parameterReplace };
package/dist/index.js CHANGED
@@ -134,6 +134,7 @@ var LearningStage = /* @__PURE__ */ ((LearningStage2) => {
134
134
  LearningStage2["NEW"] = "NEW";
135
135
  LearningStage2["LEARNING"] = "LEARNING";
136
136
  LearningStage2["RETIRED"] = "RETIRED";
137
+ LearningStage2["QUEUED"] = "QUEUED";
137
138
  return LearningStage2;
138
139
  })(LearningStage || {});
139
140
  var Progress = /* @__PURE__ */ ((Progress2) => {
@@ -299,6 +300,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
299
300
  ApiPath2["LEXEME_PAIR_FAMILIARITY"] = "/lexemePair/:czId/:enId/:familiarity";
300
301
  ApiPath2["LEXEME_PAIR_COUNT"] = "/lexemePairCount";
301
302
  ApiPath2["LEXEME_PAIR_RECYCLE"] = "/lexemePair/recycle/:czId/:enId";
303
+ ApiPath2["PUSH_TOKEN"] = "/user/pushToken";
302
304
  ApiPath2["SIGN_IN"] = "/signIn";
303
305
  ApiPath2["SIGN_OUT"] = "/signOut";
304
306
  ApiPath2["TEST_COMPLETE"] = "/test/complete";
package/dist/index.mjs CHANGED
@@ -83,6 +83,7 @@ var LearningStage = /* @__PURE__ */ ((LearningStage2) => {
83
83
  LearningStage2["NEW"] = "NEW";
84
84
  LearningStage2["LEARNING"] = "LEARNING";
85
85
  LearningStage2["RETIRED"] = "RETIRED";
86
+ LearningStage2["QUEUED"] = "QUEUED";
86
87
  return LearningStage2;
87
88
  })(LearningStage || {});
88
89
  var Progress = /* @__PURE__ */ ((Progress2) => {
@@ -248,6 +249,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
248
249
  ApiPath2["LEXEME_PAIR_FAMILIARITY"] = "/lexemePair/:czId/:enId/:familiarity";
249
250
  ApiPath2["LEXEME_PAIR_COUNT"] = "/lexemePairCount";
250
251
  ApiPath2["LEXEME_PAIR_RECYCLE"] = "/lexemePair/recycle/:czId/:enId";
252
+ ApiPath2["PUSH_TOKEN"] = "/user/pushToken";
251
253
  ApiPath2["SIGN_IN"] = "/signIn";
252
254
  ApiPath2["SIGN_OUT"] = "/signOut";
253
255
  ApiPath2["TEST_COMPLETE"] = "/test/complete";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czapp-shared",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
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
@@ -44,6 +44,7 @@ export enum ApiPath {
44
44
  LEXEME_PAIR_FAMILIARITY = '/lexemePair/:czId/:enId/:familiarity',
45
45
  LEXEME_PAIR_COUNT = '/lexemePairCount',
46
46
  LEXEME_PAIR_RECYCLE = '/lexemePair/recycle/:czId/:enId',
47
+ PUSH_TOKEN = '/user/pushToken',
47
48
  SIGN_IN = '/signIn',
48
49
  SIGN_OUT = '/signOut',
49
50
  TEST_COMPLETE = '/test/complete',
@@ -87,6 +88,7 @@ export type LexemePairRequestBody = {
87
88
  export interface UpdateUserRequestBody {
88
89
  learningLanguage: Language;
89
90
  uiLanguage: Language;
91
+ learningSet: number;
90
92
  }
91
93
  export interface AutologinRequestBody {
92
94
  clientDate: MySQLDate;
@@ -104,6 +106,12 @@ export interface UpdateOnboardingStatusRequestBody {
104
106
  completedOnboarding: boolean;
105
107
  }
106
108
 
109
+ export interface RegisterPushTokenRequestBody {
110
+ expoPushToken: string;
111
+ platform: ClientPlatform;
112
+ timezone: string; // IANA timezone identifier, e.g. "Europe/Prague"
113
+ }
114
+
107
115
  /**
108
116
  * Request Params
109
117
  */
@@ -45,4 +45,5 @@ export interface ILexemeLearningInfo {
45
45
  newCount: number;
46
46
  learningCount: number;
47
47
  retiredCount: number;
48
+ queuedCount: number;
48
49
  }
@@ -30,6 +30,7 @@ export enum LearningStage {
30
30
  NEW = 'NEW',
31
31
  LEARNING = 'LEARNING',
32
32
  RETIRED = 'RETIRED',
33
+ QUEUED = 'QUEUED',
33
34
  }
34
35
 
35
36
  export enum Progress {
@@ -16,5 +16,6 @@ export interface IUserData {
16
16
  signUpDate: MySQLDate,
17
17
  testsCompletedCount: number,
18
18
  uiLanguage: Language,
19
- completedOnboarding: boolean
19
+ completedOnboarding: boolean,
20
+ learningSet: number
20
21
  }