candidhealth 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) 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 +5 -5
  4. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  5. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  6. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  7. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  8. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  9. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  10. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  11. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  12. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  13. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  14. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  15. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  16. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  17. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  18. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  19. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  20. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  21. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  22. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  23. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  24. package/api/resources/serviceFacility/client/Client.js +1 -1
  25. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  26. package/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  27. package/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  28. package/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  29. package/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  30. package/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  31. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  32. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  33. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  34. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  35. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  36. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  37. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  38. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  39. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  40. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  41. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  42. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  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/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  48. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  49. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  50. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  51. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  52. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  53. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  54. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  55. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  56. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  57. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  58. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  59. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  60. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  61. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  62. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  63. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  64. package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  65. package/dist/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  66. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  67. package/dist/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  68. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  69. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  70. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  71. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  72. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  73. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  74. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  75. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  76. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  77. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  78. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  79. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  80. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  81. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  82. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
  83. package/package.json +1 -1
  84. package/reference.md +48 -18
  85. package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  86. package/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  87. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  88. package/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  89. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  90. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  91. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  92. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
@@ -6,21 +6,12 @@ export interface ServiceLineUpdate {
6
6
  editReason?: string;
7
7
  modifiers?: CandidApi.ProcedureModifier[];
8
8
  chargeAmountCents?: number;
9
- allowedAmountCents?: number;
10
- insuranceBalanceCents?: number;
11
- patientBalanceCents?: number;
12
- primaryPaidAmountCents?: number;
13
- secondaryPaidAmountCents?: number;
14
- tertiaryPaidAmountCents?: number;
15
- patientResponsibilityCents?: number;
16
9
  diagnosisIdZero?: CandidApi.DiagnosisId;
17
10
  diagnosisIdOne?: CandidApi.DiagnosisId;
18
11
  diagnosisIdTwo?: CandidApi.DiagnosisId;
19
12
  diagnosisIdThree?: CandidApi.DiagnosisId;
20
- serviceLineManualAdjustments?: CandidApi.serviceLines.v2.ServiceLineAdjustment[];
21
13
  denialReason?: CandidApi.serviceLines.v2.ServiceLineDenialReason;
22
14
  placeOfServiceCode?: CandidApi.FacilityTypeCode;
23
- placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
24
15
  units?: CandidApi.ServiceLineUnits;
25
16
  procedureCode?: string;
26
17
  /**
@@ -66,7 +66,7 @@ class V3 {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.26.0",
69
+ "X-Fern-SDK-Version": "0.27.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -166,7 +166,7 @@ class V3 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.26.0",
169
+ "X-Fern-SDK-Version": "0.27.0",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -226,7 +226,7 @@ class V3 {
226
226
  Authorization: yield this._getAuthorizationHeader(),
227
227
  "X-Fern-Language": "JavaScript",
228
228
  "X-Fern-SDK-Name": "candidhealth",
229
- "X-Fern-SDK-Version": "0.26.0",
229
+ "X-Fern-SDK-Version": "0.27.0",
230
230
  "X-Fern-Runtime": core.RUNTIME.type,
231
231
  "X-Fern-Runtime-Version": core.RUNTIME.version,
232
232
  },
@@ -294,7 +294,7 @@ class V3 {
294
294
  Authorization: yield this._getAuthorizationHeader(),
295
295
  "X-Fern-Language": "JavaScript",
296
296
  "X-Fern-SDK-Name": "candidhealth",
297
- "X-Fern-SDK-Version": "0.26.0",
297
+ "X-Fern-SDK-Version": "0.27.0",
298
298
  "X-Fern-Runtime": core.RUNTIME.type,
299
299
  "X-Fern-Runtime-Version": core.RUNTIME.version,
300
300
  },
@@ -345,7 +345,7 @@ class V3 {
345
345
  Authorization: yield this._getAuthorizationHeader(),
346
346
  "X-Fern-Language": "JavaScript",
347
347
  "X-Fern-SDK-Name": "candidhealth",
348
- "X-Fern-SDK-Version": "0.26.0",
348
+ "X-Fern-SDK-Version": "0.27.0",
349
349
  "X-Fern-Runtime": core.RUNTIME.type,
350
350
  "X-Fern-Runtime-Version": core.RUNTIME.version,
351
351
  },
@@ -104,7 +104,7 @@ class V1 {
104
104
  Authorization: yield this._getAuthorizationHeader(),
105
105
  "X-Fern-Language": "JavaScript",
106
106
  "X-Fern-SDK-Name": "candidhealth",
107
- "X-Fern-SDK-Version": "0.26.0",
107
+ "X-Fern-SDK-Version": "0.27.0",
108
108
  "X-Fern-Runtime": core.RUNTIME.type,
109
109
  "X-Fern-Runtime-Version": core.RUNTIME.version,
110
110
  },
@@ -166,7 +166,7 @@ class V1 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.26.0",
169
+ "X-Fern-SDK-Version": "0.27.0",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -233,7 +233,7 @@ class V1 {
233
233
  Authorization: yield this._getAuthorizationHeader(),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "candidhealth",
236
- "X-Fern-SDK-Version": "0.26.0",
236
+ "X-Fern-SDK-Version": "0.27.0",
237
237
  "X-Fern-Runtime": core.RUNTIME.type,
238
238
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
239
  },
@@ -307,7 +307,7 @@ class V1 {
307
307
  Authorization: yield this._getAuthorizationHeader(),
308
308
  "X-Fern-Language": "JavaScript",
309
309
  "X-Fern-SDK-Name": "candidhealth",
310
- "X-Fern-SDK-Version": "0.26.0",
310
+ "X-Fern-SDK-Version": "0.27.0",
311
311
  "X-Fern-Runtime": core.RUNTIME.type,
312
312
  "X-Fern-Runtime-Version": core.RUNTIME.version,
313
313
  },
@@ -372,7 +372,7 @@ class V1 {
372
372
  Authorization: yield this._getAuthorizationHeader(),
373
373
  "X-Fern-Language": "JavaScript",
374
374
  "X-Fern-SDK-Name": "candidhealth",
375
- "X-Fern-SDK-Version": "0.26.0",
375
+ "X-Fern-SDK-Version": "0.27.0",
376
376
  "X-Fern-Runtime": core.RUNTIME.type,
377
377
  "X-Fern-Runtime-Version": core.RUNTIME.version,
378
378
  },
@@ -104,7 +104,7 @@ class V1 {
104
104
  Authorization: yield this._getAuthorizationHeader(),
105
105
  "X-Fern-Language": "JavaScript",
106
106
  "X-Fern-SDK-Name": "candidhealth",
107
- "X-Fern-SDK-Version": "0.26.0",
107
+ "X-Fern-SDK-Version": "0.27.0",
108
108
  "X-Fern-Runtime": core.RUNTIME.type,
109
109
  "X-Fern-Runtime-Version": core.RUNTIME.version,
110
110
  },
@@ -166,7 +166,7 @@ class V1 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.26.0",
169
+ "X-Fern-SDK-Version": "0.27.0",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -237,7 +237,7 @@ class V1 {
237
237
  Authorization: yield this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.26.0",
240
+ "X-Fern-SDK-Version": "0.27.0",
241
241
  "X-Fern-Runtime": core.RUNTIME.type,
242
242
  "X-Fern-Runtime-Version": core.RUNTIME.version,
243
243
  },
@@ -318,7 +318,7 @@ class V1 {
318
318
  Authorization: yield this._getAuthorizationHeader(),
319
319
  "X-Fern-Language": "JavaScript",
320
320
  "X-Fern-SDK-Name": "candidhealth",
321
- "X-Fern-SDK-Version": "0.26.0",
321
+ "X-Fern-SDK-Version": "0.27.0",
322
322
  "X-Fern-Runtime": core.RUNTIME.type,
323
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
324
324
  },
@@ -383,7 +383,7 @@ class V1 {
383
383
  Authorization: yield this._getAuthorizationHeader(),
384
384
  "X-Fern-Language": "JavaScript",
385
385
  "X-Fern-SDK-Name": "candidhealth",
386
- "X-Fern-SDK-Version": "0.26.0",
386
+ "X-Fern-SDK-Version": "0.27.0",
387
387
  "X-Fern-Runtime": core.RUNTIME.type,
388
388
  "X-Fern-Runtime-Version": core.RUNTIME.version,
389
389
  },
@@ -70,7 +70,7 @@ class V1 {
70
70
  Authorization: yield this._getAuthorizationHeader(),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "candidhealth",
73
- "X-Fern-SDK-Version": "0.26.0",
73
+ "X-Fern-SDK-Version": "0.27.0",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -136,7 +136,7 @@ class V1 {
136
136
  Authorization: yield this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.26.0",
139
+ "X-Fern-SDK-Version": "0.27.0",
140
140
  "X-Fern-Runtime": core.RUNTIME.type,
141
141
  "X-Fern-Runtime-Version": core.RUNTIME.version,
142
142
  },
@@ -229,7 +229,7 @@ class V1 {
229
229
  Authorization: yield this._getAuthorizationHeader(),
230
230
  "X-Fern-Language": "JavaScript",
231
231
  "X-Fern-SDK-Name": "candidhealth",
232
- "X-Fern-SDK-Version": "0.26.0",
232
+ "X-Fern-SDK-Version": "0.27.0",
233
233
  "X-Fern-Runtime": core.RUNTIME.type,
234
234
  "X-Fern-Runtime-Version": core.RUNTIME.version,
235
235
  },
@@ -289,7 +289,7 @@ class V1 {
289
289
  Authorization: yield this._getAuthorizationHeader(),
290
290
  "X-Fern-Language": "JavaScript",
291
291
  "X-Fern-SDK-Name": "candidhealth",
292
- "X-Fern-SDK-Version": "0.26.0",
292
+ "X-Fern-SDK-Version": "0.27.0",
293
293
  "X-Fern-Runtime": core.RUNTIME.type,
294
294
  "X-Fern-Runtime-Version": core.RUNTIME.version,
295
295
  },
@@ -357,7 +357,7 @@ class V1 {
357
357
  Authorization: yield this._getAuthorizationHeader(),
358
358
  "X-Fern-Language": "JavaScript",
359
359
  "X-Fern-SDK-Name": "candidhealth",
360
- "X-Fern-SDK-Version": "0.26.0",
360
+ "X-Fern-SDK-Version": "0.27.0",
361
361
  "X-Fern-Runtime": core.RUNTIME.type,
362
362
  "X-Fern-Runtime-Version": core.RUNTIME.version,
363
363
  },
@@ -420,7 +420,7 @@ class V1 {
420
420
  Authorization: yield this._getAuthorizationHeader(),
421
421
  "X-Fern-Language": "JavaScript",
422
422
  "X-Fern-SDK-Name": "candidhealth",
423
- "X-Fern-SDK-Version": "0.26.0",
423
+ "X-Fern-SDK-Version": "0.27.0",
424
424
  "X-Fern-Runtime": core.RUNTIME.type,
425
425
  "X-Fern-Runtime-Version": core.RUNTIME.version,
426
426
  },
@@ -116,7 +116,7 @@ class V1 {
116
116
  Authorization: yield this._getAuthorizationHeader(),
117
117
  "X-Fern-Language": "JavaScript",
118
118
  "X-Fern-SDK-Name": "candidhealth",
119
- "X-Fern-SDK-Version": "0.26.0",
119
+ "X-Fern-SDK-Version": "0.27.0",
120
120
  "X-Fern-Runtime": core.RUNTIME.type,
121
121
  "X-Fern-Runtime-Version": core.RUNTIME.version,
122
122
  },
@@ -164,7 +164,7 @@ class V1 {
164
164
  Authorization: yield this._getAuthorizationHeader(),
165
165
  "X-Fern-Language": "JavaScript",
166
166
  "X-Fern-SDK-Name": "candidhealth",
167
- "X-Fern-SDK-Version": "0.26.0",
167
+ "X-Fern-SDK-Version": "0.27.0",
168
168
  "X-Fern-Runtime": core.RUNTIME.type,
169
169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
170
170
  },
@@ -221,7 +221,7 @@ class V1 {
221
221
  Authorization: yield this._getAuthorizationHeader(),
222
222
  "X-Fern-Language": "JavaScript",
223
223
  "X-Fern-SDK-Name": "candidhealth",
224
- "X-Fern-SDK-Version": "0.26.0",
224
+ "X-Fern-SDK-Version": "0.27.0",
225
225
  "X-Fern-Runtime": core.RUNTIME.type,
226
226
  "X-Fern-Runtime-Version": core.RUNTIME.version,
227
227
  },
@@ -271,7 +271,7 @@ class V1 {
271
271
  Authorization: yield this._getAuthorizationHeader(),
272
272
  "X-Fern-Language": "JavaScript",
273
273
  "X-Fern-SDK-Name": "candidhealth",
274
- "X-Fern-SDK-Version": "0.26.0",
274
+ "X-Fern-SDK-Version": "0.27.0",
275
275
  "X-Fern-Runtime": core.RUNTIME.type,
276
276
  "X-Fern-Runtime-Version": core.RUNTIME.version,
277
277
  },
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
+ export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.delete.Error.Raw, CandidApi.serviceLines.v2.delete.Error>;
10
+ export declare namespace Error {
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
12
+ interface EntityNotFoundError {
13
+ errorName: "EntityNotFoundError";
14
+ content: EntityNotFoundErrorMessage.Raw;
15
+ }
16
+ interface UnauthorizedError {
17
+ errorName: "UnauthorizedError";
18
+ content: UnauthorizedErrorMessage.Raw;
19
+ }
20
+ }
@@ -0,0 +1,67 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../core"));
43
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
45
+ exports.Error = core.serialization
46
+ .union("errorName", {
47
+ EntityNotFoundError: core.serialization.object({
48
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
49
+ }),
50
+ UnauthorizedError: core.serialization.object({
51
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
52
+ }),
53
+ })
54
+ .transform({
55
+ transform: (value) => {
56
+ switch (value.errorName) {
57
+ case "EntityNotFoundError":
58
+ return CandidApi.serviceLines.v2.delete.Error.entityNotFoundError(value.content);
59
+ case "UnauthorizedError":
60
+ return CandidApi.serviceLines.v2.delete.Error.unauthorizedError(value.content);
61
+ }
62
+ },
63
+ untransform: (_a) => {
64
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
65
+ return value;
66
+ },
67
+ });
@@ -1,2 +1,3 @@
1
1
  export * as create from "./create";
2
2
  export * as update from "./update";
3
+ export * as delete from "./delete";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.update = exports.create = void 0;
26
+ exports.delete = exports.update = exports.create = void 0;
27
27
  exports.create = __importStar(require("./create"));
28
28
  exports.update = __importStar(require("./update"));
29
+ exports.delete = __importStar(require("./delete"));
@@ -6,7 +6,6 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
8
  import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
- import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
9
  import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
10
  import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
11
  import { Decimal } from "../../../../commons/types/Decimal";
@@ -17,21 +16,12 @@ export declare namespace ServiceLineCreateStandalone {
17
16
  interface Raw {
18
17
  modifiers?: ProcedureModifier.Raw[] | null;
19
18
  charge_amount_cents?: number | null;
20
- allowed_amount_cents?: number | null;
21
- insurance_balance_cents?: number | null;
22
- patient_balance_cents?: number | null;
23
- primary_paid_amount_cents?: number | null;
24
- secondary_paid_amount_cents?: number | null;
25
- tertiary_paid_amount_cents?: number | null;
26
- patient_responsibility_cents?: number | null;
27
19
  diagnosis_id_zero?: DiagnosisId.Raw | null;
28
20
  diagnosis_id_one?: DiagnosisId.Raw | null;
29
21
  diagnosis_id_two?: DiagnosisId.Raw | null;
30
22
  diagnosis_id_three?: DiagnosisId.Raw | null;
31
- service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
23
  denial_reason?: ServiceLineDenialReason.Raw | null;
33
24
  place_of_service_code?: FacilityTypeCode.Raw | null;
34
- place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
25
  procedure_code: string;
36
26
  quantity: Decimal.Raw;
37
27
  units: ServiceLineUnits.Raw;
@@ -30,7 +30,6 @@ exports.ServiceLineCreateStandalone = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
32
  const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
- const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
33
  const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
34
  const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
35
  const Decimal_1 = require("../../../../commons/types/Decimal");
@@ -39,21 +38,12 @@ const ClaimId_1 = require("../../../../commons/types/ClaimId");
39
38
  exports.ServiceLineCreateStandalone = core.serialization.object({
40
39
  modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
40
  chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
42
- allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
43
- insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
44
- patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
45
- primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
46
- secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
47
- tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
48
- patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
49
41
  diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
42
  diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
43
  diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
44
  diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
53
- serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
54
45
  denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
46
  placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
- placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
57
47
  procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
58
48
  quantity: Decimal_1.Decimal,
59
49
  units: ServiceLineUnits_1.ServiceLineUnits,
@@ -6,7 +6,6 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
8
  import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
- import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
9
  import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
10
  import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
11
  import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
@@ -17,21 +16,12 @@ export declare namespace ServiceLineUpdate {
17
16
  edit_reason?: string | null;
18
17
  modifiers?: ProcedureModifier.Raw[] | null;
19
18
  charge_amount_cents?: number | null;
20
- allowed_amount_cents?: number | null;
21
- insurance_balance_cents?: number | null;
22
- patient_balance_cents?: number | null;
23
- primary_paid_amount_cents?: number | null;
24
- secondary_paid_amount_cents?: number | null;
25
- tertiary_paid_amount_cents?: number | null;
26
- patient_responsibility_cents?: number | null;
27
19
  diagnosis_id_zero?: DiagnosisId.Raw | null;
28
20
  diagnosis_id_one?: DiagnosisId.Raw | null;
29
21
  diagnosis_id_two?: DiagnosisId.Raw | null;
30
22
  diagnosis_id_three?: DiagnosisId.Raw | null;
31
- service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
23
  denial_reason?: ServiceLineDenialReason.Raw | null;
33
24
  place_of_service_code?: FacilityTypeCode.Raw | null;
34
- place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
25
  units?: ServiceLineUnits.Raw | null;
36
26
  procedure_code?: string | null;
37
27
  quantity?: Decimal.Raw | null;
@@ -30,7 +30,6 @@ exports.ServiceLineUpdate = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
32
  const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
- const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
33
  const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
34
  const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
35
  const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
@@ -39,21 +38,12 @@ exports.ServiceLineUpdate = core.serialization.object({
39
38
  editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
40
39
  modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
40
  chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
42
- allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
43
- insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
44
- patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
45
- primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
46
- secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
47
- tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
48
- patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
49
41
  diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
42
  diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
43
  diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
44
  diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
53
- serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
54
45
  denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
46
  placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
- placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
57
47
  units: ServiceLineUnits_1.ServiceLineUnits.optional(),
58
48
  procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
59
49
  quantity: Decimal_1.Decimal.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -5674,21 +5674,12 @@ await client.payers.v3.getAll({
5674
5674
  await client.serviceLines.v2.create({
5675
5675
  modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
5676
5676
  chargeAmountCents: 1,
5677
- allowedAmountCents: 1,
5678
- insuranceBalanceCents: 1,
5679
- patientBalanceCents: 1,
5680
- primaryPaidAmountCents: 1,
5681
- secondaryPaidAmountCents: 1,
5682
- tertiaryPaidAmountCents: 1,
5683
- patientResponsibilityCents: 1,
5684
5677
  diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5685
5678
  diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5686
5679
  diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5687
5680
  diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5688
- serviceLineManualAdjustments: [{}],
5689
5681
  denialReason: {},
5690
5682
  placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
5691
- placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
5692
5683
  procedureCode: "string",
5693
5684
  quantity: CandidApi.Decimal("string"),
5694
5685
  units: CandidApi.ServiceLineUnits.Mj,
@@ -5748,21 +5739,12 @@ await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-
5748
5739
  editReason: "string",
5749
5740
  modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
5750
5741
  chargeAmountCents: 1,
5751
- allowedAmountCents: 1,
5752
- insuranceBalanceCents: 1,
5753
- patientBalanceCents: 1,
5754
- primaryPaidAmountCents: 1,
5755
- secondaryPaidAmountCents: 1,
5756
- tertiaryPaidAmountCents: 1,
5757
- patientResponsibilityCents: 1,
5758
5742
  diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5759
5743
  diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5760
5744
  diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5761
5745
  diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
5762
- serviceLineManualAdjustments: [{}],
5763
5746
  denialReason: {},
5764
5747
  placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
5765
- placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
5766
5748
  units: CandidApi.ServiceLineUnits.Mj,
5767
5749
  procedureCode: "string",
5768
5750
  quantity: CandidApi.Decimal("string"),
@@ -5812,6 +5794,54 @@ await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-
5812
5794
  </dl>
5813
5795
  </details>
5814
5796
 
5797
+ <details><summary><code>client.serviceLines.v2.<a href="/src/api/resources/serviceLines/resources/v2/client/Client.ts">delete</a>(serviceLineId) -> core.APIResponse<void, CandidApi.serviceLines.v2.delete.Error></code></summary>
5798
+ <dl>
5799
+ <dd>
5800
+
5801
+ #### 🔌 Usage
5802
+
5803
+ <dl>
5804
+ <dd>
5805
+
5806
+ <dl>
5807
+ <dd>
5808
+
5809
+ ```typescript
5810
+ await client.serviceLines.v2.delete(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"));
5811
+ ```
5812
+
5813
+ </dd>
5814
+ </dl>
5815
+ </dd>
5816
+ </dl>
5817
+
5818
+ #### ⚙️ Parameters
5819
+
5820
+ <dl>
5821
+ <dd>
5822
+
5823
+ <dl>
5824
+ <dd>
5825
+
5826
+ **serviceLineId:** `CandidApi.ServiceLineId`
5827
+
5828
+ </dd>
5829
+ </dl>
5830
+
5831
+ <dl>
5832
+ <dd>
5833
+
5834
+ **requestOptions:** `V2.RequestOptions`
5835
+
5836
+ </dd>
5837
+ </dl>
5838
+ </dd>
5839
+ </dl>
5840
+
5841
+ </dd>
5842
+ </dl>
5843
+ </details>
5844
+
5815
5845
  ## Tasks V3
5816
5846
 
5817
5847
  <details><summary><code>client.tasks.v3.<a href="/src/api/resources/tasks/resources/v3/client/Client.ts">getActions</a>(taskId) -> core.APIResponse<CandidApi.TaskActions, CandidApi.tasks.v3.getActions.Error></code></summary>
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
+ import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
+ export declare const Error: core.serialization.Schema<serializers.serviceLines.v2.delete.Error.Raw, CandidApi.serviceLines.v2.delete.Error>;
10
+ export declare namespace Error {
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
12
+ interface EntityNotFoundError {
13
+ errorName: "EntityNotFoundError";
14
+ content: EntityNotFoundErrorMessage.Raw;
15
+ }
16
+ interface UnauthorizedError {
17
+ errorName: "UnauthorizedError";
18
+ content: UnauthorizedErrorMessage.Raw;
19
+ }
20
+ }