candidhealth 0.14.2 → 0.14.4

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 (113) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +19 -5
  4. package/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  5. package/api/resources/contracts/resources/v2/client/delete.js +11 -0
  6. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  7. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  8. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  9. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  10. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  11. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  12. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  13. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  14. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  15. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  16. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  17. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  18. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +0 -1
  19. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  20. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  21. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +6 -0
  22. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +6 -0
  23. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +6 -0
  24. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  25. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +0 -1
  26. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +0 -1
  28. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  29. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +10 -0
  30. package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +10 -0
  31. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  32. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  33. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  34. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  35. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -5
  36. package/dist/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  37. package/dist/api/resources/contracts/resources/v2/client/delete.js +11 -0
  38. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  39. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  40. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  41. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  42. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  43. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  44. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  45. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  46. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  47. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  48. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  49. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  50. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +0 -1
  51. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  52. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  53. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +6 -0
  54. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +6 -0
  55. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +6 -0
  56. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  57. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +0 -1
  58. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  59. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +0 -1
  60. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  61. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +10 -0
  62. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +10 -0
  63. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  64. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  65. package/dist/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  66. package/dist/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  67. package/dist/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  68. package/dist/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  69. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  70. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  71. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  72. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  73. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +0 -1
  74. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +0 -1
  75. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  76. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  77. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  78. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  79. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  80. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  81. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +0 -1
  82. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +0 -1
  83. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +0 -1
  84. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +0 -1
  85. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  86. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  87. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  88. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
  89. package/package.json +1 -1
  90. package/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  91. package/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  92. package/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  93. package/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  94. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  95. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  96. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  97. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  98. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +0 -1
  99. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +0 -1
  100. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +1 -0
  101. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +1 -0
  102. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +1 -0
  103. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +1 -0
  104. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +1 -0
  105. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +1 -0
  106. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +0 -1
  107. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +0 -1
  108. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +0 -1
  109. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +0 -1
  110. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  111. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  112. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  113. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
@@ -93,7 +93,7 @@ class V1 {
93
93
  Authorization: await this._getAuthorizationHeader(),
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "0.14.2",
96
+ "X-Fern-SDK-Version": "0.14.4",
97
97
  },
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
@@ -127,7 +127,7 @@ class V1 {
127
127
  Authorization: await this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.14.2",
130
+ "X-Fern-SDK-Version": "0.14.4",
131
131
  },
132
132
  contentType: "application/json",
133
133
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V1 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.14.2",
165
+ "X-Fern-SDK-Version": "0.14.4",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -198,7 +198,7 @@ class V1 {
198
198
  Authorization: await this._getAuthorizationHeader(),
199
199
  "X-Fern-Language": "JavaScript",
200
200
  "X-Fern-SDK-Name": "candidhealth",
201
- "X-Fern-SDK-Version": "0.14.2",
201
+ "X-Fern-SDK-Version": "0.14.4",
202
202
  },
203
203
  contentType: "application/json",
204
204
  body: await serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -234,7 +234,7 @@ class V1 {
234
234
  Authorization: await this._getAuthorizationHeader(),
235
235
  "X-Fern-Language": "JavaScript",
236
236
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.14.2",
237
+ "X-Fern-SDK-Version": "0.14.4",
238
238
  },
239
239
  contentType: "application/json",
240
240
  timeoutMs: 60000,
@@ -5,7 +5,6 @@ import * as CandidApi from "../../../../../..";
5
5
  export interface PatientRefundUpdate {
6
6
  refundTimestamp?: Date;
7
7
  refundNote?: CandidApi.NoteUpdate;
8
- patientExternalId?: CandidApi.PatientExternalId;
9
8
  invoice?: CandidApi.InvoiceUpdate;
10
9
  refundReason?: CandidApi.RefundReasonUpdate;
11
10
  }
