candidhealth 0.4.1 → 0.4.3

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.
Files changed (169) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/client/Client.js +1 -1
  3. package/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
  4. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  5. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  6. package/api/resources/commons/types/RequestValidationError.d.ts +7 -0
  7. package/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
  8. package/api/resources/commons/types/index.d.ts +3 -1
  9. package/api/resources/commons/types/index.js +3 -1
  10. package/api/resources/encounters/resources/v4/client/Client.js +13 -8
  11. package/api/resources/encounters/resources/v4/client/create.d.ts +13 -1
  12. package/api/resources/encounters/resources/v4/client/create.js +22 -0
  13. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -4
  14. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  15. package/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
  16. package/api/resources/encounters/resources/v4/client/update.js +33 -0
  17. package/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
  18. package/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  20. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  21. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  22. package/api/resources/index.d.ts +0 -1
  23. package/api/resources/index.js +1 -2
  24. package/api/resources/payers/client/Client.js +2 -2
  25. package/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  26. package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  27. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  28. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  29. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  30. package/dist/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
  31. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  32. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  33. package/dist/api/resources/commons/types/RequestValidationError.d.ts +7 -0
  34. package/dist/api/resources/commons/types/RequestValidationError.js +5 -0
  35. package/dist/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
  36. package/dist/api/resources/commons/types/UnauthorizedErrorMessage.js +5 -0
  37. package/dist/api/resources/commons/types/index.d.ts +3 -1
  38. package/dist/api/resources/commons/types/index.js +3 -1
  39. package/dist/api/resources/encounters/resources/v4/client/Client.js +13 -8
  40. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +13 -1
  41. package/dist/api/resources/encounters/resources/v4/client/create.js +22 -0
  42. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -4
  43. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  44. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
  45. package/dist/api/resources/encounters/resources/v4/client/update.js +33 -0
  46. package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
  47. package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
  48. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  49. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  50. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  51. package/dist/api/resources/index.d.ts +0 -1
  52. package/dist/api/resources/index.js +1 -2
  53. package/dist/api/resources/payers/client/Client.js +2 -2
  54. package/dist/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  55. package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  56. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  57. package/dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
  58. package/{serialization/resources/commons/types/UserId.js → dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.js} +3 -7
  59. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  60. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  61. package/dist/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
  62. package/dist/serialization/resources/commons/types/{UserId.js → RequestValidationError.js} +4 -7
  63. package/dist/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
  64. package/dist/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → commons/types/UnauthorizedErrorMessage.js} +5 -3
  65. package/dist/serialization/resources/commons/types/index.d.ts +3 -1
  66. package/dist/serialization/resources/commons/types/index.js +3 -1
  67. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +9 -1
  68. package/dist/serialization/resources/encounters/resources/v4/client/create.js +10 -0
  69. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  70. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  71. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
  72. package/dist/serialization/resources/encounters/resources/v4/client/update.js +15 -0
  73. package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
  74. package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
  75. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  76. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
  77. package/dist/serialization/resources/index.d.ts +0 -1
  78. package/dist/serialization/resources/index.js +1 -2
  79. package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  80. package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
  81. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  82. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -0
  83. package/package.json +1 -1
  84. package/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
  85. package/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → commons/types/EntityNotFoundErrorMessage.js} +5 -3
  86. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  87. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  88. package/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
  89. package/serialization/resources/commons/types/RequestValidationError.js +34 -0
  90. package/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
  91. package/serialization/resources/commons/types/UnauthorizedErrorMessage.js +33 -0
  92. package/serialization/resources/commons/types/index.d.ts +3 -1
  93. package/serialization/resources/commons/types/index.js +3 -1
  94. package/serialization/resources/encounters/resources/v4/client/create.d.ts +9 -1
  95. package/serialization/resources/encounters/resources/v4/client/create.js +10 -0
  96. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  97. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  98. package/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
  99. package/serialization/resources/encounters/resources/v4/client/update.js +15 -0
  100. package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
  101. package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
  102. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  103. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
  104. package/serialization/resources/index.d.ts +0 -1
  105. package/serialization/resources/index.js +1 -2
  106. package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  107. package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
  108. package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  109. package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -0
  110. package/api/resources/commons/types/UserId.d.ts +0 -8
  111. package/api/resources/commons/types/UserId.js +0 -10
  112. package/api/resources/workQueues/index.d.ts +0 -1
  113. package/api/resources/workQueues/index.js +0 -17
  114. package/api/resources/workQueues/resources/index.d.ts +0 -1
  115. package/api/resources/workQueues/resources/index.js +0 -27
  116. package/api/resources/workQueues/resources/v1/index.d.ts +0 -1
  117. package/api/resources/workQueues/resources/v1/index.js +0 -17
  118. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
  119. package/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
  120. package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
  121. package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
  122. package/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  123. package/api/resources/workQueues/resources/v1/types/index.js +0 -19
  124. package/dist/api/resources/commons/types/UserId.d.ts +0 -8
  125. package/dist/api/resources/commons/types/UserId.js +0 -10
  126. package/dist/api/resources/workQueues/index.d.ts +0 -1
  127. package/dist/api/resources/workQueues/index.js +0 -17
  128. package/dist/api/resources/workQueues/resources/index.d.ts +0 -1
  129. package/dist/api/resources/workQueues/resources/index.js +0 -27
  130. package/dist/api/resources/workQueues/resources/v1/index.d.ts +0 -1
  131. package/dist/api/resources/workQueues/resources/v1/index.js +0 -17
  132. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
  133. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
  134. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
  135. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
  136. package/dist/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  137. package/dist/api/resources/workQueues/resources/v1/types/index.js +0 -19
  138. package/dist/serialization/resources/commons/types/UserId.d.ts +0 -10
  139. package/dist/serialization/resources/workQueues/index.d.ts +0 -1
  140. package/dist/serialization/resources/workQueues/index.js +0 -17
  141. package/dist/serialization/resources/workQueues/resources/index.d.ts +0 -1
  142. package/dist/serialization/resources/workQueues/resources/index.js +0 -27
  143. package/dist/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
  144. package/dist/serialization/resources/workQueues/resources/v1/index.js +0 -17
  145. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
  146. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
  147. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
  148. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
  149. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
  150. package/dist/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  151. package/dist/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
  152. package/serialization/resources/commons/types/UserId.d.ts +0 -10
  153. package/serialization/resources/workQueues/index.d.ts +0 -1
  154. package/serialization/resources/workQueues/index.js +0 -17
  155. package/serialization/resources/workQueues/resources/index.d.ts +0 -1
  156. package/serialization/resources/workQueues/resources/index.js +0 -27
  157. package/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
  158. package/serialization/resources/workQueues/resources/v1/index.js +0 -17
  159. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
  160. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
  161. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
  162. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
  163. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
  164. package/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  165. package/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
  166. /package/api/resources/{workQueues/resources/v1/types/WorkQueue.js → commons/types/EntityNotFoundErrorMessage.js} +0 -0
  167. /package/api/resources/{workQueues/resources/v1/types/WorkQueueCategory.js → commons/types/RequestValidationError.js} +0 -0
  168. /package/{dist/api/resources/workQueues/resources/v1/types/WorkQueue.js → api/resources/commons/types/UnauthorizedErrorMessage.js} +0 -0
  169. /package/dist/api/resources/{workQueues/resources/v1/types/WorkQueueCategory.js → commons/types/EntityNotFoundErrorMessage.js} +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UnauthorizedErrorMessage {
5
+ message?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,6 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
- export * from "./UserId";
10
9
  export * from "./LinkUrl";
11
10
  export * from "./ContentDownloadUrl";
12
11
  export * from "./PageToken";
@@ -28,6 +27,9 @@ export * from "./ProcedureModifier";
28
27
  export * from "./ServiceLineUnits";
29
28
  export * from "./InsuranceTypeCode";
30
29
  export * from "./EmrPayerCrosswalk";
30
+ export * from "./EntityNotFoundErrorMessage";
31
+ export * from "./UnauthorizedErrorMessage";
32
+ export * from "./RequestValidationError";
31
33
  export * from "./PhoneNumber";
32
34
  export * from "./PhoneNumberType";
33
35
  export * from "./Email";
@@ -22,7 +22,6 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
- __exportStar(require("./UserId"), exports);
26
25
  __exportStar(require("./LinkUrl"), exports);
27
26
  __exportStar(require("./ContentDownloadUrl"), exports);
28
27
  __exportStar(require("./PageToken"), exports);
@@ -44,6 +43,9 @@ __exportStar(require("./ProcedureModifier"), exports);
44
43
  __exportStar(require("./ServiceLineUnits"), exports);
45
44
  __exportStar(require("./InsuranceTypeCode"), exports);
46
45
  __exportStar(require("./EmrPayerCrosswalk"), exports);
46
+ __exportStar(require("./EntityNotFoundErrorMessage"), exports);
47
+ __exportStar(require("./UnauthorizedErrorMessage"), exports);
48
+ __exportStar(require("./RequestValidationError"), exports);
47
49
  __exportStar(require("./PhoneNumber"), exports);
48
50
  __exportStar(require("./PhoneNumberType"), exports);
49
51
  __exportStar(require("./Email"), exports);
@@ -100,7 +100,7 @@ class V4 {
100
100
  Authorization: await this._getAuthorizationHeader(),
101
101
  "X-Fern-Language": "JavaScript",
102
102
  "X-Fern-SDK-Name": "candidhealth",
103
- "X-Fern-SDK-Version": "0.4.1",
103
+ "X-Fern-SDK-Version": "0.4.3",
104
104
  },
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
@@ -130,7 +130,7 @@ class V4 {
130
130
  Authorization: await this._getAuthorizationHeader(),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "candidhealth",
133
- "X-Fern-SDK-Version": "0.4.1",
133
+ "X-Fern-SDK-Version": "0.4.3",
134
134
  },
135
135
  contentType: "application/json",
136
136
  timeoutMs: 60000,
@@ -159,7 +159,7 @@ class V4 {
159
159
  Authorization: await this._getAuthorizationHeader(),
160
160
  "X-Fern-Language": "JavaScript",
161
161
  "X-Fern-SDK-Name": "candidhealth",
162
- "X-Fern-SDK-Version": "0.4.1",
162
+ "X-Fern-SDK-Version": "0.4.3",
163
163
  },
164
164
  contentType: "application/json",
165
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -181,7 +181,9 @@ class V4 {
181
181
  if (_response.error.reason === "status-code") {
182
182
  switch (_response.error.body?.errorName) {
183
183
  case "EncounterExternalIdUniquenessError":
184
+ case "EntityNotFoundError":
184
185
  case "EncounterGuarantorMissingContactInfoError":
186
+ case "HttpRequestValidationsError":
185
187
  return {
186
188
  ok: false,
187
189
  error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
@@ -206,7 +208,7 @@ class V4 {
206
208
  Authorization: await this._getAuthorizationHeader(),
207
209
  "X-Fern-Language": "JavaScript",
208
210
  "X-Fern-SDK-Name": "candidhealth",
209
- "X-Fern-SDK-Version": "0.4.1",
211
+ "X-Fern-SDK-Version": "0.4.3",
210
212
  },
211
213
  contentType: "application/json",
212
214
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -228,6 +230,9 @@ class V4 {
228
230
  if (_response.error.reason === "status-code") {
229
231
  switch (_response.error.body?.errorName) {
230
232
  case "EncounterExternalIdUniquenessError":
233
+ case "EntityNotFoundError":
234
+ case "UnauthorizedError":
235
+ case "HttpRequestValidationsError":
231
236
  return {
232
237
  ok: false,
233
238
  error: await serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
@@ -252,7 +257,7 @@ class V4 {
252
257
  Authorization: await this._getAuthorizationHeader(),
253
258
  "X-Fern-Language": "JavaScript",
254
259
  "X-Fern-SDK-Name": "candidhealth",
255
- "X-Fern-SDK-Version": "0.4.1",
260
+ "X-Fern-SDK-Version": "0.4.3",
256
261
  },
257
262
  contentType: "application/json",
258
263
  timeoutMs: 60000,
@@ -281,7 +286,7 @@ class V4 {
281
286
  Authorization: await this._getAuthorizationHeader(),
282
287
  "X-Fern-Language": "JavaScript",
283
288
  "X-Fern-SDK-Name": "candidhealth",
284
- "X-Fern-SDK-Version": "0.4.1",
289
+ "X-Fern-SDK-Version": "0.4.3",
285
290
  },
286
291
  contentType: "application/json",
287
292
  timeoutMs: 60000,
@@ -313,7 +318,7 @@ class V4 {
313
318
  Authorization: await this._getAuthorizationHeader(),
314
319
  "X-Fern-Language": "JavaScript",
315
320
  "X-Fern-SDK-Name": "candidhealth",
316
- "X-Fern-SDK-Version": "0.4.1",
321
+ "X-Fern-SDK-Version": "0.4.3",
317
322
  },
318
323
  contentType: "application/json",
319
324
  timeoutMs: 60000,
@@ -342,7 +347,7 @@ class V4 {
342
347
  Authorization: await this._getAuthorizationHeader(),
343
348
  "X-Fern-Language": "JavaScript",
344
349
  "X-Fern-SDK-Name": "candidhealth",
345
- "X-Fern-SDK-Version": "0.4.1",
350
+ "X-Fern-SDK-Version": "0.4.3",
346
351
  },
347
352
  contentType: "application/json",
348
353
  timeoutMs: 60000,
@@ -3,16 +3,24 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error._Unknown;
6
+ export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
10
10
  content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
11
11
  }
12
+ interface EntityNotFoundError extends _Utils {
13
+ errorName: "EntityNotFoundError";
14
+ content: CandidApi.EntityNotFoundErrorMessage;
15
+ }
12
16
  interface EncounterGuarantorMissingContactInfoError extends _Utils {
13
17
  errorName: "EncounterGuarantorMissingContactInfoError";
14
18
  content: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType;
15
19
  }
20
+ interface HttpRequestValidationsError extends _Utils {
21
+ errorName: "HttpRequestValidationsError";
22
+ content: CandidApi.RequestValidationError[];
23
+ }
16
24
  interface _Unknown extends _Utils {
17
25
  errorName: void;
18
26
  content: core.Fetcher.Error;
@@ -22,13 +30,17 @@ export declare namespace Error {
22
30
  }
23
31
  interface _Visitor<_Result> {
24
32
  encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
33
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
34
  encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
35
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
26
36
  _other: (value: core.Fetcher.Error) => _Result;
27
37
  }
28
38
  }
29
39
  export declare const Error: {
30
40
  readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
41
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
31
42
  readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
43
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
32
44
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
33
45
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
34
46
  };
@@ -38,6 +38,15 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ entityNotFoundError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EntityNotFoundError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
41
50
  encounterGuarantorMissingContactInfoError: (value) => {
42
51
  return {
43
52
  content: value,
@@ -47,6 +56,15 @@ exports.Error = {
47
56
  },
48
57
  };
49
58
  },
59
+ httpRequestValidationsError: (value) => {
60
+ return {
61
+ content: value,
62
+ errorName: "HttpRequestValidationsError",
63
+ _visit: function (visitor) {
64
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
50
68
  _unknown: (fetcherError) => {
51
69
  return {
52
70
  errorName: undefined,
@@ -60,8 +78,12 @@ exports.Error = {
60
78
  switch (value.errorName) {
61
79
  case "EncounterExternalIdUniquenessError":
62
80
  return visitor.encounterExternalIdUniquenessError(value.content);
81
+ case "EntityNotFoundError":
82
+ return visitor.entityNotFoundError(value.content);
63
83
  case "EncounterGuarantorMissingContactInfoError":
64
84
  return visitor.encounterGuarantorMissingContactInfoError(value.content);
85
+ case "HttpRequestValidationsError":
86
+ return visitor.httpRequestValidationsError(value.content);
65
87
  default:
66
88
  return visitor._other(value);
67
89
  }
@@ -17,14 +17,14 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
17
17
  referringProvider?: CandidApi.encounterProviders.v2.ReferringProvider;
18
18
  serviceFacility?: CandidApi.EncounterServiceFacilityBase;
19
19
  /**
20
- * Subscriber_primary is required when do_not_bill is False (i.e. when the claim should be billed to insurance).
21
- * These are not required fields when do_not_bill is True (i.e. when the claim should not be billed to insurance, like in the example of Cash Pay visits).
22
- * However, if you collect this for patients, even cash pay, we recommend including it when sending encounters to Candid.
20
+ * Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).
21
+ * These are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).
22
+ * However, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Candid.
23
23
  *
24
24
  */
25
25
  subscriberPrimary?: CandidApi.SubscriberCreate;
26
26
  /**
27
- * Please always include this when you have it, even for cash-only claims
27
+ * Please always include this when you have it, even for self-pay claims
28
28
  *
29
29
  */
30
30
  subscriberSecondary?: CandidApi.SubscriberCreate;
@@ -38,4 +38,5 @@ export interface EncounterUpdate {
38
38
  placeOfServiceCode?: CandidApi.FacilityTypeCode;
39
39
  appointmentType?: string;
40
40
  endDateOfService?: CandidApi.Date_;
41
+ subscriberSecondary?: CandidApi.SubscriberCreate;
41
42
  }
@@ -3,12 +3,24 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error._Unknown;
6
+ export declare type Error = CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.update.Error.EntityNotFoundError | CandidApi.encounters.v4.update.Error.UnauthorizedError | CandidApi.encounters.v4.update.Error.HttpRequestValidationsError | CandidApi.encounters.v4.update.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
10
10
  content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
11
11
  }
12
+ interface EntityNotFoundError extends _Utils {
13
+ errorName: "EntityNotFoundError";
14
+ content: CandidApi.EntityNotFoundErrorMessage;
15
+ }
16
+ interface UnauthorizedError extends _Utils {
17
+ errorName: "UnauthorizedError";
18
+ content: CandidApi.UnauthorizedErrorMessage;
19
+ }
20
+ interface HttpRequestValidationsError extends _Utils {
21
+ errorName: "HttpRequestValidationsError";
22
+ content: CandidApi.RequestValidationError[];
23
+ }
12
24
  interface _Unknown extends _Utils {
13
25
  errorName: void;
14
26
  content: core.Fetcher.Error;
@@ -18,11 +30,17 @@ export declare namespace Error {
18
30
  }
19
31
  interface _Visitor<_Result> {
20
32
  encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
33
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
34
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
35
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
21
36
  _other: (value: core.Fetcher.Error) => _Result;
22
37
  }
23
38
  }
24
39
  export declare const Error: {
25
40
  readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.update.Error.EncounterExternalIdUniquenessError;
41
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.update.Error.EntityNotFoundError;
42
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.encounters.v4.update.Error.UnauthorizedError;
43
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.update.Error.HttpRequestValidationsError;
26
44
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.update.Error._Unknown;
27
45
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.update.Error, visitor: CandidApi.encounters.v4.update.Error._Visitor<_Result>) => _Result;
28
46
  };
@@ -38,6 +38,33 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ entityNotFoundError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EntityNotFoundError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.encounters.v4.update.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unauthorizedError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnauthorizedError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.encounters.v4.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ httpRequestValidationsError: (value) => {
60
+ return {
61
+ content: value,
62
+ errorName: "HttpRequestValidationsError",
63
+ _visit: function (visitor) {
64
+ return CandidApi.encounters.v4.update.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
41
68
  _unknown: (fetcherError) => {
42
69
  return {
43
70
  errorName: undefined,
@@ -51,6 +78,12 @@ exports.Error = {
51
78
  switch (value.errorName) {
52
79
  case "EncounterExternalIdUniquenessError":
53
80
  return visitor.encounterExternalIdUniquenessError(value.content);
81
+ case "EntityNotFoundError":
82
+ return visitor.entityNotFoundError(value.content);
83
+ case "UnauthorizedError":
84
+ return visitor.unauthorizedError(value.content);
85
+ case "HttpRequestValidationsError":
86
+ return visitor.httpRequestValidationsError(value.content);
54
87
  default:
55
88
  return visitor._other(value);
56
89
  }
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type CodingAttributionType = "CANDID" | "CUSTOMER" | "TCN";
4
+ export declare type CodingAttributionType = "CANDID" | "CUSTOMER" | "TCN" | "PJF";
5
5
  export declare const CodingAttributionType: {
6
6
  readonly Candid: "CANDID";
7
7
  readonly Customer: "CUSTOMER";
8
8
  readonly Tcn: "TCN";
9
+ readonly Pjf: "PJF";
9
10
  };
@@ -8,4 +8,5 @@ exports.CodingAttributionType = {
8
8
  Candid: "CANDID",
9
9
  Customer: "CUSTOMER",
10
10
  Tcn: "TCN",
11
+ Pjf: "PJF",
11
12
  };
@@ -29,5 +29,5 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
29
29
  patientPayments: CandidApi.patientPayments.v3.PatientPayment[];
30
30
  tags: CandidApi.Tag[];
31
31
  codingAttribution?: CandidApi.encounters.v4.CodingAttributionType;
32
- workQueue?: CandidApi.workQueues.v1.WorkQueue;
32
+ workQueueId?: CandidApi.WorkQueueId;
33
33
  }
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.4.1",
51
+ "X-Fern-SDK-Version": "0.4.3",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V1 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.4.1",
51
+ "X-Fern-SDK-Version": "0.4.3",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -94,7 +94,7 @@ class V1 {
94
94
  Authorization: await this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "candidhealth",
97
- "X-Fern-SDK-Version": "0.4.1",
97
+ "X-Fern-SDK-Version": "0.4.3",
98
98
  },
99
99
  contentType: "application/json",
100
100
  timeoutMs: 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  Authorization: await this._getAuthorizationHeader(),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.4.1",
126
+ "X-Fern-SDK-Version": "0.4.3",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
5
5
  export * as organizationProviders from "./organizationProviders";
6
6
  export * as patientPayments from "./patientPayments";
7
7
  export * as tasks from "./tasks";
8
- export * as workQueues from "./workQueues";
9
8
  export * as billingNotes from "./billingNotes";
10
9
  export * from "./billingNotes/types";
11
10
  export * as claims from "./claims";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
36
  exports.tasks = __importStar(require("./tasks"));
37
- exports.workQueues = __importStar(require("./workQueues"));
38
37
  exports.billingNotes = __importStar(require("./billingNotes"));
39
38
  __exportStar(require("./billingNotes/types"), exports);
40
39
  exports.claims = __importStar(require("./claims"));
@@ -49,7 +49,7 @@ class Payers {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.4.1",
52
+ "X-Fern-SDK-Version": "0.4.3",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class Payers {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.4.1",
92
+ "X-Fern-SDK-Version": "0.4.3",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -5,6 +5,8 @@ import * as CandidApi from "../../..";
5
5
  export interface ServiceLineBaseWithOptionals extends CandidApi.ServiceLineBase {
6
6
  chargeAmountCents?: number;
7
7
  allowedAmountCents?: number;
8
+ insuranceBalanceCents?: number;
9
+ patientBalanceCents?: number;
8
10
  paidAmountCents?: number;
9
11
  patientResponsibilityCents?: number;
10
12
  diagnosisIdZero?: CandidApi.DiagnosisId;
@@ -22,4 +22,5 @@ export interface ServiceLineCreate extends CandidApi.ServiceLineBase {
22
22
  /** Indices (zero-indexed) of all the diagnoses this service line references */
23
23
  diagnosisPointers: number[];
24
24
  drugIdentification?: CandidApi.DrugIdentification;
25
+ placeOfServiceCode?: CandidApi.FacilityTypeCode;
25
26
  }
@@ -48,7 +48,7 @@ class V3 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.4.1",
51
+ "X-Fern-SDK-Version": "0.4.3",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const EntityNotFoundErrorMessage: core.serialization.ObjectSchema<serializers.EntityNotFoundErrorMessage.Raw, CandidApi.EntityNotFoundErrorMessage>;
8
+ export declare namespace EntityNotFoundErrorMessage {
9
+ interface Raw {
10
+ id: string;
11
+ }
12
+ }
@@ -26,12 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserId = void 0;
30
- const CandidApi = __importStar(require("../../../../api"));
29
+ exports.EntityNotFoundErrorMessage = void 0;
31
30
  const core = __importStar(require("../../../../core"));
32
- exports.UserId = core.serialization
33
- .string()
34
- .transform({
35
- transform: CandidApi.UserId,
36
- untransform: (value) => value,
31
+ exports.EntityNotFoundErrorMessage = core.serialization.object({
32
+ id: core.serialization.string(),
37
33
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
7
  export declare const ProcedureModifier: core.serialization.Schema<serializers.ProcedureModifier.Raw, CandidApi.ProcedureModifier>;
8
8
  export declare namespace ProcedureModifier {
9
- type Raw = "22" | "23" | "24" | "25" | "26" | "27" | "32" | "33" | "47" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "62" | "63" | "66" | "74" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "90" | "91" | "92" | "93" | "95" | "96" | "97" | "99" | "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "A7" | "A8" | "A9" | "AA" | "AB" | "AD" | "AE" | "AF" | "AG" | "AH" | "AI" | "AJ" | "AK" | "AM" | "AO" | "AP" | "AQ" | "AR" | "AS" | "AT" | "AZ" | "BA" | "BL" | "BO" | "BP" | "BR" | "BU" | "CA" | "CB" | "CC" | "CD" | "CE" | "CF" | "CG" | "CH" | "CI" | "CJ" | "CK" | "CL" | "CM" | "CN" | "CR" | "CS" | "CT" | "CO" | "CQ" | "E1" | "E2" | "E3" | "E4" | "EA" | "EB" | "EC" | "ED" | "EE" | "EJ" | "EM" | "EP" | "ER" | "ET" | "EX" | "EY" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "FA" | "FB" | "FC" | "FP" | "FQ" | "FR" | "FS" | "FT" | "FX" | "FY" | "G0" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9" | "GA" | "GB" | "GC" | "GE" | "GF" | "GG" | "GH" | "GJ" | "GK" | "GL" | "GM" | "GN" | "GO" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GV" | "GW" | "GX" | "GY" | "GZ" | "HA" | "HB" | "HC" | "HD" | "HE" | "HF" | "HG" | "HH" | "HI" | "HJ" | "HK" | "HL" | "HM" | "HN" | "HO" | "HP" | "HQ" | "HR" | "HS" | "HT" | "HU" | "HV" | "HW" | "HX" | "HY" | "HZ" | "J1" | "J2" | "J3" | "J4" | "J5" | "JA" | "JB" | "JC" | "JD" | "JE" | "JG" | "JW" | "JZ" | "K0" | "K1" | "K2" | "K3" | "K4" | "KA" | "KB" | "KC" | "KD" | "KE" | "KF" | "KG" | "KH" | "KI" | "KJ" | "KK" | "KL" | "KM" | "KN" | "KO" | "KP" | "KQ" | "KR" | "KS" | "KT" | "KU" | "KV" | "KW" | "KX" | "KY" | "KZ" | "LC" | "LD" | "LL" | "LM" | "LR" | "LS" | "LT" | "LU" | "M2" | "MA" | "MB" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MS" | "N1" | "N2" | "N3" | "NB" | "NR" | "NU" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "PA" | "PB" | "PC" | "PD" | "PI" | "PL" | "PM" | "PN" | "PO" | "PS" | "PT" | "Q0" | "Q1" | "Q2" | "Q3" | "Q4" | "Q5" | "Q6" | "Q7" | "Q8" | "Q9" | "QA" | "QB" | "QC" | "QD" | "QE" | "QF" | "QG" | "QH" | "QJ" | "QK" | "QL" | "QM" | "QN" | "QP" | "QQ" | "QR" | "QS" | "QT" | "QW" | "QX" | "QY" | "QZ" | "RA" | "RB" | "RC" | "RD" | "RE" | "RI" | "RR" | "RT" | "SA" | "SB" | "SC" | "SD" | "SE" | "SF" | "SG" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SQ" | "SS" | "ST" | "SU" | "SV" | "SW" | "SY" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "TA" | "TB" | "TC" | "TD" | "TE" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TP" | "TQ" | "TR" | "TS" | "TT" | "TU" | "TV" | "TW" | "U1" | "U2" | "U3" | "U4" | "U5" | "U6" | "U7" | "U8" | "U9" | "UA" | "UB" | "UC" | "UD" | "UE" | "UF" | "UG" | "UH" | "UJ" | "UK" | "UN" | "UP" | "UQ" | "UR" | "US";
9
+ type Raw = "22" | "23" | "24" | "25" | "26" | "27" | "32" | "33" | "47" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "62" | "63" | "66" | "74" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "90" | "91" | "92" | "93" | "95" | "96" | "97" | "99" | "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "A7" | "A8" | "A9" | "AA" | "AB" | "AD" | "AE" | "AF" | "AG" | "AH" | "AI" | "AJ" | "AK" | "AM" | "AO" | "AP" | "AQ" | "AR" | "AS" | "AT" | "AZ" | "BA" | "BL" | "BO" | "BP" | "BR" | "BU" | "CA" | "CB" | "CC" | "CD" | "CE" | "CF" | "CG" | "CH" | "CI" | "CJ" | "CK" | "CL" | "CM" | "CN" | "CR" | "CS" | "CT" | "CO" | "CQ" | "E1" | "E2" | "E3" | "E4" | "EA" | "EB" | "EC" | "ED" | "EE" | "EJ" | "EM" | "EP" | "ER" | "ET" | "EX" | "EY" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "FA" | "FB" | "FC" | "FP" | "FQ" | "FR" | "FS" | "FT" | "FX" | "FY" | "G0" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9" | "GA" | "GB" | "GC" | "GE" | "GF" | "GG" | "GH" | "GJ" | "GK" | "GL" | "GM" | "GN" | "GO" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GV" | "GW" | "GX" | "GY" | "GZ" | "HA" | "HB" | "HC" | "HD" | "HE" | "HF" | "HG" | "HH" | "HI" | "HJ" | "HK" | "HL" | "HM" | "HN" | "HO" | "HP" | "HQ" | "HR" | "HS" | "HT" | "HU" | "HV" | "HW" | "HX" | "HY" | "HZ" | "J1" | "J2" | "J3" | "J4" | "J5" | "JA" | "JB" | "JC" | "JD" | "JE" | "JG" | "JW" | "JZ" | "K0" | "K1" | "K2" | "K3" | "K4" | "KA" | "KB" | "KC" | "KD" | "KE" | "KF" | "KG" | "KH" | "KI" | "KJ" | "KK" | "KL" | "KM" | "KN" | "KO" | "KP" | "KQ" | "KR" | "KS" | "KT" | "KU" | "KV" | "KW" | "KX" | "KY" | "KZ" | "LC" | "LD" | "LL" | "LM" | "LR" | "LS" | "LT" | "LU" | "M2" | "MA" | "MB" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MS" | "N1" | "N2" | "N3" | "NB" | "NR" | "NU" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "PA" | "PB" | "PC" | "PD" | "PI" | "PL" | "PM" | "PN" | "PO" | "PS" | "PT" | "Q0" | "Q1" | "Q2" | "Q3" | "Q4" | "Q5" | "Q6" | "Q7" | "Q8" | "Q9" | "QA" | "QB" | "QC" | "QD" | "QE" | "QF" | "QG" | "QH" | "QJ" | "QK" | "QL" | "QM" | "QN" | "QP" | "QQ" | "QR" | "QS" | "QT" | "QW" | "QX" | "QY" | "QZ" | "RA" | "RB" | "RC" | "RD" | "RE" | "RI" | "RR" | "RT" | "SA" | "SB" | "SC" | "SD" | "SE" | "SF" | "SG" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SQ" | "SS" | "ST" | "SU" | "SV" | "SW" | "SY" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "TA" | "TB" | "TC" | "TD" | "TE" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TP" | "TQ" | "TR" | "TS" | "TT" | "TU" | "TV" | "TW" | "U1" | "U2" | "U3" | "U4" | "U5" | "U6" | "U7" | "U8" | "U9" | "UA" | "UB" | "UC" | "UD" | "UE" | "UF" | "UG" | "UH" | "UJ" | "UK" | "UN" | "UP" | "UQ" | "UR" | "US" | "V1" | "V2" | "V3";
10
10
  }
@@ -412,4 +412,7 @@ exports.ProcedureModifier = core.serialization.enum_([
412
412
  "UQ",
413
413
  "UR",
414
414
  "US",
415
+ "V1",
416
+ "V2",
417
+ "V3",
415
418
  ]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const RequestValidationError: core.serialization.ObjectSchema<serializers.RequestValidationError.Raw, CandidApi.RequestValidationError>;
8
+ export declare namespace RequestValidationError {
9
+ interface Raw {
10
+ fieldName: string;
11
+ humanReadableMessage?: string | null;
12
+ }
13
+ }
@@ -26,12 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UserId = void 0;
30
- const CandidApi = __importStar(require("../../../../api"));
29
+ exports.RequestValidationError = void 0;
31
30
  const core = __importStar(require("../../../../core"));
32
- exports.UserId = core.serialization
33
- .string()
34
- .transform({
35
- transform: CandidApi.UserId,
36
- untransform: (value) => value,
31
+ exports.RequestValidationError = core.serialization.object({
32
+ fieldName: core.serialization.string(),
33
+ humanReadableMessage: core.serialization.string().optional(),
37
34
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const UnauthorizedErrorMessage: core.serialization.ObjectSchema<serializers.UnauthorizedErrorMessage.Raw, CandidApi.UnauthorizedErrorMessage>;
8
+ export declare namespace UnauthorizedErrorMessage {
9
+ interface Raw {
10
+ message?: string | null;
11
+ }
12
+ }
@@ -26,6 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WorkQueueCategoryType = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.WorkQueueCategoryType = core.serialization.enum_(["PRE_SUBMISSION", "REJECTIONS", "DENIALS", "POST_SUBMISSION", "STALE_CLAIMS", "CUSTOM"]);
29
+ exports.UnauthorizedErrorMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.UnauthorizedErrorMessage = core.serialization.object({
32
+ message: core.serialization.string().optional(),
33
+ });