candidhealth 0.3.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/client/Client.js +1 -1
  3. package/api/resources/encounters/resources/v4/client/Client.js +8 -8
  4. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  5. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  6. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +2 -2
  7. package/api/resources/index.d.ts +0 -1
  8. package/api/resources/index.js +1 -2
  9. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
  10. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  11. package/api/resources/payers/client/Client.js +2 -2
  12. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  13. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  14. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  15. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  16. package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -8
  17. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  18. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  19. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +2 -2
  20. package/dist/api/resources/index.d.ts +0 -1
  21. package/dist/api/resources/index.js +1 -2
  22. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +13 -1
  23. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  24. package/dist/api/resources/payers/client/Client.js +2 -2
  25. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  26. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  27. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +2 -2
  28. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +4 -2
  29. package/dist/serialization/resources/index.d.ts +0 -1
  30. package/dist/serialization/resources/index.js +1 -2
  31. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  32. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  33. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  34. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  35. package/examples/acmeHealth.ts +4 -2
  36. package/package.json +1 -1
  37. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +2 -2
  38. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +4 -2
  39. package/serialization/resources/index.d.ts +0 -1
  40. package/serialization/resources/index.js +1 -2
  41. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  42. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +12 -0
  43. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  44. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  45. package/api/resources/users/index.d.ts +0 -1
  46. package/api/resources/users/index.js +0 -17
  47. package/api/resources/users/resources/index.d.ts +0 -1
  48. package/api/resources/users/resources/index.js +0 -27
  49. package/api/resources/users/resources/v2/index.d.ts +0 -1
  50. package/api/resources/users/resources/v2/index.js +0 -17
  51. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
  52. package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -5
  53. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
  54. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -5
  55. package/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
  56. package/api/resources/users/resources/v2/types/HumanUserMetadata.js +0 -5
  57. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
  58. package/api/resources/users/resources/v2/types/IdpUserMetadata.js +0 -5
  59. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
  60. package/api/resources/users/resources/v2/types/MachineUserMetadata.js +0 -5
  61. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
  62. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
  63. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
  64. package/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
  65. package/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
  66. package/api/resources/users/resources/v2/types/UserV2.js +0 -5
  67. package/api/resources/users/resources/v2/types/index.d.ts +0 -8
  68. package/api/resources/users/resources/v2/types/index.js +0 -24
  69. package/dist/api/resources/users/index.d.ts +0 -1
  70. package/dist/api/resources/users/index.js +0 -17
  71. package/dist/api/resources/users/resources/index.d.ts +0 -1
  72. package/dist/api/resources/users/resources/index.js +0 -27
  73. package/dist/api/resources/users/resources/v2/index.d.ts +0 -1
  74. package/dist/api/resources/users/resources/v2/index.js +0 -17
  75. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -6
  76. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -5
  77. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -6
  78. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -5
  79. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -7
  80. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +0 -5
  81. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -16
  82. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +0 -5
  83. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -6
  84. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +0 -5
  85. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -6
  86. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -5
  87. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +0 -13
  88. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +0 -5
  89. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +0 -11
  90. package/dist/api/resources/users/resources/v2/types/UserV2.js +0 -5
  91. package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -8
  92. package/dist/api/resources/users/resources/v2/types/index.js +0 -24
  93. package/dist/serialization/resources/users/index.d.ts +0 -1
  94. package/dist/serialization/resources/users/index.js +0 -17
  95. package/dist/serialization/resources/users/resources/index.d.ts +0 -1
  96. package/dist/serialization/resources/users/resources/index.js +0 -27
  97. package/dist/serialization/resources/users/resources/v2/index.d.ts +0 -1
  98. package/dist/serialization/resources/users/resources/v2/index.js +0 -17
  99. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
  100. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -33
  101. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
  102. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -33
  103. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
  104. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +0 -34
  105. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
  106. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
  107. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
  108. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +0 -33
  109. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
  110. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
  111. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
  112. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +0 -39
  113. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
  114. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
  115. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -8
  116. package/dist/serialization/resources/users/resources/v2/types/index.js +0 -24
  117. package/serialization/resources/users/index.d.ts +0 -1
  118. package/serialization/resources/users/index.js +0 -17
  119. package/serialization/resources/users/resources/index.d.ts +0 -1
  120. package/serialization/resources/users/resources/index.js +0 -27
  121. package/serialization/resources/users/resources/v2/index.d.ts +0 -1
  122. package/serialization/resources/users/resources/v2/index.js +0 -17
  123. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +0 -12
  124. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +0 -33
  125. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +0 -12
  126. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +0 -33
  127. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +0 -13
  128. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.js +0 -34
  129. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +0 -19
  130. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +0 -40
  131. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +0 -12
  132. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +0 -33
  133. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +0 -12
  134. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +0 -33
  135. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +0 -16
  136. package/serialization/resources/users/resources/v2/types/UserMetadata.js +0 -39
  137. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +0 -16
  138. package/serialization/resources/users/resources/v2/types/UserV2.js +0 -37
  139. package/serialization/resources/users/resources/v2/types/index.d.ts +0 -8
  140. package/serialization/resources/users/resources/v2/types/index.js +0 -24
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class BillingNotes {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -100,7 +100,7 @@ class V4 {
100
100
  Authorization: await this._getAuthorizationHeader(),
101
101
  "X-Fern-Language": "JavaScript",
102
102
  "X-Fern-SDK-Name": "candidhealth",
103
- "X-Fern-SDK-Version": "0.3.1",
103
+ "X-Fern-SDK-Version": "0.4.1",
104
104
  },
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
@@ -130,7 +130,7 @@ class V4 {
130
130
  Authorization: await this._getAuthorizationHeader(),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "candidhealth",
133
- "X-Fern-SDK-Version": "0.3.1",
133
+ "X-Fern-SDK-Version": "0.4.1",
134
134
  },
135
135
  contentType: "application/json",
136
136
  timeoutMs: 60000,
@@ -159,7 +159,7 @@ class V4 {
159
159
  Authorization: await this._getAuthorizationHeader(),
160
160
  "X-Fern-Language": "JavaScript",
161
161
  "X-Fern-SDK-Name": "candidhealth",
162
- "X-Fern-SDK-Version": "0.3.1",
162
+ "X-Fern-SDK-Version": "0.4.1",
163
163
  },
164
164
  contentType: "application/json",
165
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -206,7 +206,7 @@ class V4 {
206
206
  Authorization: await this._getAuthorizationHeader(),
207
207
  "X-Fern-Language": "JavaScript",
208
208
  "X-Fern-SDK-Name": "candidhealth",
209
- "X-Fern-SDK-Version": "0.3.1",
209
+ "X-Fern-SDK-Version": "0.4.1",
210
210
  },
211
211
  contentType: "application/json",
212
212
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -252,7 +252,7 @@ class V4 {
252
252
  Authorization: await this._getAuthorizationHeader(),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "candidhealth",
255
- "X-Fern-SDK-Version": "0.3.1",
255
+ "X-Fern-SDK-Version": "0.4.1",
256
256
  },
257
257
  contentType: "application/json",
258
258
  timeoutMs: 60000,
@@ -281,7 +281,7 @@ class V4 {
281
281
  Authorization: await this._getAuthorizationHeader(),
282
282
  "X-Fern-Language": "JavaScript",
283
283
  "X-Fern-SDK-Name": "candidhealth",
284
- "X-Fern-SDK-Version": "0.3.1",
284
+ "X-Fern-SDK-Version": "0.4.1",
285
285
  },
286
286
  contentType: "application/json",
287
287
  timeoutMs: 60000,
@@ -313,7 +313,7 @@ class V4 {
313
313
  Authorization: await this._getAuthorizationHeader(),
314
314
  "X-Fern-Language": "JavaScript",
315
315
  "X-Fern-SDK-Name": "candidhealth",
316
- "X-Fern-SDK-Version": "0.3.1",
316
+ "X-Fern-SDK-Version": "0.4.1",
317
317
  },
318
318
  contentType: "application/json",
319
319
  timeoutMs: 60000,
@@ -342,7 +342,7 @@ class V4 {
342
342
  Authorization: await this._getAuthorizationHeader(),
343
343
  "X-Fern-Language": "JavaScript",
344
344
  "X-Fern-SDK-Name": "candidhealth",
345
- "X-Fern-SDK-Version": "0.3.1",
345
+ "X-Fern-SDK-Version": "0.4.1",
346
346
  },
347
347
  contentType: "application/json",
348
348
  timeoutMs: 60000,
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V1 {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -94,7 +94,7 @@ class V1 {
94
94
  Authorization: await this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "candidhealth",
97
- "X-Fern-SDK-Version": "0.3.1",
97
+ "X-Fern-SDK-Version": "0.4.1",
98
98
  },
99
99
  contentType: "application/json",
100
100
  timeoutMs: 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  Authorization: await this._getAuthorizationHeader(),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.3.1",
126
+ "X-Fern-SDK-Version": "0.4.1",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -6,6 +6,6 @@ export interface GuarantorBase {
6
6
  firstName: string;
7
7
  lastName: string;
8
8
  externalId: string;
9
- dateOfBirth: string;
10
- address: CandidApi.StreetAddressShortZip;
9
+ dateOfBirth?: string;
10
+ address?: CandidApi.StreetAddressShortZip;
11
11
  }
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
5
5
  export * as organizationProviders from "./organizationProviders";
6
6
  export * as patientPayments from "./patientPayments";
7
7
  export * as tasks from "./tasks";
8
- export * as users from "./users";
9
8
  export * as workQueues from "./workQueues";
10
9
  export * as billingNotes from "./billingNotes";
11
10
  export * from "./billingNotes/types";
@@ -26,7 +26,7 @@ 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.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.users = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
36
  exports.tasks = __importStar(require("./tasks"));
37
- exports.users = __importStar(require("./users"));
38
37
  exports.workQueues = __importStar(require("./workQueues"));
39
38
  exports.billingNotes = __importStar(require("./billingNotes"));
40
39
  __exportStar(require("./billingNotes/types"), exports);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN";
4
+ export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC";
5
5
  export declare const LicenseType: {
6
6
  readonly Md: "MD";
7
7
  readonly Np: "NP";
@@ -24,4 +24,16 @@ export declare const LicenseType: {
24
24
  readonly OtherMasters: "OTHER_MASTERS";
25
25
  readonly Bcba: "BCBA";
26
26
  readonly Unknown: "UNKNOWN";
27
+ readonly Rph: "RPH";
28
+ readonly Pht: "PHT";
29
+ readonly Lac: "LAC";
30
+ readonly Lmt: "LMT";
31
+ readonly Dc: "DC";
32
+ readonly Nd: "ND";
33
+ readonly Ma: "MA";
34
+ readonly Pt: "PT";
35
+ readonly Ibclc: "IBCLC";
36
+ readonly Rn: "RN";
37
+ readonly Dpt: "DPT";
38
+ readonly Lcmhc: "LCMHC";
27
39
  };
@@ -26,4 +26,16 @@ exports.LicenseType = {
26
26
  OtherMasters: "OTHER_MASTERS",
27
27
  Bcba: "BCBA",
28
28
  Unknown: "UNKNOWN",
29
+ Rph: "RPH",
30
+ Pht: "PHT",
31
+ Lac: "LAC",
32
+ Lmt: "LMT",
33
+ Dc: "DC",
34
+ Nd: "ND",
35
+ Ma: "MA",
36
+ Pt: "PT",
37
+ Ibclc: "IBCLC",
38
+ Rn: "RN",
39
+ Dpt: "DPT",
40
+ Lcmhc: "LCMHC",
29
41
  };
@@ -49,7 +49,7 @@ class Payers {
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.3.1",
52
+ "X-Fern-SDK-Version": "0.4.1",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class Payers {
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.3.1",
92
+ "X-Fern-SDK-Version": "0.4.1",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -48,7 +48,7 @@ class V3 {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -8,5 +8,5 @@ export interface WorkQueue {
8
8
  description?: string;
9
9
  category: CandidApi.workQueues.v1.WorkQueueCategory;
10
10
  createdAt: Date;
11
- createdBy: CandidApi.users.v2.UserV2;
11
+ createdBy: CandidApi.UserId;
12
12
  }
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class BillingNotes {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -100,7 +100,7 @@ class V4 {
100
100
  Authorization: await this._getAuthorizationHeader(),
101
101
  "X-Fern-Language": "JavaScript",
102
102
  "X-Fern-SDK-Name": "candidhealth",
103
- "X-Fern-SDK-Version": "0.3.1",
103
+ "X-Fern-SDK-Version": "0.4.1",
104
104
  },
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
@@ -130,7 +130,7 @@ class V4 {
130
130
  Authorization: await this._getAuthorizationHeader(),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "candidhealth",
133
- "X-Fern-SDK-Version": "0.3.1",
133
+ "X-Fern-SDK-Version": "0.4.1",
134
134
  },
135
135
  contentType: "application/json",
136
136
  timeoutMs: 60000,
@@ -159,7 +159,7 @@ class V4 {
159
159
  Authorization: await this._getAuthorizationHeader(),
160
160
  "X-Fern-Language": "JavaScript",
161
161
  "X-Fern-SDK-Name": "candidhealth",
162
- "X-Fern-SDK-Version": "0.3.1",
162
+ "X-Fern-SDK-Version": "0.4.1",
163
163
  },
164
164
  contentType: "application/json",
165
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -206,7 +206,7 @@ class V4 {
206
206
  Authorization: await this._getAuthorizationHeader(),
207
207
  "X-Fern-Language": "JavaScript",
208
208
  "X-Fern-SDK-Name": "candidhealth",
209
- "X-Fern-SDK-Version": "0.3.1",
209
+ "X-Fern-SDK-Version": "0.4.1",
210
210
  },
211
211
  contentType: "application/json",
212
212
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -252,7 +252,7 @@ class V4 {
252
252
  Authorization: await this._getAuthorizationHeader(),
253
253
  "X-Fern-Language": "JavaScript",
254
254
  "X-Fern-SDK-Name": "candidhealth",
255
- "X-Fern-SDK-Version": "0.3.1",
255
+ "X-Fern-SDK-Version": "0.4.1",
256
256
  },
257
257
  contentType: "application/json",
258
258
  timeoutMs: 60000,
@@ -281,7 +281,7 @@ class V4 {
281
281
  Authorization: await this._getAuthorizationHeader(),
282
282
  "X-Fern-Language": "JavaScript",
283
283
  "X-Fern-SDK-Name": "candidhealth",
284
- "X-Fern-SDK-Version": "0.3.1",
284
+ "X-Fern-SDK-Version": "0.4.1",
285
285
  },
286
286
  contentType: "application/json",
287
287
  timeoutMs: 60000,
@@ -313,7 +313,7 @@ class V4 {
313
313
  Authorization: await this._getAuthorizationHeader(),
314
314
  "X-Fern-Language": "JavaScript",
315
315
  "X-Fern-SDK-Name": "candidhealth",
316
- "X-Fern-SDK-Version": "0.3.1",
316
+ "X-Fern-SDK-Version": "0.4.1",
317
317
  },
318
318
  contentType: "application/json",
319
319
  timeoutMs: 60000,
@@ -342,7 +342,7 @@ class V4 {
342
342
  Authorization: await this._getAuthorizationHeader(),
343
343
  "X-Fern-Language": "JavaScript",
344
344
  "X-Fern-SDK-Name": "candidhealth",
345
- "X-Fern-SDK-Version": "0.3.1",
345
+ "X-Fern-SDK-Version": "0.4.1",
346
346
  },
347
347
  contentType: "application/json",
348
348
  timeoutMs: 60000,
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V1 {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -94,7 +94,7 @@ class V1 {
94
94
  Authorization: await this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "candidhealth",
97
- "X-Fern-SDK-Version": "0.3.1",
97
+ "X-Fern-SDK-Version": "0.4.1",
98
98
  },
99
99
  contentType: "application/json",
100
100
  timeoutMs: 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  Authorization: await this._getAuthorizationHeader(),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.3.1",
126
+ "X-Fern-SDK-Version": "0.4.1",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -6,6 +6,6 @@ export interface GuarantorBase {
6
6
  firstName: string;
7
7
  lastName: string;
8
8
  externalId: string;
9
- dateOfBirth: string;
10
- address: CandidApi.StreetAddressShortZip;
9
+ dateOfBirth?: string;
10
+ address?: CandidApi.StreetAddressShortZip;
11
11
  }
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
5
5
  export * as organizationProviders from "./organizationProviders";
6
6
  export * as patientPayments from "./patientPayments";
7
7
  export * as tasks from "./tasks";
8
- export * as users from "./users";
9
8
  export * as workQueues from "./workQueues";
10
9
  export * as billingNotes from "./billingNotes";
11
10
  export * from "./billingNotes/types";
@@ -26,7 +26,7 @@ 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.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.users = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
36
  exports.tasks = __importStar(require("./tasks"));
37
- exports.users = __importStar(require("./users"));
38
37
  exports.workQueues = __importStar(require("./workQueues"));
39
38
  exports.billingNotes = __importStar(require("./billingNotes"));
40
39
  __exportStar(require("./billingNotes/types"), exports);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN";
4
+ export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC";
5
5
  export declare const LicenseType: {
6
6
  readonly Md: "MD";
7
7
  readonly Np: "NP";
@@ -24,4 +24,16 @@ export declare const LicenseType: {
24
24
  readonly OtherMasters: "OTHER_MASTERS";
25
25
  readonly Bcba: "BCBA";
26
26
  readonly Unknown: "UNKNOWN";
27
+ readonly Rph: "RPH";
28
+ readonly Pht: "PHT";
29
+ readonly Lac: "LAC";
30
+ readonly Lmt: "LMT";
31
+ readonly Dc: "DC";
32
+ readonly Nd: "ND";
33
+ readonly Ma: "MA";
34
+ readonly Pt: "PT";
35
+ readonly Ibclc: "IBCLC";
36
+ readonly Rn: "RN";
37
+ readonly Dpt: "DPT";
38
+ readonly Lcmhc: "LCMHC";
27
39
  };
@@ -26,4 +26,16 @@ exports.LicenseType = {
26
26
  OtherMasters: "OTHER_MASTERS",
27
27
  Bcba: "BCBA",
28
28
  Unknown: "UNKNOWN",
29
+ Rph: "RPH",
30
+ Pht: "PHT",
31
+ Lac: "LAC",
32
+ Lmt: "LMT",
33
+ Dc: "DC",
34
+ Nd: "ND",
35
+ Ma: "MA",
36
+ Pt: "PT",
37
+ Ibclc: "IBCLC",
38
+ Rn: "RN",
39
+ Dpt: "DPT",
40
+ Lcmhc: "LCMHC",
29
41
  };
@@ -49,7 +49,7 @@ class Payers {
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.3.1",
52
+ "X-Fern-SDK-Version": "0.4.1",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class Payers {
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.3.1",
92
+ "X-Fern-SDK-Version": "0.4.1",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -48,7 +48,7 @@ class V3 {
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.3.1",
51
+ "X-Fern-SDK-Version": "0.4.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -8,5 +8,5 @@ export interface WorkQueue {
8
8
  description?: string;
9
9
  category: CandidApi.workQueues.v1.WorkQueueCategory;
10
10
  createdAt: Date;
11
- createdBy: CandidApi.users.v2.UserV2;
11
+ createdBy: CandidApi.UserId;
12
12
  }
@@ -10,7 +10,7 @@ export declare namespace GuarantorBase {
10
10
  first_name: string;
11
11
  last_name: string;
12
12
  external_id: string;
13
- date_of_birth: string;
14
- address: serializers.StreetAddressShortZip.Raw;
13
+ date_of_birth?: string | null;
14
+ address?: serializers.StreetAddressShortZip.Raw | null;
15
15
  }
16
16
  }
@@ -32,6 +32,8 @@ exports.GuarantorBase = core.serialization.object({
32
32
  firstName: core.serialization.property("first_name", core.serialization.string()),
33
33
  lastName: core.serialization.property("last_name", core.serialization.string()),
34
34
  externalId: core.serialization.property("external_id", core.serialization.string()),
35
- dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string()),
36
- address: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).StreetAddressShortZip),
35
+ dateOfBirth: core.serialization.property("date_of_birth", core.serialization.string().optional()),
36
+ address: core.serialization
37
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).StreetAddressShortZip)
38
+ .optional(),
37
39
  });
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
5
5
  export * as organizationProviders from "./organizationProviders";
6
6
  export * as patientPayments from "./patientPayments";
7
7
  export * as tasks from "./tasks";
8
- export * as users from "./users";
9
8
  export * as workQueues from "./workQueues";
10
9
  export * as billingNotes from "./billingNotes";
11
10
  export * from "./billingNotes/types";
@@ -26,7 +26,7 @@ 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.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.users = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
36
  exports.tasks = __importStar(require("./tasks"));
37
- exports.users = __importStar(require("./users"));
38
37
  exports.workQueues = __importStar(require("./workQueues"));
39
38
  exports.billingNotes = __importStar(require("./billingNotes"));
40
39
  __exportStar(require("./billingNotes/types"), exports);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const LicenseType: core.serialization.Schema<serializers.organizationProviders.v2.LicenseType.Raw, CandidApi.organizationProviders.v2.LicenseType>;
8
8
  export declare namespace LicenseType {
9
- type Raw = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN";
9
+ type Raw = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC";
10
10
  }
@@ -50,4 +50,16 @@ exports.LicenseType = core.serialization.enum_([
50
50
  "OTHER_MASTERS",
51
51
  "BCBA",
52
52
  "UNKNOWN",
53
+ "RPH",
54
+ "PHT",
55
+ "LAC",
56
+ "LMT",
57
+ "DC",
58
+ "ND",
59
+ "MA",
60
+ "PT",
61
+ "IBCLC",
62
+ "RN",
63
+ "DPT",
64
+ "LCMHC",
53
65
  ]);
@@ -12,6 +12,6 @@ export declare namespace WorkQueue {
12
12
  description?: string | null;
13
13
  category: serializers.workQueues.v1.WorkQueueCategory.Raw;
14
14
  created_at: string;
15
- created_by: serializers.users.v2.UserV2.Raw;
15
+ created_by: serializers.UserId.Raw;
16
16
  }
17
17
  }
@@ -34,5 +34,5 @@ exports.WorkQueue = core.serialization.object({
34
34
  description: core.serialization.string().optional(),
35
35
  category: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).workQueues.v1.WorkQueueCategory),
36
36
  createdAt: core.serialization.property("created_at", core.serialization.date()),
37
- createdBy: core.serialization.property("created_by", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserV2)),
37
+ createdBy: core.serialization.property("created_by", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UserId)),
38
38
  });
@@ -15,8 +15,10 @@ const client = new CandidApiClient({
15
15
  const createEncounter = async () => {
16
16
  // Create a new encounter for patient Loki Laufeyson
17
17
  const createEncounterResponse = await client.encounters.v4.create({
18
- externalId: CandidApi.EncounterExternalId("emr-claim-id-abc"),
18
+ externalId: CandidApi.EncounterExternalId("emr-claim-id-abcd"),
19
19
  dateOfService: CandidApi.Date_("2023-05-23"),
20
+ billableStatus: "BILLABLE", // or "NOT_BILLABLE
21
+ responsibleParty: "INSURANCE_PAY", // or "SELF_PAY"
20
22
  patient: {
21
23
  externalId: "emr-patient-id-123",
22
24
  firstName: "Loki",
@@ -60,7 +62,7 @@ const createEncounter = async () => {
60
62
  {
61
63
  procedureCode: "99212",
62
64
  modifiers: [],
63
- quantity: "1",
65
+ quantity: CandidApi.Decimal("1.0"),
64
66
  units: "UN",
65
67
  chargeAmountCents: 1500,
66
68
  diagnosisPointers: [0, 1],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",