@@ -49,7 +49,7 @@ class V3 {
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.14.2",
52
+ "X-Fern-SDK-Version": "0.14.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
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.14.2",
92
+ "X-Fern-SDK-Version": "0.14.4",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -20,5 +20,15 @@ import * as CandidApi from "../../..";
20
20
  export interface EncounterServiceFacility {
21
21
  serviceFacilityId: CandidApi.ServiceFacilityId;
22
22
  organizationName: string;
23
+ /**
24
+ * An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.
25
+ * Box 32 section (a) of the CMS-1500 claim form.
26
+ *
27
+ */
28
+ npi?: string;
29
+ /**
30
+ * zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
31
+ *
32
+ */
23
33
  address: CandidApi.StreetAddressLongZip;
24
34
  }
@@ -14,5 +14,15 @@ import * as CandidApi from "../../..";
14
14
  */
15
15
  export interface EncounterServiceFacilityBase {
16
16
  organizationName: string;
17
+ /**
18
+ * An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.
19
+ * Box 32 section (a) of the CMS-1500 claim form.
20
+ *
21
+ */
22
+ npi?: string;
23
+ /**
24
+ * zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
25
+ *
26
+ */
17
27
  address: CandidApi.StreetAddressLongZip;
18
28
  }
@@ -49,7 +49,7 @@ class V3 {
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.14.2",
52
+ "X-Fern-SDK-Version": "0.14.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -119,7 +119,7 @@ class V3 {
119
119
  Authorization: await this._getAuthorizationHeader(),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "candidhealth",
122
- "X-Fern-SDK-Version": "0.14.2",
122
+ "X-Fern-SDK-Version": "0.14.4",
123
123
  },
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
@@ -163,7 +163,7 @@ class V3 {
163
163
  Authorization: await this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.14.2",
166
+ "X-Fern-SDK-Version": "0.14.4",
167
167
  },
168
168
  contentType: "application/json",
169
169
  timeoutMs: 60000,
@@ -207,7 +207,7 @@ class V3 {
207
207
  Authorization: await this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.14.2",
210
+ "X-Fern-SDK-Version": "0.14.4",
211
211
  },
212
212
  contentType: "application/json",
213
213
  body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class V3 {
237
237
  Authorization: await this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.14.2",
240
+ "X-Fern-SDK-Version": "0.14.4",
241
241
  },
242
242
  contentType: "application/json",
243
243
  body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -92,7 +92,7 @@ class V1 {
92
92
  Authorization: await this._getAuthorizationHeader(),
93
93
  "X-Fern-Language": "JavaScript",
94
94
  "X-Fern-SDK-Name": "candidhealth",
95
- "X-Fern-SDK-Version": "0.14.2",
95
+ "X-Fern-SDK-Version": "0.14.4",
96
96
  },
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
@@ -126,7 +126,7 @@ class V1 {
126
126
  Authorization: await this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.14.2",
129
+ "X-Fern-SDK-Version": "0.14.4",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: 60000,
@@ -161,7 +161,7 @@ class V1 {
161
161
  Authorization: await this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "candidhealth",
164
- "X-Fern-SDK-Version": "0.14.2",
164
+ "X-Fern-SDK-Version": "0.14.4",
165
165
  },
166
166
  contentType: "application/json",
167
167
  body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class V1 {
197
197
  Authorization: await this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "candidhealth",
200
- "X-Fern-SDK-Version": "0.14.2",
200
+ "X-Fern-SDK-Version": "0.14.4",
201
201
  },
202
202
  contentType: "application/json",
203
203
  timeoutMs: 60000,
@@ -0,0 +1,14 @@
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 Error: core.serialization.Schema<serializers.contracts.v2.delete.Error.Raw, CandidApi.contracts.v2.delete.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.ContractIsLinkedToFeeScheduleHttpError;
10
+ interface ContractIsLinkedToFeeScheduleHttpError {
11
+ errorName: "ContractIsLinkedToFeeScheduleHttpError";
12
+ content: serializers.contracts.v2.ContractIsLinkedToFeeScheduleError.Raw;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.Error = core.serialization
33
+ .union("errorName", {
34
+ ContractIsLinkedToFeeScheduleHttpError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.ContractIsLinkedToFeeScheduleError),
36
+ }),
37
+ })
38
+ .transform({
39
+ transform: (value) => {
40
+ switch (value.errorName) {
41
+ case "ContractIsLinkedToFeeScheduleHttpError":
42
+ return CandidApi.contracts.v2.delete.Error.contractIsLinkedToFeeScheduleHttpError(value.content);
43
+ }
44
+ },
45
+ untransform: ({ _visit, ...value }) => value,
46
+ });
@@ -1,3 +1,4 @@
1
1
  export * as get from "./get";
