squarecommonblhelper 11.2.1 → 11.3.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
@@ -1,252 +1,18 @@
1
1
  # squareCommonBLHelper
2
-
2
+
3
+ > 📌 versioning: see [CHANGELOG.md](./CHANGELOG.md).
4
+
3
5
  ## about
4
-
6
+
5
7
  helper for common bl for my projects.
6
-
8
+
7
9
  ## usage
8
-
10
+
9
11
  [Example](./example.js)
10
-
12
+
11
13
  ## env
12
-
14
+
13
15
  1. node js - v18.17.0
14
16
  2. npm - v9.6.7
15
-
16
- ## changelog
17
-
18
- ### v11.2.1
19
-
20
- - AuthenticationCommonBL:
21
- - fix getUserRecoveryMethodsV0 response type.
22
-
23
- ### v11.2.0
24
-
25
- - AuthenticationCommonBL:
26
- - update getUserRecoveryMethodsV0 response type.
27
-
28
- ### v11.1.0
29
-
30
- - all:
31
- - add new optional parameter logErrors to all methods.
32
-
33
- ### v11.0.0
34
-
35
- - AuthenticationCommonBL:
36
- - UpdateUserProfilePhotoV0Response now compatible with square_common_bl>=7.0.0
37
-
38
- ### v10.1.0
39
-
40
- - AuthenticationCommonBL:
41
- - add UpdateUserProfilePhotoV0ResponseZ.
42
-
43
- ### v10.0.0
44
-
45
- - AuthenticationCommonBL:
46
- - **breaking change**, rename the following types to match the standard naming convention:
47
- - UpdateProfileDetailsV0ResponseZ
48
- - SendResetPasswordEmailV0ResponseZ
49
- - UpdateUserRecoveryMethodsV0ResponseZ
50
- - SendVerificationEmailV0ResponseZ
51
- - ValidateEmailVerificationCodeV0ResponseZ
52
-
53
- ### v9.3.1
54
-
55
- - AuthenticationCommonBL:
56
- - fix type of backup_code_details in GetUserDetailsV0ResponseZ.
57
-
58
- ### v9.3.0
59
-
60
- - AuthenticationCommonBL:
61
- - add backup_code_details in GetUserDetailsV0ResponseZ.
62
-
63
- ### v9.2.3
64
-
65
- - AuthenticationCommonBL:
66
- - updateUserRecoveryMethodsV0 now compatible with square_common_bl>=6.0.0
67
-
68
- ### v9.2.2
69
-
70
- - AuthenticationCommonBL:
71
- - bugfix in updateUserRecoveryMethodsV0 query parameters (string[] instead of comma separated list).
72
-
73
- ### v9.2.1
74
-
75
- - AuthenticationCommonBL:
76
- - update type of GetUserDetailsV0ResponseZ and GetUserRecoveryMethodsV0ResponseZ to include RecoveryMethodEnumZ as key instead of random string.
77
-
78
- ### v9.2.0
79
-
80
- - AuthenticationCommonBL:
81
- - add getUserRecoveryMethodsV0.
82
-
83
- ### v9.1.0
84
-
85
- - AuthenticationCommonBL:
86
- - add email_verification_details in GetUserDetailsV0ResponseZ.
87
-
88
- ### v9.0.2
89
-
90
- - AuthenticationCommonBL:
91
- - add recovery_methods in GetUserDetailsV0ResponseZ.
92
-
93
- ### v9.0.1
94
-
95
- - AuthenticationCommonBL:
96
- - add user_profile_phone_number_country_code and user_profile_email_verified in GetUserDetailsV0ResponseZ.
97
-
98
- ### v9.0.0
99
-
100
- - AuthenticationCommonBL:
101
- - **breaking change**: remove user_profile_username from GetUserDetailsV0ResponseZ.
102
-
103
- ### v8.0.1
104
-
105
- - AuthenticationCommonBL:
106
- - add username to GetUserDetailsV0ResponseZ.
107
-
108
- ### v8.0.0
109
-
110
- - AuthenticationCommonBL:
111
- - **breaking change**, rename the following types to match the standard naming convention:
112
- - DeleteUserV0ResponseZ
113
- - LogoutAllV0ResponseZ
114
- - LogoutAppsV0ResponseZ
115
- - GenerateAccountBackupCodeV0ResponseZ
116
- - updateProfileDetailsV0ResponseZ
117
-
118
- ### v7.0.0
119
-
120
- - GreetingCommonBL:
121
- - **breaking change**: replace createGreetingV0 with createAnonymousGreetingV0.
122
-
123
- ### v6.1.0
124
-
125
- - AuthenticationCommonBL:
126
- - update output types of sendResetPasswordEmailV0ResponseZ and sendVerificationEmailV0ResponseZ.
127
-
128
- ### v6.0.0
129
-
130
- - AuthenticationCommonBL:
131
- - **breaking change** remove updatePasswordV0.
132
- - add generateAccountBackupCodesV0.
133
- - method changed of deleteUserV0 from delete to post.
134
- - add updateProfileDetailsV0.
135
- - add sendResetPasswordEmailV0.
136
- - add updateUserRecoveryMethodsV0.
137
- - add sendVerificationEmailV0.
138
- - add validateEmailVerificationCodeV0.
139
-
140
- ### v5.2.1
141
-
142
- - AuthenticationCommonBL:
143
- - fix url in updateUserProfilePhotoV0.
144
-
145
- ### v5.2.0
146
-
147
- - AuthenticationCommonBL:
148
- - add updateUserProfilePhotoV0.
149
- - rename getUserProfilePhoto to getUserProfilePhotoV0.
150
-
151
- ### v5.1.0
152
-
153
- - AuthenticationCommonBL:
154
- - add getUserProfilePhoto.
155
-
156
- ### v5.0.0
157
-
158
- - AuthenticationCommonBL:
159
- - change type for GetUserDetailsV0ResponseZ to make it compatible with latest changes.
160
-
161
- ### v4.2.0
162
-
163
- - AuthenticationCommonBL:
164
- - add logoutAppsV0.
165
-
166
- ### v4.1.0
167
-
168
- - AuthenticationCommonBL:
169
- - add logoutAllV0.
170
-
171
- ### v4.0.0
172
-
173
- - AuthenticationCommonBL:
174
- - change type for GetUserDetailsV0ResponseZ to make it compatible with latest changes.
175
-
176
- ### v3.0.0
177
-
178
- - AuthenticationCommonBL:
179
- - remove generateAccessTokenV0, logoutV0.
180
-
181
- ### v2.0.1
182
-
183
- - use strictObject in zod.
184
- - export types in index file.
185
-
186
- ### v2.0.0
187
-
188
- - remove UtilsCommonBL
189
-
190
- ### v1.8.0
191
-
192
- - AuthenticationCommonBL:
193
- - add types for deleteUserV0
194
-
195
- ### v1.7.0
196
-
197
- - AuthenticationCommonBL:
198
- - add types for logoutV0
199
-
200
- ### v1.6.0
201
-
202
- - AuthenticationCommonBL:
203
- - add types for getUserDetailsV0
204
-
205
- ### v1.5.0
206
-
207
- - AuthenticationCommonBL:
208
- - add types for updatePasswordV0
209
-
210
- ### v1.4.0
211
-
212
- - AuthenticationCommonBL:
213
- - bug fix in updateUsernameV0
214
- - add types for updateUsernameV0
215
-
216
- ### v1.3.0
217
-
218
- - add types in AuthenticationCommonBL:
219
- - generateAccessTokenV0
220
-
221
- ### v1.2.0
222
-
223
- - add types in greeting:
224
- - createGreetingV0
225
-
226
- ### v1.1.0
227
-
228
- - add AuthenticationCommonBL class with the following methods:
229
- - logoutV0
230
- - generateAccessTokenV0
231
- - deleteUserV0
232
- - updateUsernameV0
233
- - updatePasswordV0
234
- - getUserDetailsV0
235
-
236
- ### v1.0.3
237
-
238
- - experimental release.
239
-
240
- ### v1.0.2
241
-
242
- - replace user_id with accessToken from greeting -> createGreetingV0.
243
-
244
- ### v1.0.1
245
-
246
- - remove app_id from greeting -> createGreetingV0.
247
-
248
- ### v1.0.0
249
-
250
- - initial implementation.
251
-
17
+
252
18
  ## Feedback is appreciated. Thank you!
