candidhealth 0.37.0 → 0.38.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 (140) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.js +6 -21
  4. package/api/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -7
  5. package/api/resources/chargeCapture/resources/v1/client/delete.js +0 -11
  6. package/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +1 -7
  7. package/api/resources/chargeCapture/resources/v1/client/getAll.js +0 -11
  8. package/api/resources/commons/types/index.d.ts +0 -1
  9. package/api/resources/commons/types/index.js +0 -1
  10. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  11. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  12. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  13. package/api/resources/diagnoses/client/Client.js +3 -3
  14. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  15. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  16. package/api/resources/encounters/resources/v4/client/Client.d.ts +4 -2
  17. package/api/resources/encounters/resources/v4/client/Client.js +9 -7
  18. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -1
  19. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -1
  20. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  21. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  22. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  23. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  24. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  25. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  26. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  27. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  28. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  31. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  34. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  35. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  36. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  37. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  39. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  40. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  41. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  42. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  43. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  44. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  45. package/api/resources/serviceFacility/client/Client.js +1 -1
  46. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +6 -0
  47. package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +6 -0
  48. package/api/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +6 -0
  49. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  50. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  51. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  52. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  53. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  54. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -21
  55. package/dist/api/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -7
  56. package/dist/api/resources/chargeCapture/resources/v1/client/delete.js +0 -11
  57. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +1 -7
  58. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.js +0 -11
  59. package/dist/api/resources/commons/types/index.d.ts +0 -1
  60. package/dist/api/resources/commons/types/index.js +0 -1
  61. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  62. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  63. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  64. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  65. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  66. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  67. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +4 -2
  68. package/dist/api/resources/encounters/resources/v4/client/Client.js +9 -7
  69. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -1
  70. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +2 -1
  71. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  72. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  73. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  74. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  75. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  76. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  77. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  78. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  79. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  80. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  81. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  82. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  83. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  84. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  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 +5 -5
  88. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  89. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  90. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  91. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  92. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  93. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  94. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  95. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  96. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  97. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +6 -0
  98. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +6 -0
  99. package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +6 -0
  100. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  101. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  102. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  103. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -6
  104. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -6
  105. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  106. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  107. package/dist/serialization/resources/commons/types/index.d.ts +0 -1
  108. package/dist/serialization/resources/commons/types/index.js +0 -1
  109. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  110. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  111. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  112. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
  113. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +1 -0
  114. package/dist/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.js +1 -0
  115. package/package.json +1 -1
  116. package/reference.md +2 -0
  117. package/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +1 -6
  118. package/serialization/resources/chargeCapture/resources/v1/client/delete.js +0 -6
  119. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +0 -1
  120. package/serialization/resources/chargeCapture/resources/v1/client/index.js +1 -2
  121. package/serialization/resources/commons/types/index.d.ts +0 -1
  122. package/serialization/resources/commons/types/index.js +0 -1
  123. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.d.ts +1 -0
  124. package/serialization/resources/serviceFacility/types/EncounterServiceFacility.js +1 -0
  125. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +1 -0
  126. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityBase.js +1 -0
  127. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.d.ts +1 -0
  128. package/serialization/resources/serviceFacility/types/EncounterServiceFacilityUpdate.js +1 -0
  129. package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -6
  130. package/api/resources/commons/types/NotImplementedErrorMessage.js +0 -5
  131. package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -6
  132. package/dist/api/resources/commons/types/NotImplementedErrorMessage.js +0 -5
  133. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +0 -15
  134. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.js +0 -61
  135. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  136. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.js +0 -33
  137. package/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +0 -15
  138. package/serialization/resources/chargeCapture/resources/v1/client/getAll.js +0 -61
  139. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +0 -12
  140. package/serialization/resources/commons/types/NotImplementedErrorMessage.js +0 -33
@@ -6,10 +6,9 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
8
8
  import { UnauthorizedErrorMessage } from "../../../../commons/types/UnauthorizedErrorMessage";
9
- import { NotImplementedErrorMessage } from "../../../../commons/types/NotImplementedErrorMessage";
10
9
  export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.delete.Error.Raw, CandidApi.chargeCapture.v1.delete.Error>;
