squarecommonblhelper 7.0.0 → 8.0.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.
package/README.md CHANGED
@@ -15,6 +15,16 @@ helper for common bl for my projects.
15
15
 
16
16
  ## changelog
17
17
 
18
+ ### v8.0.0
19
+
20
+ - AuthenticationCommonBL:
21
+ - **breaking change**, rename the following types to match the standard naming convention:
22
+ - DeleteUserV0ResponseZ
23
+ - LogoutAllV0ResponseZ
24
+ - LogoutAppsV0ResponseZ
25
+ - GenerateAccountBackupCodeV0ResponseZ
26
+ - updateProfileDetailsV0ResponseZ
27
+
18
28
  ### v7.0.0
19
29
 
20
30
  - GreetingCommonBL:
@@ -1,5 +1,5 @@
1
1
  import { fetchFileData, fetchJSONData } from "squarecommons";
2
- import { DeleteUserV0Z, GenerateAccountBackupCodeZ, GetUserDetailsV0ResponseZ, LogoutAllV0Z, LogoutAppsV0Z, sendResetPasswordEmailV0ResponseZ, sendVerificationEmailV0ResponseZ, updateProfileDetailsZ, UpdateUsernameV0ResponseZ, updateUserRecoveryMethodsV0ResponseZ, validateEmailVerificationCodeV0ResponseZ } from "./types/AuthenticationResponses.js";
2
+ import { DeleteUserV0ResponseZ, GenerateAccountBackupCodeV0ResponseZ, GetUserDetailsV0ResponseZ, LogoutAllV0ResponseZ, LogoutAppsV0ResponseZ, sendResetPasswordEmailV0ResponseZ, sendVerificationEmailV0ResponseZ, updateProfileDetailsV0ResponseZ, UpdateUsernameV0ResponseZ, updateUserRecoveryMethodsV0ResponseZ, validateEmailVerificationCodeV0ResponseZ, } from "./types/AuthenticationResponses.js";
3
3
  class AuthenticationCommonBL {
4
4
  commonBLBaseURL;
5
5
  constructor(commonBLBaseURL = "http://localhost:10110") {
@@ -20,7 +20,7 @@ class AuthenticationCommonBL {
20
20
  { password: password },
21
21
  // query params
22
22
  undefined);
23
- return DeleteUserV0Z.parse(data);
23
+ return DeleteUserV0ResponseZ.parse(data);
24
24
  }
25
25
  catch (error) {
26
26
  throw error;
@@ -83,7 +83,7 @@ class AuthenticationCommonBL {
83
83
  undefined,
84
84
  // query params
85
85
  undefined);
86
- return LogoutAllV0Z.parse(data);
86
+ return LogoutAllV0ResponseZ.parse(data);
87
87
  }
88
88
  catch (error) {
89
89
  throw error;
@@ -104,7 +104,7 @@ class AuthenticationCommonBL {
104
104
  { app_names: appNames },
105
105
  // query params
106
106
  undefined);
107
- return LogoutAppsV0Z.parse(data);
107
+ return LogoutAppsV0ResponseZ.parse(data);
108
108
  }
109
109
  catch (error) {
110
110
  throw error;
@@ -181,7 +181,7 @@ class AuthenticationCommonBL {
181
181
  undefined,
182
182
  // query params
183
183
  undefined);
184
- return GenerateAccountBackupCodeZ.parse(data);
184
+ return GenerateAccountBackupCodeV0ResponseZ.parse(data);
185
185
  }
186
186
  catch (error) {
187
187
  throw error;
@@ -214,7 +214,7 @@ class AuthenticationCommonBL {
214
214
  undefined,
215
215
  // query params
216
216
  queryParams);
217
- return updateProfileDetailsZ.parse(data);
217
+ return updateProfileDetailsV0ResponseZ.parse(data);
218
218
  }
219
219
  catch (error) {
220
220
  throw error;
@@ -206,7 +206,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
206
206
  log?: any;
207
207
  }>;
208
208
  type GetUserDetailsV0Response = z.infer<typeof GetUserDetailsV0ResponseZ>;
209
- declare const DeleteUserV0Z: z.ZodObject<z.objectUtil.extendShape<{
209
+ declare const DeleteUserV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
210
210
  data: z.ZodAny;
211
211
  message: z.ZodNullable<z.ZodString>;
212
212
  log: z.ZodAny;
@@ -221,8 +221,8 @@ declare const DeleteUserV0Z: z.ZodObject<z.objectUtil.extendShape<{
221
221
  data: null;
222
222
  log?: any;
223
223
  }>;
224
- type DeleteUserV0 = z.infer<typeof DeleteUserV0Z>;
225
- declare const LogoutAllV0Z: z.ZodObject<z.objectUtil.extendShape<{
224
+ type DeleteUserV0Response = z.infer<typeof DeleteUserV0ResponseZ>;
225
+ declare const LogoutAllV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
226
226
  data: z.ZodAny;
227
227
  message: z.ZodNullable<z.ZodString>;
228
228
  log: z.ZodAny;
@@ -237,8 +237,8 @@ declare const LogoutAllV0Z: z.ZodObject<z.objectUtil.extendShape<{
237
237
  data: null;
238
238
  log?: any;
239
239
  }>;
240
- type LogoutAllV0 = z.infer<typeof LogoutAllV0Z>;
241
- declare const LogoutAppsV0Z: z.ZodObject<z.objectUtil.extendShape<{
240
+ type LogoutAllV0Response = z.infer<typeof LogoutAllV0ResponseZ>;
241
+ declare const LogoutAppsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
242
242
  data: z.ZodAny;
243
243
  message: z.ZodNullable<z.ZodString>;
244
244
  log: z.ZodAny;
@@ -253,8 +253,8 @@ declare const LogoutAppsV0Z: z.ZodObject<z.objectUtil.extendShape<{
253
253
  data: null;
254
254
  log?: any;
255
255
  }>;
256
- type LogoutAppsV0 = z.infer<typeof LogoutAppsV0Z>;
257
- declare const GenerateAccountBackupCodeZ: z.ZodObject<z.objectUtil.extendShape<{
256
+ type LogoutAppsV0Response = z.infer<typeof LogoutAppsV0ResponseZ>;
257
+ declare const GenerateAccountBackupCodeV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
258
258
  data: z.ZodAny;
259
259
  message: z.ZodNullable<z.ZodString>;
260
260
  log: z.ZodAny;
@@ -300,8 +300,8 @@ declare const GenerateAccountBackupCodeZ: z.ZodObject<z.objectUtil.extendShape<{
300
300
  };
301
301
  log?: any;
302
302
  }>;
303
- type GenerateAccountBackupCode = z.infer<typeof GenerateAccountBackupCodeZ>;
304
- declare const updateProfileDetailsZ: z.ZodObject<z.objectUtil.extendShape<{
303
+ type GenerateAccountBackupCodeV0Response = z.infer<typeof GenerateAccountBackupCodeV0ResponseZ>;
304
+ declare const updateProfileDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
305
305
  data: z.ZodAny;
306
306
  message: z.ZodNullable<z.ZodString>;
307
307
  log: z.ZodAny;
@@ -401,7 +401,7 @@ declare const updateProfileDetailsZ: z.ZodObject<z.objectUtil.extendShape<{
401
401
  };
402
402
  log?: any;
403
403
  }>;
404
- type updateProfileDetails = z.infer<typeof updateProfileDetailsZ>;
404
+ type updateProfileDetailsV0Response = z.infer<typeof updateProfileDetailsV0ResponseZ>;
405
405
  declare const sendResetPasswordEmailV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
406
406
  data: z.ZodAny;
407
407
  message: z.ZodNullable<z.ZodString>;
@@ -518,4 +518,4 @@ declare const validateEmailVerificationCodeV0ResponseZ: z.ZodObject<z.objectUtil
518
518
  log?: any;
519
519
  }>;
520
520
  type validateEmailVerificationCodeV0Response = z.infer<typeof validateEmailVerificationCodeV0ResponseZ>;
521
- export { UpdateUsernameV0ResponseZ, UpdateUsernameV0Response, GetUserDetailsV0ResponseZ, GetUserDetailsV0Response, DeleteUserV0, DeleteUserV0Z, LogoutAllV0, LogoutAllV0Z, LogoutAppsV0, LogoutAppsV0Z, GenerateAccountBackupCode, GenerateAccountBackupCodeZ, updateProfileDetailsZ, updateProfileDetails, sendResetPasswordEmailV0ResponseZ, sendResetPasswordEmailV0Response, RecoveryMethodEnumZ, RecoveryMethodEnum, updateUserRecoveryMethodsV0ResponseZ, updateUserRecoveryMethodsV0Response, sendVerificationEmailV0ResponseZ, sendVerificationEmailV0Response, validateEmailVerificationCodeV0ResponseZ, validateEmailVerificationCodeV0Response, };
521
+ export { UpdateUsernameV0ResponseZ, UpdateUsernameV0Response, GetUserDetailsV0ResponseZ, GetUserDetailsV0Response, DeleteUserV0Response, DeleteUserV0ResponseZ, LogoutAllV0Response, LogoutAllV0ResponseZ, LogoutAppsV0Response, LogoutAppsV0ResponseZ, GenerateAccountBackupCodeV0Response, GenerateAccountBackupCodeV0ResponseZ, updateProfileDetailsV0ResponseZ, updateProfileDetailsV0Response, sendResetPasswordEmailV0ResponseZ, sendResetPasswordEmailV0Response, RecoveryMethodEnumZ, RecoveryMethodEnum, updateUserRecoveryMethodsV0ResponseZ, updateUserRecoveryMethodsV0Response, sendVerificationEmailV0ResponseZ, sendVerificationEmailV0Response, validateEmailVerificationCodeV0ResponseZ, validateEmailVerificationCodeV0Response, };
@@ -29,16 +29,16 @@ const GetUserDetailsV0ResponseZ = APIOutputZ.extend({
29
29
  }),
30
30
  }),
31
31
  });
