candidhealth 0.7.0 → 0.7.1

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 (75) 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/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
  4. package/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
  5. package/api/resources/commons/types/index.d.ts +1 -0
  6. package/api/resources/commons/types/index.js +1 -0
  7. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  8. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  9. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
  10. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
  11. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  12. package/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
  13. package/api/resources/guarantor/resources/v1/client/Client.js +18 -3
  14. package/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +3 -0
  15. package/api/resources/insuranceAdjudication/resources/v1/client/Client.js +6 -3
  16. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +3 -0
  17. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -3
  18. package/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
  19. package/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
  20. package/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
  21. package/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
  22. package/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
  23. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +3 -0
  24. package/api/resources/patientPayments/resources/v4/client/Client.js +6 -3
  25. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +3 -0
  26. package/api/resources/patientRefunds/resources/v1/client/Client.js +6 -3
  27. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  28. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +3 -0
  29. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -3
  30. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  31. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  32. package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +6 -0
  33. package/dist/api/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +5 -0
  34. package/dist/api/resources/commons/types/index.d.ts +1 -0
  35. package/dist/api/resources/commons/types/index.js +1 -0
  36. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  37. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  38. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -0
  39. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +6 -1
  40. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  41. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +15 -0
  42. package/dist/api/resources/guarantor/resources/v1/client/Client.js +18 -3
  43. package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.d.ts +3 -0
  44. package/dist/api/resources/insuranceAdjudication/resources/v1/client/Client.js +6 -3
  45. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +3 -0
  46. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -3
  47. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +6 -4
  48. package/dist/api/resources/organizationProviders/resources/v3/client/create.d.ts +7 -1
  49. package/dist/api/resources/organizationProviders/resources/v3/client/create.js +11 -0
  50. package/dist/api/resources/organizationProviders/resources/v3/client/update.d.ts +7 -1
  51. package/dist/api/resources/organizationProviders/resources/v3/client/update.js +11 -0
  52. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +3 -0
  53. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +6 -3
  54. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +3 -0
  55. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +6 -3
  56. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  57. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +3 -0
  58. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -3
  59. package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
  60. package/dist/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
  61. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  62. package/dist/serialization/resources/commons/types/index.js +1 -0
  63. package/dist/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
  64. package/dist/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
  65. package/dist/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
  66. package/dist/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
  67. package/package.json +1 -1
  68. package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.d.ts +12 -0
  69. package/serialization/resources/commons/types/UpdatesDisabledDueToExternalSystemIntegrationErrorMessage.js +33 -0
  70. package/serialization/resources/commons/types/index.d.ts +1 -0
  71. package/serialization/resources/commons/types/index.js +1 -0
  72. package/serialization/resources/organizationProviders/resources/v3/client/create.d.ts +5 -1
  73. package/serialization/resources/organizationProviders/resources/v3/client/create.js +5 -0
  74. package/serialization/resources/organizationProviders/resources/v3/client/update.d.ts +5 -1
  75. package/serialization/resources/organizationProviders/resources/v3/client/update.js +5 -0
@@ -62,7 +62,7 @@ class V2 {
62
62
  Authorization: await this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "candidhealth",
65
- "X-Fern-SDK-Version": "0.7.0",
65
+ "X-Fern-SDK-Version": "0.7.1",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -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.7.0",
51
+ "X-Fern-SDK-Version": "0.7.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UpdatesDisabledDueToExternalSystemIntegrationErrorMessage {
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 });
@@ -33,6 +33,7 @@ export * from "./EntityNotFoundErrorMessage";
33
33
  export * from "./UnauthorizedErrorMessage";
34
34
  export * from "./HttpServiceUnavailableErrorMessage";
35
35
  export * from "./RequestValidationError";
36
+ export * from "./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage";
36
37
  export * from "./PhoneNumber";
37
38
  export * from "./PhoneNumberType";
38
39
  export * from "./Email";
@@ -49,6 +49,7 @@ __exportStar(require("./EntityNotFoundErrorMessage"), exports);
49
49
  __exportStar(require("./UnauthorizedErrorMessage"), exports);
50
50
  __exportStar(require("./HttpServiceUnavailableErrorMessage"), exports);
51
51
  __exportStar(require("./RequestValidationError"), exports);
52
+ __exportStar(require("./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"), exports);
52
53
  __exportStar(require("./PhoneNumber"), exports);
53
54
  __exportStar(require("./PhoneNumberType"), exports);
54
55
  __exportStar(require("./Email"), exports);
