candidhealth 0.4.3 → 0.4.5

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 (81) 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/index.d.ts +1 -0
  4. package/api/resources/commons/types/index.js +1 -0
  5. package/api/resources/encounters/resources/v4/client/Client.js +9 -8
  6. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  7. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  8. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  9. package/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +6 -0
  10. package/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js +5 -0
  11. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  12. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  13. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  14. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  15. package/api/resources/index.d.ts +0 -1
  16. package/api/resources/index.js +0 -1
  17. package/api/resources/payers/client/Client.js +2 -2
  18. package/api/resources/tasks/index.d.ts +0 -1
  19. package/api/resources/tasks/index.js +0 -1
  20. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  21. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  22. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  23. package/dist/api/resources/commons/types/index.d.ts +1 -0
  24. package/dist/api/resources/commons/types/index.js +1 -0
  25. package/dist/api/resources/encounters/resources/v4/client/Client.js +9 -8
  26. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  27. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  28. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -0
  29. package/dist/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +6 -0
  30. package/dist/api/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js +5 -0
  31. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  32. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  33. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  34. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  35. package/dist/api/resources/index.d.ts +0 -1
  36. package/dist/api/resources/index.js +0 -1
  37. package/dist/api/resources/payers/client/Client.js +2 -2
  38. package/dist/api/resources/tasks/index.d.ts +0 -1
  39. package/dist/api/resources/tasks/index.js +0 -1
  40. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  41. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  42. package/dist/serialization/resources/commons/types/index.js +1 -0
  43. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  44. package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  45. package/dist/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +12 -0
  46. package/dist/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js +33 -0
  47. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  48. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  49. package/dist/serialization/resources/index.d.ts +0 -1
  50. package/dist/serialization/resources/index.js +0 -1
  51. package/dist/serialization/resources/tasks/index.d.ts +0 -1
  52. package/dist/serialization/resources/tasks/index.js +0 -1
  53. package/package.json +1 -1
  54. package/serialization/resources/commons/types/index.d.ts +1 -0
  55. package/serialization/resources/commons/types/index.js +1 -0
  56. package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  57. package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  58. package/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.d.ts +12 -0
  59. package/serialization/resources/encounters/resources/v4/types/CashPayPayerErrorMessage.js +33 -0
  60. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  61. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  62. package/serialization/resources/index.d.ts +0 -1
  63. package/serialization/resources/index.js +0 -1
  64. package/serialization/resources/tasks/index.d.ts +0 -1
  65. package/serialization/resources/tasks/index.js +0 -1
  66. package/api/resources/tasks/types/index.d.ts +0 -1
  67. package/api/resources/tasks/types/index.js +0 -17
  68. package/dist/api/resources/tasks/types/index.d.ts +0 -1
  69. package/dist/api/resources/tasks/types/index.js +0 -17
  70. package/dist/serialization/resources/tasks/types/index.d.ts +0 -1
  71. package/dist/serialization/resources/tasks/types/index.js +0 -17
  72. package/serialization/resources/tasks/types/index.d.ts +0 -1
  73. package/serialization/resources/tasks/types/index.js +0 -17
  74. /package/api/resources/{tasks → commons}/types/TaskId.d.ts +0 -0
  75. /package/api/resources/{tasks → commons}/types/TaskId.js +0 -0
  76. /package/dist/api/resources/{tasks → commons}/types/TaskId.d.ts +0 -0
  77. /package/dist/api/resources/{tasks → commons}/types/TaskId.js +0 -0
  78. /package/dist/serialization/resources/{tasks → commons}/types/TaskId.d.ts +0 -0
  79. /package/dist/serialization/resources/{tasks → commons}/types/TaskId.js +0 -0
  80. /package/serialization/resources/{tasks → commons}/types/TaskId.d.ts +0 -0
  81. /package/serialization/resources/{tasks → commons}/types/TaskId.js +0 -0