32
- const DeleteUserV0Z = APIOutputZ.extend({
32
+ const DeleteUserV0ResponseZ = APIOutputZ.extend({
33
33
  data: z.null(),
34
34
  });
35
- const LogoutAllV0Z = APIOutputZ.extend({
35
+ const LogoutAllV0ResponseZ = APIOutputZ.extend({
36
36
  data: z.null(),
37
37
  });
38
- const LogoutAppsV0Z = APIOutputZ.extend({
38
+ const LogoutAppsV0ResponseZ = APIOutputZ.extend({
39
39
  data: z.null(),
40
40
  });
41
- const GenerateAccountBackupCodeZ = APIOutputZ.extend({
41
+ const GenerateAccountBackupCodeV0ResponseZ = APIOutputZ.extend({
42
42
  data: z.strictObject({
43
43
  main: z.strictObject({
44
44
  user_id: z.string(),
@@ -46,7 +46,7 @@ const GenerateAccountBackupCodeZ = APIOutputZ.extend({
46
46
  }),
47
47
  }),
48
48
  });
49
- const updateProfileDetailsZ = APIOutputZ.extend({
49
+ const updateProfileDetailsV0ResponseZ = APIOutputZ.extend({
50
50
  data: z.strictObject({
51
51
  main: z
52
52
  .array(z.strictObject({
@@ -87,4 +87,4 @@ const validateEmailVerificationCodeV0ResponseZ = APIOutputZ.extend({
87
87
  user_profile_email_verified: z.string(),
88
88
  })),
89
89
  });
90
- export { UpdateUsernameV0ResponseZ, GetUserDetailsV0ResponseZ, DeleteUserV0Z, LogoutAllV0Z, LogoutAppsV0Z, GenerateAccountBackupCodeZ, updateProfileDetailsZ, sendResetPasswordEmailV0ResponseZ, RecoveryMethodEnumZ, updateUserRecoveryMethodsV0ResponseZ, sendVerificationEmailV0ResponseZ, validateEmailVerificationCodeV0ResponseZ, };
90
+ export { UpdateUsernameV0ResponseZ, GetUserDetailsV0ResponseZ, DeleteUserV0ResponseZ, LogoutAllV0ResponseZ, LogoutAppsV0ResponseZ, GenerateAccountBackupCodeV0ResponseZ, updateProfileDetailsV0ResponseZ, sendResetPasswordEmailV0ResponseZ, RecoveryMethodEnumZ, updateUserRecoveryMethodsV0ResponseZ, sendVerificationEmailV0ResponseZ, validateEmailVerificationCodeV0ResponseZ, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarecommonblhelper",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "helper for common bl for my projects.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",