candidhealth 0.2.0 → 0.2.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 (173) 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/commons/types/index.d.ts +0 -1
  4. package/api/resources/commons/types/index.js +0 -1
  5. package/api/resources/encounters/resources/v4/client/Client.js +8 -8
  6. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
  7. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  8. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  9. package/api/resources/index.d.ts +1 -2
  10. package/api/resources/index.js +2 -3
  11. package/api/resources/payers/client/Client.d.ts +1 -1
  12. package/api/resources/payers/client/Client.js +4 -4
  13. package/api/resources/payers/types/Payer.d.ts +2 -1
  14. package/api/resources/payers/types/PayerUuid.d.ts +8 -0
  15. package/api/resources/payers/types/PayerUuid.js +10 -0
  16. package/api/resources/payers/types/index.d.ts +1 -0
  17. package/api/resources/payers/types/index.js +1 -0
  18. package/api/resources/users/index.d.ts +1 -1
  19. package/api/resources/users/index.js +1 -1
  20. package/api/resources/users/resources/index.d.ts +1 -0
  21. package/api/resources/users/resources/index.js +27 -0
  22. package/api/resources/users/resources/v2/index.d.ts +1 -0
  23. package/api/resources/users/{types → resources/v2}/index.js +1 -1
  24. package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
  25. package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
  26. package/{dist/api/resources/users/types/User.d.ts → api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
  27. package/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
  28. package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
  29. package/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
  30. package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
  31. package/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
  32. package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
  33. package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
  34. package/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
  35. package/{dist/api/resources/commons/types/Auth0Id.js → api/resources/users/resources/v2/types/UserId.js} +3 -3
  36. package/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
  37. package/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
  38. package/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
  39. package/api/resources/users/resources/v2/types/UserV2.js +5 -0
  40. package/api/resources/users/resources/v2/types/index.d.ts +9 -0
  41. package/api/resources/users/resources/v2/types/index.js +25 -0
  42. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  43. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  44. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  45. package/dist/api/resources/commons/types/index.d.ts +0 -1
  46. package/dist/api/resources/commons/types/index.js +0 -1
  47. package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -8
  48. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
  49. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  50. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  51. package/dist/api/resources/index.d.ts +1 -2
  52. package/dist/api/resources/index.js +2 -3
  53. package/dist/api/resources/payers/client/Client.d.ts +1 -1
  54. package/dist/api/resources/payers/client/Client.js +4 -4
  55. package/dist/api/resources/payers/types/Payer.d.ts +2 -1
  56. package/dist/api/resources/payers/types/PayerUuid.d.ts +8 -0
  57. package/dist/api/resources/payers/types/PayerUuid.js +10 -0
  58. package/dist/api/resources/payers/types/index.d.ts +1 -0
  59. package/dist/api/resources/payers/types/index.js +1 -0
  60. package/dist/api/resources/users/index.d.ts +1 -1
  61. package/dist/api/resources/users/index.js +1 -1
  62. package/dist/api/resources/users/resources/index.d.ts +1 -0
  63. package/dist/api/resources/users/resources/index.js +27 -0
  64. package/dist/api/resources/users/resources/v2/index.d.ts +1 -0
  65. package/dist/api/resources/users/{types → resources/v2}/index.js +1 -1
  66. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
  67. package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
  68. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
  69. package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
  70. package/{api/resources/users/types/User.d.ts → dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
  71. package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
  72. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
  73. package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
  74. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
  75. package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
  76. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
  77. package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
  78. package/dist/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
  79. package/{api/resources/commons/types/Auth0Id.js → dist/api/resources/users/resources/v2/types/UserId.js} +3 -3
  80. package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
  81. package/dist/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
  82. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
  83. package/dist/api/resources/users/resources/v2/types/UserV2.js +5 -0
  84. package/dist/api/resources/users/resources/v2/types/index.d.ts +9 -0
  85. package/dist/api/resources/users/resources/v2/types/index.js +25 -0
  86. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  87. package/dist/serialization/resources/commons/types/index.d.ts +0 -1
  88. package/dist/serialization/resources/commons/types/index.js +0 -1
  89. package/dist/serialization/resources/index.d.ts +1 -2
  90. package/dist/serialization/resources/index.js +2 -3
  91. package/dist/serialization/resources/payers/types/Payer.d.ts +1 -1
  92. package/dist/serialization/resources/payers/types/Payer.js +1 -1
  93. package/dist/serialization/resources/{commons/types/Auth0Id.d.ts → payers/types/PayerUuid.d.ts} +2 -2
  94. package/{serialization/resources/commons/types/Auth0Id.js → dist/serialization/resources/payers/types/PayerUuid.js} +3 -3
  95. package/dist/serialization/resources/payers/types/index.d.ts +1 -0
  96. package/dist/serialization/resources/payers/types/index.js +1 -0
  97. package/dist/serialization/resources/users/index.d.ts +1 -1
  98. package/dist/serialization/resources/users/index.js +1 -1
  99. package/dist/serialization/resources/users/resources/index.d.ts +1 -0
  100. package/dist/serialization/resources/users/resources/index.js +27 -0
  101. package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
  102. package/{serialization/resources/users/types → dist/serialization/resources/users/resources/v2}/index.js +1 -1
  103. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
  104. package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
  105. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
  106. package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
  107. package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  108. package/{serialization/resources/users/types/User.js → dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js} +3 -4
  109. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  110. package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
  111. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
  112. package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
  113. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
  114. package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
  115. package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
  116. package/dist/serialization/resources/users/resources/v2/types/UserId.js +35 -0
  117. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
  118. package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
  119. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  120. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
  121. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
  122. package/dist/serialization/resources/users/resources/v2/types/index.js +25 -0
  123. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  124. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  125. package/package.json +1 -1
  126. package/serialization/resources/commons/types/index.d.ts +0 -1
  127. package/serialization/resources/commons/types/index.js +0 -1
  128. package/serialization/resources/index.d.ts +1 -2
  129. package/serialization/resources/index.js +2 -3
  130. package/serialization/resources/payers/types/Payer.d.ts +1 -1
  131. package/serialization/resources/payers/types/Payer.js +1 -1
  132. package/serialization/resources/{commons/types/Auth0Id.d.ts → payers/types/PayerUuid.d.ts} +2 -2
  133. package/{dist/serialization/resources/commons/types/Auth0Id.js → serialization/resources/payers/types/PayerUuid.js} +3 -3
  134. package/serialization/resources/payers/types/index.d.ts +1 -0
  135. package/serialization/resources/payers/types/index.js +1 -0
  136. package/serialization/resources/users/index.d.ts +1 -1
  137. package/serialization/resources/users/index.js +1 -1
  138. package/serialization/resources/users/resources/index.d.ts +1 -0
  139. package/serialization/resources/users/resources/index.js +27 -0
  140. package/serialization/resources/users/resources/v2/index.d.ts +1 -0
  141. package/{dist/serialization/resources/users/types → serialization/resources/users/resources/v2}/index.js +1 -1
  142. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
  143. package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
  144. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
  145. package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
  146. package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
  147. package/{dist/serialization/resources/users/types/User.js → serialization/resources/users/resources/v2/types/HumanUserMetadata.js} +3 -4
  148. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
  149. package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
  150. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
  151. package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
  152. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
  153. package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
  154. package/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
  155. package/serialization/resources/users/resources/v2/types/UserId.js +35 -0
  156. package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
  157. package/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
  158. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
  159. package/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
  160. package/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
  161. package/serialization/resources/users/resources/v2/types/index.js +25 -0
  162. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
  163. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
  164. package/api/resources/commons/types/Auth0Id.d.ts +0 -8
  165. package/api/resources/users/types/index.d.ts +0 -1
  166. package/dist/api/resources/commons/types/Auth0Id.d.ts +0 -8
  167. package/dist/api/resources/users/types/index.d.ts +0 -1
  168. package/dist/serialization/resources/users/types/User.d.ts +0 -14
  169. package/dist/serialization/resources/users/types/index.d.ts +0 -1
  170. package/serialization/resources/users/types/User.d.ts +0 -14
  171. package/serialization/resources/users/types/index.d.ts +0 -1
  172. /package/api/resources/users/{types/User.js → resources/v2/types/AuthZeroMetadata.js} +0 -0
  173. /package/{dist/api/resources/users/types/User.js → api/resources/users/resources/v2/types/GoogleAppsMetadata.js} +0 -0
@@ -26,13 +26,14 @@ 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.users = exports.tasks = 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.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tasks = 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.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"));
33
33
  exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
+ exports.users = __importStar(require("./users"));
36
37
  exports.workQueues = __importStar(require("./workQueues"));
37
38
  exports.billingNotes = __importStar(require("./billingNotes"));
38
39
  __exportStar(require("./billingNotes/types"), exports);
@@ -66,7 +67,5 @@ exports.tags = __importStar(require("./tags"));
66
67
  __exportStar(require("./tags/types"), exports);
67
68
  exports.tasks = __importStar(require("./tasks"));
68
69
  __exportStar(require("./tasks/types"), exports);
69
- exports.users = __importStar(require("./users"));
70
- __exportStar(require("./users/types"), exports);
71
70
  __exportStar(require("./billingNotes/client/requests"), exports);
72
71
  __exportStar(require("./expectedNetworkStatus/client/requests"), exports);
@@ -7,7 +7,7 @@ import * as core from "../../../../core";
7
7
  export declare const Payer: core.serialization.ObjectSchema<serializers.Payer.Raw, CandidApi.Payer>;
8
8
  export declare namespace Payer {
9
9
  interface Raw {
10
- payer_uuid?: string | null;
10
+ payer_uuid: serializers.PayerUuid.Raw;
11
11
  payer_id: string;
12
12
  payer_name: string;
13
13
  }
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Payer = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.Payer = core.serialization.object({
32
- payerUuid: core.serialization.property("payer_uuid", core.serialization.string().optional()),
32
+ payerUuid: core.serialization.property("payer_uuid", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).PayerUuid)),
33
33
  payerId: core.serialization.property("payer_id", core.serialization.string()),
34
34
  payerName: core.serialization.property("payer_name", core.serialization.string()),
35
35
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../..";
5
5
  import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
- export declare const Auth0Id: core.serialization.Schema<serializers.Auth0Id.Raw, CandidApi.Auth0Id>;
8
- export declare namespace Auth0Id {
7
+ export declare const PayerUuid: core.serialization.Schema<serializers.PayerUuid.Raw, CandidApi.PayerUuid>;
8
+ export declare namespace PayerUuid {
9
9
  type Raw = string;
10
10
  }
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Auth0Id = void 0;
29
+ exports.PayerUuid = void 0;
30
30
  const CandidApi = __importStar(require("../../../../api"));
31
31
  const core = __importStar(require("../../../../core"));
32
- exports.Auth0Id = core.serialization
32
+ exports.PayerUuid = core.serialization
33
33
  .string()
34
34
  .transform({
35
- transform: CandidApi.Auth0Id,
35
+ transform: CandidApi.PayerUuid,
36
36
  untransform: (value) => value,
37
37
  });
@@ -1,2 +1,3 @@
1
+ export * from "./PayerUuid";
1
2
  export * from "./PayerPage";
2
3
  export * from "./Payer";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayerUuid"), exports);
17
18
  __exportStar(require("./PayerPage"), exports);
18
19
  __exportStar(require("./Payer"), exports);
@@ -1 +1 @@
1
- export * from "./types";
1
+ export * from "./resources";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1 @@
1
+ export * as v2 from "./v2";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v2 = void 0;
27
+ exports.v2 = __importStar(require("./v2"));
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./User"), exports);
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const AuthZeroMetadata: core.serialization.ObjectSchema<serializers.users.v2.AuthZeroMetadata.Raw, CandidApi.users.v2.AuthZeroMetadata>;
8
+ export declare namespace AuthZeroMetadata {
9
+ interface Raw {
10
+ auth0_id: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AuthZeroMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.AuthZeroMetadata = core.serialization.object({
32
+ auth0Id: core.serialization.property("auth0_id", core.serialization.string()),
33
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const GoogleAppsMetadata: core.serialization.ObjectSchema<serializers.users.v2.GoogleAppsMetadata.Raw, CandidApi.users.v2.GoogleAppsMetadata>;
8
+ export declare namespace GoogleAppsMetadata {
9
+ interface Raw {
10
+ google_apps_id: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.GoogleAppsMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.GoogleAppsMetadata = core.serialization.object({
32
+ googleAppsId: core.serialization.property("google_apps_id", core.serialization.string()),
33
+ });
@@ -0,0 +1,13 @@
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 HumanUserMetadata: core.serialization.ObjectSchema<serializers.users.v2.HumanUserMetadata.Raw, CandidApi.users.v2.HumanUserMetadata>;
8
+ export declare namespace HumanUserMetadata {
9
+ interface Raw {
10
+ first_name: string;
11
+ last_name: string;
12
+ }
13
+ }
@@ -26,10 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.User = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.User = core.serialization.object({
32
- auth0Id: core.serialization.property("auth0_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).Auth0Id)),
29
+ exports.HumanUserMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.HumanUserMetadata = core.serialization.object({
33
32
  firstName: core.serialization.property("first_name", core.serialization.string()),
34
33
  lastName: core.serialization.property("last_name", core.serialization.string()),
35
34
  });
@@ -0,0 +1,19 @@
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 IdpUserMetadata: core.serialization.Schema<serializers.users.v2.IdpUserMetadata.Raw, CandidApi.users.v2.IdpUserMetadata>;
8
+ export declare namespace IdpUserMetadata {
9
+ type Raw = IdpUserMetadata.AuthZeroMetadata | IdpUserMetadata.GoogleAppsMetadata | IdpUserMetadata.OtherIdpMetadata;
10
+ interface AuthZeroMetadata extends serializers.users.v2.AuthZeroMetadata.Raw {
11
+ type: "auth_zero_metadata";
12
+ }
13
+ interface GoogleAppsMetadata extends serializers.users.v2.GoogleAppsMetadata.Raw {
14
+ type: "google_apps_metadata";
15
+ }
16
+ interface OtherIdpMetadata extends serializers.users.v2.OtherIdpMetadata.Raw {
17
+ type: "other_idp_metadata";
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.IdpUserMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.IdpUserMetadata = core.serialization
32
+ .union("type", {
33
+ auth_zero_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.AuthZeroMetadata),
34
+ google_apps_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.GoogleAppsMetadata),
35
+ other_idp_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.OtherIdpMetadata),
36
+ })
37
+ .transform({
38
+ transform: (value) => value,
39
+ untransform: (value) => value,
40
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const MachineUserMetadata: core.serialization.ObjectSchema<serializers.users.v2.MachineUserMetadata.Raw, CandidApi.users.v2.MachineUserMetadata>;
8
+ export declare namespace MachineUserMetadata {
9
+ interface Raw {
10
+ name: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MachineUserMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.MachineUserMetadata = core.serialization.object({
32
+ name: core.serialization.string(),
33
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const OtherIdpMetadata: core.serialization.ObjectSchema<serializers.users.v2.OtherIdpMetadata.Raw, CandidApi.users.v2.OtherIdpMetadata>;
8
+ export declare namespace OtherIdpMetadata {
9
+ interface Raw {
10
+ idp_external_id: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.OtherIdpMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.OtherIdpMetadata = core.serialization.object({
32
+ idpExternalId: core.serialization.property("idp_external_id", core.serialization.string()),
33
+ });
@@ -0,0 +1,10 @@
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 UserId: core.serialization.Schema<serializers.users.v2.UserId.Raw, CandidApi.users.v2.UserId>;
8
+ export declare namespace UserId {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UserId = void 0;
30
+ const CandidApi = __importStar(require("../../../../../../api"));
31
+ const core = __importStar(require("../../../../../../core"));
32
+ exports.UserId = core.serialization.string().transform({
33
+ transform: CandidApi.users.v2.UserId,
34
+ untransform: (value) => value,
35
+ });
@@ -0,0 +1,16 @@
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 UserMetadata: core.serialization.Schema<serializers.users.v2.UserMetadata.Raw, CandidApi.users.v2.UserMetadata>;
8
+ export declare namespace UserMetadata {
9
+ type Raw = UserMetadata.MachineUserMetadata | UserMetadata.HumanUserMetadata;
10
+ interface MachineUserMetadata extends serializers.users.v2.MachineUserMetadata.Raw {
11
+ type: "machine_user_metadata";
12
+ }
13
+ interface HumanUserMetadata extends serializers.users.v2.HumanUserMetadata.Raw {
14
+ type: "human_user_metadata";
15
+ }
16
+ }
@@ -0,0 +1,39 @@
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.UserMetadata = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.UserMetadata = core.serialization
32
+ .union("type", {
33
+ machine_user_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.MachineUserMetadata),
34
+ human_user_metadata: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.HumanUserMetadata),
35
+ })
36
+ .transform({
37
+ transform: (value) => value,
38
+ untransform: (value) => value,
39
+ });
@@ -0,0 +1,16 @@
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 UserV2: core.serialization.ObjectSchema<serializers.users.v2.UserV2.Raw, CandidApi.users.v2.UserV2>;
8
+ export declare namespace UserV2 {
9
+ interface Raw {
10
+ user_id: serializers.users.v2.UserId.Raw;
11
+ idp_metadata: serializers.users.v2.IdpUserMetadata.Raw[];
12
+ primary_organization_id: serializers.OrganizationId.Raw;
13
+ user_metadata: serializers.users.v2.UserMetadata.Raw;
14
+ accessible_organization_ids: serializers.OrganizationId.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.UserV2 = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.UserV2 = core.serialization.object({
32
+ userId: core.serialization.property("user_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserId)),
33
+ idpMetadata: core.serialization.property("idp_metadata", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.IdpUserMetadata))),
34
+ primaryOrganizationId: core.serialization.property("primary_organization_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId)),
35
+ userMetadata: core.serialization.property("user_metadata", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).users.v2.UserMetadata)),
36
+ accessibleOrganizationIds: core.serialization.property("accessible_organization_ids", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).OrganizationId))),
37
+ });
@@ -0,0 +1,9 @@
1
+ export * from "./HumanUserMetadata";
2
+ export * from "./UserId";
3
+ export * from "./MachineUserMetadata";
4
+ export * from "./UserMetadata";
5
+ export * from "./AuthZeroMetadata";
6
+ export * from "./GoogleAppsMetadata";
7
+ export * from "./OtherIdpMetadata";
8
+ export * from "./IdpUserMetadata";
9
+ export * from "./UserV2";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./HumanUserMetadata"), exports);
18
+ __exportStar(require("./UserId"), exports);
19
+ __exportStar(require("./MachineUserMetadata"), exports);
20
+ __exportStar(require("./UserMetadata"), exports);
21
+ __exportStar(require("./AuthZeroMetadata"), exports);
22
+ __exportStar(require("./GoogleAppsMetadata"), exports);
23
+ __exportStar(require("./OtherIdpMetadata"), exports);
24
+ __exportStar(require("./IdpUserMetadata"), exports);
25
+ __exportStar(require("./UserV2"), exports);
@@ -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.User.Raw;
15
+ created_by: serializers.users.v2.UserV2.Raw;
16
16
  }
17
17
  }