@carecard/validate 3.1.18 → 3.1.19

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.
@@ -58,6 +58,10 @@ function validateProperties(obj = {}) {
58
58
  case 'document_type':
59
59
  case 'documentType':
60
60
  case 'reason':
61
+ case 'entity_type':
62
+ case 'entityType':
63
+ case 'action_type':
64
+ case 'actionType':
61
65
  case 'street':
62
66
  case 'city':
63
67
  case 'state':
@@ -149,6 +153,12 @@ function validateProperties(obj = {}) {
149
153
  case 'userRoleId':
150
154
  case 'phone_number_id':
151
155
  case 'phoneNumberId':
156
+ case 'entity_id':
157
+ case 'entityId':
158
+ case 'changed_by':
159
+ case 'changedBy':
160
+ case 'request_id':
161
+ case 'requestId':
152
162
  if (isValidUuidString(value)) {
153
163
  returnObj[key] = value;
154
164
  }
@@ -165,6 +175,8 @@ function validateProperties(obj = {}) {
165
175
  case 'price':
166
176
  case 'from':
167
177
  case 'number':
178
+ case 'limit':
179
+ case 'offset':
168
180
  if (isValidIntegerString(value)) {
169
181
  returnObj[key] = value;
170
182
  }
@@ -212,6 +224,10 @@ function validateProperties(obj = {}) {
212
224
  break;
213
225
  case 'expires_at':
214
226
  case 'expiresAt':
227
+ case 'start_time':
228
+ case 'startTime':
229
+ case 'end_time':
230
+ case 'endTime':
215
231
  if (isValidTimestampzString(value) || isValidTimestampString(value)) {
216
232
  returnObj[key] = value;
217
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carecard/validate",
3
- "version": "3.1.18",
3
+ "version": "3.1.19",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/CareCard-ca/pkg-validate.git"