czapp-shared 1.0.32 → 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
@@ -269,6 +269,7 @@ declare enum ApiPath {
269
269
  LEXEME_PAIR_FAMILIARITY = "/lexemePair/:czId/:enId/:familiarity",
270
270
  LEXEME_PAIR_COUNT = "/lexemePairCount",
271
271
  LEXEME_PAIR_RECYCLE = "/lexemePair/recycle/:czId/:enId",
272
+ PUSH_TOKEN = "/user/pushToken",
272
273
  SIGN_IN = "/signIn",
273
274
  SIGN_OUT = "/signOut",
274
275
  TEST_COMPLETE = "/test/complete",
@@ -326,6 +327,11 @@ interface SignInRequestBody {
326
327
  interface UpdateOnboardingStatusRequestBody {
327
328
  completedOnboarding: boolean;
328
329
  }
330
+ interface RegisterPushTokenRequestBody {
331
+ expoPushToken: string;
332
+ platform: ClientPlatform;
333
+ timezone: string;
334
+ }
329
335
  /**
330
336
  * Request Params
331
337
  */
@@ -425,4 +431,4 @@ type DeeplTranslation = {
425
431
  }>;
426
432
  };
427
433
 
428
- 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
@@ -269,6 +269,7 @@ declare enum ApiPath {
269
269
  LEXEME_PAIR_FAMILIARITY = "/lexemePair/:czId/:enId/:familiarity",
270
270
  LEXEME_PAIR_COUNT = "/lexemePairCount",
271
271
  LEXEME_PAIR_RECYCLE = "/lexemePair/recycle/:czId/:enId",
272
+ PUSH_TOKEN = "/user/pushToken",
272
273
  SIGN_IN = "/signIn",
273
274
  SIGN_OUT = "/signOut",
274
275
  TEST_COMPLETE = "/test/complete",
@@ -326,6 +327,11 @@ interface SignInRequestBody {
326
327
  interface UpdateOnboardingStatusRequestBody {
327
328
  completedOnboarding: boolean;
328
329
  }
330
+ interface RegisterPushTokenRequestBody {
331
+ expoPushToken: string;
332
+ platform: ClientPlatform;
333
+ timezone: string;
334
+ }
329
335
  /**
330
336
  * Request Params
331
337
  */
@@ -425,4 +431,4 @@ type DeeplTranslation = {
425
431
  }>;
426
432
  };
427
433
 
428
- 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
@@ -300,6 +300,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
300
300
  ApiPath2["LEXEME_PAIR_FAMILIARITY"] = "/lexemePair/:czId/:enId/:familiarity";
301
301
  ApiPath2["LEXEME_PAIR_COUNT"] = "/lexemePairCount";
302
302
  ApiPath2["LEXEME_PAIR_RECYCLE"] = "/lexemePair/recycle/:czId/:enId";
303
+ ApiPath2["PUSH_TOKEN"] = "/user/pushToken";
303
304
  ApiPath2["SIGN_IN"] = "/signIn";
304
305
  ApiPath2["SIGN_OUT"] = "/signOut";
305
306
  ApiPath2["TEST_COMPLETE"] = "/test/complete";
package/dist/index.mjs CHANGED
@@ -249,6 +249,7 @@ var ApiPath = /* @__PURE__ */ ((ApiPath2) => {
249
249
  ApiPath2["LEXEME_PAIR_FAMILIARITY"] = "/lexemePair/:czId/:enId/:familiarity";
250
250
  ApiPath2["LEXEME_PAIR_COUNT"] = "/lexemePairCount";
251
251
  ApiPath2["LEXEME_PAIR_RECYCLE"] = "/lexemePair/recycle/:czId/:enId";
252
+ ApiPath2["PUSH_TOKEN"] = "/user/pushToken";
252
253
  ApiPath2["SIGN_IN"] = "/signIn";
253
254
  ApiPath2["SIGN_OUT"] = "/signOut";
254
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.32",
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',
@@ -105,6 +106,12 @@ export interface UpdateOnboardingStatusRequestBody {
105
106
  completedOnboarding: boolean;
106
107
  }
107
108
 
109
+ export interface RegisterPushTokenRequestBody {
110
+ expoPushToken: string;
111
+ platform: ClientPlatform;
112
+ timezone: string; // IANA timezone identifier, e.g. "Europe/Prague"
113
+ }
114
+
108
115
  /**
109
116
  * Request Params
110
117
  */