candidhealth 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) 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/eligibility/resources/v2/client/Client.js +2 -2
  5. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  6. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  7. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  8. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  9. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  10. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  11. package/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  12. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  13. package/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  14. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  15. package/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  16. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  17. package/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  18. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  19. package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  20. package/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  21. package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  22. package/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  23. package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  24. package/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  25. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  26. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  27. package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  28. package/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  29. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  30. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  31. package/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  32. package/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  33. package/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  34. package/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  35. package/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  36. package/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  37. package/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  38. package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  39. package/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  40. package/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  41. package/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  42. package/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  43. package/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  44. package/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  45. package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  46. package/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  47. package/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  48. package/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  49. package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  50. package/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  51. package/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  52. package/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  53. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  54. package/api/resources/serviceFacility/client/Client.js +1 -1
  55. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  56. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  57. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  58. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  59. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  60. package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
  61. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  62. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  63. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  64. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  65. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  66. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  67. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  68. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  69. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  70. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  71. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  72. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  73. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  74. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  75. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  76. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  77. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  78. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  79. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  80. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  81. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  82. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  83. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  84. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  85. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  86. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  87. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  88. package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  89. package/dist/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  90. package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  91. package/dist/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  92. package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  93. package/dist/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  94. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  95. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  96. package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  97. package/dist/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  98. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  99. package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  100. package/dist/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  101. package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  102. package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  103. package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  104. package/dist/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  105. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  106. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  107. package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  108. package/dist/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  109. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  110. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  111. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  112. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  113. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  114. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  115. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  116. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  117. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  118. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  119. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  120. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  121. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  122. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  123. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  124. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  125. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  126. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  127. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  128. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  129. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  130. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  131. package/dist/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  132. package/dist/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  133. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  134. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  135. package/dist/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  136. package/dist/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  137. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  138. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  139. package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  140. package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  141. package/dist/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  142. package/dist/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  143. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  144. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  145. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  146. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  147. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  148. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  149. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  150. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  151. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  152. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  153. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  154. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
  155. package/package.json +1 -1
  156. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  157. package/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  158. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  159. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  160. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  161. package/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  162. package/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  163. package/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  164. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  165. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  166. package/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  167. package/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  168. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  169. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  170. package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  171. package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  172. package/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  173. package/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  174. package/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  175. package/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  176. package/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  177. package/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  178. package/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  179. package/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  180. package/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  181. package/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  182. package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  183. package/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  184. package/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  185. package/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  186. package/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  187. package/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  188. package/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  189. package/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  190. package/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  191. package/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  192. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  193. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  194. package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  195. package/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  196. package/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  197. package/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
@@ -3,8 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.patientRefunds.v1.update.Error._Unknown;
6
+ export declare type Error = CandidApi.patientRefunds.v1.update.Error.EntityNotFoundError | CandidApi.patientRefunds.v1.update.Error.UnauthorizedError | CandidApi.patientRefunds.v1.update.Error.UnprocessableEntityError | CandidApi.patientRefunds.v1.update.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
8
20
  interface _Unknown extends _Utils {
9
21
  errorName: void;
10
22
  content: core.Fetcher.Error;
@@ -13,10 +25,16 @@ export declare namespace Error {
13
25
  _visit: <_Result>(visitor: CandidApi.patientRefunds.v1.update.Error._Visitor<_Result>) => _Result;
14
26
  }
15
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
16
31
  _other: (value: core.Fetcher.Error) => _Result;
17
32
  }
18
33
  }
19
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.patientRefunds.v1.update.Error.EntityNotFoundError;
36
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.patientRefunds.v1.update.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.patientRefunds.v1.update.Error.UnprocessableEntityError;
20
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientRefunds.v1.update.Error._Unknown;
21
39
  readonly _visit: <_Result>(value: CandidApi.patientRefunds.v1.update.Error, visitor: CandidApi.patientRefunds.v1.update.Error._Visitor<_Result>) => _Result;
22
40
  };