2
+ export * as delete from "./delete";
2
3
  export * as update from "./update";
3
4
  export * from "./requests";
@@ -26,7 +26,8 @@ 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.update = exports.get = void 0;
29
+ exports.update = exports.delete = exports.get = void 0;
30
30
  exports.get = __importStar(require("./get"));
31
+ exports.delete = __importStar(require("./delete"));
31
32
  exports.update = __importStar(require("./update"));
32
33
  __exportStar(require("./requests"), exports);
@@ -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 ContractIsLinkedToFeeScheduleError: core.serialization.ObjectSchema<serializers.contracts.v2.ContractIsLinkedToFeeScheduleError.Raw, CandidApi.contracts.v2.ContractIsLinkedToFeeScheduleError>;
8
+ export declare namespace ContractIsLinkedToFeeScheduleError {
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.ContractIsLinkedToFeeScheduleError = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractIsLinkedToFeeScheduleError = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./ContractIsLinkedToFeeScheduleError";
1
2
  export * from "./ContractId";
2
3
  export * from "./ContractingProviderId";
3
4
  export * from "./RenderingProviderid";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ContractIsLinkedToFeeScheduleError"), exports);
17
18
  __exportStar(require("./ContractId"), exports);
18
19
  __exportStar(require("./ContractingProviderId"), exports);
19
20
  __exportStar(require("./RenderingProviderid"), exports);
@@ -9,7 +9,6 @@ export declare namespace InsuranceRefundUpdate {
9
9
  interface Raw {
10
10
  refund_timestamp?: string | null;
11
11
  refund_note?: serializers.NoteUpdate.Raw | null;
12
- payer_identifier?: serializers.payers.v3.PayerIdentifier.Raw | null;
13
12
  refund_reason?: serializers.RefundReasonUpdate.Raw | null;
14
13
  }
15
14
  }
@@ -31,6 +31,5 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.InsuranceRefundUpdate = core.serialization.object({
32
32
  refundTimestamp: core.serialization.property("refund_timestamp", core.serialization.date().optional()),
33
33
  refundNote: core.serialization.property("refund_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
- payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).payers.v3.PayerIdentifier).optional()),
35
34
  refundReason: core.serialization.property("refund_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).RefundReasonUpdate).optional()),
36
35
  });
