aivilife-contracts 3.0.0 → 4.1.0

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.
@@ -0,0 +1,10 @@
1
+ declare const AppLocale: {
2
+ readonly RU: "ru";
3
+ readonly KK: "kk";
4
+ readonly UZ: "uz";
5
+ readonly EN: "en";
6
+ };
7
+ type AppLocale = (typeof AppLocale)[keyof typeof AppLocale];
8
+ declare const SupportedLocales: readonly AppLocale[];
9
+
10
+ export { AppLocale, SupportedLocales };
@@ -0,0 +1,10 @@
1
+ declare const AppLocale: {
2
+ readonly RU: "ru";
3
+ readonly KK: "kk";
4
+ readonly UZ: "uz";
5
+ readonly EN: "en";
6
+ };
7
+ type AppLocale = (typeof AppLocale)[keyof typeof AppLocale];
8
+ declare const SupportedLocales: readonly AppLocale[];
9
+
10
+ export { AppLocale, SupportedLocales };
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ // src/localization/app-locale.enum.ts
4
+ var AppLocale = {
5
+ RU: "ru",
6
+ KK: "kk",
7
+ UZ: "uz",
8
+ EN: "en"
9
+ };
10
+ var SupportedLocales = Object.values(
11
+ AppLocale
12
+ );
13
+
14
+ exports.AppLocale = AppLocale;
15
+ exports.SupportedLocales = SupportedLocales;
16
+ //# sourceMappingURL=index.js.map
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/localization/app-locale.enum.ts"],"names":[],"mappings":";;;AAAO,IAAM,SAAA,GAAY;AAAA,EACvB,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI;AACN;AAIO,IAAM,mBAAmB,MAAA,CAAO,MAAA;AAAA,EACrC;AACF","file":"index.js","sourcesContent":["export const AppLocale = {\n RU: 'ru',\n KK: 'kk',\n UZ: 'uz',\n EN: 'en',\n} as const;\n\nexport type AppLocale = (typeof AppLocale)[keyof typeof AppLocale];\n\nexport const SupportedLocales = Object.values(\n AppLocale,\n) as readonly AppLocale[];\n"]}
@@ -0,0 +1,14 @@
1
+ // src/localization/app-locale.enum.ts
2
+ var AppLocale = {
3
+ RU: "ru",
4
+ KK: "kk",
5
+ UZ: "uz",
6
+ EN: "en"
7
+ };
8
+ var SupportedLocales = Object.values(
9
+ AppLocale
10
+ );
11
+
12
+ export { AppLocale, SupportedLocales };
13
+ //# sourceMappingURL=index.mjs.map
14
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/localization/app-locale.enum.ts"],"names":[],"mappings":";AAAO,IAAM,SAAA,GAAY;AAAA,EACvB,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI,IAAA;AAAA,EACJ,EAAA,EAAI;AACN;AAIO,IAAM,mBAAmB,MAAA,CAAO,MAAA;AAAA,EACrC;AACF","file":"index.mjs","sourcesContent":["export const AppLocale = {\n RU: 'ru',\n KK: 'kk',\n UZ: 'uz',\n EN: 'en',\n} as const;\n\nexport type AppLocale = (typeof AppLocale)[keyof typeof AppLocale];\n\nexport const SupportedLocales = Object.values(\n AppLocale,\n) as readonly AppLocale[];\n"]}
@@ -42,6 +42,10 @@ declare const SignInResponseSchema: z.ZodObject<{
42
42
  type SignInRequest = z.infer<typeof SignInRequestSchema>;
43
43
  type SignInResponse = z.infer<typeof SignInResponseSchema>;
44
44
 
45
+ declare const RegistrationEmailSchema: z.ZodEmail;
46
+ declare const RegistrationPhoneNumberSchema: z.ZodString;
47
+ declare const RegistrationLoginSchema: z.ZodString;
48
+ declare const RegistrationPasswordSchema: z.ZodString;
45
49
  declare const SignUpRequestSchema: z.ZodObject<{
46
50
  firstName: z.ZodString;
47
51
  lastName: z.ZodString;
@@ -58,6 +62,19 @@ declare const SignUpRequestSchema: z.ZodObject<{
58
62
  }, z.core.$strip>;
59
63
  type SignUpRequest = z.infer<typeof SignUpRequestSchema>;
60
64
 
65
+ declare const RegistrationAvailabilityRequestSchema: z.ZodObject<{
66
+ email: z.ZodOptional<z.ZodEmail>;
67
+ phoneNumber: z.ZodOptional<z.ZodString>;
68
+ login: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>;
70
+ declare const RegistrationAvailabilityResponseSchema: z.ZodObject<{
71
+ emailAvailable: z.ZodNullable<z.ZodBoolean>;
72
+ phoneNumberAvailable: z.ZodNullable<z.ZodBoolean>;
73
+ loginAvailable: z.ZodNullable<z.ZodBoolean>;
74
+ }, z.core.$strip>;
75
+ type RegistrationAvailabilityRequest = z.infer<typeof RegistrationAvailabilityRequestSchema>;
76
+ type RegistrationAvailabilityResponse = z.infer<typeof RegistrationAvailabilityResponseSchema>;
77
+
61
78
  declare const RequestEmailVerificationSchema: z.ZodObject<{
62
79
  email: z.ZodEmail;
63
80
  }, z.core.$strip>;
@@ -87,4 +104,4 @@ declare enum MarketingMemberStatus {
87
104
  declare const BinaryBranchSchema: z.ZodEnum<typeof BinaryBranch>;
88
105
  declare const MarketingMemberStatusSchema: z.ZodEnum<typeof MarketingMemberStatus>;
89
106
 
90
- export { type AuthUser as A, BinaryBranch as B, type ConfirmEmail as C, type ForgotPassword as F, MarketingMemberStatus as M, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, BinaryBranchSchema as b, ConfirmEmailSchema as c, ForgotPasswordSchema as d, MarketingMemberStatusSchema as e, RefreshResponseSchema as f, type RequestEmailVerification as g, RequestEmailVerificationSchema as h, type ResetPassword as i, ResetPasswordSchema as j, SignInRequestSchema as k, type SignInResponse as l, SignInResponseSchema as m, type SignUpRequest as n, SignUpRequestSchema as o };
107
+ export { type AuthUser as A, BinaryBranch as B, type ConfirmEmail as C, type ForgotPassword as F, MarketingMemberStatus as M, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, BinaryBranchSchema as b, ConfirmEmailSchema as c, ForgotPasswordSchema as d, MarketingMemberStatusSchema as e, RefreshResponseSchema as f, type RegistrationAvailabilityRequest as g, RegistrationAvailabilityRequestSchema as h, type RegistrationAvailabilityResponse as i, RegistrationAvailabilityResponseSchema as j, RegistrationEmailSchema as k, RegistrationLoginSchema as l, RegistrationPasswordSchema as m, RegistrationPhoneNumberSchema as n, type RequestEmailVerification as o, RequestEmailVerificationSchema as p, type ResetPassword as q, ResetPasswordSchema as r, SignInRequestSchema as s, type SignInResponse as t, SignInResponseSchema as u, type SignUpRequest as v, SignUpRequestSchema as w };
@@ -42,6 +42,10 @@ declare const SignInResponseSchema: z.ZodObject<{
42
42
  type SignInRequest = z.infer<typeof SignInRequestSchema>;
43
43
  type SignInResponse = z.infer<typeof SignInResponseSchema>;
44
44
 
45
+ declare const RegistrationEmailSchema: z.ZodEmail;
46
+ declare const RegistrationPhoneNumberSchema: z.ZodString;
47
+ declare const RegistrationLoginSchema: z.ZodString;
48
+ declare const RegistrationPasswordSchema: z.ZodString;
45
49
  declare const SignUpRequestSchema: z.ZodObject<{
46
50
  firstName: z.ZodString;
47
51
  lastName: z.ZodString;
@@ -58,6 +62,19 @@ declare const SignUpRequestSchema: z.ZodObject<{
58
62
  }, z.core.$strip>;
59
63
  type SignUpRequest = z.infer<typeof SignUpRequestSchema>;
60
64
 
65
+ declare const RegistrationAvailabilityRequestSchema: z.ZodObject<{
66
+ email: z.ZodOptional<z.ZodEmail>;
67
+ phoneNumber: z.ZodOptional<z.ZodString>;
68
+ login: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>;
70
+ declare const RegistrationAvailabilityResponseSchema: z.ZodObject<{
71
+ emailAvailable: z.ZodNullable<z.ZodBoolean>;
72
+ phoneNumberAvailable: z.ZodNullable<z.ZodBoolean>;
73
+ loginAvailable: z.ZodNullable<z.ZodBoolean>;
74
+ }, z.core.$strip>;
75
+ type RegistrationAvailabilityRequest = z.infer<typeof RegistrationAvailabilityRequestSchema>;
76
+ type RegistrationAvailabilityResponse = z.infer<typeof RegistrationAvailabilityResponseSchema>;
77
+
61
78
  declare const RequestEmailVerificationSchema: z.ZodObject<{
62
79
  email: z.ZodEmail;
63
80
  }, z.core.$strip>;
@@ -87,4 +104,4 @@ declare enum MarketingMemberStatus {
87
104
  declare const BinaryBranchSchema: z.ZodEnum<typeof BinaryBranch>;
88
105
  declare const MarketingMemberStatusSchema: z.ZodEnum<typeof MarketingMemberStatus>;
89
106
 
90
- export { type AuthUser as A, BinaryBranch as B, type ConfirmEmail as C, type ForgotPassword as F, MarketingMemberStatus as M, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, BinaryBranchSchema as b, ConfirmEmailSchema as c, ForgotPasswordSchema as d, MarketingMemberStatusSchema as e, RefreshResponseSchema as f, type RequestEmailVerification as g, RequestEmailVerificationSchema as h, type ResetPassword as i, ResetPasswordSchema as j, SignInRequestSchema as k, type SignInResponse as l, SignInResponseSchema as m, type SignUpRequest as n, SignUpRequestSchema as o };
107
+ export { type AuthUser as A, BinaryBranch as B, type ConfirmEmail as C, type ForgotPassword as F, MarketingMemberStatus as M, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, BinaryBranchSchema as b, ConfirmEmailSchema as c, ForgotPasswordSchema as d, MarketingMemberStatusSchema as e, RefreshResponseSchema as f, type RegistrationAvailabilityRequest as g, RegistrationAvailabilityRequestSchema as h, type RegistrationAvailabilityResponse as i, RegistrationAvailabilityResponseSchema as j, RegistrationEmailSchema as k, RegistrationLoginSchema as l, RegistrationPasswordSchema as m, RegistrationPhoneNumberSchema as n, type RequestEmailVerification as o, RequestEmailVerificationSchema as p, type ResetPassword as q, ResetPasswordSchema as r, SignInRequestSchema as s, type SignInResponse as t, SignInResponseSchema as u, type SignUpRequest as v, SignUpRequestSchema as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aivilife-contracts",
3
- "version": "3.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Aivilife Contracts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -15,6 +15,11 @@
15
15
  "types": "./dist/auth/index.d.ts",
16
16
  "import": "./dist/auth/index.mjs",
17
17
  "require": "./dist/auth/index.js"
18
+ },
19
+ "./localization": {
20
+ "types": "./dist/localization/index.d.ts",
21
+ "import": "./dist/localization/index.mjs",
22
+ "require": "./dist/localization/index.js"
18
23
  }
19
24
  },
20
25
  "files": [