@@ -29,6 +29,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.patientRefunds.v1.update.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.patientRefunds.v1.update.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.patientRefunds.v1.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
32
59
  _unknown: (fetcherError) => {
33
60
  return {
34
61
  errorName: undefined,
@@ -40,6 +67,12 @@ exports.Error = {
40
67
  },
41
68
  _visit: (value, visitor) => {
42
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
72
+ case "UnauthorizedError":
73
+ return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
43
76
  default:
44
77
  return visitor._other(value);
45
78
  }
@@ -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.17.3",
52
+ "X-Fern-SDK-Version": "0.17.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.17.3",
92
+ "X-Fern-SDK-Version": "0.17.4",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -48,7 +48,7 @@ class ServiceFacility {
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.17.3",
51
+ "X-Fern-SDK-Version": "0.17.4",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, {
@@ -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.17.3",
52
+ "X-Fern-SDK-Version": "0.17.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -119,7 +119,7 @@ class V3 {
119
119
  Authorization: await this._getAuthorizationHeader(),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "candidhealth",
122
- "X-Fern-SDK-Version": "0.17.3",
122
+ "X-Fern-SDK-Version": "0.17.4",
123
123
  },
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
@@ -163,7 +163,7 @@ class V3 {
163
163
  Authorization: await this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.17.3",
166
+ "X-Fern-SDK-Version": "0.17.4",
167
167
  },
168
168
  contentType: "application/json",
169
169
  timeoutMs: 60000,
@@ -207,7 +207,7 @@ class V3 {
207
207
  Authorization: await this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.17.3",
210
+ "X-Fern-SDK-Version": "0.17.4",
211
211
  },
212
212
  contentType: "application/json",
213
213
  body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class V3 {
237
237
  Authorization: await this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.17.3",
240
+ "X-Fern-SDK-Version": "0.17.4",
241
241
  },
242
242
  contentType: "application/json",
243
243
  body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -91,7 +91,7 @@ class V1 {
91
91
  Authorization: await this._getAuthorizationHeader(),
92
92
  "X-Fern-Language": "JavaScript",
93
93
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "0.17.3",
94
+ "X-Fern-SDK-Version": "0.17.4",
95
95
  },
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
@@ -124,7 +124,7 @@ class V1 {
124
124
  Authorization: await this._getAuthorizationHeader(),
125
125
  "X-Fern-Language": "JavaScript",
126
126
  "X-Fern-SDK-Name": "candidhealth",
127
- "X-Fern-SDK-Version": "0.17.3",
127
+ "X-Fern-SDK-Version": "0.17.4",
128
128
  },
129
129
  contentType: "application/json",
130
130
  timeoutMs: 60000,
@@ -158,7 +158,7 @@ class V1 {
158
158
  Authorization: await this._getAuthorizationHeader(),
159
159
  "X-Fern-Language": "JavaScript",
160
160
  "X-Fern-SDK-Name": "candidhealth",
161
- "X-Fern-SDK-Version": "0.17.3",
161
+ "X-Fern-SDK-Version": "0.17.4",
162
162
  },
163
163
  contentType: "application/json",
164
164
  body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -193,7 +193,7 @@ class V1 {
193
193
  Authorization: await this._getAuthorizationHeader(),
194
194
  "X-Fern-Language": "JavaScript",
195
195
  "X-Fern-SDK-Name": "candidhealth",
196
- "X-Fern-SDK-Version": "0.17.3",
196
+ "X-Fern-SDK-Version": "0.17.4",
197
197
  },
198
198
  contentType: "application/json",
199
199
  timeoutMs: 60000,
@@ -6,9 +6,17 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.create.Error.Raw, CandidApi.insurancePayments.v1.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.UnauthorizedError;
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
10
+ interface EntityNotFoundError {
11
+ errorName: "EntityNotFoundError";
12
+ content: serializers.EntityNotFoundErrorMessage.Raw;
13
+ }
10
14
  interface UnauthorizedError {
11
15
  errorName: "UnauthorizedError";
12
16
  content: serializers.UnauthorizedErrorMessage.Raw;
13
17
  }
18
+ interface UnprocessableEntityError {
19
+ errorName: "UnprocessableEntityError";
20
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
21
+ }
14
22
  }
@@ -31,15 +31,25 @@ const CandidApi = __importStar(require("../../../../../../api"));
31
31
  const core = __importStar(require("../../../../../../core"));
32
32
  exports.Error = core.serialization
33
33
  .union("errorName", {
34
+ EntityNotFoundError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
36
+ }),
34
37
  UnauthorizedError: core.serialization.object({
35
38
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
36
39
  }),
40
+ UnprocessableEntityError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
42
+ }),
37
43
  })