@@ -11,6 +11,7 @@ export declare namespace OrganizationServiceFacility {
11
11
  name: string;
12
12
  aliases: string[];
13
13
  description?: string | null;
14
+ npi?: string | null;
14
15
  status?: serializers.organizationServiceFacilities.v2.ServiceFacilityStatus.Raw | null;
15
16
  operational_status?: serializers.organizationServiceFacilities.v2.ServiceFacilityOperationalStatus.Raw | null;
16
17
  mode?: serializers.organizationServiceFacilities.v2.ServiceFacilityMode.Raw | null;
@@ -33,6 +33,7 @@ exports.OrganizationServiceFacility = core.serialization.object({
33
33
  name: core.serialization.string(),
34
34
  aliases: core.serialization.list(core.serialization.string()),
35
35
  description: core.serialization.string().optional(),
36
+ npi: core.serialization.string().optional(),
36
37
  status: core.serialization
37
38
  .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).organizationServiceFacilities.v2.ServiceFacilityStatus)
38
39
  .optional(),
@@ -10,6 +10,7 @@ export declare namespace OrganizationServiceFacilityCreate {
10
10
  name: string;
11
11
  aliases: string[];
12
12
  description?: string | null;
13
+ npi?: string | null;
13
14
  status?: serializers.organizationServiceFacilities.v2.ServiceFacilityStatus.Raw | null;
14
15
  operational_status?: serializers.organizationServiceFacilities.v2.ServiceFacilityOperationalStatus.Raw | null;
15
16
  mode?: serializers.organizationServiceFacilities.v2.ServiceFacilityMode.Raw | null;
@@ -32,6 +32,7 @@ exports.OrganizationServiceFacilityCreate = core.serialization.object({
32
32
  name: core.serialization.string(),
33
33
  aliases: core.serialization.list(core.serialization.string()),
34
34
  description: core.serialization.string().optional(),
35
+ npi: core.serialization.string().optional(),
35
36
  status: core.serialization
36
37
  .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).organizationServiceFacilities.v2.ServiceFacilityStatus)
37
38
  .optional(),
@@ -10,6 +10,7 @@ export declare namespace OrganizationServiceFacilityUpdate {
10
10
  name?: string | null;
11
11
  aliases?: string[] | null;
12
12
  description?: string | null;
13
+ npi?: string | null;
13
14
  status?: serializers.organizationServiceFacilities.v2.ServiceFacilityStatus.Raw | null;
14
15
  operational_status?: serializers.organizationServiceFacilities.v2.ServiceFacilityOperationalStatus.Raw | null;
15
16
  mode?: serializers.organizationServiceFacilities.v2.ServiceFacilityMode.Raw | null;
@@ -32,6 +32,7 @@ exports.OrganizationServiceFacilityUpdate = core.serialization.object({
32
32
  name: core.serialization.string().optional(),
33
33
  aliases: core.serialization.list(core.serialization.string()).optional(),
34
34
  description: core.serialization.string().optional(),
35
+ npi: core.serialization.string().optional(),
35
36
  status: core.serialization
36
37
  .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).organizationServiceFacilities.v2.ServiceFacilityStatus)
37
38
  .optional(),
@@ -9,7 +9,6 @@ export declare namespace PatientPaymentUpdate {
9
9
  interface Raw {
10
10
  payment_timestamp?: string | null;
11
11
  payment_note?: serializers.NoteUpdate.Raw | null;
12
- patient_external_id?: serializers.PatientExternalId.Raw | null;
13
12
  invoice?: serializers.InvoiceUpdate.Raw | null;
14
13
  }
15
14
  }
@@ -31,6 +31,5 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.PatientPaymentUpdate = core.serialization.object({
32
32
  paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
33
33
  paymentNote: core.serialization.property("payment_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
- patientExternalId: core.serialization.property("patient_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientExternalId).optional()),
35
34
  invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
36
35
  });
@@ -9,7 +9,6 @@ export declare namespace PatientRefundUpdate {
9
9
  interface Raw {
10
10
  refund_timestamp?: string | null;
11
11
  refund_note?: serializers.NoteUpdate.Raw | null;
12
- patient_external_id?: serializers.PatientExternalId.Raw | null;
13
12
  invoice?: serializers.InvoiceUpdate.Raw | null;
14
13
  refund_reason?: serializers.RefundReasonUpdate.Raw | null;
15
14
  }
@@ -31,7 +31,6 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.PatientRefundUpdate = core.serialization.object({
32
32
  refundTimestamp: core.serialization.property("refund_timestamp", core.serialization.date().optional()),
33
33
  refundNote: core.serialization.property("refund_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
- patientExternalId: core.serialization.property("patient_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientExternalId).optional()),
35
34
  invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
36
35
  refundReason: core.serialization.property("refund_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).RefundReasonUpdate).optional()),
37
36
  });
@@ -9,6 +9,7 @@ export declare namespace EncounterServiceFacility {
9
9
  interface Raw {
10
10
  service_facility_id: serializers.ServiceFacilityId.Raw;
11
11
  organization_name: string;
12
+ npi?: string | null;
12
13
  address: serializers.StreetAddressLongZip.Raw;
13
14
  }
14
15
  }
@@ -31,5 +31,6 @@ const core = __importStar(require("../../../../core"));
31
31
  exports.EncounterServiceFacility = core.serialization.object({
32
32
  serviceFacilityId: core.serialization.property("service_facility_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ServiceFacilityId)),
33
33
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
34
+ npi: core.serialization.string().optional(),
34
35
  address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).StreetAddressLongZip),
35
36
  });
@@ -8,6 +8,7 @@ export declare const EncounterServiceFacilityBase: core.serialization.ObjectSche
8
8
  export declare namespace EncounterServiceFacilityBase {
9
9
  interface Raw {
10
10
  organization_name: string;
11
+ npi?: string | null;
11
12
  address: serializers.StreetAddressLongZip.Raw;
12
13
  }
13
14
  }
@@ -30,5 +30,6 @@ exports.EncounterServiceFacilityBase = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.EncounterServiceFacilityBase = core.serialization.object({
32
32
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
33
+ npi: core.serialization.string().optional(),
33
34
  address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).StreetAddressLongZip),
34
35
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,14 @@
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 Error: core.serialization.Schema<serializers.contracts.v2.delete.Error.Raw, CandidApi.contracts.v2.delete.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.ContractIsLinkedToFeeScheduleHttpError;
10
+ interface ContractIsLinkedToFeeScheduleHttpError {
11
+ errorName: "ContractIsLinkedToFeeScheduleHttpError";
12
+ content: serializers.contracts.v2.ContractIsLinkedToFeeScheduleError.Raw;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.Error = core.serialization
33
+ .union("errorName", {
34
+ ContractIsLinkedToFeeScheduleHttpError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).contracts.v2.ContractIsLinkedToFeeScheduleError),
36
+ }),
37
+ })
38
+ .transform({
39
+ transform: (value) => {
40
+ switch (value.errorName) {
41
+ case "ContractIsLinkedToFeeScheduleHttpError":
42
+ return CandidApi.contracts.v2.delete.Error.contractIsLinkedToFeeScheduleHttpError(value.content);
43
+ }
44
+ },
45
+ untransform: ({ _visit, ...value }) => value,
46
+ });
@@ -1,3 +1,4 @@
1
1
  export * as get from "./get";
2
+ export * as delete from "./delete";
2
3
  export * as update from "./update";
3
4
  export * from "./requests";
@@ -26,7 +26,8 @@ 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.update = exports.get = void 0;
29
+ exports.update = exports.delete = exports.get = void 0;
30
30
  exports.get = __importStar(require("./get"));
31
+ exports.delete = __importStar(require("./delete"));
31
32
  exports.update = __importStar(require("./update"));
32
33
  __exportStar(require("./requests"), exports);
@@ -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 ContractIsLinkedToFeeScheduleError: core.serialization.ObjectSchema<serializers.contracts.v2.ContractIsLinkedToFeeScheduleError.Raw, CandidApi.contracts.v2.ContractIsLinkedToFeeScheduleError>;
8
+ export declare namespace ContractIsLinkedToFeeScheduleError {
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.ContractIsLinkedToFeeScheduleError = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.ContractIsLinkedToFeeScheduleError = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./ContractIsLinkedToFeeScheduleError";
1
2
  export * from "./ContractId";
2
3
  export * from "./ContractingProviderId";
3
4
  export * from "./RenderingProviderid";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ContractIsLinkedToFeeScheduleError"), exports);
17
18
  __exportStar(require("./ContractId"), exports);
18
19
  __exportStar(require("./ContractingProviderId"), exports);
19
20
  __exportStar(require("./RenderingProviderid"), exports);