candidhealth 0.14.3 → 0.15.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 (123) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +2 -2
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +19 -5
  7. package/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  8. package/api/resources/contracts/resources/v2/client/delete.js +11 -0
  9. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  10. package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  11. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  12. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  13. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  14. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  15. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  16. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  17. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  18. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  19. package/api/resources/index.d.ts +1 -0
  20. package/api/resources/index.js +1 -0
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  22. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  23. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  24. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  25. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  26. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  28. package/api/resources/serviceFacility/client/Client.d.ts +18 -0
  29. package/api/resources/serviceFacility/client/Client.js +83 -0
  30. package/api/resources/serviceFacility/client/index.d.ts +2 -0
  31. package/api/resources/serviceFacility/client/index.js +31 -0
  32. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  33. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  34. package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  35. package/api/resources/serviceFacility/client/requests/index.js +2 -0
  36. package/api/resources/serviceFacility/client/update.d.ts +22 -0
  37. package/api/resources/serviceFacility/client/update.js +47 -0
  38. package/api/resources/serviceFacility/index.d.ts +1 -0
  39. package/api/resources/serviceFacility/index.js +1 -0
  40. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
  41. package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
  42. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  43. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  44. package/dist/Client.d.ts +3 -0
  45. package/dist/Client.js +5 -0
  46. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  47. package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
  48. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  49. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -5
  50. package/dist/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
  51. package/dist/api/resources/contracts/resources/v2/client/delete.js +11 -0
  52. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
  53. package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
  54. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  55. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  56. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  57. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  58. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  59. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  60. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  61. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  62. package/dist/api/resources/index.d.ts +1 -0
  63. package/dist/api/resources/index.js +1 -0
  64. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  65. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  66. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  67. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  68. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  69. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  70. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  71. package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
  72. package/dist/api/resources/serviceFacility/client/Client.js +83 -0
  73. package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
  74. package/dist/api/resources/serviceFacility/client/index.js +31 -0
  75. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  76. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  77. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  78. package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
  79. package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
  80. package/dist/api/resources/serviceFacility/client/update.js +47 -0
  81. package/dist/api/resources/serviceFacility/index.d.ts +1 -0
  82. package/dist/api/resources/serviceFacility/index.js +1 -0
  83. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
  84. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
  85. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  86. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  87. package/dist/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  88. package/dist/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  89. package/dist/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  90. package/dist/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  91. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  92. package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  93. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  94. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  95. package/dist/serialization/resources/index.d.ts +1 -0
  96. package/dist/serialization/resources/index.js +1 -0
  97. package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  98. package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
  99. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  100. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  101. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  102. package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  103. package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
  104. package/dist/serialization/resources/serviceFacility/index.js +1 -0
  105. package/package.json +1 -1
  106. package/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
  107. package/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
  108. package/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
  109. package/serialization/resources/contracts/resources/v2/client/index.js +2 -1
  110. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
  111. package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
  112. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  113. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  114. package/serialization/resources/index.d.ts +1 -0
  115. package/serialization/resources/index.js +1 -0
  116. package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  117. package/serialization/resources/serviceFacility/client/index.js +17 -0
  118. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  119. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  120. package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  121. package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  122. package/serialization/resources/serviceFacility/index.d.ts +1 -0
  123. package/serialization/resources/serviceFacility/index.js +1 -0
@@ -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.3",
95
+ "X-Fern-SDK-Version": "0.15.0",
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.3",
129
+ "X-Fern-SDK-Version": "0.15.0",
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.3",
164
+ "X-Fern-SDK-Version": "0.15.0",
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.3",
200
+ "X-Fern-SDK-Version": "0.15.0",
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);
@@ -43,3 +43,4 @@ export * from "./serviceFacility/types";
43
43
  export * as tags from "./tags";
44
44
  export * from "./tags/types";
45
45
  export * as eligibility from "./eligibility";
46
+ export * from "./serviceFacility/client/requests";
@@ -72,3 +72,4 @@ __exportStar(require("./serviceFacility/types"), exports);
72
72
  exports.tags = __importStar(require("./tags"));
73
73
  __exportStar(require("./tags/types"), exports);
74
74
  exports.eligibility = __importStar(require("./eligibility"));
75
+ __exportStar(require("./serviceFacility/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -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 EncounterServiceFacilityUpdate: core.serialization.Schema<serializers.EncounterServiceFacilityUpdate.Raw, CandidApi.EncounterServiceFacilityUpdate>;
8
+ export declare namespace EncounterServiceFacilityUpdate {
9
+ interface Raw {
10
+ organization_name?: string | null;
11
+ npi?: string | null;
12
+ address?: serializers.StreetAddressLongZip.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.EncounterServiceFacilityUpdate = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.EncounterServiceFacilityUpdate = core.serialization.object({
32
+ organizationName: core.serialization.property("organization_name", core.serialization.string().optional()),
33
+ npi: core.serialization.string().optional(),
34
+ address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).StreetAddressLongZip).optional(),
35
+ });
@@ -0,0 +1 @@
1
+ export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncounterServiceFacilityUpdate = void 0;
4
+ var EncounterServiceFacilityUpdate_1 = require("./EncounterServiceFacilityUpdate");
5
+ Object.defineProperty(exports, "EncounterServiceFacilityUpdate", { enumerable: true, get: function () { return EncounterServiceFacilityUpdate_1.EncounterServiceFacilityUpdate; } });
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.14.3",
3
+ "version": "0.15.0",
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);
@@ -43,3 +43,4 @@ export * from "./serviceFacility/types";
43
43
  export * as tags from "./tags";
44
44
  export * from "./tags/types";
45
45
  export * as eligibility from "./eligibility";
46
+ export * from "./serviceFacility/client/requests";
@@ -72,3 +72,4 @@ __exportStar(require("./serviceFacility/types"), exports);
72
72
  exports.tags = __importStar(require("./tags"));
73
73
  __exportStar(require("./tags/types"), exports);
74
74
  exports.eligibility = __importStar(require("./eligibility"));
75
+ __exportStar(require("./serviceFacility/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -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 EncounterServiceFacilityUpdate: core.serialization.Schema<serializers.EncounterServiceFacilityUpdate.Raw, CandidApi.EncounterServiceFacilityUpdate>;
8
+ export declare namespace EncounterServiceFacilityUpdate {
9
+ interface Raw {
10
+ organization_name?: string | null;
11
+ npi?: string | null;
12
+ address?: serializers.StreetAddressLongZip.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.EncounterServiceFacilityUpdate = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ exports.EncounterServiceFacilityUpdate = core.serialization.object({
32
+ organizationName: core.serialization.property("organization_name", core.serialization.string().optional()),
33
+ npi: core.serialization.string().optional(),
34
+ address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).StreetAddressLongZip).optional(),
35
+ });
@@ -0,0 +1 @@
1
+ export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EncounterServiceFacilityUpdate = void 0;
4
+ var EncounterServiceFacilityUpdate_1 = require("./EncounterServiceFacilityUpdate");
5
+ Object.defineProperty(exports, "EncounterServiceFacilityUpdate", { enumerable: true, get: function () { return EncounterServiceFacilityUpdate_1.EncounterServiceFacilityUpdate; } });
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);