38
44
  .transform({
39
45
  transform: (value) => {
40
46
  switch (value.errorName) {
47
+ case "EntityNotFoundError":
48
+ return CandidApi.insurancePayments.v1.create.Error.entityNotFoundError(value.content);
41
49
  case "UnauthorizedError":
42
50
  return CandidApi.insurancePayments.v1.create.Error.unauthorizedError(value.content);
51
+ case "UnprocessableEntityError":
52
+ return CandidApi.insurancePayments.v1.create.Error.unprocessableEntityError(value.content);
43
53
  }
44
54
  },
45
55
  untransform: ({ _visit, ...value }) => value,
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.delete.Error.Raw, CandidApi.insurancePayments.v1.delete.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
10
10
  interface EntityNotFoundError {
11
11
  errorName: "EntityNotFoundError";
12
12
  content: serializers.EntityNotFoundErrorMessage.Raw;
@@ -15,4 +15,8 @@ export declare namespace Error {
15
15
  errorName: "UnauthorizedError";
16
16
  content: serializers.UnauthorizedErrorMessage.Raw;
17
17
  }
18
+ interface UnprocessableEntityError {
19
+ errorName: "UnprocessableEntityError";
20
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
21
+ }
18
22
  }
@@ -37,6 +37,9 @@ exports.Error = core.serialization
37
37
  UnauthorizedError: core.serialization.object({
38
38
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
39
39
  }),
40
+ UnprocessableEntityError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
42
+ }),
40
43
  })
41
44
  .transform({
42
45
  transform: (value) => {
@@ -45,6 +48,8 @@ exports.Error = core.serialization
45
48
  return CandidApi.insurancePayments.v1.delete.Error.entityNotFoundError(value.content);
46
49
  case "UnauthorizedError":
47
50
  return CandidApi.insurancePayments.v1.delete.Error.unauthorizedError(value.content);
51
+ case "UnprocessableEntityError":
52
+ return CandidApi.insurancePayments.v1.delete.Error.unprocessableEntityError(value.content);
48
53
  }
49
54
  },
50
55
  untransform: ({ _visit, ...value }) => value,
@@ -6,7 +6,7 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.insurancePayments.v1.update.Error.Raw, CandidApi.insurancePayments.v1.update.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
10
10
  interface EntityNotFoundError {
11
11
  errorName: "EntityNotFoundError";
12
12
  content: serializers.EntityNotFoundErrorMessage.Raw;
@@ -15,4 +15,8 @@ export declare namespace Error {
15
15
  errorName: "UnauthorizedError";
16
16
  content: serializers.UnauthorizedErrorMessage.Raw;
17
17
  }
18
+ interface UnprocessableEntityError {
19
+ errorName: "UnprocessableEntityError";
20
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
21
+ }
18
22
  }
@@ -37,6 +37,9 @@ exports.Error = core.serialization
37
37
  UnauthorizedError: core.serialization.object({
38
38
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
39
39
  }),
40
+ UnprocessableEntityError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
42
+ }),
40
43
  })