@@ -65,7 +65,7 @@ class V2 {
65
65
  Authorization: await this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.7.0",
68
+ "X-Fern-SDK-Version": "0.7.1",
69
69
  },
70
70
  contentType: "application/json",
71
71
  body: request,
@@ -103,7 +103,7 @@ class V4 {
103
103
  Authorization: await this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.7.0",
106
+ "X-Fern-SDK-Version": "0.7.1",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V4 {
133
133
  Authorization: await this._getAuthorizationHeader(),
134
134
  "X-Fern-Language": "JavaScript",
135
135
  "X-Fern-SDK-Name": "candidhealth",
136
- "X-Fern-SDK-Version": "0.7.0",
136
+ "X-Fern-SDK-Version": "0.7.1",
137
137
  },
138
138
  contentType: "application/json",
139
139
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V4 {
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.7.0",
165
+ "X-Fern-SDK-Version": "0.7.1",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -212,7 +212,7 @@ class V4 {
212
212
  Authorization: await this._getAuthorizationHeader(),
213
213
  "X-Fern-Language": "JavaScript",
214
214
  "X-Fern-SDK-Name": "candidhealth",
215
- "X-Fern-SDK-Version": "0.7.0",
215
+ "X-Fern-SDK-Version": "0.7.1",
216
216
  },
217
217
  contentType: "application/json",
218
218
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -13,6 +13,11 @@ export declare namespace V1 {
13
13
  export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
+ /**
17
+ * **This endpoint is incubating.**
18
+ * Computes the expected network status given the provided information.
19
+ *
20
+ */
16
21
  compute(request: CandidApi.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest): Promise<core.APIResponse<CandidApi.expectedNetworkStatus.v1.ExpectedNetworkStatusResponse, CandidApi.expectedNetworkStatus.v1.compute.Error>>;
17
22
  protected _getAuthorizationHeader(): Promise<string | undefined>;
18
23
  }
@@ -40,6 +40,11 @@ class V1 {
40
40
  constructor(options) {
41
41
  this.options = options;
42
42
  }
43
+ /**
44
+ * **This endpoint is incubating.**
45
+ * Computes the expected network status given the provided information.
46
+ *
47
+ */
43
48
  async compute(request) {
44
49
  const _response = await core.fetcher({
45
50
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/expected-network-status/v1"),
@@ -48,7 +53,7 @@ class V1 {
48
53
  Authorization: await this._getAuthorizationHeader(),
49
54
  "X-Fern-Language": "JavaScript",
50
55
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.7.0",
56
+ "X-Fern-SDK-Version": "0.7.1",
52
57
  },
53
58
  contentType: "application/json",
54
59
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.7.0",
71
+ "X-Fern-SDK-Version": "0.7.1",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
@@ -13,8 +13,23 @@ export declare namespace V1 {
13
13
  export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
+ /**
17
+ * **This endpoint is incubating.**
18
+ * Creates a new guarantor and returns the newly created Guarantor object.
19
+ *
20
+ */
16
21
  create(encounterId: CandidApi.EncounterId, request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
22
+ /**
23
+ * **This endpoint is incubating.**
24
+ * Retrieves a guarantor by its `guarantor_id`.
25
+ *
26
+ */
17
27
  get(guarantorId: CandidApi.guarantor.v1.GuarantorId): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
28
+ /**
29
+ * **This endpoint is incubating.**
30
+ * Updates a guarantor by its `guarantor_id`.
31
+ *
32
+ */
18
33
  update(guarantorId: CandidApi.guarantor.v1.GuarantorId, request?: CandidApi.guarantor.v1.GuarantorUpdate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.update.Error>>;
19
34
  protected _getAuthorizationHeader(): Promise<string | undefined>;
20
35
  }
@@ -40,6 +40,11 @@ class V1 {
40
40
  constructor(options) {
41
41
  this.options = options;
42
42
  }
43
+ /**
44
+ * **This endpoint is incubating.**
45
+ * Creates a new guarantor and returns the newly created Guarantor object.
46
+ *
47
+ */
43
48
  async create(encounterId, request) {
44
49
  const _response = await core.fetcher({
45
50
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.EncounterId.jsonOrThrow(encounterId)}`),
@@ -48,7 +53,7 @@ class V1 {
48
53
  Authorization: await this._getAuthorizationHeader(),
49
54
  "X-Fern-Language": "JavaScript",
50
55
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.7.0",
56
+ "X-Fern-SDK-Version": "0.7.1",
52
57
  },
53
58
  contentType: "application/json",
54
59
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -86,6 +91,11 @@ class V1 {
86
91
  error: CandidApi.guarantor.v1.create.Error._unknown(_response.error),
87
92
  };
88
93
  }
94
+ /**
95
+ * **This endpoint is incubating.**
96
+ * Retrieves a guarantor by its `guarantor_id`.
97
+ *
98
+ */
89
99
  async get(guarantorId) {
90
100
  const _response = await core.fetcher({
91
101
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
@@ -94,7 +104,7 @@ class V1 {
94
104
  Authorization: await this._getAuthorizationHeader(),
95
105
  "X-Fern-Language": "JavaScript",
96
106
  "X-Fern-SDK-Name": "candidhealth",
97
- "X-Fern-SDK-Version": "0.7.0",
107
+ "X-Fern-SDK-Version": "0.7.1",
98
108
  },
99
109
  contentType: "application/json",
100
110
  timeoutMs: 60000,
@@ -115,6 +125,11 @@ class V1 {
115
125
  error: CandidApi.guarantor.v1.get.Error._unknown(_response.error),
116
126
  };
117
127
  }
128
+ /**
129
+ * **This endpoint is incubating.**
130
+ * Updates a guarantor by its `guarantor_id`.
131
+ *
132
+ */
118
133
  async update(guarantorId, request = {}) {
119
134
  const _response = await core.fetcher({
120
135
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/guarantors/v1/${await serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId)}`),
@@ -123,7 +138,7 @@ class V1 {
123
138
  Authorization: await this._getAuthorizationHeader(),
124
139
  "X-Fern-Language": "JavaScript",
125
140
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.7.0",
141
+ "X-Fern-SDK-Version": "0.7.1",
127
142
  },
128
143
  contentType: "application/json",
129
144
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -14,16 +14,19 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
+ * **This endpoint is incubating.**
17
18
  * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
18
19
  *
19
20
  */
20
21
  get(insuranceAdjudicationId: CandidApi.insuranceAdjudication.v1.InsuranceAdjudicationId): Promise<core.APIResponse<CandidApi.insuranceAdjudication.v1.InsuranceAdjudication, CandidApi.insuranceAdjudication.v1.get.Error>>;
21
22
  /**
23
+ * **This endpoint is incubating.**
22
24
  * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
23
25
  *
24
26
  */
25
27
  create(request: CandidApi.insuranceAdjudication.v1.InsuranceAdjudicationCreate): Promise<core.APIResponse<CandidApi.insuranceAdjudication.v1.InsuranceAdjudication, CandidApi.insuranceAdjudication.v1.create.Error>>;
26
28
  /**
29
+ * **This endpoint is incubating.**
27
30
  * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
28
31
  *
29
32
  */
@@ -41,6 +41,7 @@ class V1 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
+ * **This endpoint is incubating.**
44
45
  * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
45
46
  *
46
47
  */
@@ -52,7 +53,7 @@ class V1 {
52
53
  Authorization: await this._getAuthorizationHeader(),
53
54
  "X-Fern-Language": "JavaScript",
54
55
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.7.0",
56
+ "X-Fern-SDK-Version": "0.7.1",
56
57
  },
57
58
  contentType: "application/json",
58
59
  timeoutMs: 60000,
@@ -74,6 +75,7 @@ class V1 {
74
75
  };
75
76
  }
76
77
  /**
78
+ * **This endpoint is incubating.**
77
79
  * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
78
80
  *
79
81
  */
@@ -85,7 +87,7 @@ class V1 {
85
87
  Authorization: await this._getAuthorizationHeader(),
86
88
  "X-Fern-Language": "JavaScript",
87
89
  "X-Fern-SDK-Name": "candidhealth",
88
- "X-Fern-SDK-Version": "0.7.0",
90
+ "X-Fern-SDK-Version": "0.7.1",
89
91
  },
90
92
  contentType: "application/json",
91
93
  body: await serializers.insuranceAdjudication.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -110,6 +112,7 @@ class V1 {
110
112
  };
111
113
  }
112
114
  /**
115
+ * **This endpoint is incubating.**
113
116
  * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
114
117
  *
115
118
  */
@@ -121,7 +124,7 @@ class V1 {
121
124
  Authorization: await this._getAuthorizationHeader(),
122
125
  "X-Fern-Language": "JavaScript",
123
126
  "X-Fern-SDK-Name": "candidhealth",
124
- "X-Fern-SDK-Version": "0.7.0",
127
+ "X-Fern-SDK-Version": "0.7.1",
125
128
  },
126
129
  contentType: "application/json",
127
130
  timeoutMs: 60000,
@@ -14,12 +14,14 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
+ * **This endpoint is incubating.**
17
18
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
18
19
  * If the refund does not exist, a `403` will be thrown.
19
20
  *
20
21
  */
21
22
  get(insuranceRefundId: CandidApi.insuranceRefunds.v1.InsuranceRefundId): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.get.Error>>;
22
23
  /**
24
+ * **This endpoint is incubating.**
23
25
  * Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
24
26
  * The allocations can describe whether the refund is being applied toward a specific service line,
25
27
  * claim, or billing provider.
@@ -27,6 +29,7 @@ export declare class V1 {
27
29
  */
28
30
  create(request: CandidApi.insuranceRefunds.v1.InsuranceRefundCreate): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.create.Error>>;
29
31
  /**
32
+ * **This endpoint is incubating.**
30
33
  * Deletes the insurance refund record matching the provided `insurance_refund_id`.
31
34
  * If the matching record's organization_id does not match the authenticated user's
32
35
  * current organization_id, then a response code of `403` will be returned.
@@ -41,6 +41,7 @@ class V1 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
+ * **This endpoint is incubating.**
44
45
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
45
46
  * If the refund does not exist, a `403` will be thrown.
46
47
  *
@@ -53,7 +54,7 @@ class V1 {
53
54
  Authorization: await this._getAuthorizationHeader(),
54
55
  "X-Fern-Language": "JavaScript",
55
56
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.7.0",
57
+ "X-Fern-SDK-Version": "0.7.1",
57
58
  },
58
59
  contentType: "application/json",
59
60
  timeoutMs: 60000,
@@ -75,6 +76,7 @@ class V1 {
75
76
  };
76
77
  }
77
78
  /**
79
+ * **This endpoint is incubating.**
78
80
  * Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
79
81
  * The allocations can describe whether the refund is being applied toward a specific service line,
80
82
  * claim, or billing provider.
@@ -88,7 +90,7 @@ class V1 {
88
90
  Authorization: await this._getAuthorizationHeader(),
89
91
  "X-Fern-Language": "JavaScript",
90
92
  "X-Fern-SDK-Name": "candidhealth",
91
- "X-Fern-SDK-Version": "0.7.0",
93
+ "X-Fern-SDK-Version": "0.7.1",
92
94
  },
93
95
  contentType: "application/json",
94
96
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -113,6 +115,7 @@ class V1 {
113
115
  };
114
116
  }
115
117
  /**
118
+ * **This endpoint is incubating.**
116
119
  * Deletes the insurance refund record matching the provided `insurance_refund_id`.
117
120
  * If the matching record's organization_id does not match the authenticated user's
118
121
  * current organization_id, then a response code of `403` will be returned.
@@ -126,7 +129,7 @@ class V1 {
126
129
  Authorization: await this._getAuthorizationHeader(),
127
130
  "X-Fern-Language": "JavaScript",
128
131
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.7.0",
132
+ "X-Fern-SDK-Version": "0.7.1",
130
133
  },
131
134
  contentType: "application/json",
132
135
  timeoutMs: 60000,
@@ -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.7.0",
52
+ "X-Fern-SDK-Version": "0.7.1",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -115,7 +115,7 @@ class V3 {
115
115
  Authorization: await this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.7.0",
118
+ "X-Fern-SDK-Version": "0.7.1",
119
119
  },
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
@@ -145,7 +145,7 @@ class V3 {
145
145
  Authorization: await this._getAuthorizationHeader(),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "candidhealth",
148
- "X-Fern-SDK-Version": "0.7.0",
148
+ "X-Fern-SDK-Version": "0.7.1",
149
149
  },
150
150
  contentType: "application/json",
151
151
  body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -167,6 +167,7 @@ class V3 {
167
167
  if (_response.error.reason === "status-code") {
168
168
  switch (_response.error.body?.errorName) {
169
169
  case "HttpRequestValidationError":
170
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
170
171
  return {
171
172
  ok: false,
172
173
  error: await serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
@@ -191,7 +192,7 @@ class V3 {
191
192
  Authorization: await this._getAuthorizationHeader(),
192
193
  "X-Fern-Language": "JavaScript",
193
194
  "X-Fern-SDK-Name": "candidhealth",
194
- "X-Fern-SDK-Version": "0.7.0",
195
+ "X-Fern-SDK-Version": "0.7.1",
195
196
  },
196
197
  contentType: "application/json",
197
198
  body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
@@ -214,6 +215,7 @@ class V3 {
214
215
  switch (_response.error.body?.errorName) {
215
216
  case "HttpRequestValidationError":
216
217
  case "EntityNotFoundError":
218
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
217
219
  return {
218
220
  ok: false,
219
221
  error: await serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
@@ -3,12 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.create.Error._Unknown;
6
+ export declare type Error = CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.create.Error.UpdatesDisabledDueToExternalSystemIntegrationError | CandidApi.organizationProviders.v3.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface HttpRequestValidationError extends _Utils {
9
9
  errorName: "HttpRequestValidationError";
10
10
  content: CandidApi.RequestValidationError;
11
11
  }
12
+ interface UpdatesDisabledDueToExternalSystemIntegrationError extends _Utils {
13
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError";
14
+ content: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage;
15
+ }
12
16
  interface _Unknown extends _Utils {
13
17
  errorName: void;
14
18
  content: core.Fetcher.Error;
@@ -18,11 +22,13 @@ export declare namespace Error {
18
22
  }
19
23
  interface _Visitor<_Result> {
20
24
  httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
25
+ updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => _Result;
21
26
  _other: (value: core.Fetcher.Error) => _Result;
22
27
  }
23
28
  }
24
29
  export declare const Error: {
25
30
  readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.organizationProviders.v3.create.Error.HttpRequestValidationError;
31
+ readonly updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => CandidApi.organizationProviders.v3.create.Error.UpdatesDisabledDueToExternalSystemIntegrationError;
26
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationProviders.v3.create.Error._Unknown;
27
33
  readonly _visit: <_Result>(value: CandidApi.organizationProviders.v3.create.Error, visitor: CandidApi.organizationProviders.v3.create.Error._Visitor<_Result>) => _Result;
28
34
  };
@@ -38,6 +38,15 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ updatesDisabledDueToExternalSystemIntegrationError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.organizationProviders.v3.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
41
50
  _unknown: (fetcherError) => {
42
51
  return {
43
52
  errorName: undefined,
@@ -51,6 +60,8 @@ exports.Error = {
51
60
  switch (value.errorName) {
52
61
  case "HttpRequestValidationError":
53
62
  return visitor.httpRequestValidationError(value.content);
63
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
64
+ return visitor.updatesDisabledDueToExternalSystemIntegrationError(value.content);
54
65
  default:
55
66
  return visitor._other(value);
56
67
  }
@@ -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.organizationProviders.v3.update.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError | CandidApi.organizationProviders.v3.update.Error._Unknown;
6
+ export declare type Error = CandidApi.organizationProviders.v3.update.Error.HttpRequestValidationError | CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError | CandidApi.organizationProviders.v3.update.Error.UpdatesDisabledDueToExternalSystemIntegrationError | CandidApi.organizationProviders.v3.update.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface HttpRequestValidationError extends _Utils {
9
9
  errorName: "HttpRequestValidationError";
@@ -13,6 +13,10 @@ export declare namespace Error {
13
13
  errorName: "EntityNotFoundError";
14
14
  content: CandidApi.EntityNotFoundErrorMessage;
15
15
  }
16
+ interface UpdatesDisabledDueToExternalSystemIntegrationError extends _Utils {
17
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError";
18
+ content: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage;
19
+ }
16
20
  interface _Unknown extends _Utils {
17
21
  errorName: void;
18
22
  content: core.Fetcher.Error;
@@ -23,12 +27,14 @@ export declare namespace Error {
23
27
  interface _Visitor<_Result> {
24
28
  httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
25
29
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
30
+ updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => _Result;
26
31
  _other: (value: core.Fetcher.Error) => _Result;
27
32
  }
28
33
  }
29
34
  export declare const Error: {
30
35
  readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.organizationProviders.v3.update.Error.HttpRequestValidationError;
31
36
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.organizationProviders.v3.update.Error.EntityNotFoundError;
37
+ readonly updatesDisabledDueToExternalSystemIntegrationError: (value: CandidApi.UpdatesDisabledDueToExternalSystemIntegrationErrorMessage) => CandidApi.organizationProviders.v3.update.Error.UpdatesDisabledDueToExternalSystemIntegrationError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.organizationProviders.v3.update.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.organizationProviders.v3.update.Error, visitor: CandidApi.organizationProviders.v3.update.Error._Visitor<_Result>) => _Result;
34
40
  };
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ updatesDisabledDueToExternalSystemIntegrationError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UpdatesDisabledDueToExternalSystemIntegrationError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.organizationProviders.v3.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.httpRequestValidationError(value.content);
63
72
  case "EntityNotFoundError":
64
73
  return visitor.entityNotFoundError(value.content);
74
+ case "UpdatesDisabledDueToExternalSystemIntegrationError":
75
+ return visitor.updatesDisabledDueToExternalSystemIntegrationError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -14,11 +14,13 @@ export declare class V4 {
14
14
  protected readonly options: V4.Options;
15
15
  constructor(options: V4.Options);
16
16
  /**
17
+ * **This endpoint is incubating.**
17
18
  * Retrieves a previously created patient payment by its `patient_payment_id`.
18
19
  *
19
20
  */
20
21
  get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
21
22
  /**
23
+ * **This endpoint is incubating.**
22
24
  * Creates a new patient payment record and returns the newly created PatientPayment object.
23
25
  * The allocations can describe whether the payment is being applied toward a specific service line,
24
26
  * claim, or billing provider.
@@ -26,6 +28,7 @@ export declare class V4 {
26
28
  */
27
29
  create(request: CandidApi.patientPayments.v4.PatientPaymentCreate): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.create.Error>>;
28
30
  /**
31
+ * **This endpoint is incubating.**
29
32
  * Deletes the patient payment record matching the provided patient_payment_id.
30
33
  *
31
34
  */
@@ -41,6 +41,7 @@ class V4 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
+ * **This endpoint is incubating.**
44
45
  * Retrieves a previously created patient payment by its `patient_payment_id`.
45
46
  *
46
47
  */
@@ -52,7 +53,7 @@ class V4 {
52
53
  Authorization: await this._getAuthorizationHeader(),
53
54
  "X-Fern-Language": "JavaScript",
54
55
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.7.0",
56
+ "X-Fern-SDK-Version": "0.7.1",
56
57
  },
57
58
  contentType: "application/json",
58
59
  timeoutMs: 60000,
@@ -74,6 +75,7 @@ class V4 {
74
75
  };
75
76
  }
76
77
  /**
78
+ * **This endpoint is incubating.**
77
79
  * Creates a new patient payment record and returns the newly created PatientPayment object.
78
80
  * The allocations can describe whether the payment is being applied toward a specific service line,
79
81
  * claim, or billing provider.
@@ -87,7 +89,7 @@ class V4 {
87
89
  Authorization: await this._getAuthorizationHeader(),
88
90
  "X-Fern-Language": "JavaScript",
89
91
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.7.0",
92
+ "X-Fern-SDK-Version": "0.7.1",
91
93
  },
92
94
  contentType: "application/json",
93
95
  body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
@@ -112,6 +114,7 @@ class V4 {
112
114
  };
113
115
  }
114
116
  /**
117
+ * **This endpoint is incubating.**
115
118
  * Deletes the patient payment record matching the provided patient_payment_id.
116
119
  *
117
120
  */
@@ -123,7 +126,7 @@ class V4 {
123
126
  Authorization: await this._getAuthorizationHeader(),
124
127
  "X-Fern-Language": "JavaScript",
125
128
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.7.0",
129
+ "X-Fern-SDK-Version": "0.7.1",
127
130
  },
128
131
  contentType: "application/json",
129
132
  timeoutMs: 60000,
@@ -14,11 +14,13 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
+ * **This endpoint is incubating.**
17
18
  * Retrieves a previously created patient refund by its `patient_refund_id`.
18
19
  *
19
20
  */
20
21
  get(patientRefundId: CandidApi.patientRefunds.v1.PatientRefundId): Promise<core.APIResponse<CandidApi.patientRefunds.v1.PatientRefund, CandidApi.patientRefunds.v1.get.Error>>;
21
22
  /**
23
+ * **This endpoint is incubating.**
22
24
  * Creates a new patient refund record and returns the newly created PatientRefund object.
23
25
  * The allocations can describe whether the refund is being applied toward a specific service line,
24
26
  * claim, or billing provider.
@@ -26,6 +28,7 @@ export declare class V1 {
26
28
  */
27
29
  create(request: CandidApi.patientRefunds.v1.PatientRefundCreate): Promise<core.APIResponse<CandidApi.patientRefunds.v1.PatientRefund, CandidApi.patientRefunds.v1.create.Error>>;
28
30
  /**
31
+ * **This endpoint is incubating.**
29
32
  * Deletes the patient refund record matching the provided patient_refund_id.
30
33
  *
31
34
  */