11
10
  export declare namespace Error {
12
- type Raw = Error.EntityNotFoundError | Error.UnauthorizedError | Error.NotImplementedError;
11
+ type Raw = Error.EntityNotFoundError | Error.UnauthorizedError;
13
12
  interface EntityNotFoundError {
14
13
  errorName: "EntityNotFoundError";
15
14
  content: EntityNotFoundErrorMessage.Raw;
@@ -18,8 +17,4 @@ export declare namespace Error {
18
17
  errorName: "UnauthorizedError";
19
18
  content: UnauthorizedErrorMessage.Raw;
20
19
  }
21
- interface NotImplementedError {
22
- errorName: "NotImplementedError";
23
- content: NotImplementedErrorMessage.Raw;
24
- }
25
20
  }
@@ -42,7 +42,6 @@ const CandidApi = __importStar(require("../../../../../../api/index"));
42
42
  const core = __importStar(require("../../../../../../core"));
43
43
  const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
44
  const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
45
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
46
45
  exports.Error = core.serialization
47
46
  .union("errorName", {
48
47
  EntityNotFoundError: core.serialization.object({
@@ -51,9 +50,6 @@ exports.Error = core.serialization
51
50
  UnauthorizedError: core.serialization.object({
52
51
  content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
53
52
  }),
54
- NotImplementedError: core.serialization.object({
55
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
56
- }),
57
53
  })
58
54
  .transform({
59
55
  transform: (value) => {
@@ -62,8 +58,6 @@ exports.Error = core.serialization
62
58
  return CandidApi.chargeCapture.v1.delete.Error.entityNotFoundError(value.content);
63
59
  case "UnauthorizedError":
64
60
  return CandidApi.chargeCapture.v1.delete.Error.unauthorizedError(value.content);
65
- case "NotImplementedError":
66
- return CandidApi.chargeCapture.v1.delete.Error.notImplementedError(value.content);
67
61
  }
68
62
  },
69
63
  untransform: (_a) => {
@@ -1,5 +1,4 @@
1
1
  export * as create from "./create";
2
2
  export * as delete from "./delete";
3
3
  export * as update from "./update";
4
- export * as getAll from "./getAll";
5
4
  export * from "./requests";
@@ -26,9 +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.getAll = exports.update = exports.delete = exports.create = void 0;
29
+ exports.update = exports.delete = exports.create = void 0;
30
30
  exports.create = __importStar(require("./create"));
31
31
  exports.delete = __importStar(require("./delete"));
32
32
  exports.update = __importStar(require("./update"));
33
- exports.getAll = __importStar(require("./getAll"));
34
33
  __exportStar(require("./requests"), exports);
@@ -56,7 +56,6 @@ export * from "./HttpServiceUnavailableErrorMessage";
56
56
  export * from "./RequestValidationError";
57
57
  export * from "./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage";
58
58
  export * from "./OrganizationNotAuthorizedErrorMessage";
59
- export * from "./NotImplementedErrorMessage";
60
59
  export * from "./PhoneNumber";
61
60
  export * from "./PhoneNumberType";
62
61
  export * from "./Email";
@@ -72,7 +72,6 @@ __exportStar(require("./HttpServiceUnavailableErrorMessage"), exports);
72
72
  __exportStar(require("./RequestValidationError"), exports);
73
73
  __exportStar(require("./UpdatesDisabledDueToExternalSystemIntegrationErrorMessage"), exports);
74
74
  __exportStar(require("./OrganizationNotAuthorizedErrorMessage"), exports);
75
- __exportStar(require("./NotImplementedErrorMessage"), exports);
76
75
  __exportStar(require("./PhoneNumber"), exports);
77
76
  __exportStar(require("./PhoneNumberType"), exports);
78
77
  __exportStar(require("./Email"), exports);
@@ -13,5 +13,6 @@ export declare namespace EncounterServiceFacility {
13
13
  organization_name: string;
14
14
  npi?: string | null;
15
15
  address: StreetAddressLongZip.Raw;
16
+ secondary_identification?: string | null;
16
17
  }
17
18
  }
@@ -35,4 +35,5 @@ exports.EncounterServiceFacility = core.serialization.object({
35
35
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
36
36
  npi: core.serialization.string().optional(),
37
37
  address: StreetAddressLongZip_1.StreetAddressLongZip,
38
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
38
39
  });
@@ -11,5 +11,6 @@ export declare namespace EncounterServiceFacilityBase {
11
11
  organization_name: string;
12
12
  npi?: string | null;
13
13
  address: StreetAddressLongZip.Raw;
14
+ secondary_identification?: string | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ exports.EncounterServiceFacilityBase = core.serialization.object({
33
33
  organizationName: core.serialization.property("organization_name", core.serialization.string()),
34
34
  npi: core.serialization.string().optional(),
35
35
  address: StreetAddressLongZip_1.StreetAddressLongZip,
36
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
36
37
  });
@@ -11,5 +11,6 @@ export declare namespace EncounterServiceFacilityUpdate {
11
11
  organization_name?: string | null;
12
12
  npi?: string | null;
13
13
  address?: StreetAddressLongZip.Raw | null;
14
+ secondary_identification?: string | null;
14
15
  }
15
16
  }
@@ -33,4 +33,5 @@ exports.EncounterServiceFacilityUpdate = core.serialization.object({
33
33
  organizationName: core.serialization.property("organization_name", core.serialization.string().optional()),
34
34
  npi: core.serialization.string().optional(),
35
35
  address: StreetAddressLongZip_1.StreetAddressLongZip.optional(),
36
+ secondaryIdentification: core.serialization.property("secondary_identification", core.serialization.string().optional()),
36
37
  });
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface NotImplementedErrorMessage {
5
- message?: string;
6
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface NotImplementedErrorMessage {
5
- message?: string;
6
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as CandidApi from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- import { NotImplementedErrorMessage } from "../../../../commons/types/NotImplementedErrorMessage";
8
- export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.getAll.Error.Raw, CandidApi.chargeCapture.v1.getAll.Error>;
9
- export declare namespace Error {
10
- type Raw = Error.NotImplementedError;
11
- interface NotImplementedError {
12
- errorName: "NotImplementedError";
13
- content: NotImplementedErrorMessage.Raw;
14
- }
15
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __rest = (this && this.__rest) || function (s, e) {
29
- var t = {};
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
- t[p] = s[p];
32
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
- t[p[i]] = s[p[i]];
36
- }
37
- return t;
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.Error = void 0;
41
- const CandidApi = __importStar(require("../../../../../../api/index"));
42
- const core = __importStar(require("../../../../../../core"));
43
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
44
- exports.Error = core.serialization
45
- .union("errorName", {
46
- NotImplementedError: core.serialization.object({
47
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
48
- }),
49
- })
50
- .transform({
51
- transform: (value) => {
52
- switch (value.errorName) {
53
- case "NotImplementedError":
54
- return CandidApi.chargeCapture.v1.getAll.Error.notImplementedError(value.content);
55
- }
56
- },
57
- untransform: (_a) => {
58
- var { _visit } = _a, value = __rest(_a, ["_visit"]);
59
- return value;
60
- },
61
- });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as CandidApi from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- export declare const NotImplementedErrorMessage: core.serialization.ObjectSchema<serializers.NotImplementedErrorMessage.Raw, CandidApi.NotImplementedErrorMessage>;
8
- export declare namespace NotImplementedErrorMessage {
9
- interface Raw {
10
- message?: string | null;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.NotImplementedErrorMessage = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.NotImplementedErrorMessage = core.serialization.object({
32
- message: core.serialization.string().optional(),
33
- });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../index";
5
- import * as CandidApi from "../../../../../../api/index";
6
- import * as core from "../../../../../../core";
7
- import { NotImplementedErrorMessage } from "../../../../commons/types/NotImplementedErrorMessage";
8
- export declare const Error: core.serialization.Schema<serializers.chargeCapture.v1.getAll.Error.Raw, CandidApi.chargeCapture.v1.getAll.Error>;
9
- export declare namespace Error {
10
- type Raw = Error.NotImplementedError;
11
- interface NotImplementedError {
12
- errorName: "NotImplementedError";
13
- content: NotImplementedErrorMessage.Raw;
14
- }
15
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __rest = (this && this.__rest) || function (s, e) {
29
- var t = {};
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
- t[p] = s[p];
32
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
- t[p[i]] = s[p[i]];
36
- }
37
- return t;
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.Error = void 0;
41
- const CandidApi = __importStar(require("../../../../../../api/index"));
42
- const core = __importStar(require("../../../../../../core"));
43
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
44
- exports.Error = core.serialization
45
- .union("errorName", {
46
- NotImplementedError: core.serialization.object({
47
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
48
- }),
49
- })
50
- .transform({
51
- transform: (value) => {
52
- switch (value.errorName) {
53
- case "NotImplementedError":
54
- return CandidApi.chargeCapture.v1.getAll.Error.notImplementedError(value.content);
55
- }
56
- },
57
- untransform: (_a) => {
58
- var { _visit } = _a, value = __rest(_a, ["_visit"]);
59
- return value;
60
- },
61
- });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as CandidApi from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- export declare const NotImplementedErrorMessage: core.serialization.ObjectSchema<serializers.NotImplementedErrorMessage.Raw, CandidApi.NotImplementedErrorMessage>;
8
- export declare namespace NotImplementedErrorMessage {
9
- interface Raw {
10
- message?: string | null;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.NotImplementedErrorMessage = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.NotImplementedErrorMessage = core.serialization.object({
32
- message: core.serialization.string().optional(),
33
- });