41
44
  .transform({
42
45
  transform: (value) => {
@@ -45,6 +48,8 @@ exports.Error = core.serialization
45
48
  return CandidApi.insurancePayments.v1.update.Error.entityNotFoundError(value.content);
46
49
  case "UnauthorizedError":
47
50
  return CandidApi.insurancePayments.v1.update.Error.unauthorizedError(value.content);
51
+ case "UnprocessableEntityError":
52
+ return CandidApi.insurancePayments.v1.update.Error.unprocessableEntityError(value.content);
48
53
  }
49
54
  },
50
55
  untransform: ({ _visit, ...value }) => value,
@@ -0,0 +1,22 @@
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.insuranceRefunds.v1.create.Error.Raw, CandidApi.insuranceRefunds.v1.create.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
10
+ interface EntityNotFoundError {
11
+ errorName: "EntityNotFoundError";
12
+ content: serializers.EntityNotFoundErrorMessage.Raw;
13
+ }
14
+ interface UnauthorizedError {
15
+ errorName: "UnauthorizedError";
16
+ content: serializers.UnauthorizedErrorMessage.Raw;
17
+ }
18
+ interface UnprocessableEntityError {
19
+ errorName: "UnprocessableEntityError";
20
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
21
+ }
22
+ }
@@ -0,0 +1,56 @@
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
+ EntityNotFoundError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
36
+ }),
37
+ UnauthorizedError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
39
+ }),
40
+ UnprocessableEntityError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
42
+ }),
43
+ })
44
+ .transform({
45
+ transform: (value) => {
46
+ switch (value.errorName) {
47
+ case "EntityNotFoundError":
48
+ return CandidApi.insuranceRefunds.v1.create.Error.entityNotFoundError(value.content);
49
+ case "UnauthorizedError":
50
+ return CandidApi.insuranceRefunds.v1.create.Error.unauthorizedError(value.content);
51
+ case "UnprocessableEntityError":
52
+ return CandidApi.insuranceRefunds.v1.create.Error.unprocessableEntityError(value.content);
53
+ }
54
+ },
55
+ untransform: ({ _visit, ...value }) => value,
56
+ });
@@ -0,0 +1,22 @@
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.insuranceRefunds.v1.delete.Error.Raw, CandidApi.insuranceRefunds.v1.delete.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.UnprocessableEntityError;
10
+ interface EntityNotFoundError {
11
+ errorName: "EntityNotFoundError";
12
+ content: serializers.EntityNotFoundErrorMessage.Raw;
13
+ }
14
+ interface UnauthorizedError {
15
+ errorName: "UnauthorizedError";
16
+ content: serializers.UnauthorizedErrorMessage.Raw;
17
+ }
18
+ interface UnprocessableEntityError {
19
+ errorName: "UnprocessableEntityError";
20
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
21
+ }
22
+ }
@@ -0,0 +1,56 @@
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
+ EntityNotFoundError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
36
+ }),
37
+ UnauthorizedError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
39
+ }),
40
+ UnprocessableEntityError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
42
+ }),
43
+ })
44
+ .transform({
45
+ transform: (value) => {
46
+ switch (value.errorName) {
47
+ case "EntityNotFoundError":
48
+ return CandidApi.insuranceRefunds.v1.delete.Error.entityNotFoundError(value.content);
49
+ case "UnauthorizedError":
50
+ return CandidApi.insuranceRefunds.v1.delete.Error.unauthorizedError(value.content);
51
+ case "UnprocessableEntityError":
52
+ return CandidApi.insuranceRefunds.v1.delete.Error.unprocessableEntityError(value.content);
53
+ }
54
+ },
55
+ untransform: ({ _visit, ...value }) => value,
56
+ });
@@ -0,0 +1,18 @@
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.insuranceRefunds.v1.get.Error.Raw, CandidApi.insuranceRefunds.v1.get.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
10
+ interface EntityNotFoundError {
11
+ errorName: "EntityNotFoundError";
12
+ content: serializers.EntityNotFoundErrorMessage.Raw;
13
+ }
14
+ interface UnauthorizedError {
15
+ errorName: "UnauthorizedError";
16
+ content: serializers.UnauthorizedErrorMessage.Raw;
17
+ }
18
+ }
@@ -0,0 +1,51 @@
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
+ EntityNotFoundError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
36
+ }),
37
+ UnauthorizedError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
39
+ }),
40
+ })
41
+ .transform({
42
+ transform: (value) => {
43
+ switch (value.errorName) {
44
+ case "EntityNotFoundError":
45
+ return CandidApi.insuranceRefunds.v1.get.Error.entityNotFoundError(value.content);
46
+ case "UnauthorizedError":
47
+ return CandidApi.insuranceRefunds.v1.get.Error.unauthorizedError(value.content);
48
+ }
49
+ },
50
+ untransform: ({ _visit, ...value }) => value,
51
+ });
@@ -0,0 +1,18 @@
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.insuranceRefunds.v1.getMulti.Error.Raw, CandidApi.insuranceRefunds.v1.getMulti.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.UnauthorizedError | Error.UnprocessableEntityError;
10
+ interface UnauthorizedError {
11
+ errorName: "UnauthorizedError";
12
+ content: serializers.UnauthorizedErrorMessage.Raw;
13
+ }
14
+ interface UnprocessableEntityError {
15
+ errorName: "UnprocessableEntityError";
16
+ content: serializers.UnprocessableEntityErrorMessage.Raw;
17
+ }
18
+ }
@@ -0,0 +1,51 @@
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
+ UnauthorizedError: core.serialization.object({
35
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
36
+ }),
37
+ UnprocessableEntityError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnprocessableEntityErrorMessage),
39
+ }),
40
+ })
41
+ .transform({
42
+ transform: (value) => {
43
+ switch (value.errorName) {
44
+ case "UnauthorizedError":
45
+ return CandidApi.insuranceRefunds.v1.getMulti.Error.unauthorizedError(value.content);
46
+ case "UnprocessableEntityError":
47
+ return CandidApi.insuranceRefunds.v1.getMulti.Error.unprocessableEntityError(value.content);
48
+ }
49
+ },
50
+ untransform: ({ _visit, ...value }) => value,
51
+ });
@@ -1 +1,6 @@
1
+ export * as getMulti from "./getMulti";
2
+ export * as get from "./get";
3
+ export * as create from "./create";
4
+ export * as update from "./update";
5
+ export * as delete from "./delete";
1
6
  export * from "./requests";