@@ -48,7 +48,7 @@ class V2 {
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class BillingNotes {
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -6,6 +6,7 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./TaskId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
@@ -22,6 +22,7 @@ __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("./TaskId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), 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.3",
103
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
133
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
162
+ "X-Fern-SDK-Version": "0.4.5",
163
163
  },
164
164
  contentType: "application/json",
165
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -184,6 +184,7 @@ class V4 {
184
184
  case "EntityNotFoundError":
185
185
  case "EncounterGuarantorMissingContactInfoError":
186
186
  case "HttpRequestValidationsError":
187
+ case "CashPayPayerError":
187
188
  return {
188
189
  ok: false,
189
190
  error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
@@ -208,7 +209,7 @@ class V4 {
208
209
  Authorization: await this._getAuthorizationHeader(),
209
210
  "X-Fern-Language": "JavaScript",
210
211
  "X-Fern-SDK-Name": "candidhealth",
211
- "X-Fern-SDK-Version": "0.4.3",
212
+ "X-Fern-SDK-Version": "0.4.5",
212
213
  },
213
214
  contentType: "application/json",
214
215
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -257,7 +258,7 @@ class V4 {
257
258
  Authorization: await this._getAuthorizationHeader(),
258
259
  "X-Fern-Language": "JavaScript",
259
260
  "X-Fern-SDK-Name": "candidhealth",
260
- "X-Fern-SDK-Version": "0.4.3",
261
+ "X-Fern-SDK-Version": "0.4.5",
261
262
  },
262
263
  contentType: "application/json",
263
264
  timeoutMs: 60000,
@@ -286,7 +287,7 @@ class V4 {
286
287
  Authorization: await this._getAuthorizationHeader(),
287
288
  "X-Fern-Language": "JavaScript",
288
289
  "X-Fern-SDK-Name": "candidhealth",
289
- "X-Fern-SDK-Version": "0.4.3",
290
+ "X-Fern-SDK-Version": "0.4.5",
290
291
  },
291
292
  contentType: "application/json",
292
293
  timeoutMs: 60000,
@@ -318,7 +319,7 @@ class V4 {
318
319
  Authorization: await this._getAuthorizationHeader(),
319
320
  "X-Fern-Language": "JavaScript",
320
321
  "X-Fern-SDK-Name": "candidhealth",
321
- "X-Fern-SDK-Version": "0.4.3",
322
+ "X-Fern-SDK-Version": "0.4.5",
322
323
  },
323
324
  contentType: "application/json",
324
325
  timeoutMs: 60000,
@@ -347,7 +348,7 @@ class V4 {
347
348
  Authorization: await this._getAuthorizationHeader(),
348
349
  "X-Fern-Language": "JavaScript",
349
350
  "X-Fern-SDK-Name": "candidhealth",
350
- "X-Fern-SDK-Version": "0.4.3",
351
+ "X-Fern-SDK-Version": "0.4.5",
351
352
  },
352
353
  contentType: "application/json",
353
354
  timeoutMs: 60000,
@@ -3,7 +3,7 @@
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.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | 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.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
@@ -21,6 +21,10 @@ export declare namespace Error {
21
21
  errorName: "HttpRequestValidationsError";
22
22
  content: CandidApi.RequestValidationError[];
23
23
  }
24
+ interface CashPayPayerError extends _Utils {
25
+ errorName: "CashPayPayerError";
26
+ content: CandidApi.encounters.v4.CashPayPayerErrorMessage;
27
+ }
24
28
  interface _Unknown extends _Utils {
25
29
  errorName: void;
26
30
  content: core.Fetcher.Error;
@@ -33,6 +37,7 @@ export declare namespace Error {
33
37
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
34
38
  encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
35
39
  httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
40
+ cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => _Result;
36
41
  _other: (value: core.Fetcher.Error) => _Result;
37
42
  }
38
43
  }
@@ -41,6 +46,7 @@ export declare const Error: {
41
46
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
42
47
  readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
43
48
  readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
49
+ readonly cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => CandidApi.encounters.v4.create.Error.CashPayPayerError;
44
50
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
45
51
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
46
52
  };
@@ -65,6 +65,15 @@ exports.Error = {
65
65
  },
66
66
  };
67
67
  },
68
+ cashPayPayerError: (value) => {
69
+ return {
70
+ content: value,
71
+ errorName: "CashPayPayerError",
72
+ _visit: function (visitor) {
73
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
74
+ },
75
+ };
76
+ },
68
77
  _unknown: (fetcherError) => {
69
78
  return {
70
79
  errorName: undefined,
@@ -84,6 +93,8 @@ exports.Error = {
84
93
  return visitor.encounterGuarantorMissingContactInfoError(value.content);
85
94
  case "HttpRequestValidationsError":
86
95
  return visitor.httpRequestValidationsError(value.content);
96
+ case "CashPayPayerError":
97
+ return visitor.cashPayPayerError(value.content);
87
98
  default:
88
99
  return visitor._other(value);
89
100
  }
@@ -20,6 +20,7 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
20
20
  * Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).
21
21
  * These are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).
22
22
  * However, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Candid.
23
+ * Note: Cash Pay is no longer a valid payer_id in v4, please use responsible party to define self-pay claims
23
24
  *
24
25
  */
25
26
  subscriberPrimary?: CandidApi.SubscriberCreate;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CashPayPayerErrorMessage {
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 });
@@ -40,3 +40,4 @@ export * from "./IntakeQuestionId";
40
40
  export * from "./IntakeFollowUpId";
41
41
  export * from "./EncounterExternalIdUniquenessErrorType";
42
42
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
43
+ export * from "./CashPayPayerErrorMessage";
@@ -56,3 +56,4 @@ __exportStar(require("./IntakeQuestionId"), exports);
56
56
  __exportStar(require("./IntakeFollowUpId"), exports);
57
57
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
58
58
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
59
+ __exportStar(require("./CashPayPayerErrorMessage"), exports);
@@ -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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
97
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
126
+ "X-Fern-SDK-Version": "0.4.5",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -35,7 +35,6 @@ export * as serviceLines from "./serviceLines";
35
35
  export * from "./serviceLines/types";
36
36
  export * as tags from "./tags";
37
37
  export * from "./tags/types";
38
- export * from "./tasks/types";
39
38
  export * from "./billingNotes/client/requests";
40
39
  export * from "./expectedNetworkStatus/client/requests";
41
40
  export * from "./payers/client/requests";
@@ -64,7 +64,6 @@ exports.serviceLines = __importStar(require("./serviceLines"));
64
64
  __exportStar(require("./serviceLines/types"), exports);
65
65
  exports.tags = __importStar(require("./tags"));
66
66
  __exportStar(require("./tags/types"), exports);
67
- __exportStar(require("./tasks/types"), exports);
68
67
  __exportStar(require("./billingNotes/client/requests"), exports);
69
68
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
70
69
  __exportStar(require("./payers/client/requests"), exports);
@@ -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.3",
52
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
92
+ "X-Fern-SDK-Version": "0.4.5",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -1,3 +1,2 @@
1
1
  export * from "./resources";
2
- export * from "./types";
3
2
  export * from "./client";
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
- __exportStar(require("./types"), exports);
19
18
  __exportStar(require("./client"), exports);
@@ -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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -48,7 +48,7 @@ class V2 {
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class BillingNotes {
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -6,6 +6,7 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./TaskId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
@@ -22,6 +22,7 @@ __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("./TaskId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), 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.3",
103
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
133
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
162
+ "X-Fern-SDK-Version": "0.4.5",
163
163
  },
164
164
  contentType: "application/json",
165
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -184,6 +184,7 @@ class V4 {
184
184
  case "EntityNotFoundError":
185
185
  case "EncounterGuarantorMissingContactInfoError":
186
186
  case "HttpRequestValidationsError":
187
+ case "CashPayPayerError":
187
188
  return {
188
189
  ok: false,
189
190
  error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
@@ -208,7 +209,7 @@ class V4 {
208
209
  Authorization: await this._getAuthorizationHeader(),
209
210
  "X-Fern-Language": "JavaScript",
210
211
  "X-Fern-SDK-Name": "candidhealth",
211
- "X-Fern-SDK-Version": "0.4.3",
212
+ "X-Fern-SDK-Version": "0.4.5",
212
213
  },
213
214
  contentType: "application/json",
214
215
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -257,7 +258,7 @@ class V4 {
257
258
  Authorization: await this._getAuthorizationHeader(),
258
259
  "X-Fern-Language": "JavaScript",
259
260
  "X-Fern-SDK-Name": "candidhealth",
260
- "X-Fern-SDK-Version": "0.4.3",
261
+ "X-Fern-SDK-Version": "0.4.5",
261
262
  },
262
263
  contentType: "application/json",
263
264
  timeoutMs: 60000,
@@ -286,7 +287,7 @@ class V4 {
286
287
  Authorization: await this._getAuthorizationHeader(),
287
288
  "X-Fern-Language": "JavaScript",
288
289
  "X-Fern-SDK-Name": "candidhealth",
289
- "X-Fern-SDK-Version": "0.4.3",
290
+ "X-Fern-SDK-Version": "0.4.5",
290
291
  },
291
292
  contentType: "application/json",
292
293
  timeoutMs: 60000,
@@ -318,7 +319,7 @@ class V4 {
318
319
  Authorization: await this._getAuthorizationHeader(),
319
320
  "X-Fern-Language": "JavaScript",
320
321
  "X-Fern-SDK-Name": "candidhealth",
321
- "X-Fern-SDK-Version": "0.4.3",
322
+ "X-Fern-SDK-Version": "0.4.5",
322
323
  },
323
324
  contentType: "application/json",
324
325
  timeoutMs: 60000,
@@ -347,7 +348,7 @@ class V4 {
347
348
  Authorization: await this._getAuthorizationHeader(),
348
349
  "X-Fern-Language": "JavaScript",
349
350
  "X-Fern-SDK-Name": "candidhealth",
350
- "X-Fern-SDK-Version": "0.4.3",
351
+ "X-Fern-SDK-Version": "0.4.5",
351
352
  },
352
353
  contentType: "application/json",
353
354
  timeoutMs: 60000,
@@ -3,7 +3,7 @@
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.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | 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.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
@@ -21,6 +21,10 @@ export declare namespace Error {
21
21
  errorName: "HttpRequestValidationsError";
22
22
  content: CandidApi.RequestValidationError[];
23
23
  }
24
+ interface CashPayPayerError extends _Utils {
25
+ errorName: "CashPayPayerError";
26
+ content: CandidApi.encounters.v4.CashPayPayerErrorMessage;
27
+ }
24
28
  interface _Unknown extends _Utils {
25
29
  errorName: void;
26
30
  content: core.Fetcher.Error;
@@ -33,6 +37,7 @@ export declare namespace Error {
33
37
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
34
38
  encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
35
39
  httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
40
+ cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => _Result;
36
41
  _other: (value: core.Fetcher.Error) => _Result;
37
42
  }
38
43
  }
@@ -41,6 +46,7 @@ export declare const Error: {
41
46
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
42
47
  readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
43
48
  readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
49
+ readonly cashPayPayerError: (value: CandidApi.encounters.v4.CashPayPayerErrorMessage) => CandidApi.encounters.v4.create.Error.CashPayPayerError;
44
50
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
45
51
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
46
52
  };
@@ -65,6 +65,15 @@ exports.Error = {
65
65
  },
66
66
  };
67
67
  },
68
+ cashPayPayerError: (value) => {
69
+ return {
70
+ content: value,
71
+ errorName: "CashPayPayerError",
72
+ _visit: function (visitor) {
73
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
74
+ },
75
+ };
76
+ },
68
77
  _unknown: (fetcherError) => {
69
78
  return {
70
79
  errorName: undefined,
@@ -84,6 +93,8 @@ exports.Error = {
84
93
  return visitor.encounterGuarantorMissingContactInfoError(value.content);
85
94
  case "HttpRequestValidationsError":
86
95
  return visitor.httpRequestValidationsError(value.content);
96
+ case "CashPayPayerError":
97
+ return visitor.cashPayPayerError(value.content);
87
98
  default:
88
99
  return visitor._other(value);
89
100
  }
@@ -20,6 +20,7 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
20
20
  * Subscriber_primary is required when responsible_party is INSURANCE_PAY (i.e. when the claim should be billed to insurance).
21
21
  * These are not required fields when responsible_party is SELF_PAY (i.e. when the claim should be billed to the patient).
22
22
  * However, if you collect this for patients, even self-pay, we recommend including it when sending encounters to Candid.
23
+ * Note: Cash Pay is no longer a valid payer_id in v4, please use responsible party to define self-pay claims
23
24
  *
24
25
  */
25
26
  subscriberPrimary?: CandidApi.SubscriberCreate;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CashPayPayerErrorMessage {
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 });
@@ -40,3 +40,4 @@ export * from "./IntakeQuestionId";
40
40
  export * from "./IntakeFollowUpId";
41
41
  export * from "./EncounterExternalIdUniquenessErrorType";
42
42
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
43
+ export * from "./CashPayPayerErrorMessage";
@@ -56,3 +56,4 @@ __exportStar(require("./IntakeQuestionId"), exports);
56
56
  __exportStar(require("./IntakeFollowUpId"), exports);
57
57
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
58
58
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
59
+ __exportStar(require("./CashPayPayerErrorMessage"), exports);
@@ -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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
97
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
126
+ "X-Fern-SDK-Version": "0.4.5",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -35,7 +35,6 @@ export * as serviceLines from "./serviceLines";
35
35
  export * from "./serviceLines/types";
36
36
  export * as tags from "./tags";
37
37
  export * from "./tags/types";
38
- export * from "./tasks/types";
39
38
  export * from "./billingNotes/client/requests";
40
39
  export * from "./expectedNetworkStatus/client/requests";
41
40
  export * from "./payers/client/requests";
@@ -64,7 +64,6 @@ exports.serviceLines = __importStar(require("./serviceLines"));
64
64
  __exportStar(require("./serviceLines/types"), exports);
65
65
  exports.tags = __importStar(require("./tags"));
66
66
  __exportStar(require("./tags/types"), exports);
67
- __exportStar(require("./tasks/types"), exports);
68
67
  __exportStar(require("./billingNotes/client/requests"), exports);
69
68
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
70
69
  __exportStar(require("./payers/client/requests"), exports);
@@ -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.3",
52
+ "X-Fern-SDK-Version": "0.4.5",
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.3",
92
+ "X-Fern-SDK-Version": "0.4.5",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -1,3 +1,2 @@
1
1
  export * from "./resources";
2
- export * from "./types";
3
2
  export * from "./client";
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
- __exportStar(require("./types"), exports);
19
18
  __exportStar(require("./client"), exports);
@@ -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.3",
51
+ "X-Fern-SDK-Version": "0.4.5",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -6,6 +6,7 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./TaskId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
@@ -22,6 +22,7 @@ __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("./TaskId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), exports);
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
@@ -23,4 +23,8 @@ export declare namespace Error {
23
23
  errorName: "HttpRequestValidationsError";
24
24
  content: serializers.RequestValidationError.Raw[];
25
25
  }
26
+ interface CashPayPayerError {
27
+ errorName: "CashPayPayerError";
28
+ content: serializers.encounters.v4.CashPayPayerErrorMessage.Raw;
29
+ }
26
30
  }
@@ -43,6 +43,9 @@ exports.Error = core.serialization
43
43
  HttpRequestValidationsError: core.serialization.object({
44
44
  content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
45
  }),
46
+ CashPayPayerError: core.serialization.object({
47
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.CashPayPayerErrorMessage),
48
+ }),
46
49
  })
47
50
  .transform({
48
51
  transform: (value) => {
@@ -55,6 +58,8 @@ exports.Error = core.serialization
55
58
  return CandidApi.encounters.v4.create.Error.encounterGuarantorMissingContactInfoError(value.content);
56
59
  case "HttpRequestValidationsError":
57
60
  return CandidApi.encounters.v4.create.Error.httpRequestValidationsError(value.content);
61
+ case "CashPayPayerError":
62
+ return CandidApi.encounters.v4.create.Error.cashPayPayerError(value.content);
58
63
  }
59
64
  },
60
65
  untransform: ({ _visit, ...value }) => value,
@@ -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 CashPayPayerErrorMessage: core.serialization.ObjectSchema<serializers.encounters.v4.CashPayPayerErrorMessage.Raw, CandidApi.encounters.v4.CashPayPayerErrorMessage>;
8
+ export declare namespace CashPayPayerErrorMessage {
9
+ interface Raw {
10
+ message: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CashPayPayerErrorMessage = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.CashPayPayerErrorMessage = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ });
@@ -40,3 +40,4 @@ export * from "./IntakeQuestionId";
40
40
  export * from "./IntakeFollowUpId";
41
41
  export * from "./EncounterExternalIdUniquenessErrorType";
42
42
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
43
+ export * from "./CashPayPayerErrorMessage";
@@ -56,3 +56,4 @@ __exportStar(require("./IntakeQuestionId"), exports);
56
56
  __exportStar(require("./IntakeFollowUpId"), exports);
57
57
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
58
58
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
59
+ __exportStar(require("./CashPayPayerErrorMessage"), exports);
@@ -35,6 +35,5 @@ export * as serviceLines from "./serviceLines";
35
35
  export * from "./serviceLines/types";
36
36
  export * as tags from "./tags";
37
37
  export * from "./tags/types";
38
- export * from "./tasks/types";
39
38
  export * from "./billingNotes/client/requests";
40
39
  export * from "./expectedNetworkStatus/client/requests";
@@ -64,6 +64,5 @@ exports.serviceLines = __importStar(require("./serviceLines"));
64
64
  __exportStar(require("./serviceLines/types"), exports);
65
65
  exports.tags = __importStar(require("./tags"));
66
66
  __exportStar(require("./tags/types"), exports);
67
- __exportStar(require("./tasks/types"), exports);
68
67
  __exportStar(require("./billingNotes/client/requests"), exports);
69
68
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
@@ -1,2 +1 @@
1
1
  export * from "./resources";
2
- export * from "./types";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
- __exportStar(require("./types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -6,6 +6,7 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./TaskId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
@@ -22,6 +22,7 @@ __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("./TaskId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), exports);
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError | Error.CashPayPayerError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
@@ -23,4 +23,8 @@ export declare namespace Error {
23
23
  errorName: "HttpRequestValidationsError";
24
24
  content: serializers.RequestValidationError.Raw[];
25
25
  }
26
+ interface CashPayPayerError {
27
+ errorName: "CashPayPayerError";
28
+ content: serializers.encounters.v4.CashPayPayerErrorMessage.Raw;
29
+ }
26
30
  }
@@ -43,6 +43,9 @@ exports.Error = core.serialization
43
43
  HttpRequestValidationsError: core.serialization.object({
44
44
  content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
45
  }),
46
+ CashPayPayerError: core.serialization.object({
47
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.CashPayPayerErrorMessage),
48
+ }),
46
49
  })
47
50
  .transform({
48
51
  transform: (value) => {
@@ -55,6 +58,8 @@ exports.Error = core.serialization
55
58
  return CandidApi.encounters.v4.create.Error.encounterGuarantorMissingContactInfoError(value.content);
56
59
  case "HttpRequestValidationsError":
57
60
  return CandidApi.encounters.v4.create.Error.httpRequestValidationsError(value.content);
61
+ case "CashPayPayerError":
62
+ return CandidApi.encounters.v4.create.Error.cashPayPayerError(value.content);
58
63
  }
59
64
  },
60
65
  untransform: ({ _visit, ...value }) => value,
@@ -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 CashPayPayerErrorMessage: core.serialization.ObjectSchema<serializers.encounters.v4.CashPayPayerErrorMessage.Raw, CandidApi.encounters.v4.CashPayPayerErrorMessage>;
8
+ export declare namespace CashPayPayerErrorMessage {
9
+ interface Raw {
10
+ message: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CashPayPayerErrorMessage = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.CashPayPayerErrorMessage = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ });
@@ -40,3 +40,4 @@ export * from "./IntakeQuestionId";
40
40
  export * from "./IntakeFollowUpId";
41
41
  export * from "./EncounterExternalIdUniquenessErrorType";
42
42
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
43
+ export * from "./CashPayPayerErrorMessage";
@@ -56,3 +56,4 @@ __exportStar(require("./IntakeQuestionId"), exports);
56
56
  __exportStar(require("./IntakeFollowUpId"), exports);
57
57
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
58
58
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
59
+ __exportStar(require("./CashPayPayerErrorMessage"), exports);
@@ -35,6 +35,5 @@ export * as serviceLines from "./serviceLines";
35
35
  export * from "./serviceLines/types";
36
36
  export * as tags from "./tags";
37
37
  export * from "./tags/types";
38
- export * from "./tasks/types";
39
38
  export * from "./billingNotes/client/requests";
40
39
  export * from "./expectedNetworkStatus/client/requests";
@@ -64,6 +64,5 @@ exports.serviceLines = __importStar(require("./serviceLines"));
64
64
  __exportStar(require("./serviceLines/types"), exports);
65
65
  exports.tags = __importStar(require("./tags"));
66
66
  __exportStar(require("./tags/types"), exports);
67
- __exportStar(require("./tasks/types"), exports);
68
67
  __exportStar(require("./billingNotes/client/requests"), exports);
69
68
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
@@ -1,2 +1 @@
1
1
  export * from "./resources";
2
- export * from "./types";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./resources"), exports);
18
- __exportStar(require("./types"), exports);
@@ -1 +0,0 @@
1
- export * from "./TaskId";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TaskId"), exports);
@@ -1 +0,0 @@
1
- export * from "./TaskId";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TaskId"), exports);
@@ -1 +0,0 @@
1
- export * from "./TaskId";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TaskId"), exports);
@@ -1 +0,0 @@
1
- export * from "./TaskId";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TaskId"), exports);