@@ -48,6 +48,7 @@ declare class AuthenticationCommonBL {
48
48
  available: number;
49
49
  generated_at: string;
50
50
  } | null;
51
+ auth_providers: string[];
51
52
  };
52
53
  };
53
54
  log?: any;
@@ -120,6 +120,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
120
120
  available: number;
121
121
  generated_at: string;
122
122
  }>>;
123
+ auth_providers: z.ZodArray<z.ZodString, "many">;
123
124
  }, "strict", z.ZodTypeAny, {
124
125
  user_id: string;
125
126
  username: string;
@@ -148,6 +149,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
148
149
  available: number;
149
150
  generated_at: string;
150
151
  } | null;
152
+ auth_providers: string[];
151
153
  }, {
152
154
  user_id: string;
153
155
  username: string;
@@ -176,6 +178,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
176
178
  available: number;
177
179
  generated_at: string;
178
180
  } | null;
181
+ auth_providers: string[];
179
182
  }>;
180
183
  }, "strict", z.ZodTypeAny, {
181
184
  main: {
@@ -206,6 +209,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
206
209
  available: number;
207
210
  generated_at: string;
208
211
  } | null;
212
+ auth_providers: string[];
209
213
  };
210
214
  }, {
211
215
  main: {
@@ -236,6 +240,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
236
240
  available: number;
237
241
  generated_at: string;
238
242
  } | null;
243
+ auth_providers: string[];
239
244
  };
240
245
  }>;
241
246
  }>, "strict", z.ZodTypeAny, {
@@ -269,6 +274,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
269
274
  available: number;
270
275
  generated_at: string;
271
276
  } | null;
277
+ auth_providers: string[];
272
278
  };
273
279
  };
274
280
  log?: any;
@@ -303,6 +309,7 @@ declare const GetUserDetailsV0ResponseZ: z.ZodObject<z.objectUtil.extendShape<{
303
309
  available: number;
304
310
  generated_at: string;
305
311
  } | null;
312
+ auth_providers: string[];
306
313
  };
307
314
  };
308
315
  log?: any;
@@ -40,6 +40,7 @@ const GetUserDetailsV0ResponseZ = APIOutputZ.extend({
40
40
  generated_at: z.string(),
41
41
  })
42
42
  .nullable(),
43
+ auth_providers: z.array(z.string()),
43
44
  }),
44
45
  }),
45
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarecommonblhelper",
3
- "version": "11.2.1",
3
+ "version": "11.3.0",
4
4
  "description": "helper for common bl for my projects.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",