@greensecurity/javascript-sdk 0.30.37 → 0.30.39

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 (117) hide show
  1. package/README.md +3 -0
  2. package/bin/mcp-server.js +2096 -1887
  3. package/bin/mcp-server.js.map +14 -10
  4. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
  5. package/dist/commonjs/__tests__/vendors.test.js +2 -2
  6. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  7. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  8. package/dist/commonjs/__tests__/zones.test.js +19 -0
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +18 -0
  11. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +116 -0
  13. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js.map +1 -0
  14. package/dist/commonjs/lib/config.d.ts +3 -3
  15. package/dist/commonjs/lib/config.js +3 -3
  16. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  17. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  18. package/dist/commonjs/mcp-server/server.js +3 -1
  19. package/dist/commonjs/mcp-server/server.js.map +1 -1
  20. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.d.ts +8 -0
  21. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.d.ts.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js +64 -0
  23. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -0
  24. package/dist/commonjs/models/components/handoff.d.ts +50 -0
  25. package/dist/commonjs/models/components/handoff.d.ts.map +1 -0
  26. package/dist/commonjs/models/components/handoff.js +101 -0
  27. package/dist/commonjs/models/components/handoff.js.map +1 -0
  28. package/dist/commonjs/models/components/index.d.ts +1 -0
  29. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/index.js +1 -0
  31. package/dist/commonjs/models/components/index.js.map +1 -1
  32. package/dist/commonjs/models/operations/index.d.ts +1 -0
  33. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  34. package/dist/commonjs/models/operations/index.js +1 -0
  35. package/dist/commonjs/models/operations/index.js.map +1 -1
  36. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +85 -0
  37. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -0
  38. package/dist/commonjs/models/operations/securityzonecheckin.js +147 -0
  39. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -0
  40. package/dist/commonjs/react-query/index.d.ts +1 -0
  41. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  42. package/dist/commonjs/react-query/index.js +1 -0
  43. package/dist/commonjs/react-query/index.js.map +1 -1
  44. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +24 -0
  45. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -0
  46. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +47 -0
  47. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js.map +1 -0
  48. package/dist/commonjs/sdk/zones.d.ts +8 -0
  49. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  50. package/dist/commonjs/sdk/zones.js +11 -0
  51. package/dist/commonjs/sdk/zones.js.map +1 -1
  52. package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
  53. package/dist/esm/__tests__/vendors.test.js +2 -2
  54. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  55. package/dist/esm/__tests__/webhooks.test.js +1 -1
  56. package/dist/esm/__tests__/zones.test.js +19 -0
  57. package/dist/esm/__tests__/zones.test.js.map +1 -1
  58. package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +18 -0
  59. package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -0
  60. package/dist/esm/funcs/zonesSecurityZoneCheckin.js +80 -0
  61. package/dist/esm/funcs/zonesSecurityZoneCheckin.js.map +1 -0
  62. package/dist/esm/lib/config.d.ts +3 -3
  63. package/dist/esm/lib/config.js +3 -3
  64. package/dist/esm/mcp-server/mcp-server.js +1 -1
  65. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  66. package/dist/esm/mcp-server/server.js +3 -1
  67. package/dist/esm/mcp-server/server.js.map +1 -1
  68. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.d.ts +8 -0
  69. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.d.ts.map +1 -0
  70. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js +28 -0
  71. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -0
  72. package/dist/esm/models/components/handoff.d.ts +50 -0
  73. package/dist/esm/models/components/handoff.d.ts.map +1 -0
  74. package/dist/esm/models/components/handoff.js +63 -0
  75. package/dist/esm/models/components/handoff.js.map +1 -0
  76. package/dist/esm/models/components/index.d.ts +1 -0
  77. package/dist/esm/models/components/index.d.ts.map +1 -1
  78. package/dist/esm/models/components/index.js +1 -0
  79. package/dist/esm/models/components/index.js.map +1 -1
  80. package/dist/esm/models/operations/index.d.ts +1 -0
  81. package/dist/esm/models/operations/index.d.ts.map +1 -1
  82. package/dist/esm/models/operations/index.js +1 -0
  83. package/dist/esm/models/operations/index.js.map +1 -1
  84. package/dist/esm/models/operations/securityzonecheckin.d.ts +85 -0
  85. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -0
  86. package/dist/esm/models/operations/securityzonecheckin.js +105 -0
  87. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -0
  88. package/dist/esm/react-query/index.d.ts +1 -0
  89. package/dist/esm/react-query/index.d.ts.map +1 -1
  90. package/dist/esm/react-query/index.js +1 -0
  91. package/dist/esm/react-query/index.js.map +1 -1
  92. package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +24 -0
  93. package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -0
  94. package/dist/esm/react-query/zonesSecurityZoneCheckin.js +42 -0
  95. package/dist/esm/react-query/zonesSecurityZoneCheckin.js.map +1 -0
  96. package/dist/esm/sdk/zones.d.ts +8 -0
  97. package/dist/esm/sdk/zones.d.ts.map +1 -1
  98. package/dist/esm/sdk/zones.js +11 -0
  99. package/dist/esm/sdk/zones.js.map +1 -1
  100. package/jsr.json +1 -1
  101. package/package.json +1 -1
  102. package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
  103. package/src/__tests__/vendors.test.ts +2 -2
  104. package/src/__tests__/webhooks.test.ts +1 -1
  105. package/src/__tests__/zones.test.ts +22 -0
  106. package/src/funcs/zonesSecurityZoneCheckin.ts +168 -0
  107. package/src/lib/config.ts +3 -3
  108. package/src/mcp-server/mcp-server.ts +1 -1
  109. package/src/mcp-server/server.ts +3 -1
  110. package/src/mcp-server/tools/zonesSecurityZoneCheckin.ts +37 -0
  111. package/src/models/components/handoff.ts +116 -0
  112. package/src/models/components/index.ts +1 -0
  113. package/src/models/operations/index.ts +1 -0
  114. package/src/models/operations/securityzonecheckin.ts +192 -0
  115. package/src/react-query/index.ts +1 -0
  116. package/src/react-query/zonesSecurityZoneCheckin.ts +89 -0
  117. package/src/sdk/zones.ts +20 -0
package/bin/mcp-server.js CHANGED
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
34192
34192
  SDK_METADATA = {
34193
34193
  language: "typescript",
34194
34194
  openapiDocVersion: "0.0.3",
34195
- sdkVersion: "0.30.37",
34196
- genVersion: "2.596.2",
34197
- userAgent: "speakeasy-sdk/typescript 0.30.37 2.596.2 0.0.3 @greensecurity/javascript-sdk"
34195
+ sdkVersion: "0.30.39",
34196
+ genVersion: "2.597.9",
34197
+ userAgent: "speakeasy-sdk/typescript 0.30.39 2.597.9 0.0.3 @greensecurity/javascript-sdk"
34198
34198
  };
34199
34199
  });
34200
34200
 
@@ -36775,2271 +36775,2319 @@ var init_facility = __esm(() => {
36775
36775
  })(Facility$ ||= {});
36776
36776
  });
36777
36777
 
36778
- // src/models/components/invoiceitem.ts
36779
- var InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
36780
- var init_invoiceitem = __esm(() => {
36778
+ // src/models/components/zoneconfig.ts
36779
+ var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
36780
+ var init_zoneconfig = __esm(() => {
36781
36781
  init_lib();
36782
36782
  init_primitives();
36783
- InvoiceItem$inboundSchema = objectType({
36784
- item_id: numberType().int().optional(),
36785
- date_starts: nullableType(stringType()).optional(),
36786
- date_ends: nullableType(stringType()).optional(),
36787
- is_subscription: nullableType(booleanType()).optional(),
36788
- product_title: nullableType(stringType()).optional(),
36789
- item_title: nullableType(stringType()).optional(),
36790
- quantity: nullableType(numberType()).optional(),
36791
- unit_price: nullableType(numberType().int()).optional(),
36792
- subtotal: nullableType(numberType().int()).optional()
36783
+ VendorGroupId1$inboundSchema = objectType({
36784
+ id: numberType().int().optional(),
36785
+ name: stringType().optional(),
36786
+ description: nullableType(stringType()).optional(),
36787
+ visible: booleanType().optional()
36788
+ });
36789
+ VendorGroupId1$outboundSchema = objectType({
36790
+ id: numberType().int().optional(),
36791
+ name: stringType().optional(),
36792
+ description: nullableType(stringType()).optional(),
36793
+ visible: booleanType().optional()
36794
+ });
36795
+ ((VendorGroupId1$) => {
36796
+ VendorGroupId1$.inboundSchema = VendorGroupId1$inboundSchema;
36797
+ VendorGroupId1$.outboundSchema = VendorGroupId1$outboundSchema;
36798
+ })(VendorGroupId1$ ||= {});
36799
+ VendorGroupId$inboundSchema = unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()]);
36800
+ VendorGroupId$outboundSchema = unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()]);
36801
+ ((VendorGroupId$) => {
36802
+ VendorGroupId$.inboundSchema = VendorGroupId$inboundSchema;
36803
+ VendorGroupId$.outboundSchema = VendorGroupId$outboundSchema;
36804
+ })(VendorGroupId$ ||= {});
36805
+ CompanyGroupId1$inboundSchema = objectType({
36806
+ id: numberType().int().optional(),
36807
+ name: stringType().optional(),
36808
+ description: nullableType(stringType()).optional(),
36809
+ visible: booleanType().optional()
36810
+ });
36811
+ CompanyGroupId1$outboundSchema = objectType({
36812
+ id: numberType().int().optional(),
36813
+ name: stringType().optional(),
36814
+ description: nullableType(stringType()).optional(),
36815
+ visible: booleanType().optional()
36816
+ });
36817
+ ((CompanyGroupId1$) => {
36818
+ CompanyGroupId1$.inboundSchema = CompanyGroupId1$inboundSchema;
36819
+ CompanyGroupId1$.outboundSchema = CompanyGroupId1$outboundSchema;
36820
+ })(CompanyGroupId1$ ||= {});
36821
+ CompanyGroupId$inboundSchema = unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()]);
36822
+ CompanyGroupId$outboundSchema = unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()]);
36823
+ ((CompanyGroupId$) => {
36824
+ CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
36825
+ CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
36826
+ })(CompanyGroupId$ ||= {});
36827
+ ZoneConfigAppliesTo$inboundSchema = objectType({
36828
+ vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
36829
+ company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
36830
+ visitor_type: nullableType(stringType()).optional(),
36831
+ visitor_subtype: nullableType(stringType()).optional()
36793
36832
  }).transform((v2) => {
36794
36833
  return remap(v2, {
36795
- item_id: "itemId",
36796
- date_starts: "dateStarts",
36797
- date_ends: "dateEnds",
36798
- is_subscription: "isSubscription",
36799
- product_title: "productTitle",
36800
- item_title: "itemTitle",
36801
- unit_price: "unitPrice"
36834
+ vendor_group_id: "vendorGroupId",
36835
+ company_group_id: "companyGroupId",
36836
+ visitor_type: "visitorType",
36837
+ visitor_subtype: "visitorSubtype"
36802
36838
  });
36803
36839
  });
36804
- InvoiceItem$outboundSchema = objectType({
36805
- itemId: numberType().int().optional(),
36806
- dateStarts: nullableType(stringType()).optional(),
36807
- dateEnds: nullableType(stringType()).optional(),
36808
- isSubscription: nullableType(booleanType()).optional(),
36809
- productTitle: nullableType(stringType()).optional(),
36810
- itemTitle: nullableType(stringType()).optional(),
36811
- quantity: nullableType(numberType()).optional(),
36812
- unitPrice: nullableType(numberType().int()).optional(),
36813
- subtotal: nullableType(numberType().int()).optional()
36840
+ ZoneConfigAppliesTo$outboundSchema = objectType({
36841
+ vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
36842
+ companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
36843
+ visitorType: nullableType(stringType()).optional(),
36844
+ visitorSubtype: nullableType(stringType()).optional()
36814
36845
  }).transform((v2) => {
36815
36846
  return remap(v2, {
36816
- itemId: "item_id",
36817
- dateStarts: "date_starts",
36818
- dateEnds: "date_ends",
36819
- isSubscription: "is_subscription",
36820
- productTitle: "product_title",
36821
- itemTitle: "item_title",
36822
- unitPrice: "unit_price"
36847
+ vendorGroupId: "vendor_group_id",
36848
+ companyGroupId: "company_group_id",
36849
+ visitorType: "visitor_type",
36850
+ visitorSubtype: "visitor_subtype"
36823
36851
  });
36824
36852
  });
36825
- ((InvoiceItem$) => {
36826
- InvoiceItem$.inboundSchema = InvoiceItem$inboundSchema;
36827
- InvoiceItem$.outboundSchema = InvoiceItem$outboundSchema;
36828
- })(InvoiceItem$ ||= {});
36829
- });
36830
-
36831
- // src/models/components/invoicetransaction.ts
36832
- var InvoiceTransaction$inboundSchema, InvoiceTransaction$outboundSchema, InvoiceTransaction$;
36833
- var init_invoicetransaction = __esm(() => {
36834
- init_lib();
36835
- init_primitives();
36836
- InvoiceTransaction$inboundSchema = objectType({
36837
- date_processed: nullableType(stringType()).optional(),
36838
- payee: nullableType(stringType()).optional(),
36839
- amount: nullableType(numberType().int()).optional(),
36840
- credit_id: nullableType(numberType().int()).optional(),
36841
- transaction_id: nullableType(stringType()).optional(),
36842
- success: nullableType(booleanType()).optional(),
36843
- card_last4: nullableType(stringType()).optional()
36853
+ ((ZoneConfigAppliesTo$) => {
36854
+ ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
36855
+ ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
36856
+ })(ZoneConfigAppliesTo$ ||= {});
36857
+ ZoneConfigVendorPolicy$inboundSchema = objectType({
36858
+ allow_vendor_scans: booleanType().optional(),
36859
+ print_vendor_badge: booleanType().optional(),
36860
+ mfa: booleanType().optional(),
36861
+ ask_questions: booleanType().optional(),
36862
+ requires_facility_appt: booleanType().optional(),
36863
+ requires_department_appt: booleanType().optional(),
36864
+ requires_credentialed: booleanType().optional(),
36865
+ allow_checkin: booleanType().optional(),
36866
+ allow_checkout: booleanType().optional(),
36867
+ allow_spot_check: booleanType().optional(),
36868
+ requires_checkin: booleanType().optional(),
36869
+ full_checkin: booleanType().optional(),
36870
+ full_checkin_always: booleanType().optional(),
36871
+ verify_face: booleanType().optional()
36844
36872
  }).transform((v2) => {
36845
36873
  return remap(v2, {
36846
- date_processed: "dateProcessed",
36847
- credit_id: "creditId",
36848
- transaction_id: "transactionId",
36849
- card_last4: "cardLast4"
36874
+ allow_vendor_scans: "allowVendorScans",
36875
+ print_vendor_badge: "printVendorBadge",
36876
+ ask_questions: "askQuestions",
36877
+ requires_facility_appt: "requiresFacilityAppt",
36878
+ requires_department_appt: "requiresDepartmentAppt",
36879
+ requires_credentialed: "requiresCredentialed",
36880
+ allow_checkin: "allowCheckin",
36881
+ allow_checkout: "allowCheckout",
36882
+ allow_spot_check: "allowSpotCheck",
36883
+ requires_checkin: "requiresCheckin",
36884
+ full_checkin: "fullCheckin",
36885
+ full_checkin_always: "fullCheckinAlways",
36886
+ verify_face: "verifyFace"
36850
36887
  });
36851
36888
  });
36852
- InvoiceTransaction$outboundSchema = objectType({
36853
- dateProcessed: nullableType(stringType()).optional(),
36854
- payee: nullableType(stringType()).optional(),
36855
- amount: nullableType(numberType().int()).optional(),
36856
- creditId: nullableType(numberType().int()).optional(),
36857
- transactionId: nullableType(stringType()).optional(),
36858
- success: nullableType(booleanType()).optional(),
36859
- cardLast4: nullableType(stringType()).optional()
36889
+ ZoneConfigVendorPolicy$outboundSchema = objectType({
36890
+ allowVendorScans: booleanType().optional(),
36891
+ printVendorBadge: booleanType().optional(),
36892
+ mfa: booleanType().optional(),
36893
+ askQuestions: booleanType().optional(),
36894
+ requiresFacilityAppt: booleanType().optional(),
36895
+ requiresDepartmentAppt: booleanType().optional(),
36896
+ requiresCredentialed: booleanType().optional(),
36897
+ allowCheckin: booleanType().optional(),
36898
+ allowCheckout: booleanType().optional(),
36899
+ allowSpotCheck: booleanType().optional(),
36900
+ requiresCheckin: booleanType().optional(),
36901
+ fullCheckin: booleanType().optional(),
36902
+ fullCheckinAlways: booleanType().optional(),
36903
+ verifyFace: booleanType().optional()
36860
36904
  }).transform((v2) => {
36861
36905
  return remap(v2, {
36862
- dateProcessed: "date_processed",
36863
- creditId: "credit_id",
36864
- transactionId: "transaction_id",
36865
- cardLast4: "card_last4"
36906
+ allowVendorScans: "allow_vendor_scans",
36907
+ printVendorBadge: "print_vendor_badge",
36908
+ askQuestions: "ask_questions",
36909
+ requiresFacilityAppt: "requires_facility_appt",
36910
+ requiresDepartmentAppt: "requires_department_appt",
36911
+ requiresCredentialed: "requires_credentialed",
36912
+ allowCheckin: "allow_checkin",
36913
+ allowCheckout: "allow_checkout",
36914
+ allowSpotCheck: "allow_spot_check",
36915
+ requiresCheckin: "requires_checkin",
36916
+ fullCheckin: "full_checkin",
36917
+ fullCheckinAlways: "full_checkin_always",
36918
+ verifyFace: "verify_face"
36866
36919
  });
36867
36920
  });
36868
- ((InvoiceTransaction$) => {
36869
- InvoiceTransaction$.inboundSchema = InvoiceTransaction$inboundSchema;
36870
- InvoiceTransaction$.outboundSchema = InvoiceTransaction$outboundSchema;
36871
- })(InvoiceTransaction$ ||= {});
36872
- });
36873
-
36874
- // src/models/components/invoice.ts
36875
- var Invoice$inboundSchema, Invoice$outboundSchema, Invoice$;
36876
- var init_invoice = __esm(() => {
36877
- init_lib();
36878
- init_primitives();
36879
- init_invoiceitem();
36880
- init_invoicetransaction();
36881
- Invoice$inboundSchema = objectType({
36882
- id: numberType().int(),
36883
- invoice_number: nullableType(stringType()).optional(),
36884
- date_processed: nullableType(stringType()).optional(),
36885
- amount: nullableType(numberType().int()).optional(),
36886
- status: nullableType(stringType()).optional(),
36887
- financial_status: nullableType(stringType()).optional(),
36888
- amount_not_paid: nullableType(numberType().int()).optional(),
36889
- tax: nullableType(numberType().int()).optional(),
36890
- convenience_fee: nullableType(numberType()).optional(),
36891
- shipping: nullableType(numberType().int()).optional(),
36892
- discount: numberType().int().optional(),
36893
- items: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
36894
- transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
36921
+ ((ZoneConfigVendorPolicy$) => {
36922
+ ZoneConfigVendorPolicy$.inboundSchema = ZoneConfigVendorPolicy$inboundSchema;
36923
+ ZoneConfigVendorPolicy$.outboundSchema = ZoneConfigVendorPolicy$outboundSchema;
36924
+ })(ZoneConfigVendorPolicy$ ||= {});
36925
+ VisitorCheckinPolicy$inboundSchema = objectType({
36926
+ print_visitor_badge: booleanType().optional(),
36927
+ ask_questions_visitor_checkins: booleanType().optional(),
36928
+ full_checkin: booleanType().optional()
36895
36929
  }).transform((v2) => {
36896
36930
  return remap(v2, {
36897
- invoice_number: "invoiceNumber",
36898
- date_processed: "dateProcessed",
36899
- financial_status: "financialStatus",
36900
- amount_not_paid: "amountNotPaid",
36901
- convenience_fee: "convenienceFee"
36931
+ print_visitor_badge: "printVisitorBadge",
36932
+ ask_questions_visitor_checkins: "askQuestionsVisitorCheckins",
36933
+ full_checkin: "fullCheckin"
36902
36934
  });
36903
36935
  });
36904
- Invoice$outboundSchema = objectType({
36905
- id: numberType().int(),
36906
- invoiceNumber: nullableType(stringType()).optional(),
36907
- dateProcessed: nullableType(stringType()).optional(),
36908
- amount: nullableType(numberType().int()).optional(),
36909
- status: nullableType(stringType()).optional(),
36910
- financialStatus: nullableType(stringType()).optional(),
36911
- amountNotPaid: nullableType(numberType().int()).optional(),
36912
- tax: nullableType(numberType().int()).optional(),
36913
- convenienceFee: nullableType(numberType()).optional(),
36914
- shipping: nullableType(numberType().int()).optional(),
36915
- discount: numberType().int().optional(),
36916
- items: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
36917
- transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
36918
- }).transform((v2) => {
36919
- return remap(v2, {
36920
- invoiceNumber: "invoice_number",
36921
- dateProcessed: "date_processed",
36922
- financialStatus: "financial_status",
36923
- amountNotPaid: "amount_not_paid",
36924
- convenienceFee: "convenience_fee"
36936
+ VisitorCheckinPolicy$outboundSchema = objectType({
36937
+ printVisitorBadge: booleanType().optional(),
36938
+ askQuestionsVisitorCheckins: booleanType().optional(),
36939
+ fullCheckin: booleanType().optional()
36940
+ }).transform((v2) => {
36941
+ return remap(v2, {
36942
+ printVisitorBadge: "print_visitor_badge",
36943
+ askQuestionsVisitorCheckins: "ask_questions_visitor_checkins",
36944
+ fullCheckin: "full_checkin"
36925
36945
  });
36926
36946
  });
36927
- ((Invoice$) => {
36928
- Invoice$.inboundSchema = Invoice$inboundSchema;
36929
- Invoice$.outboundSchema = Invoice$outboundSchema;
36930
- })(Invoice$ ||= {});
36931
- });
36932
-
36933
- // src/models/components/loginemailandpassword.ts
36934
- var LoginEmailAndPassword$inboundSchema, LoginEmailAndPassword$outboundSchema, LoginEmailAndPassword$;
36935
- var init_loginemailandpassword = __esm(() => {
36936
- init_lib();
36937
- init_primitives();
36938
- LoginEmailAndPassword$inboundSchema = objectType({
36939
- email: stringType(),
36940
- mfa_code: stringType().optional(),
36941
- password: stringType()
36947
+ ((VisitorCheckinPolicy$) => {
36948
+ VisitorCheckinPolicy$.inboundSchema = VisitorCheckinPolicy$inboundSchema;
36949
+ VisitorCheckinPolicy$.outboundSchema = VisitorCheckinPolicy$outboundSchema;
36950
+ })(VisitorCheckinPolicy$ ||= {});
36951
+ VisitRequestPolicy$inboundSchema = objectType({
36952
+ ask_questions_visit_requests: nullableType(booleanType()).optional(),
36953
+ require_website_visit_request_picture: nullableType(booleanType()).optional(),
36954
+ require_kiosk_visit_request_picture: nullableType(booleanType()).optional(),
36955
+ visit_request_use_previous_picture: nullableType(booleanType()).optional(),
36956
+ auto_approve_visit_requests: nullableType(booleanType()).optional(),
36957
+ auto_checkin_visit_requests: nullableType(booleanType()).optional(),
36958
+ auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
36959
+ auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
36942
36960
  }).transform((v2) => {
36943
36961
  return remap(v2, {
36944
- mfa_code: "mfaCode"
36962
+ ask_questions_visit_requests: "askQuestionsVisitRequests",
36963
+ require_website_visit_request_picture: "requireWebsiteVisitRequestPicture",
36964
+ require_kiosk_visit_request_picture: "requireKioskVisitRequestPicture",
36965
+ visit_request_use_previous_picture: "visitRequestUsePreviousPicture",
36966
+ auto_approve_visit_requests: "autoApproveVisitRequests",
36967
+ auto_checkin_visit_requests: "autoCheckinVisitRequests",
36968
+ auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
36969
+ auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
36945
36970
  });
36946
36971
  });
36947
- LoginEmailAndPassword$outboundSchema = objectType({
36948
- email: stringType(),
36949
- mfaCode: stringType().optional(),
36950
- password: stringType()
36972
+ VisitRequestPolicy$outboundSchema = objectType({
36973
+ askQuestionsVisitRequests: nullableType(booleanType()).optional(),
36974
+ requireWebsiteVisitRequestPicture: nullableType(booleanType()).optional(),
36975
+ requireKioskVisitRequestPicture: nullableType(booleanType()).optional(),
36976
+ visitRequestUsePreviousPicture: nullableType(booleanType()).optional(),
36977
+ autoApproveVisitRequests: nullableType(booleanType()).optional(),
36978
+ autoCheckinVisitRequests: nullableType(booleanType()).optional(),
36979
+ autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
36980
+ autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
36951
36981
  }).transform((v2) => {
36952
36982
  return remap(v2, {
36953
- mfaCode: "mfa_code"
36983
+ askQuestionsVisitRequests: "ask_questions_visit_requests",
36984
+ requireWebsiteVisitRequestPicture: "require_website_visit_request_picture",
36985
+ requireKioskVisitRequestPicture: "require_kiosk_visit_request_picture",
36986
+ visitRequestUsePreviousPicture: "visit_request_use_previous_picture",
36987
+ autoApproveVisitRequests: "auto_approve_visit_requests",
36988
+ autoCheckinVisitRequests: "auto_checkin_visit_requests",
36989
+ autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
36990
+ autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
36954
36991
  });
36955
36992
  });
36956
- ((LoginEmailAndPassword$) => {
36957
- LoginEmailAndPassword$.inboundSchema = LoginEmailAndPassword$inboundSchema;
36958
- LoginEmailAndPassword$.outboundSchema = LoginEmailAndPassword$outboundSchema;
36959
- })(LoginEmailAndPassword$ ||= {});
36960
- });
36961
-
36962
- // src/models/components/loginrequirementsfromemail.ts
36963
- var LoginRequirementsFromEmail$inboundSchema, LoginRequirementsFromEmail$outboundSchema, LoginRequirementsFromEmail$;
36964
- var init_loginrequirementsfromemail = __esm(() => {
36965
- init_lib();
36966
- init_primitives();
36967
- LoginRequirementsFromEmail$inboundSchema = objectType({
36968
- email: stringType(),
36969
- return_url: stringType()
36993
+ ((VisitRequestPolicy$) => {
36994
+ VisitRequestPolicy$.inboundSchema = VisitRequestPolicy$inboundSchema;
36995
+ VisitRequestPolicy$.outboundSchema = VisitRequestPolicy$outboundSchema;
36996
+ })(VisitRequestPolicy$ ||= {});
36997
+ ZoneConfig$inboundSchema = objectType({
36998
+ id: numberType().int().optional(),
36999
+ zone_id: numberType().int().optional(),
37000
+ sort_order: nullableType(numberType().int()).optional(),
37001
+ applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
37002
+ vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
37003
+ visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
37004
+ visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
36970
37005
  }).transform((v2) => {
36971
37006
  return remap(v2, {
36972
- return_url: "returnUrl"
37007
+ zone_id: "zoneId",
37008
+ sort_order: "sortOrder",
37009
+ applies_to: "appliesTo",
37010
+ vendor_policy: "vendorPolicy",
37011
+ visitor_checkin_policy: "visitorCheckinPolicy",
37012
+ visit_request_policy: "visitRequestPolicy"
36973
37013
  });
36974
37014
  });
36975
- LoginRequirementsFromEmail$outboundSchema = objectType({
36976
- email: stringType(),
36977
- returnUrl: stringType()
37015
+ ZoneConfig$outboundSchema = objectType({
37016
+ id: numberType().int().optional(),
37017
+ zoneId: numberType().int().optional(),
37018
+ sortOrder: nullableType(numberType().int()).optional(),
37019
+ appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
37020
+ vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
37021
+ visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
37022
+ visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
36978
37023
  }).transform((v2) => {
36979
37024
  return remap(v2, {
36980
- returnUrl: "return_url"
37025
+ zoneId: "zone_id",
37026
+ sortOrder: "sort_order",
37027
+ appliesTo: "applies_to",
37028
+ vendorPolicy: "vendor_policy",
37029
+ visitorCheckinPolicy: "visitor_checkin_policy",
37030
+ visitRequestPolicy: "visit_request_policy"
36981
37031
  });
36982
37032
  });
36983
- ((LoginRequirementsFromEmail$) => {
36984
- LoginRequirementsFromEmail$.inboundSchema = LoginRequirementsFromEmail$inboundSchema;
36985
- LoginRequirementsFromEmail$.outboundSchema = LoginRequirementsFromEmail$outboundSchema;
36986
- })(LoginRequirementsFromEmail$ ||= {});
37033
+ ((ZoneConfig$) => {
37034
+ ZoneConfig$.inboundSchema = ZoneConfig$inboundSchema;
37035
+ ZoneConfig$.outboundSchema = ZoneConfig$outboundSchema;
37036
+ })(ZoneConfig$ ||= {});
36987
37037
  });
36988
37038
 
36989
- // src/models/components/mfarequiredresponse.ts
36990
- var MfaRequiredResponseRequires, MfaMethod, MfaRequiredResponseRequires$inboundSchema, MfaRequiredResponseRequires$outboundSchema, MfaRequiredResponseRequires$, MfaMethod$inboundSchema, MfaMethod$outboundSchema, MfaMethod$, MfaRequiredResponse$inboundSchema, MfaRequiredResponse$outboundSchema, MfaRequiredResponse$;
36991
- var init_mfarequiredresponse = __esm(() => {
37039
+ // src/models/components/zone.ts
37040
+ var ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
37041
+ var init_zone = __esm(() => {
36992
37042
  init_lib();
36993
37043
  init_primitives();
36994
- MfaRequiredResponseRequires = {
36995
- MfaCode: "mfa_code"
36996
- };
36997
- MfaMethod = {
36998
- Text: "text",
36999
- Email: "email"
37000
- };
37001
- MfaRequiredResponseRequires$inboundSchema = nativeEnumType(MfaRequiredResponseRequires);
37002
- MfaRequiredResponseRequires$outboundSchema = MfaRequiredResponseRequires$inboundSchema;
37003
- ((MfaRequiredResponseRequires$) => {
37004
- MfaRequiredResponseRequires$.inboundSchema = MfaRequiredResponseRequires$inboundSchema;
37005
- MfaRequiredResponseRequires$.outboundSchema = MfaRequiredResponseRequires$outboundSchema;
37006
- })(MfaRequiredResponseRequires$ ||= {});
37007
- MfaMethod$inboundSchema = nativeEnumType(MfaMethod);
37008
- MfaMethod$outboundSchema = MfaMethod$inboundSchema;
37009
- ((MfaMethod$) => {
37010
- MfaMethod$.inboundSchema = MfaMethod$inboundSchema;
37011
- MfaMethod$.outboundSchema = MfaMethod$outboundSchema;
37012
- })(MfaMethod$ ||= {});
37013
- MfaRequiredResponse$inboundSchema = objectType({
37014
- requires: MfaRequiredResponseRequires$inboundSchema,
37015
- success: booleanType(),
37016
- error: stringType(),
37017
- mobile_phone: stringType().optional(),
37018
- mfa_method: MfaMethod$inboundSchema.optional()
37044
+ init_department();
37045
+ init_facility();
37046
+ init_zoneconfig();
37047
+ ZoneFacility$inboundSchema = unionType([Facility$inboundSchema, numberType().int()]);
37048
+ ZoneFacility$outboundSchema = unionType([Facility$outboundSchema, numberType().int()]);
37049
+ ((ZoneFacility$) => {
37050
+ ZoneFacility$.inboundSchema = ZoneFacility$inboundSchema;
37051
+ ZoneFacility$.outboundSchema = ZoneFacility$outboundSchema;
37052
+ })(ZoneFacility$ ||= {});
37053
+ ZoneDepartment$inboundSchema = unionType([Department$inboundSchema, numberType().int()]);
37054
+ ZoneDepartment$outboundSchema = unionType([Department$outboundSchema, numberType().int()]);
37055
+ ((ZoneDepartment$) => {
37056
+ ZoneDepartment$.inboundSchema = ZoneDepartment$inboundSchema;
37057
+ ZoneDepartment$.outboundSchema = ZoneDepartment$outboundSchema;
37058
+ })(ZoneDepartment$ ||= {});
37059
+ ZoneLocation$inboundSchema = objectType({
37060
+ street_address: nullableType(stringType()).optional(),
37061
+ city: nullableType(stringType()).optional(),
37062
+ state: nullableType(stringType()).optional(),
37063
+ zip: nullableType(stringType()).optional(),
37064
+ floor_number: nullableType(numberType().int()).optional()
37019
37065
  }).transform((v2) => {
37020
37066
  return remap(v2, {
37021
- mobile_phone: "mobilePhone",
37022
- mfa_method: "mfaMethod"
37067
+ street_address: "streetAddress",
37068
+ floor_number: "floorNumber"
37023
37069
  });
37024
37070
  });
37025
- MfaRequiredResponse$outboundSchema = objectType({
37026
- requires: MfaRequiredResponseRequires$outboundSchema,
37027
- success: booleanType(),
37028
- error: stringType(),
37029
- mobilePhone: stringType().optional(),
37030
- mfaMethod: MfaMethod$outboundSchema.optional()
37071
+ ZoneLocation$outboundSchema = objectType({
37072
+ streetAddress: nullableType(stringType()).optional(),
37073
+ city: nullableType(stringType()).optional(),
37074
+ state: nullableType(stringType()).optional(),
37075
+ zip: nullableType(stringType()).optional(),
37076
+ floorNumber: nullableType(numberType().int()).optional()
37031
37077
  }).transform((v2) => {
37032
37078
  return remap(v2, {
37033
- mobilePhone: "mobile_phone",
37034
- mfaMethod: "mfa_method"
37079
+ streetAddress: "street_address",
37080
+ floorNumber: "floor_number"
37035
37081
  });
37036
37082
  });
37037
- ((MfaRequiredResponse$) => {
37038
- MfaRequiredResponse$.inboundSchema = MfaRequiredResponse$inboundSchema;
37039
- MfaRequiredResponse$.outboundSchema = MfaRequiredResponse$outboundSchema;
37040
- })(MfaRequiredResponse$ ||= {});
37041
- });
37042
-
37043
- // src/models/components/pager.ts
37044
- var Pager$inboundSchema, Pager$outboundSchema, Pager$;
37045
- var init_pager = __esm(() => {
37046
- init_lib();
37047
- init_primitives();
37048
- Pager$inboundSchema = objectType({
37049
- base_url: stringType(),
37050
- sort: stringType(),
37051
- desc: numberType().int(),
37052
- item_count: numberType().int(),
37053
- items_per_page: numberType().int(),
37054
- page: numberType().int(),
37055
- use_url_params: booleanType()
37083
+ ((ZoneLocation$) => {
37084
+ ZoneLocation$.inboundSchema = ZoneLocation$inboundSchema;
37085
+ ZoneLocation$.outboundSchema = ZoneLocation$outboundSchema;
37086
+ })(ZoneLocation$ ||= {});
37087
+ KioskOfflineNotification$inboundSchema = objectType({
37088
+ is_offline: nullableType(booleanType()).optional(),
37089
+ message: nullableType(stringType()).optional(),
37090
+ auto_activate: nullableType(stringType()).optional(),
37091
+ auto_deactivate: nullableType(stringType()).optional()
37056
37092
  }).transform((v2) => {
37057
37093
  return remap(v2, {
37058
- base_url: "baseUrl",
37059
- item_count: "itemCount",
37060
- items_per_page: "itemsPerPage",
37061
- use_url_params: "useUrlParams"
37094
+ is_offline: "isOffline",
37095
+ auto_activate: "autoActivate",
37096
+ auto_deactivate: "autoDeactivate"
37062
37097
  });
37063
37098
  });
37064
- Pager$outboundSchema = objectType({
37065
- baseUrl: stringType(),
37066
- sort: stringType(),
37067
- desc: numberType().int(),
37068
- itemCount: numberType().int(),
37069
- itemsPerPage: numberType().int(),
37070
- page: numberType().int(),
37071
- useUrlParams: booleanType()
37099
+ KioskOfflineNotification$outboundSchema = objectType({
37100
+ isOffline: nullableType(booleanType()).optional(),
37101
+ message: nullableType(stringType()).optional(),
37102
+ autoActivate: nullableType(stringType()).optional(),
37103
+ autoDeactivate: nullableType(stringType()).optional()
37072
37104
  }).transform((v2) => {
37073
37105
  return remap(v2, {
37074
- baseUrl: "base_url",
37075
- itemCount: "item_count",
37076
- itemsPerPage: "items_per_page",
37077
- useUrlParams: "use_url_params"
37106
+ isOffline: "is_offline",
37107
+ autoActivate: "auto_activate",
37108
+ autoDeactivate: "auto_deactivate"
37078
37109
  });
37079
37110
  });
37080
- ((Pager$) => {
37081
- Pager$.inboundSchema = Pager$inboundSchema;
37082
- Pager$.outboundSchema = Pager$outboundSchema;
37083
- })(Pager$ ||= {});
37084
- });
37085
-
37086
- // src/models/components/passwordrequiredresponse.ts
37087
- var Requires, Requires$inboundSchema, Requires$outboundSchema, Requires$, PasswordRequiredResponse$inboundSchema, PasswordRequiredResponse$outboundSchema, PasswordRequiredResponse$;
37088
- var init_passwordrequiredresponse = __esm(() => {
37089
- init_lib();
37090
- Requires = {
37091
- Password: "password"
37092
- };
37093
- Requires$inboundSchema = nativeEnumType(Requires);
37094
- Requires$outboundSchema = Requires$inboundSchema;
37095
- ((Requires$) => {
37096
- Requires$.inboundSchema = Requires$inboundSchema;
37097
- Requires$.outboundSchema = Requires$outboundSchema;
37098
- })(Requires$ ||= {});
37099
- PasswordRequiredResponse$inboundSchema = objectType({
37100
- requires: Requires$inboundSchema,
37101
- success: booleanType(),
37102
- error: stringType()
37103
- });
37104
- PasswordRequiredResponse$outboundSchema = objectType({
37105
- requires: Requires$outboundSchema,
37106
- success: booleanType(),
37107
- error: stringType()
37111
+ ((KioskOfflineNotification$) => {
37112
+ KioskOfflineNotification$.inboundSchema = KioskOfflineNotification$inboundSchema;
37113
+ KioskOfflineNotification$.outboundSchema = KioskOfflineNotification$outboundSchema;
37114
+ })(KioskOfflineNotification$ ||= {});
37115
+ ZoneVendorPolicy$inboundSchema = objectType({
37116
+ allow_gps_checkin: booleanType().optional(),
37117
+ allow_scrubs: booleanType().optional(),
37118
+ allow_vendor_scans: booleanType().optional(),
37119
+ requires_checkin_for_scrubs: booleanType().optional(),
37120
+ override_limit: nullableType(numberType().int()).optional(),
37121
+ override_limit_days: nullableType(numberType().int()).optional()
37122
+ }).transform((v2) => {
37123
+ return remap(v2, {
37124
+ allow_gps_checkin: "allowGpsCheckin",
37125
+ allow_scrubs: "allowScrubs",
37126
+ allow_vendor_scans: "allowVendorScans",
37127
+ requires_checkin_for_scrubs: "requiresCheckinForScrubs",
37128
+ override_limit: "overrideLimit",
37129
+ override_limit_days: "overrideLimitDays"
37130
+ });
37108
37131
  });
37109
- ((PasswordRequiredResponse$) => {
37110
- PasswordRequiredResponse$.inboundSchema = PasswordRequiredResponse$inboundSchema;
37111
- PasswordRequiredResponse$.outboundSchema = PasswordRequiredResponse$outboundSchema;
37112
- })(PasswordRequiredResponse$ ||= {});
37113
- });
37114
-
37115
- // src/models/components/productvariant.ts
37116
- var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
37117
- var init_productvariant = __esm(() => {
37118
- init_lib();
37119
- ProductVariant$inboundSchema = objectType({
37120
- id: numberType().int().optional(),
37121
- amount: numberType().int().optional(),
37122
- total: numberType().int().optional()
37132
+ ZoneVendorPolicy$outboundSchema = objectType({
37133
+ allowGpsCheckin: booleanType().optional(),
37134
+ allowScrubs: booleanType().optional(),
37135
+ allowVendorScans: booleanType().optional(),
37136
+ requiresCheckinForScrubs: booleanType().optional(),
37137
+ overrideLimit: nullableType(numberType().int()).optional(),
37138
+ overrideLimitDays: nullableType(numberType().int()).optional()
37139
+ }).transform((v2) => {
37140
+ return remap(v2, {
37141
+ allowGpsCheckin: "allow_gps_checkin",
37142
+ allowScrubs: "allow_scrubs",
37143
+ allowVendorScans: "allow_vendor_scans",
37144
+ requiresCheckinForScrubs: "requires_checkin_for_scrubs",
37145
+ overrideLimit: "override_limit",
37146
+ overrideLimitDays: "override_limit_days"
37147
+ });
37123
37148
  });
37124
- ProductVariant$outboundSchema = objectType({
37125
- id: numberType().int().optional(),
37126
- amount: numberType().int().optional(),
37127
- total: numberType().int().optional()
37149
+ ((ZoneVendorPolicy$) => {
37150
+ ZoneVendorPolicy$.inboundSchema = ZoneVendorPolicy$inboundSchema;
37151
+ ZoneVendorPolicy$.outboundSchema = ZoneVendorPolicy$outboundSchema;
37152
+ })(ZoneVendorPolicy$ ||= {});
37153
+ ZoneVisitorCheckinPolicy$inboundSchema = objectType({
37154
+ allow_checkin: booleanType().optional(),
37155
+ allow_visiting: booleanType().optional(),
37156
+ allow_visiting_rooms: booleanType().optional(),
37157
+ auto_checkout: booleanType().optional(),
37158
+ max_visitor_count: nullableType(numberType().int()).optional()
37159
+ }).transform((v2) => {
37160
+ return remap(v2, {
37161
+ allow_checkin: "allowCheckin",
37162
+ allow_visiting: "allowVisiting",
37163
+ allow_visiting_rooms: "allowVisitingRooms",
37164
+ auto_checkout: "autoCheckout",
37165
+ max_visitor_count: "maxVisitorCount"
37166
+ });
37128
37167
  });
37129
- ((ProductVariant$) => {
37130
- ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
37131
- ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
37132
- })(ProductVariant$ ||= {});
37133
- });
37134
-
37135
- // src/models/components/samlloginrequiredresponse.ts
37136
- var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
37137
- var init_samlloginrequiredresponse = __esm(() => {
37138
- init_lib();
37139
- init_primitives();
37140
- SamlLoginRequiredResponseRequires = {
37141
- SamlLogin: "saml_login"
37142
- };
37143
- SamlLoginRequiredResponseRequires$inboundSchema = nativeEnumType(SamlLoginRequiredResponseRequires);
37144
- SamlLoginRequiredResponseRequires$outboundSchema = SamlLoginRequiredResponseRequires$inboundSchema;
37145
- ((SamlLoginRequiredResponseRequires$) => {
37146
- SamlLoginRequiredResponseRequires$.inboundSchema = SamlLoginRequiredResponseRequires$inboundSchema;
37147
- SamlLoginRequiredResponseRequires$.outboundSchema = SamlLoginRequiredResponseRequires$outboundSchema;
37148
- })(SamlLoginRequiredResponseRequires$ ||= {});
37149
- SamlLoginRequiredResponse$inboundSchema = objectType({
37150
- requires: SamlLoginRequiredResponseRequires$inboundSchema,
37151
- success: booleanType(),
37152
- error: stringType(),
37153
- sso_instructions: stringType().optional(),
37154
- sso_url: stringType()
37168
+ ZoneVisitorCheckinPolicy$outboundSchema = objectType({
37169
+ allowCheckin: booleanType().optional(),
37170
+ allowVisiting: booleanType().optional(),
37171
+ allowVisitingRooms: booleanType().optional(),
37172
+ autoCheckout: booleanType().optional(),
37173
+ maxVisitorCount: nullableType(numberType().int()).optional()
37155
37174
  }).transform((v2) => {
37156
37175
  return remap(v2, {
37157
- sso_instructions: "ssoInstructions",
37158
- sso_url: "ssoUrl"
37176
+ allowCheckin: "allow_checkin",
37177
+ allowVisiting: "allow_visiting",
37178
+ allowVisitingRooms: "allow_visiting_rooms",
37179
+ autoCheckout: "auto_checkout",
37180
+ maxVisitorCount: "max_visitor_count"
37159
37181
  });
37160
37182
  });
37161
- SamlLoginRequiredResponse$outboundSchema = objectType({
37162
- requires: SamlLoginRequiredResponseRequires$outboundSchema,
37163
- success: booleanType(),
37164
- error: stringType(),
37165
- ssoInstructions: stringType().optional(),
37166
- ssoUrl: stringType()
37183
+ ((ZoneVisitorCheckinPolicy$) => {
37184
+ ZoneVisitorCheckinPolicy$.inboundSchema = ZoneVisitorCheckinPolicy$inboundSchema;
37185
+ ZoneVisitorCheckinPolicy$.outboundSchema = ZoneVisitorCheckinPolicy$outboundSchema;
37186
+ })(ZoneVisitorCheckinPolicy$ ||= {});
37187
+ ZoneVisitRequestPolicy$inboundSchema = objectType({
37188
+ allow_visiting: booleanType().optional(),
37189
+ watchlist_hit_message: nullableType(stringType()).optional(),
37190
+ watchdog_hit_message: nullableType(stringType()).optional(),
37191
+ guest_limit_exceeded_message: nullableType(stringType()).optional(),
37192
+ denied_background_vendor_message: nullableType(stringType()).optional(),
37193
+ locked_vendor_message: nullableType(stringType()).optional(),
37194
+ stop_checkin_message: nullableType(stringType()).optional(),
37195
+ success_message: nullableType(stringType()).optional(),
37196
+ show_general_visitor: booleanType().optional(),
37197
+ restrict_to_scan_only: booleanType().optional()
37167
37198
  }).transform((v2) => {
37168
37199
  return remap(v2, {
37169
- ssoInstructions: "sso_instructions",
37170
- ssoUrl: "sso_url"
37200
+ allow_visiting: "allowVisiting",
37201
+ watchlist_hit_message: "watchlistHitMessage",
37202
+ watchdog_hit_message: "watchdogHitMessage",
37203
+ guest_limit_exceeded_message: "guestLimitExceededMessage",
37204
+ denied_background_vendor_message: "deniedBackgroundVendorMessage",
37205
+ locked_vendor_message: "lockedVendorMessage",
37206
+ stop_checkin_message: "stopCheckinMessage",
37207
+ success_message: "successMessage",
37208
+ show_general_visitor: "showGeneralVisitor",
37209
+ restrict_to_scan_only: "restrictToScanOnly"
37171
37210
  });
37172
37211
  });
37173
- ((SamlLoginRequiredResponse$) => {
37174
- SamlLoginRequiredResponse$.inboundSchema = SamlLoginRequiredResponse$inboundSchema;
37175
- SamlLoginRequiredResponse$.outboundSchema = SamlLoginRequiredResponse$outboundSchema;
37176
- })(SamlLoginRequiredResponse$ ||= {});
37177
- });
37178
-
37179
- // src/models/components/scantype.ts
37180
- var ScanType, ScanType$inboundSchema, ScanType$outboundSchema, ScanType$;
37181
- var init_scantype = __esm(() => {
37182
- init_lib();
37183
- ScanType = {
37184
- In: "In",
37185
- Out: "Out",
37186
- Check: "Check"
37187
- };
37188
- ScanType$inboundSchema = nativeEnumType(ScanType);
37189
- ScanType$outboundSchema = ScanType$inboundSchema;
37190
- ((ScanType$) => {
37191
- ScanType$.inboundSchema = ScanType$inboundSchema;
37192
- ScanType$.outboundSchema = ScanType$outboundSchema;
37193
- })(ScanType$ ||= {});
37194
- });
37195
-
37196
- // src/models/components/security.ts
37197
- var Security$inboundSchema, Security$outboundSchema, Security$;
37198
- var init_security2 = __esm(() => {
37199
- init_lib();
37200
- init_primitives();
37201
- Security$inboundSchema = objectType({
37202
- token: stringType().optional(),
37203
- BearerJwt: stringType().optional()
37212
+ ZoneVisitRequestPolicy$outboundSchema = objectType({
37213
+ allowVisiting: booleanType().optional(),
37214
+ watchlistHitMessage: nullableType(stringType()).optional(),
37215
+ watchdogHitMessage: nullableType(stringType()).optional(),
37216
+ guestLimitExceededMessage: nullableType(stringType()).optional(),
37217
+ deniedBackgroundVendorMessage: nullableType(stringType()).optional(),
37218
+ lockedVendorMessage: nullableType(stringType()).optional(),
37219
+ stopCheckinMessage: nullableType(stringType()).optional(),
37220
+ successMessage: nullableType(stringType()).optional(),
37221
+ showGeneralVisitor: booleanType().optional(),
37222
+ restrictToScanOnly: booleanType().optional()
37204
37223
  }).transform((v2) => {
37205
37224
  return remap(v2, {
37206
- BearerJwt: "bearerJwt"
37225
+ allowVisiting: "allow_visiting",
37226
+ watchlistHitMessage: "watchlist_hit_message",
37227
+ watchdogHitMessage: "watchdog_hit_message",
37228
+ guestLimitExceededMessage: "guest_limit_exceeded_message",
37229
+ deniedBackgroundVendorMessage: "denied_background_vendor_message",
37230
+ lockedVendorMessage: "locked_vendor_message",
37231
+ stopCheckinMessage: "stop_checkin_message",
37232
+ successMessage: "success_message",
37233
+ showGeneralVisitor: "show_general_visitor",
37234
+ restrictToScanOnly: "restrict_to_scan_only"
37207
37235
  });
37208
37236
  });
37209
- Security$outboundSchema = objectType({
37210
- token: stringType().optional(),
37211
- bearerJwt: stringType().optional()
37237
+ ((ZoneVisitRequestPolicy$) => {
37238
+ ZoneVisitRequestPolicy$.inboundSchema = ZoneVisitRequestPolicy$inboundSchema;
37239
+ ZoneVisitRequestPolicy$.outboundSchema = ZoneVisitRequestPolicy$outboundSchema;
37240
+ })(ZoneVisitRequestPolicy$ ||= {});
37241
+ PrinterConfig$inboundSchema = objectType({
37242
+ type: nullableType(stringType()).optional(),
37243
+ name: nullableType(stringType()).optional(),
37244
+ dpi: nullableType(stringType()).optional(),
37245
+ ip: nullableType(stringType()).optional(),
37246
+ port: nullableType(stringType()).optional(),
37247
+ email: nullableType(stringType()).optional(),
37248
+ flip: booleanType().optional(),
37249
+ orientation: nullableType(stringType()).optional(),
37250
+ dymo_brightness_adjust: nullableType(numberType().int()).optional()
37212
37251
  }).transform((v2) => {
37213
37252
  return remap(v2, {
37214
- bearerJwt: "BearerJwt"
37253
+ dymo_brightness_adjust: "dymoBrightnessAdjust"
37215
37254
  });
37216
37255
  });
37217
- ((Security$) => {
37218
- Security$.inboundSchema = Security$inboundSchema;
37219
- Security$.outboundSchema = Security$outboundSchema;
37220
- })(Security$ ||= {});
37221
- });
37222
-
37223
- // src/models/components/state.ts
37224
- var State, State$inboundSchema, State$outboundSchema, State$;
37225
- var init_state = __esm(() => {
37226
- init_lib();
37227
- State = {
37228
- Al: "AL",
37229
- Ak: "AK",
37230
- Az: "AZ",
37231
- Ar: "AR",
37232
- Ca: "CA",
37233
- Co: "CO",
37234
- Ct: "CT",
37235
- De: "DE",
37236
- Dc: "DC",
37237
- Fl: "FL",
37238
- Ga: "GA",
37239
- Hi: "HI",
37240
- Id: "ID",
37241
- Il: "IL",
37242
- In: "IN",
37243
- Ia: "IA",
37244
- Ks: "KS",
37245
- Ky: "KY",
37246
- La: "LA",
37247
- Me: "ME",
37248
- Md: "MD",
37249
- Ma: "MA",
37250
- Mi: "MI",
37251
- Mn: "MN",
37252
- Ms: "MS",
37253
- Mo: "MO",
37254
- Mt: "MT",
37255
- Ne: "NE",
37256
- Nv: "NV",
37257
- Nh: "NH",
37258
- Nj: "NJ",
37259
- Nm: "NM",
37260
- Ny: "NY",
37261
- Nc: "NC",
37262
- Nd: "ND",
37263
- Oh: "OH",
37264
- Ok: "OK",
37265
- Or: "OR",
37266
- Pa: "PA",
37267
- Ri: "RI",
37268
- Sc: "SC",
37269
- Sd: "SD",
37270
- Tn: "TN",
37271
- Tx: "TX",
37272
- Ut: "UT",
37273
- Vt: "VT",
37274
- Va: "VA",
37275
- Wa: "WA",
37276
- Wv: "WV",
37277
- Wi: "WI",
37278
- Wy: "WY"
37279
- };
37280
- State$inboundSchema = nativeEnumType(State);
37281
- State$outboundSchema = State$inboundSchema;
37282
- ((State$) => {
37283
- State$.inboundSchema = State$inboundSchema;
37284
- State$.outboundSchema = State$outboundSchema;
37285
- })(State$ ||= {});
37286
- });
37287
-
37288
- // src/models/components/subscription.ts
37289
- var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
37290
- var init_subscription = __esm(() => {
37291
- init_lib();
37292
- init_primitives();
37293
- Subscription$inboundSchema = objectType({
37294
- id: nullableType(numberType().int()).optional(),
37295
- date_started: nullableType(stringType()).optional(),
37296
- date_ends: nullableType(stringType()).optional(),
37297
- status: nullableType(stringType()).optional(),
37298
- locked: nullableType(booleanType()).optional(),
37299
- variant_title: nullableType(stringType()).optional()
37256
+ PrinterConfig$outboundSchema = objectType({
37257
+ type: nullableType(stringType()).optional(),
37258
+ name: nullableType(stringType()).optional(),
37259
+ dpi: nullableType(stringType()).optional(),
37260
+ ip: nullableType(stringType()).optional(),
37261
+ port: nullableType(stringType()).optional(),
37262
+ email: nullableType(stringType()).optional(),
37263
+ flip: booleanType().optional(),
37264
+ orientation: nullableType(stringType()).optional(),
37265
+ dymoBrightnessAdjust: nullableType(numberType().int()).optional()
37300
37266
  }).transform((v2) => {
37301
37267
  return remap(v2, {
37302
- date_started: "dateStarted",
37303
- date_ends: "dateEnds",
37304
- variant_title: "variantTitle"
37268
+ dymoBrightnessAdjust: "dymo_brightness_adjust"
37305
37269
  });
37306
37270
  });
37307
- Subscription$outboundSchema = objectType({
37308
- id: nullableType(numberType().int()).optional(),
37309
- dateStarted: nullableType(stringType()).optional(),
37310
- dateEnds: nullableType(stringType()).optional(),
37311
- status: nullableType(stringType()).optional(),
37312
- locked: nullableType(booleanType()).optional(),
37313
- variantTitle: nullableType(stringType()).optional()
37271
+ ((PrinterConfig$) => {
37272
+ PrinterConfig$.inboundSchema = PrinterConfig$inboundSchema;
37273
+ PrinterConfig$.outboundSchema = PrinterConfig$outboundSchema;
37274
+ })(PrinterConfig$ ||= {});
37275
+ GpsCheckinPolicy$inboundSchema = objectType({
37276
+ latitude: nullableType(stringType()).optional(),
37277
+ longitude: nullableType(stringType()).optional(),
37278
+ gps_checkin_radius: nullableType(numberType().int()).optional(),
37279
+ geocode_error: nullableType(stringType()).optional()
37314
37280
  }).transform((v2) => {
37315
37281
  return remap(v2, {
37316
- dateStarted: "date_started",
37317
- dateEnds: "date_ends",
37318
- variantTitle: "variant_title"
37282
+ gps_checkin_radius: "gpsCheckinRadius",
37283
+ geocode_error: "geocodeError"
37319
37284
  });
37320
37285
  });
37321
- ((Subscription$) => {
37322
- Subscription$.inboundSchema = Subscription$inboundSchema;
37323
- Subscription$.outboundSchema = Subscription$outboundSchema;
37324
- })(Subscription$ ||= {});
37325
- });
37326
-
37327
- // src/models/components/supervisor.ts
37328
- var Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$;
37329
- var init_supervisor = __esm(() => {
37330
- init_lib();
37331
- Supervisor$inboundSchema = objectType({
37286
+ GpsCheckinPolicy$outboundSchema = objectType({
37287
+ latitude: nullableType(stringType()).optional(),
37288
+ longitude: nullableType(stringType()).optional(),
37289
+ gpsCheckinRadius: nullableType(numberType().int()).optional(),
37290
+ geocodeError: nullableType(stringType()).optional()
37291
+ }).transform((v2) => {
37292
+ return remap(v2, {
37293
+ gpsCheckinRadius: "gps_checkin_radius",
37294
+ geocodeError: "geocode_error"
37295
+ });
37296
+ });
37297
+ ((GpsCheckinPolicy$) => {
37298
+ GpsCheckinPolicy$.inboundSchema = GpsCheckinPolicy$inboundSchema;
37299
+ GpsCheckinPolicy$.outboundSchema = GpsCheckinPolicy$outboundSchema;
37300
+ })(GpsCheckinPolicy$ ||= {});
37301
+ Zone$inboundSchema = objectType({
37302
+ id: numberType().int().optional(),
37303
+ facility: nullableType(unionType([Facility$inboundSchema, numberType().int()])).optional(),
37304
+ department: nullableType(unionType([Department$inboundSchema, numberType().int()])).optional(),
37332
37305
  name: nullableType(stringType()).optional(),
37333
- email: anyType().optional(),
37334
- phone: nullableType(stringType()).optional()
37306
+ short_name: nullableType(stringType()).optional(),
37307
+ description: nullableType(stringType()).optional(),
37308
+ status: nullableType(stringType()).optional(),
37309
+ notes: nullableType(stringType()).optional(),
37310
+ rules: nullableType(arrayType(nullableType(ZoneConfig$inboundSchema))).optional(),
37311
+ location: lazyType(() => ZoneLocation$inboundSchema).optional(),
37312
+ kiosk_offline_notification: lazyType(() => KioskOfflineNotification$inboundSchema).optional(),
37313
+ vendor_policy: lazyType(() => ZoneVendorPolicy$inboundSchema).optional(),
37314
+ visitor_checkin_policy: lazyType(() => ZoneVisitorCheckinPolicy$inboundSchema).optional(),
37315
+ visit_request_policy: lazyType(() => ZoneVisitRequestPolicy$inboundSchema).optional(),
37316
+ printer_config: lazyType(() => PrinterConfig$inboundSchema).optional(),
37317
+ gps_checkin_policy: lazyType(() => GpsCheckinPolicy$inboundSchema).optional()
37318
+ }).transform((v2) => {
37319
+ return remap(v2, {
37320
+ short_name: "shortName",
37321
+ kiosk_offline_notification: "kioskOfflineNotification",
37322
+ vendor_policy: "vendorPolicy",
37323
+ visitor_checkin_policy: "visitorCheckinPolicy",
37324
+ visit_request_policy: "visitRequestPolicy",
37325
+ printer_config: "printerConfig",
37326
+ gps_checkin_policy: "gpsCheckinPolicy"
37327
+ });
37335
37328
  });
37336
- Supervisor$outboundSchema = objectType({
37329
+ Zone$outboundSchema = objectType({
37330
+ id: numberType().int().optional(),
37331
+ facility: nullableType(unionType([Facility$outboundSchema, numberType().int()])).optional(),
37332
+ department: nullableType(unionType([Department$outboundSchema, numberType().int()])).optional(),
37337
37333
  name: nullableType(stringType()).optional(),
37338
- email: anyType().optional(),
37339
- phone: nullableType(stringType()).optional()
37334
+ shortName: nullableType(stringType()).optional(),
37335
+ description: nullableType(stringType()).optional(),
37336
+ status: nullableType(stringType()).optional(),
37337
+ notes: nullableType(stringType()).optional(),
37338
+ rules: nullableType(arrayType(nullableType(ZoneConfig$outboundSchema))).optional(),
37339
+ location: lazyType(() => ZoneLocation$outboundSchema).optional(),
37340
+ kioskOfflineNotification: lazyType(() => KioskOfflineNotification$outboundSchema).optional(),
37341
+ vendorPolicy: lazyType(() => ZoneVendorPolicy$outboundSchema).optional(),
37342
+ visitorCheckinPolicy: lazyType(() => ZoneVisitorCheckinPolicy$outboundSchema).optional(),
37343
+ visitRequestPolicy: lazyType(() => ZoneVisitRequestPolicy$outboundSchema).optional(),
37344
+ printerConfig: lazyType(() => PrinterConfig$outboundSchema).optional(),
37345
+ gpsCheckinPolicy: lazyType(() => GpsCheckinPolicy$outboundSchema).optional()
37346
+ }).transform((v2) => {
37347
+ return remap(v2, {
37348
+ shortName: "short_name",
37349
+ kioskOfflineNotification: "kiosk_offline_notification",
37350
+ vendorPolicy: "vendor_policy",
37351
+ visitorCheckinPolicy: "visitor_checkin_policy",
37352
+ visitRequestPolicy: "visit_request_policy",
37353
+ printerConfig: "printer_config",
37354
+ gpsCheckinPolicy: "gps_checkin_policy"
37355
+ });
37340
37356
  });
37341
- ((Supervisor$) => {
37342
- Supervisor$.inboundSchema = Supervisor$inboundSchema;
37343
- Supervisor$.outboundSchema = Supervisor$outboundSchema;
37344
- })(Supervisor$ ||= {});
37357
+ ((Zone$) => {
37358
+ Zone$.inboundSchema = Zone$inboundSchema;
37359
+ Zone$.outboundSchema = Zone$outboundSchema;
37360
+ })(Zone$ ||= {});
37345
37361
  });
37346
37362
 
37347
- // src/models/components/supportarticle.ts
37348
- var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
37349
- var init_supportarticle = __esm(() => {
37363
+ // src/models/components/handoff.ts
37364
+ var Handoff$inboundSchema, Handoff$outboundSchema, Handoff$;
37365
+ var init_handoff = __esm(() => {
37350
37366
  init_lib();
37351
37367
  init_primitives();
37352
- SupportArticle$inboundSchema = objectType({
37353
- id: numberType().int(),
37354
- title: nullableType(stringType()),
37355
- description: nullableType(stringType()).optional(),
37356
- content: nullableType(stringType()).optional(),
37357
- published: nullableType(booleanType()).optional(),
37358
- notes: nullableType(stringType()).optional(),
37359
- video_url: nullableType(stringType()).optional(),
37360
- category: nullableType(stringType()).optional()
37368
+ init_zone();
37369
+ Handoff$inboundSchema = objectType({
37370
+ id: numberType().int().optional(),
37371
+ zone: Zone$inboundSchema.optional(),
37372
+ qr_code: nullableType(stringType()).optional(),
37373
+ date_created: nullableType(stringType()).optional(),
37374
+ date_received: nullableType(stringType()).optional(),
37375
+ date_completed: nullableType(stringType()).optional(),
37376
+ status: nullableType(stringType()).optional(),
37377
+ gps_checkin: booleanType().optional()
37361
37378
  }).transform((v2) => {
37362
37379
  return remap(v2, {
37363
- video_url: "videoUrl"
37380
+ qr_code: "qrCode",
37381
+ date_created: "dateCreated",
37382
+ date_received: "dateReceived",
37383
+ date_completed: "dateCompleted",
37384
+ gps_checkin: "gpsCheckin"
37364
37385
  });
37365
37386
  });
37366
- SupportArticle$outboundSchema = objectType({
37367
- id: numberType().int(),
37368
- title: nullableType(stringType()),
37369
- description: nullableType(stringType()).optional(),
37370
- content: nullableType(stringType()).optional(),
37371
- published: nullableType(booleanType()).optional(),
37372
- notes: nullableType(stringType()).optional(),
37373
- videoUrl: nullableType(stringType()).optional(),
37374
- category: nullableType(stringType()).optional()
37387
+ Handoff$outboundSchema = objectType({
37388
+ id: numberType().int().optional(),
37389
+ zone: Zone$outboundSchema.optional(),
37390
+ qrCode: nullableType(stringType()).optional(),
37391
+ dateCreated: nullableType(stringType()).optional(),
37392
+ dateReceived: nullableType(stringType()).optional(),
37393
+ dateCompleted: nullableType(stringType()).optional(),
37394
+ status: nullableType(stringType()).optional(),
37395
+ gpsCheckin: booleanType().optional()
37375
37396
  }).transform((v2) => {
37376
37397
  return remap(v2, {
37377
- videoUrl: "video_url"
37398
+ qrCode: "qr_code",
37399
+ dateCreated: "date_created",
37400
+ dateReceived: "date_received",
37401
+ dateCompleted: "date_completed",
37402
+ gpsCheckin: "gps_checkin"
37378
37403
  });
37379
37404
  });
37380
- ((SupportArticle$) => {
37381
- SupportArticle$.inboundSchema = SupportArticle$inboundSchema;
37382
- SupportArticle$.outboundSchema = SupportArticle$outboundSchema;
37383
- })(SupportArticle$ ||= {});
37405
+ ((Handoff$) => {
37406
+ Handoff$.inboundSchema = Handoff$inboundSchema;
37407
+ Handoff$.outboundSchema = Handoff$outboundSchema;
37408
+ })(Handoff$ ||= {});
37384
37409
  });
37385
37410
 
37386
- // src/models/components/userlocation.ts
37387
- var Timezone, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
37388
- var init_userlocation = __esm(() => {
37411
+ // src/models/components/invoiceitem.ts
37412
+ var InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
37413
+ var init_invoiceitem = __esm(() => {
37389
37414
  init_lib();
37390
37415
  init_primitives();
37391
- init_state();
37392
- Timezone = {
37393
- InternationalDateLineWest: "International Date Line West",
37394
- MidwayIsland: "Midway Island",
37395
- AmericanSamoa: "American Samoa",
37396
- Hawaii: "Hawaii",
37397
- Alaska: "Alaska",
37398
- PacificTimeUSAndCanada: "Pacific Time (US & Canada)",
37399
- Tijuana: "Tijuana",
37400
- MountainTimeUSAndCanada: "Mountain Time (US & Canada)",
37401
- Arizona: "Arizona",
37402
- Chihuahua: "Chihuahua",
37403
- Mazatlan: "Mazatlan",
37404
- CentralTimeUSAndCanada: "Central Time (US & Canada)",
37405
- Saskatchewan: "Saskatchewan",
37406
- Guadalajara: "Guadalajara",
37407
- MexicoCity: "Mexico City",
37408
- Monterrey: "Monterrey",
37409
- CentralAmerica: "Central America",
37410
- EasternTimeUSAndCanada: "Eastern Time (US & Canada)",
37411
- IndianaEast: "Indiana (East)",
37412
- Bogota: "Bogota",
37413
- Lima: "Lima",
37414
- Quito: "Quito",
37415
- AtlanticTimeCanada: "Atlantic Time (Canada)",
37416
- Caracas: "Caracas",
37417
- LaPaz: "La Paz",
37418
- Santiago: "Santiago",
37419
- Newfoundland: "Newfoundland",
37420
- Brasilia: "Brasilia",
37421
- BuenosAires: "Buenos Aires",
37422
- Montevideo: "Montevideo",
37423
- Georgetown: "Georgetown",
37424
- PuertoRico: "Puerto Rico",
37425
- Greenland: "Greenland",
37426
- MidAtlantic: "Mid-Atlantic",
37427
- Azores: "Azores",
37428
- CapeVerdeIs: "Cape Verde Is.",
37429
- Dublin: "Dublin",
37430
- Edinburgh: "Edinburgh",
37431
- Lisbon: "Lisbon",
37432
- London: "London",
37433
- Casablanca: "Casablanca",
37434
- Monrovia: "Monrovia",
37435
- Utc: "UTC",
37436
- Belgrade: "Belgrade",
37437
- Bratislava: "Bratislava",
37438
- Budapest: "Budapest",
37439
- Ljubljana: "Ljubljana",
37440
- Prague: "Prague",
37441
- Sarajevo: "Sarajevo",
37442
- Skopje: "Skopje",
37443
- Warsaw: "Warsaw",
37444
- Zagreb: "Zagreb",
37445
- Brussels: "Brussels",
37446
- Copenhagen: "Copenhagen",
37447
- Madrid: "Madrid",
37448
- Paris: "Paris",
37449
- Amsterdam: "Amsterdam",
37450
- Berlin: "Berlin",
37451
- Bern: "Bern",
37452
- Zurich: "Zurich",
37453
- Rome: "Rome",
37454
- Stockholm: "Stockholm",
37455
- Vienna: "Vienna",
37456
- WestCentralAfrica: "West Central Africa",
37457
- Bucharest: "Bucharest",
37458
- Cairo: "Cairo",
37459
- Helsinki: "Helsinki",
37460
- Kyiv: "Kyiv",
37461
- Riga: "Riga",
37462
- Sofia: "Sofia",
37463
- Tallinn: "Tallinn",
37464
- Vilnius: "Vilnius",
37465
- Athens: "Athens",
37466
- Istanbul: "Istanbul",
37467
- Minsk: "Minsk",
37468
- Jerusalem: "Jerusalem",
37469
- Harare: "Harare",
37470
- Pretoria: "Pretoria",
37471
- Kaliningrad: "Kaliningrad",
37472
- Moscow: "Moscow",
37473
- StPetersburg: "St. Petersburg",
37474
- Volgograd: "Volgograd",
37475
- Samara: "Samara",
37476
- Kuwait: "Kuwait",
37477
- Riyadh: "Riyadh",
37478
- Nairobi: "Nairobi",
37479
- Baghdad: "Baghdad",
37480
- Tehran: "Tehran",
37481
- AbuDhabi: "Abu Dhabi",
37482
- Muscat: "Muscat",
37483
- Baku: "Baku",
37484
- Tbilisi: "Tbilisi",
37485
- Yerevan: "Yerevan",
37486
- Kabul: "Kabul",
37487
- Ekaterinburg: "Ekaterinburg",
37488
- Islamabad: "Islamabad",
37489
- Karachi: "Karachi",
37490
- Tashkent: "Tashkent",
37491
- Chennai: "Chennai",
37492
- Kolkata: "Kolkata",
37493
- Mumbai: "Mumbai",
37494
- NewDelhi: "New Delhi",
37495
- Kathmandu: "Kathmandu",
37496
- Astana: "Astana",
37497
- Dhaka: "Dhaka",
37498
- SriJayawardenepura: "Sri Jayawardenepura",
37499
- Almaty: "Almaty",
37500
- Novosibirsk: "Novosibirsk",
37501
- Rangoon: "Rangoon",
37502
- Bangkok: "Bangkok",
37503
- Hanoi: "Hanoi",
37504
- Jakarta: "Jakarta",
37505
- Krasnoyarsk: "Krasnoyarsk",
37506
- Beijing: "Beijing",
37507
- Chongqing: "Chongqing",
37508
- HongKong: "Hong Kong",
37509
- Urumqi: "Urumqi",
37510
- KualaLumpur: "Kuala Lumpur",
37511
- Singapore: "Singapore",
37512
- Taipei: "Taipei",
37513
- Perth: "Perth",
37514
- Irkutsk: "Irkutsk",
37515
- Ulaanbaatar: "Ulaanbaatar",
37516
- Seoul: "Seoul",
37517
- Osaka: "Osaka",
37518
- Sapporo: "Sapporo",
37519
- Tokyo: "Tokyo",
37520
- Yakutsk: "Yakutsk",
37521
- Darwin: "Darwin",
37522
- Adelaide: "Adelaide",
37523
- Canberra: "Canberra",
37524
- Melbourne: "Melbourne",
37525
- Sydney: "Sydney",
37526
- Brisbane: "Brisbane",
37527
- Hobart: "Hobart",
37528
- Vladivostok: "Vladivostok",
37529
- Guam: "Guam",
37530
- PortMoresby: "Port Moresby",
37531
- Magadan: "Magadan",
37532
- Srednekolymsk: "Srednekolymsk",
37533
- SolomonIs: "Solomon Is.",
37534
- NewCaledonia: "New Caledonia",
37535
- Fiji: "Fiji",
37536
- Kamchatka: "Kamchatka",
37537
- MarshallIs: "Marshall Is.",
37538
- Auckland: "Auckland",
37539
- Wellington: "Wellington",
37540
- NukuAlofa: "Nuku'alofa",
37541
- TokelauIs: "Tokelau Is.",
37542
- ChathamIs: "Chatham Is.",
37543
- Samoa: "Samoa"
37544
- };
37545
- Timezone$inboundSchema = nativeEnumType(Timezone);
37546
- Timezone$outboundSchema = Timezone$inboundSchema;
37547
- ((Timezone$) => {
37548
- Timezone$.inboundSchema = Timezone$inboundSchema;
37549
- Timezone$.outboundSchema = Timezone$outboundSchema;
37550
- })(Timezone$ ||= {});
37551
- UserLocation$inboundSchema = objectType({
37552
- address: nullableType(stringType()).optional(),
37553
- address1: nullableType(stringType()).optional(),
37554
- address2: nullableType(stringType()).optional(),
37555
- city: nullableType(stringType()).optional(),
37556
- state: nullableType(State$inboundSchema).optional(),
37557
- zip: nullableType(stringType()).optional(),
37558
- phone: nullableType(stringType()).optional(),
37559
- mobile_phone: nullableType(stringType()).optional(),
37560
- fax: nullableType(stringType()).optional(),
37561
- country: nullableType(stringType()).optional(),
37562
- timezone: nullableType(Timezone$inboundSchema).optional()
37416
+ InvoiceItem$inboundSchema = objectType({
37417
+ item_id: numberType().int().optional(),
37418
+ date_starts: nullableType(stringType()).optional(),
37419
+ date_ends: nullableType(stringType()).optional(),
37420
+ is_subscription: nullableType(booleanType()).optional(),
37421
+ product_title: nullableType(stringType()).optional(),
37422
+ item_title: nullableType(stringType()).optional(),
37423
+ quantity: nullableType(numberType()).optional(),
37424
+ unit_price: nullableType(numberType().int()).optional(),
37425
+ subtotal: nullableType(numberType().int()).optional()
37563
37426
  }).transform((v2) => {
37564
37427
  return remap(v2, {
37565
- mobile_phone: "mobilePhone"
37428
+ item_id: "itemId",
37429
+ date_starts: "dateStarts",
37430
+ date_ends: "dateEnds",
37431
+ is_subscription: "isSubscription",
37432
+ product_title: "productTitle",
37433
+ item_title: "itemTitle",
37434
+ unit_price: "unitPrice"
37566
37435
  });
37567
37436
  });
37568
- UserLocation$outboundSchema = objectType({
37569
- address: nullableType(stringType()).optional(),
37570
- address1: nullableType(stringType()).optional(),
37571
- address2: nullableType(stringType()).optional(),
37572
- city: nullableType(stringType()).optional(),
37573
- state: nullableType(State$outboundSchema).optional(),
37574
- zip: nullableType(stringType()).optional(),
37575
- phone: nullableType(stringType()).optional(),
37576
- mobilePhone: nullableType(stringType()).optional(),
37577
- fax: nullableType(stringType()).optional(),
37578
- country: nullableType(stringType()).optional(),
37579
- timezone: nullableType(Timezone$outboundSchema).optional()
37437
+ InvoiceItem$outboundSchema = objectType({
37438
+ itemId: numberType().int().optional(),
37439
+ dateStarts: nullableType(stringType()).optional(),
37440
+ dateEnds: nullableType(stringType()).optional(),
37441
+ isSubscription: nullableType(booleanType()).optional(),
37442
+ productTitle: nullableType(stringType()).optional(),
37443
+ itemTitle: nullableType(stringType()).optional(),
37444
+ quantity: nullableType(numberType()).optional(),
37445
+ unitPrice: nullableType(numberType().int()).optional(),
37446
+ subtotal: nullableType(numberType().int()).optional()
37580
37447
  }).transform((v2) => {
37581
37448
  return remap(v2, {
37582
- mobilePhone: "mobile_phone"
37449
+ itemId: "item_id",
37450
+ dateStarts: "date_starts",
37451
+ dateEnds: "date_ends",
37452
+ isSubscription: "is_subscription",
37453
+ productTitle: "product_title",
37454
+ itemTitle: "item_title",
37455
+ unitPrice: "unit_price"
37583
37456
  });
37584
37457
  });
37585
- ((UserLocation$) => {
37586
- UserLocation$.inboundSchema = UserLocation$inboundSchema;
37587
- UserLocation$.outboundSchema = UserLocation$outboundSchema;
37588
- })(UserLocation$ ||= {});
37458
+ ((InvoiceItem$) => {
37459
+ InvoiceItem$.inboundSchema = InvoiceItem$inboundSchema;
37460
+ InvoiceItem$.outboundSchema = InvoiceItem$outboundSchema;
37461
+ })(InvoiceItem$ ||= {});
37589
37462
  });
37590
37463
 
37591
- // src/models/components/vendor.ts
37592
- var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
37593
- var init_vendor = __esm(() => {
37464
+ // src/models/components/invoicetransaction.ts
37465
+ var InvoiceTransaction$inboundSchema, InvoiceTransaction$outboundSchema, InvoiceTransaction$;
37466
+ var init_invoicetransaction = __esm(() => {
37594
37467
  init_lib();
37595
37468
  init_primitives();
37596
- init_company();
37597
- init_department();
37598
- init_facility();
37599
- init_imageset();
37600
- init_subscription();
37601
- init_supervisor();
37602
- init_userlocation();
37603
- One$inboundSchema = objectType({
37604
- id: numberType().int().optional(),
37605
- first_name: nullableType(stringType()).optional(),
37606
- last_name: anyType().optional(),
37607
- email: nullableType(stringType()).optional(),
37608
- phone: nullableType(stringType()).optional(),
37609
- mobile_phone: nullableType(stringType()).optional(),
37610
- fax: nullableType(stringType()).optional(),
37611
- user_type: nullableType(stringType()).optional(),
37612
- timezone: nullableType(stringType()).optional(),
37613
- qr_code: nullableType(stringType()).optional(),
37614
- image_urls: nullableType(ImageSet$inboundSchema).optional(),
37615
- location: nullableType(UserLocation$inboundSchema).optional()
37616
- }).transform((v2) => {
37617
- return remap(v2, {
37618
- first_name: "firstName",
37619
- last_name: "lastName",
37620
- mobile_phone: "mobilePhone",
37621
- user_type: "userType",
37622
- qr_code: "qrCode",
37623
- image_urls: "imageUrls"
37624
- });
37625
- });
37626
- One$outboundSchema = objectType({
37627
- id: numberType().int().optional(),
37628
- firstName: nullableType(stringType()).optional(),
37629
- lastName: anyType().optional(),
37630
- email: nullableType(stringType()).optional(),
37631
- phone: nullableType(stringType()).optional(),
37632
- mobilePhone: nullableType(stringType()).optional(),
37633
- fax: nullableType(stringType()).optional(),
37634
- userType: nullableType(stringType()).optional(),
37635
- timezone: nullableType(stringType()).optional(),
37636
- qrCode: nullableType(stringType()).optional(),
37637
- imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37638
- location: nullableType(UserLocation$outboundSchema).optional()
37469
+ InvoiceTransaction$inboundSchema = objectType({
37470
+ date_processed: nullableType(stringType()).optional(),
37471
+ payee: nullableType(stringType()).optional(),
37472
+ amount: nullableType(numberType().int()).optional(),
37473
+ credit_id: nullableType(numberType().int()).optional(),
37474
+ transaction_id: nullableType(stringType()).optional(),
37475
+ success: nullableType(booleanType()).optional(),
37476
+ card_last4: nullableType(stringType()).optional()
37639
37477
  }).transform((v2) => {
37640
37478
  return remap(v2, {
37641
- firstName: "first_name",
37642
- lastName: "last_name",
37643
- mobilePhone: "mobile_phone",
37644
- userType: "user_type",
37645
- qrCode: "qr_code",
37646
- imageUrls: "image_urls"
37647
- });
37648
- });
37649
- ((One$) => {
37650
- One$.inboundSchema = One$inboundSchema;
37651
- One$.outboundSchema = One$outboundSchema;
37652
- })(One$ ||= {});
37653
- VendorUser$inboundSchema = unionType([lazyType(() => One$inboundSchema), numberType().int()]);
37654
- VendorUser$outboundSchema = unionType([lazyType(() => One$outboundSchema), numberType().int()]);
37655
- ((VendorUser$) => {
37656
- VendorUser$.inboundSchema = VendorUser$inboundSchema;
37657
- VendorUser$.outboundSchema = VendorUser$outboundSchema;
37658
- })(VendorUser$ ||= {});
37659
- VendorType1$inboundSchema = objectType({
37660
- id: numberType().int().optional(),
37661
- name: stringType().optional()
37662
- });
37663
- VendorType1$outboundSchema = objectType({
37664
- id: numberType().int().optional(),
37665
- name: stringType().optional()
37479
+ date_processed: "dateProcessed",
37480
+ credit_id: "creditId",
37481
+ transaction_id: "transactionId",
37482
+ card_last4: "cardLast4"
37483
+ });
37666
37484
  });
37667
- ((VendorType1$) => {
37668
- VendorType1$.inboundSchema = VendorType1$inboundSchema;
37669
- VendorType1$.outboundSchema = VendorType1$outboundSchema;
37670
- })(VendorType1$ ||= {});
37671
- VendorVendorType$inboundSchema = unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()]);
37672
- VendorVendorType$outboundSchema = unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()]);
37673
- ((VendorVendorType$) => {
37674
- VendorVendorType$.inboundSchema = VendorVendorType$inboundSchema;
37675
- VendorVendorType$.outboundSchema = VendorVendorType$outboundSchema;
37676
- })(VendorVendorType$ ||= {});
37677
- PaymentProfile1$inboundSchema = objectType({
37678
- id: numberType().int().optional(),
37679
- is_valid: nullableType(booleanType()).optional(),
37680
- card_type: nullableType(stringType()).optional(),
37681
- card_last4: nullableType(stringType()).optional(),
37682
- is_dummy: nullableType(booleanType()).optional(),
37683
- profile_type: nullableType(stringType()).optional()
37485
+ InvoiceTransaction$outboundSchema = objectType({
37486
+ dateProcessed: nullableType(stringType()).optional(),
37487
+ payee: nullableType(stringType()).optional(),
37488
+ amount: nullableType(numberType().int()).optional(),
37489
+ creditId: nullableType(numberType().int()).optional(),
37490
+ transactionId: nullableType(stringType()).optional(),
37491
+ success: nullableType(booleanType()).optional(),
37492
+ cardLast4: nullableType(stringType()).optional()
37684
37493
  }).transform((v2) => {
37685
37494
  return remap(v2, {
37686
- is_valid: "isValid",
37687
- card_type: "cardType",
37688
- card_last4: "cardLast4",
37689
- is_dummy: "isDummy",
37690
- profile_type: "profileType"
37495
+ dateProcessed: "date_processed",
37496
+ creditId: "credit_id",
37497
+ transactionId: "transaction_id",
37498
+ cardLast4: "card_last4"
37691
37499
  });
37692
37500
  });
37693
- PaymentProfile1$outboundSchema = objectType({
37694
- id: numberType().int().optional(),
37695
- isValid: nullableType(booleanType()).optional(),
37696
- cardType: nullableType(stringType()).optional(),
37697
- cardLast4: nullableType(stringType()).optional(),
37698
- isDummy: nullableType(booleanType()).optional(),
37699
- profileType: nullableType(stringType()).optional()
37501
+ ((InvoiceTransaction$) => {
37502
+ InvoiceTransaction$.inboundSchema = InvoiceTransaction$inboundSchema;
37503
+ InvoiceTransaction$.outboundSchema = InvoiceTransaction$outboundSchema;
37504
+ })(InvoiceTransaction$ ||= {});
37505
+ });
37506
+
37507
+ // src/models/components/invoice.ts
37508
+ var Invoice$inboundSchema, Invoice$outboundSchema, Invoice$;
37509
+ var init_invoice = __esm(() => {
37510
+ init_lib();
37511
+ init_primitives();
37512
+ init_invoiceitem();
37513
+ init_invoicetransaction();
37514
+ Invoice$inboundSchema = objectType({
37515
+ id: numberType().int(),
37516
+ invoice_number: nullableType(stringType()).optional(),
37517
+ date_processed: nullableType(stringType()).optional(),
37518
+ amount: nullableType(numberType().int()).optional(),
37519
+ status: nullableType(stringType()).optional(),
37520
+ financial_status: nullableType(stringType()).optional(),
37521
+ amount_not_paid: nullableType(numberType().int()).optional(),
37522
+ tax: nullableType(numberType().int()).optional(),
37523
+ convenience_fee: nullableType(numberType()).optional(),
37524
+ shipping: nullableType(numberType().int()).optional(),
37525
+ discount: numberType().int().optional(),
37526
+ items: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
37527
+ transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
37700
37528
  }).transform((v2) => {
37701
37529
  return remap(v2, {
37702
- isValid: "is_valid",
37703
- cardType: "card_type",
37704
- cardLast4: "card_last4",
37705
- isDummy: "is_dummy",
37706
- profileType: "profile_type"
37530
+ invoice_number: "invoiceNumber",
37531
+ date_processed: "dateProcessed",
37532
+ financial_status: "financialStatus",
37533
+ amount_not_paid: "amountNotPaid",
37534
+ convenience_fee: "convenienceFee"
37707
37535
  });
37708
37536
  });
37709
- ((PaymentProfile1$) => {
37710
- PaymentProfile1$.inboundSchema = PaymentProfile1$inboundSchema;
37711
- PaymentProfile1$.outboundSchema = PaymentProfile1$outboundSchema;
37712
- })(PaymentProfile1$ ||= {});
37713
- PaymentProfilePaymentProfile$inboundSchema = unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]);
37714
- PaymentProfilePaymentProfile$outboundSchema = unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]);
37715
- ((PaymentProfilePaymentProfile$) => {
37716
- PaymentProfilePaymentProfile$.inboundSchema = PaymentProfilePaymentProfile$inboundSchema;
37717
- PaymentProfilePaymentProfile$.outboundSchema = PaymentProfilePaymentProfile$outboundSchema;
37718
- })(PaymentProfilePaymentProfile$ ||= {});
37719
- PaymentProfile$inboundSchema = unionType([
37720
- unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]),
37721
- numberType().int()
37722
- ]);
37723
- PaymentProfile$outboundSchema = unionType([
37724
- unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
37725
- numberType().int()
37726
- ]);
37727
- ((PaymentProfile$) => {
37728
- PaymentProfile$.inboundSchema = PaymentProfile$inboundSchema;
37729
- PaymentProfile$.outboundSchema = PaymentProfile$outboundSchema;
37730
- })(PaymentProfile$ ||= {});
37731
- PaymentResponsibility$inboundSchema = objectType({
37732
- id: nullableType(numberType().int()).optional(),
37733
- company_manager_id: nullableType(numberType().int()).optional(),
37734
- credentialing_subscription: nullableType(booleanType()).optional(),
37735
- scrubs_subscription: nullableType(booleanType()).optional(),
37736
- scrub_credits: nullableType(booleanType()).optional(),
37737
- hard_badge_initial: nullableType(booleanType()).optional(),
37738
- hard_badge_extra: nullableType(booleanType()).optional(),
37739
- other_invoices: nullableType(booleanType()).optional(),
37740
- facility_id: nullableType(numberType().int()).optional(),
37741
- company_id: nullableType(numberType().int()).optional(),
37742
- credentialing_subscription_user_id: nullableType(numberType().int()).optional(),
37743
- scrubs_subscription_user_id: nullableType(numberType().int()).optional(),
37744
- scrub_credits_user_id: nullableType(numberType().int()).optional(),
37745
- hard_badge_initial_user_id: nullableType(numberType().int()).optional(),
37746
- hard_badge_extra_user_id: nullableType(numberType().int()).optional(),
37747
- other_invoices_user_id: nullableType(numberType().int()).optional()
37537
+ Invoice$outboundSchema = objectType({
37538
+ id: numberType().int(),
37539
+ invoiceNumber: nullableType(stringType()).optional(),
37540
+ dateProcessed: nullableType(stringType()).optional(),
37541
+ amount: nullableType(numberType().int()).optional(),
37542
+ status: nullableType(stringType()).optional(),
37543
+ financialStatus: nullableType(stringType()).optional(),
37544
+ amountNotPaid: nullableType(numberType().int()).optional(),
37545
+ tax: nullableType(numberType().int()).optional(),
37546
+ convenienceFee: nullableType(numberType()).optional(),
37547
+ shipping: nullableType(numberType().int()).optional(),
37548
+ discount: numberType().int().optional(),
37549
+ items: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
37550
+ transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
37748
37551
  }).transform((v2) => {
37749
37552
  return remap(v2, {
37750
- company_manager_id: "companyManagerId",
37751
- credentialing_subscription: "credentialingSubscription",
37752
- scrubs_subscription: "scrubsSubscription",
37753
- scrub_credits: "scrubCredits",
37754
- hard_badge_initial: "hardBadgeInitial",
37755
- hard_badge_extra: "hardBadgeExtra",
37756
- other_invoices: "otherInvoices",
37757
- facility_id: "facilityId",
37758
- company_id: "companyId",
37759
- credentialing_subscription_user_id: "credentialingSubscriptionUserId",
37760
- scrubs_subscription_user_id: "scrubsSubscriptionUserId",
37761
- scrub_credits_user_id: "scrubCreditsUserId",
37762
- hard_badge_initial_user_id: "hardBadgeInitialUserId",
37763
- hard_badge_extra_user_id: "hardBadgeExtraUserId",
37764
- other_invoices_user_id: "otherInvoicesUserId"
37553
+ invoiceNumber: "invoice_number",
37554
+ dateProcessed: "date_processed",
37555
+ financialStatus: "financial_status",
37556
+ amountNotPaid: "amount_not_paid",
37557
+ convenienceFee: "convenience_fee"
37765
37558
  });
37766
37559
  });
37767
- PaymentResponsibility$outboundSchema = objectType({
37768
- id: nullableType(numberType().int()).optional(),
37769
- companyManagerId: nullableType(numberType().int()).optional(),
37770
- credentialingSubscription: nullableType(booleanType()).optional(),
37771
- scrubsSubscription: nullableType(booleanType()).optional(),
37772
- scrubCredits: nullableType(booleanType()).optional(),
37773
- hardBadgeInitial: nullableType(booleanType()).optional(),
37774
- hardBadgeExtra: nullableType(booleanType()).optional(),
37775
- otherInvoices: nullableType(booleanType()).optional(),
37776
- facilityId: nullableType(numberType().int()).optional(),
37777
- companyId: nullableType(numberType().int()).optional(),
37778
- credentialingSubscriptionUserId: nullableType(numberType().int()).optional(),
37779
- scrubsSubscriptionUserId: nullableType(numberType().int()).optional(),
37780
- scrubCreditsUserId: nullableType(numberType().int()).optional(),
37781
- hardBadgeInitialUserId: nullableType(numberType().int()).optional(),
37782
- hardBadgeExtraUserId: nullableType(numberType().int()).optional(),
37783
- otherInvoicesUserId: nullableType(numberType().int()).optional()
37560
+ ((Invoice$) => {
37561
+ Invoice$.inboundSchema = Invoice$inboundSchema;
37562
+ Invoice$.outboundSchema = Invoice$outboundSchema;
37563
+ })(Invoice$ ||= {});
37564
+ });
37565
+
37566
+ // src/models/components/loginemailandpassword.ts
37567
+ var LoginEmailAndPassword$inboundSchema, LoginEmailAndPassword$outboundSchema, LoginEmailAndPassword$;
37568
+ var init_loginemailandpassword = __esm(() => {
37569
+ init_lib();
37570
+ init_primitives();
37571
+ LoginEmailAndPassword$inboundSchema = objectType({
37572
+ email: stringType(),
37573
+ mfa_code: stringType().optional(),
37574
+ password: stringType()
37784
37575
  }).transform((v2) => {
37785
37576
  return remap(v2, {
37786
- companyManagerId: "company_manager_id",
37787
- credentialingSubscription: "credentialing_subscription",
37788
- scrubsSubscription: "scrubs_subscription",
37789
- scrubCredits: "scrub_credits",
37790
- hardBadgeInitial: "hard_badge_initial",
37791
- hardBadgeExtra: "hard_badge_extra",
37792
- otherInvoices: "other_invoices",
37793
- facilityId: "facility_id",
37794
- companyId: "company_id",
37795
- credentialingSubscriptionUserId: "credentialing_subscription_user_id",
37796
- scrubsSubscriptionUserId: "scrubs_subscription_user_id",
37797
- scrubCreditsUserId: "scrub_credits_user_id",
37798
- hardBadgeInitialUserId: "hard_badge_initial_user_id",
37799
- hardBadgeExtraUserId: "hard_badge_extra_user_id",
37800
- otherInvoicesUserId: "other_invoices_user_id"
37577
+ mfa_code: "mfaCode"
37801
37578
  });
37802
37579
  });
37803
- ((PaymentResponsibility$) => {
37804
- PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
37805
- PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
37806
- })(PaymentResponsibility$ ||= {});
37807
- Vendor$inboundSchema = objectType({
37808
- id: numberType().int().optional(),
37809
- email_recepient: nullableType(stringType()).optional(),
37810
- send_weekly_summary_email: nullableType(booleanType()).optional(),
37811
- title: nullableType(stringType()).optional(),
37812
- user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
37813
- vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
37814
- supervisor: nullableType(Supervisor$inboundSchema).optional(),
37815
- qr_code: nullableType(stringType()).optional(),
37816
- head_shot: nullableType(ImageSet$inboundSchema).optional(),
37817
- drivers_license: nullableType(ImageSet$inboundSchema).optional(),
37818
- image_urls: nullableType(ImageSet$inboundSchema).optional(),
37819
- payment_profile: nullableType(unionType([
37820
- unionType([
37821
- lazyType(() => PaymentProfile1$inboundSchema),
37822
- numberType().int()
37823
- ]),
37824
- numberType().int()
37825
- ])).optional(),
37826
- primary_facility: nullableType(Facility$inboundSchema).optional(),
37827
- primary_department: nullableType(Department$inboundSchema).optional(),
37828
- company: nullableType(Company$inboundSchema).optional(),
37829
- credentialing_subscription: nullableType(Subscription$inboundSchema).optional(),
37830
- scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
37831
- payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
37832
- background_check_date_expires: nullableType(stringType()).optional()
37580
+ LoginEmailAndPassword$outboundSchema = objectType({
37581
+ email: stringType(),
37582
+ mfaCode: stringType().optional(),
37583
+ password: stringType()
37833
37584
  }).transform((v2) => {
37834
37585
  return remap(v2, {
37835
- email_recepient: "emailRecepient",
37836
- send_weekly_summary_email: "sendWeeklySummaryEmail",
37837
- vendor_type: "vendorType",
37838
- qr_code: "qrCode",
37839
- head_shot: "headShot",
37840
- drivers_license: "driversLicense",
37841
- image_urls: "imageUrls",
37842
- payment_profile: "paymentProfile",
37843
- primary_facility: "primaryFacility",
37844
- primary_department: "primaryDepartment",
37845
- credentialing_subscription: "credentialingSubscription",
37846
- scrubs_subscription: "scrubsSubscription",
37847
- payment_responsibility: "paymentResponsibility",
37848
- background_check_date_expires: "backgroundCheckDateExpires"
37586
+ mfaCode: "mfa_code"
37587
+ });
37588
+ });
37589
+ ((LoginEmailAndPassword$) => {
37590
+ LoginEmailAndPassword$.inboundSchema = LoginEmailAndPassword$inboundSchema;
37591
+ LoginEmailAndPassword$.outboundSchema = LoginEmailAndPassword$outboundSchema;
37592
+ })(LoginEmailAndPassword$ ||= {});
37593
+ });
37594
+
37595
+ // src/models/components/loginrequirementsfromemail.ts
37596
+ var LoginRequirementsFromEmail$inboundSchema, LoginRequirementsFromEmail$outboundSchema, LoginRequirementsFromEmail$;
37597
+ var init_loginrequirementsfromemail = __esm(() => {
37598
+ init_lib();
37599
+ init_primitives();
37600
+ LoginRequirementsFromEmail$inboundSchema = objectType({
37601
+ email: stringType(),
37602
+ return_url: stringType()
37603
+ }).transform((v2) => {
37604
+ return remap(v2, {
37605
+ return_url: "returnUrl"
37849
37606
  });
37850
37607
  });
37851
- Vendor$outboundSchema = objectType({
37852
- id: numberType().int().optional(),
37853
- emailRecepient: nullableType(stringType()).optional(),
37854
- sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
37855
- title: nullableType(stringType()).optional(),
37856
- user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
37857
- vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
37858
- supervisor: nullableType(Supervisor$outboundSchema).optional(),
37859
- qrCode: nullableType(stringType()).optional(),
37860
- headShot: nullableType(ImageSet$outboundSchema).optional(),
37861
- driversLicense: nullableType(ImageSet$outboundSchema).optional(),
37862
- imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37863
- paymentProfile: nullableType(unionType([
37864
- unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
37865
- numberType().int()
37866
- ])).optional(),
37867
- primaryFacility: nullableType(Facility$outboundSchema).optional(),
37868
- primaryDepartment: nullableType(Department$outboundSchema).optional(),
37869
- company: nullableType(Company$outboundSchema).optional(),
37870
- credentialingSubscription: nullableType(Subscription$outboundSchema).optional(),
37871
- scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
37872
- paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
37873
- backgroundCheckDateExpires: nullableType(stringType()).optional()
37608
+ LoginRequirementsFromEmail$outboundSchema = objectType({
37609
+ email: stringType(),
37610
+ returnUrl: stringType()
37874
37611
  }).transform((v2) => {
37875
37612
  return remap(v2, {
37876
- emailRecepient: "email_recepient",
37877
- sendWeeklySummaryEmail: "send_weekly_summary_email",
37878
- vendorType: "vendor_type",
37879
- qrCode: "qr_code",
37880
- headShot: "head_shot",
37881
- driversLicense: "drivers_license",
37882
- imageUrls: "image_urls",
37883
- paymentProfile: "payment_profile",
37884
- primaryFacility: "primary_facility",
37885
- primaryDepartment: "primary_department",
37886
- credentialingSubscription: "credentialing_subscription",
37887
- scrubsSubscription: "scrubs_subscription",
37888
- paymentResponsibility: "payment_responsibility",
37889
- backgroundCheckDateExpires: "background_check_date_expires"
37613
+ returnUrl: "return_url"
37890
37614
  });
37891
37615
  });
37892
- ((Vendor$) => {
37893
- Vendor$.inboundSchema = Vendor$inboundSchema;
37894
- Vendor$.outboundSchema = Vendor$outboundSchema;
37895
- })(Vendor$ ||= {});
37616
+ ((LoginRequirementsFromEmail$) => {
37617
+ LoginRequirementsFromEmail$.inboundSchema = LoginRequirementsFromEmail$inboundSchema;
37618
+ LoginRequirementsFromEmail$.outboundSchema = LoginRequirementsFromEmail$outboundSchema;
37619
+ })(LoginRequirementsFromEmail$ ||= {});
37896
37620
  });
37897
37621
 
37898
- // src/models/components/user.ts
37899
- var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
37900
- var init_user = __esm(() => {
37622
+ // src/models/components/mfarequiredresponse.ts
37623
+ var MfaRequiredResponseRequires, MfaMethod, MfaRequiredResponseRequires$inboundSchema, MfaRequiredResponseRequires$outboundSchema, MfaRequiredResponseRequires$, MfaMethod$inboundSchema, MfaMethod$outboundSchema, MfaMethod$, MfaRequiredResponse$inboundSchema, MfaRequiredResponse$outboundSchema, MfaRequiredResponse$;
37624
+ var init_mfarequiredresponse = __esm(() => {
37901
37625
  init_lib();
37902
37626
  init_primitives();
37903
- init_company();
37904
- init_contact();
37905
- init_imageset();
37906
- init_userlocation();
37907
- init_vendor();
37908
- UserType = {
37909
- Api: "API",
37910
- Admin: "Admin",
37911
- CompanyManager: "Company Manager",
37912
- FacilityAdmin: "Facility Admin",
37913
- FacilityUser: "Facility User",
37914
- InventoryManager: "Inventory Manager",
37915
- SystemUser: "System User",
37916
- UserType: "User Type",
37917
- Vendor: "Vendor"
37627
+ MfaRequiredResponseRequires = {
37628
+ MfaCode: "mfa_code"
37918
37629
  };
37919
- TokenType = {
37920
- Permanent: "permanent",
37921
- OneTime: "one time"
37630
+ MfaMethod = {
37631
+ Text: "text",
37632
+ Email: "email"
37922
37633
  };
37923
- UserType$inboundSchema = nativeEnumType(UserType);
37924
- UserType$outboundSchema = UserType$inboundSchema;
37925
- ((UserType$) => {
37926
- UserType$.inboundSchema = UserType$inboundSchema;
37927
- UserType$.outboundSchema = UserType$outboundSchema;
37928
- })(UserType$ ||= {});
37929
- UserUser$inboundSchema = objectType({
37930
- id: numberType().int(),
37931
- first_name: nullableType(stringType()).optional(),
37932
- last_name: nullableType(stringType()).optional(),
37933
- email: stringType(),
37934
- phone: nullableType(stringType()).optional(),
37935
- mobile_phone: nullableType(stringType()).optional(),
37936
- fax: nullableType(stringType()).optional(),
37937
- user_type: UserType$inboundSchema,
37938
- timezone: nullableType(stringType()).optional(),
37939
- image_urls: nullableType(ImageSet$inboundSchema).optional(),
37940
- location: nullableType(UserLocation$inboundSchema).optional()
37634
+ MfaRequiredResponseRequires$inboundSchema = nativeEnumType(MfaRequiredResponseRequires);
37635
+ MfaRequiredResponseRequires$outboundSchema = MfaRequiredResponseRequires$inboundSchema;
37636
+ ((MfaRequiredResponseRequires$) => {
37637
+ MfaRequiredResponseRequires$.inboundSchema = MfaRequiredResponseRequires$inboundSchema;
37638
+ MfaRequiredResponseRequires$.outboundSchema = MfaRequiredResponseRequires$outboundSchema;
37639
+ })(MfaRequiredResponseRequires$ ||= {});
37640
+ MfaMethod$inboundSchema = nativeEnumType(MfaMethod);
37641
+ MfaMethod$outboundSchema = MfaMethod$inboundSchema;
37642
+ ((MfaMethod$) => {
37643
+ MfaMethod$.inboundSchema = MfaMethod$inboundSchema;
37644
+ MfaMethod$.outboundSchema = MfaMethod$outboundSchema;
37645
+ })(MfaMethod$ ||= {});
37646
+ MfaRequiredResponse$inboundSchema = objectType({
37647
+ requires: MfaRequiredResponseRequires$inboundSchema,
37648
+ success: booleanType(),
37649
+ error: stringType(),
37650
+ mobile_phone: stringType().optional(),
37651
+ mfa_method: MfaMethod$inboundSchema.optional()
37941
37652
  }).transform((v2) => {
37942
37653
  return remap(v2, {
37943
- first_name: "firstName",
37944
- last_name: "lastName",
37945
37654
  mobile_phone: "mobilePhone",
37946
- user_type: "userType",
37947
- image_urls: "imageUrls"
37655
+ mfa_method: "mfaMethod"
37948
37656
  });
37949
37657
  });
37950
- UserUser$outboundSchema = objectType({
37951
- id: numberType().int(),
37952
- firstName: nullableType(stringType()).optional(),
37953
- lastName: nullableType(stringType()).optional(),
37954
- email: stringType(),
37955
- phone: nullableType(stringType()).optional(),
37956
- mobilePhone: nullableType(stringType()).optional(),
37957
- fax: nullableType(stringType()).optional(),
37958
- userType: UserType$outboundSchema,
37959
- timezone: nullableType(stringType()).optional(),
37960
- imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37961
- location: nullableType(UserLocation$outboundSchema).optional()
37658
+ MfaRequiredResponse$outboundSchema = objectType({
37659
+ requires: MfaRequiredResponseRequires$outboundSchema,
37660
+ success: booleanType(),
37661
+ error: stringType(),
37662
+ mobilePhone: stringType().optional(),
37663
+ mfaMethod: MfaMethod$outboundSchema.optional()
37962
37664
  }).transform((v2) => {
37963
37665
  return remap(v2, {
37964
- firstName: "first_name",
37965
- lastName: "last_name",
37966
37666
  mobilePhone: "mobile_phone",
37967
- userType: "user_type",
37968
- imageUrls: "image_urls"
37667
+ mfaMethod: "mfa_method"
37969
37668
  });
37970
37669
  });
37971
- ((UserUser$) => {
37972
- UserUser$.inboundSchema = UserUser$inboundSchema;
37973
- UserUser$.outboundSchema = UserUser$outboundSchema;
37974
- })(UserUser$ ||= {});
37975
- TokenType$inboundSchema = nativeEnumType(TokenType);
37976
- TokenType$outboundSchema = TokenType$inboundSchema;
37977
- ((TokenType$) => {
37978
- TokenType$.inboundSchema = TokenType$inboundSchema;
37979
- TokenType$.outboundSchema = TokenType$outboundSchema;
37980
- })(TokenType$ ||= {});
37981
- UserToken$inboundSchema = objectType({
37982
- token: stringType(),
37983
- token_type: TokenType$inboundSchema.default("permanent")
37670
+ ((MfaRequiredResponse$) => {
37671
+ MfaRequiredResponse$.inboundSchema = MfaRequiredResponse$inboundSchema;
37672
+ MfaRequiredResponse$.outboundSchema = MfaRequiredResponse$outboundSchema;
37673
+ })(MfaRequiredResponse$ ||= {});
37674
+ });
37675
+
37676
+ // src/models/components/pager.ts
37677
+ var Pager$inboundSchema, Pager$outboundSchema, Pager$;
37678
+ var init_pager = __esm(() => {
37679
+ init_lib();
37680
+ init_primitives();
37681
+ Pager$inboundSchema = objectType({
37682
+ base_url: stringType(),
37683
+ sort: stringType(),
37684
+ desc: numberType().int(),
37685
+ item_count: numberType().int(),
37686
+ items_per_page: numberType().int(),
37687
+ page: numberType().int(),
37688
+ use_url_params: booleanType()
37984
37689
  }).transform((v2) => {
37985
37690
  return remap(v2, {
37986
- token_type: "tokenType"
37691
+ base_url: "baseUrl",
37692
+ item_count: "itemCount",
37693
+ items_per_page: "itemsPerPage",
37694
+ use_url_params: "useUrlParams"
37987
37695
  });
37988
37696
  });
37989
- UserToken$outboundSchema = objectType({
37990
- token: stringType(),
37991
- tokenType: TokenType$outboundSchema.default("permanent")
37697
+ Pager$outboundSchema = objectType({
37698
+ baseUrl: stringType(),
37699
+ sort: stringType(),
37700
+ desc: numberType().int(),
37701
+ itemCount: numberType().int(),
37702
+ itemsPerPage: numberType().int(),
37703
+ page: numberType().int(),
37704
+ useUrlParams: booleanType()
37992
37705
  }).transform((v2) => {
37993
37706
  return remap(v2, {
37994
- tokenType: "token_type"
37707
+ baseUrl: "base_url",
37708
+ itemCount: "item_count",
37709
+ itemsPerPage: "items_per_page",
37710
+ useUrlParams: "use_url_params"
37995
37711
  });
37996
37712
  });
37997
- ((UserToken$) => {
37998
- UserToken$.inboundSchema = UserToken$inboundSchema;
37999
- UserToken$.outboundSchema = UserToken$outboundSchema;
38000
- })(UserToken$ ||= {});
38001
- InventoryManager$inboundSchema = objectType({});
38002
- InventoryManager$outboundSchema = objectType({});
38003
- ((InventoryManager$) => {
38004
- InventoryManager$.inboundSchema = InventoryManager$inboundSchema;
38005
- InventoryManager$.outboundSchema = InventoryManager$outboundSchema;
38006
- })(InventoryManager$ ||= {});
38007
- User$inboundSchema = objectType({
38008
- is_gatekeeper: booleanType().optional(),
37713
+ ((Pager$) => {
37714
+ Pager$.inboundSchema = Pager$inboundSchema;
37715
+ Pager$.outboundSchema = Pager$outboundSchema;
37716
+ })(Pager$ ||= {});
37717
+ });
37718
+
37719
+ // src/models/components/passwordrequiredresponse.ts
37720
+ var Requires, Requires$inboundSchema, Requires$outboundSchema, Requires$, PasswordRequiredResponse$inboundSchema, PasswordRequiredResponse$outboundSchema, PasswordRequiredResponse$;
37721
+ var init_passwordrequiredresponse = __esm(() => {
37722
+ init_lib();
37723
+ Requires = {
37724
+ Password: "password"
37725
+ };
37726
+ Requires$inboundSchema = nativeEnumType(Requires);
37727
+ Requires$outboundSchema = Requires$inboundSchema;
37728
+ ((Requires$) => {
37729
+ Requires$.inboundSchema = Requires$inboundSchema;
37730
+ Requires$.outboundSchema = Requires$outboundSchema;
37731
+ })(Requires$ ||= {});
37732
+ PasswordRequiredResponse$inboundSchema = objectType({
37733
+ requires: Requires$inboundSchema,
38009
37734
  success: booleanType(),
38010
- user: lazyType(() => UserUser$inboundSchema),
38011
- user_token: lazyType(() => UserToken$inboundSchema),
38012
- vendor: Vendor$inboundSchema.optional(),
38013
- inventory_manager: lazyType(() => InventoryManager$inboundSchema).optional(),
38014
- contact: Contact$inboundSchema.optional(),
38015
- company: nullableType(Company$inboundSchema).optional()
38016
- }).transform((v2) => {
38017
- return remap(v2, {
38018
- is_gatekeeper: "isGatekeeper",
38019
- user_token: "userToken",
38020
- inventory_manager: "inventoryManager"
38021
- });
38022
- });
38023
- User$outboundSchema = objectType({
38024
- isGatekeeper: booleanType().optional(),
37735
+ error: stringType()
37736
+ });
37737
+ PasswordRequiredResponse$outboundSchema = objectType({
37738
+ requires: Requires$outboundSchema,
38025
37739
  success: booleanType(),
38026
- user: lazyType(() => UserUser$outboundSchema),
38027
- userToken: lazyType(() => UserToken$outboundSchema),
38028
- vendor: Vendor$outboundSchema.optional(),
38029
- inventoryManager: lazyType(() => InventoryManager$outboundSchema).optional(),
38030
- contact: Contact$outboundSchema.optional(),
38031
- company: nullableType(Company$outboundSchema).optional()
38032
- }).transform((v2) => {
38033
- return remap(v2, {
38034
- isGatekeeper: "is_gatekeeper",
38035
- userToken: "user_token",
38036
- inventoryManager: "inventory_manager"
38037
- });
37740
+ error: stringType()
38038
37741
  });
38039
- ((User$) => {
38040
- User$.inboundSchema = User$inboundSchema;
38041
- User$.outboundSchema = User$outboundSchema;
38042
- })(User$ ||= {});
37742
+ ((PasswordRequiredResponse$) => {
37743
+ PasswordRequiredResponse$.inboundSchema = PasswordRequiredResponse$inboundSchema;
37744
+ PasswordRequiredResponse$.outboundSchema = PasswordRequiredResponse$outboundSchema;
37745
+ })(PasswordRequiredResponse$ ||= {});
38043
37746
  });
38044
37747
 
38045
- // src/models/components/vendoradditionalfacilityfields.ts
38046
- var VendorAdditionalFacilityFields$inboundSchema, VendorAdditionalFacilityFields$outboundSchema, VendorAdditionalFacilityFields$;
38047
- var init_vendoradditionalfacilityfields = __esm(() => {
37748
+ // src/models/components/productvariant.ts
37749
+ var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
37750
+ var init_productvariant = __esm(() => {
38048
37751
  init_lib();
38049
- VendorAdditionalFacilityFields$inboundSchema = objectType({
37752
+ ProductVariant$inboundSchema = objectType({
38050
37753
  id: numberType().int().optional(),
38051
- system: nullableType(stringType()).optional(),
38052
- facility: nullableType(stringType()).optional(),
38053
- field: nullableType(stringType()).optional(),
38054
- value: nullableType(stringType()).optional()
37754
+ amount: numberType().int().optional(),
37755
+ total: numberType().int().optional()
38055
37756
  });
38056
- VendorAdditionalFacilityFields$outboundSchema = objectType({
37757
+ ProductVariant$outboundSchema = objectType({
38057
37758
  id: numberType().int().optional(),
38058
- system: nullableType(stringType()).optional(),
38059
- facility: nullableType(stringType()).optional(),
38060
- field: nullableType(stringType()).optional(),
38061
- value: nullableType(stringType()).optional()
37759
+ amount: numberType().int().optional(),
37760
+ total: numberType().int().optional()
38062
37761
  });
38063
- ((VendorAdditionalFacilityFields$) => {
38064
- VendorAdditionalFacilityFields$.inboundSchema = VendorAdditionalFacilityFields$inboundSchema;
38065
- VendorAdditionalFacilityFields$.outboundSchema = VendorAdditionalFacilityFields$outboundSchema;
38066
- })(VendorAdditionalFacilityFields$ ||= {});
37762
+ ((ProductVariant$) => {
37763
+ ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
37764
+ ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
37765
+ })(ProductVariant$ ||= {});
38067
37766
  });
38068
37767
 
38069
- // src/models/components/vendorcredentialsummary.ts
38070
- var VendorCredentialSummary$inboundSchema, VendorCredentialSummary$outboundSchema, VendorCredentialSummary$;
38071
- var init_vendorcredentialsummary = __esm(() => {
37768
+ // src/models/components/samlloginrequiredresponse.ts
37769
+ var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
37770
+ var init_samlloginrequiredresponse = __esm(() => {
38072
37771
  init_lib();
38073
37772
  init_primitives();
38074
- init_company();
38075
- VendorCredentialSummary$inboundSchema = objectType({
38076
- id: numberType().int(),
38077
- status: nullableType(stringType()).optional(),
38078
- company: nullableType(Company$inboundSchema).optional(),
38079
- date_due: nullableType(stringType()).optional(),
38080
- date_expires: nullableType(stringType()).optional(),
38081
- notes: nullableType(stringType()).optional(),
38082
- expedited: booleanType().optional()
37773
+ SamlLoginRequiredResponseRequires = {
37774
+ SamlLogin: "saml_login"
37775
+ };
37776
+ SamlLoginRequiredResponseRequires$inboundSchema = nativeEnumType(SamlLoginRequiredResponseRequires);
37777
+ SamlLoginRequiredResponseRequires$outboundSchema = SamlLoginRequiredResponseRequires$inboundSchema;
37778
+ ((SamlLoginRequiredResponseRequires$) => {
37779
+ SamlLoginRequiredResponseRequires$.inboundSchema = SamlLoginRequiredResponseRequires$inboundSchema;
37780
+ SamlLoginRequiredResponseRequires$.outboundSchema = SamlLoginRequiredResponseRequires$outboundSchema;
37781
+ })(SamlLoginRequiredResponseRequires$ ||= {});
37782
+ SamlLoginRequiredResponse$inboundSchema = objectType({
37783
+ requires: SamlLoginRequiredResponseRequires$inboundSchema,
37784
+ success: booleanType(),
37785
+ error: stringType(),
37786
+ sso_instructions: stringType().optional(),
37787
+ sso_url: stringType()
38083
37788
  }).transform((v2) => {
38084
37789
  return remap(v2, {
38085
- date_due: "dateDue",
38086
- date_expires: "dateExpires"
37790
+ sso_instructions: "ssoInstructions",
37791
+ sso_url: "ssoUrl"
38087
37792
  });
38088
37793
  });
38089
- VendorCredentialSummary$outboundSchema = objectType({
38090
- id: numberType().int(),
38091
- status: nullableType(stringType()).optional(),
38092
- company: nullableType(Company$outboundSchema).optional(),
38093
- dateDue: nullableType(stringType()).optional(),
38094
- dateExpires: nullableType(stringType()).optional(),
38095
- notes: nullableType(stringType()).optional(),
38096
- expedited: booleanType().optional()
37794
+ SamlLoginRequiredResponse$outboundSchema = objectType({
37795
+ requires: SamlLoginRequiredResponseRequires$outboundSchema,
37796
+ success: booleanType(),
37797
+ error: stringType(),
37798
+ ssoInstructions: stringType().optional(),
37799
+ ssoUrl: stringType()
38097
37800
  }).transform((v2) => {
38098
37801
  return remap(v2, {
38099
- dateDue: "date_due",
38100
- dateExpires: "date_expires"
37802
+ ssoInstructions: "sso_instructions",
37803
+ ssoUrl: "sso_url"
38101
37804
  });
38102
37805
  });
38103
- ((VendorCredentialSummary$) => {
38104
- VendorCredentialSummary$.inboundSchema = VendorCredentialSummary$inboundSchema;
38105
- VendorCredentialSummary$.outboundSchema = VendorCredentialSummary$outboundSchema;
38106
- })(VendorCredentialSummary$ ||= {});
37806
+ ((SamlLoginRequiredResponse$) => {
37807
+ SamlLoginRequiredResponse$.inboundSchema = SamlLoginRequiredResponse$inboundSchema;
37808
+ SamlLoginRequiredResponse$.outboundSchema = SamlLoginRequiredResponse$outboundSchema;
37809
+ })(SamlLoginRequiredResponse$ ||= {});
38107
37810
  });
38108
37811
 
38109
- // src/models/components/vendorcredentialscontainer.ts
38110
- var VendorCredentialsContainer$inboundSchema, VendorCredentialsContainer$outboundSchema, VendorCredentialsContainer$;
38111
- var init_vendorcredentialscontainer = __esm(() => {
37812
+ // src/models/components/scantype.ts
37813
+ var ScanType, ScanType$inboundSchema, ScanType$outboundSchema, ScanType$;
37814
+ var init_scantype = __esm(() => {
37815
+ init_lib();
37816
+ ScanType = {
37817
+ In: "In",
37818
+ Out: "Out",
37819
+ Check: "Check"
37820
+ };
37821
+ ScanType$inboundSchema = nativeEnumType(ScanType);
37822
+ ScanType$outboundSchema = ScanType$inboundSchema;
37823
+ ((ScanType$) => {
37824
+ ScanType$.inboundSchema = ScanType$inboundSchema;
37825
+ ScanType$.outboundSchema = ScanType$outboundSchema;
37826
+ })(ScanType$ ||= {});
37827
+ });
37828
+
37829
+ // src/models/components/security.ts
37830
+ var Security$inboundSchema, Security$outboundSchema, Security$;
37831
+ var init_security2 = __esm(() => {
38112
37832
  init_lib();
38113
37833
  init_primitives();
38114
- init_vendorcredentialsummary();
38115
- VendorCredentialsContainer$inboundSchema = objectType({
38116
- vc: nullableType(VendorCredentialSummary$inboundSchema).optional(),
38117
- vc_last: nullableType(VendorCredentialSummary$inboundSchema).optional()
37834
+ Security$inboundSchema = objectType({
37835
+ token: stringType().optional(),
37836
+ BearerJwt: stringType().optional()
38118
37837
  }).transform((v2) => {
38119
37838
  return remap(v2, {
38120
- vc_last: "vcLast"
37839
+ BearerJwt: "bearerJwt"
38121
37840
  });
38122
37841
  });
38123
- VendorCredentialsContainer$outboundSchema = objectType({
38124
- vc: nullableType(VendorCredentialSummary$outboundSchema).optional(),
38125
- vcLast: nullableType(VendorCredentialSummary$outboundSchema).optional()
37842
+ Security$outboundSchema = objectType({
37843
+ token: stringType().optional(),
37844
+ bearerJwt: stringType().optional()
38126
37845
  }).transform((v2) => {
38127
37846
  return remap(v2, {
38128
- vcLast: "vc_last"
37847
+ bearerJwt: "BearerJwt"
38129
37848
  });
38130
37849
  });
38131
- ((VendorCredentialsContainer$) => {
38132
- VendorCredentialsContainer$.inboundSchema = VendorCredentialsContainer$inboundSchema;
38133
- VendorCredentialsContainer$.outboundSchema = VendorCredentialsContainer$outboundSchema;
38134
- })(VendorCredentialsContainer$ ||= {});
37850
+ ((Security$) => {
37851
+ Security$.inboundSchema = Security$inboundSchema;
37852
+ Security$.outboundSchema = Security$outboundSchema;
37853
+ })(Security$ ||= {});
38135
37854
  });
38136
37855
 
38137
- // src/models/components/vendorfacilitystatusview.ts
38138
- var VendorFacilityStatusView$inboundSchema, VendorFacilityStatusView$outboundSchema, VendorFacilityStatusView$;
38139
- var init_vendorfacilitystatusview = __esm(() => {
37856
+ // src/models/components/state.ts
37857
+ var State, State$inboundSchema, State$outboundSchema, State$;
37858
+ var init_state = __esm(() => {
37859
+ init_lib();
37860
+ State = {
37861
+ Al: "AL",
37862
+ Ak: "AK",
37863
+ Az: "AZ",
37864
+ Ar: "AR",
37865
+ Ca: "CA",
37866
+ Co: "CO",
37867
+ Ct: "CT",
37868
+ De: "DE",
37869
+ Dc: "DC",
37870
+ Fl: "FL",
37871
+ Ga: "GA",
37872
+ Hi: "HI",
37873
+ Id: "ID",
37874
+ Il: "IL",
37875
+ In: "IN",
37876
+ Ia: "IA",
37877
+ Ks: "KS",
37878
+ Ky: "KY",
37879
+ La: "LA",
37880
+ Me: "ME",
37881
+ Md: "MD",
37882
+ Ma: "MA",
37883
+ Mi: "MI",
37884
+ Mn: "MN",
37885
+ Ms: "MS",
37886
+ Mo: "MO",
37887
+ Mt: "MT",
37888
+ Ne: "NE",
37889
+ Nv: "NV",
37890
+ Nh: "NH",
37891
+ Nj: "NJ",
37892
+ Nm: "NM",
37893
+ Ny: "NY",
37894
+ Nc: "NC",
37895
+ Nd: "ND",
37896
+ Oh: "OH",
37897
+ Ok: "OK",
37898
+ Or: "OR",
37899
+ Pa: "PA",
37900
+ Ri: "RI",
37901
+ Sc: "SC",
37902
+ Sd: "SD",
37903
+ Tn: "TN",
37904
+ Tx: "TX",
37905
+ Ut: "UT",
37906
+ Vt: "VT",
37907
+ Va: "VA",
37908
+ Wa: "WA",
37909
+ Wv: "WV",
37910
+ Wi: "WI",
37911
+ Wy: "WY"
37912
+ };
37913
+ State$inboundSchema = nativeEnumType(State);
37914
+ State$outboundSchema = State$inboundSchema;
37915
+ ((State$) => {
37916
+ State$.inboundSchema = State$inboundSchema;
37917
+ State$.outboundSchema = State$outboundSchema;
37918
+ })(State$ ||= {});
37919
+ });
37920
+
37921
+ // src/models/components/subscription.ts
37922
+ var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
37923
+ var init_subscription = __esm(() => {
38140
37924
  init_lib();
38141
37925
  init_primitives();
38142
- VendorFacilityStatusView$inboundSchema = objectType({
38143
- vendor_id: numberType().int().optional(),
38144
- facility_id: numberType().int().optional(),
38145
- facility_name: stringType().optional(),
38146
- facility_status: nullableType(stringType()).optional(),
38147
- vendor_scan_id: nullableType(numberType().int()).optional(),
38148
- vendor_scan_type: nullableType(numberType().int()).optional()
37926
+ Subscription$inboundSchema = objectType({
37927
+ id: nullableType(numberType().int()).optional(),
37928
+ date_started: nullableType(stringType()).optional(),
37929
+ date_ends: nullableType(stringType()).optional(),
37930
+ status: nullableType(stringType()).optional(),
37931
+ locked: nullableType(booleanType()).optional(),
37932
+ variant_title: nullableType(stringType()).optional()
38149
37933
  }).transform((v2) => {
38150
37934
  return remap(v2, {
38151
- vendor_id: "vendorId",
38152
- facility_id: "facilityId",
38153
- facility_name: "facilityName",
38154
- facility_status: "facilityStatus",
38155
- vendor_scan_id: "vendorScanId",
38156
- vendor_scan_type: "vendorScanType"
37935
+ date_started: "dateStarted",
37936
+ date_ends: "dateEnds",
37937
+ variant_title: "variantTitle"
38157
37938
  });
38158
37939
  });
38159
- VendorFacilityStatusView$outboundSchema = objectType({
38160
- vendorId: numberType().int().optional(),
38161
- facilityId: numberType().int().optional(),
38162
- facilityName: stringType().optional(),
38163
- facilityStatus: nullableType(stringType()).optional(),
38164
- vendorScanId: nullableType(numberType().int()).optional(),
38165
- vendorScanType: nullableType(numberType().int()).optional()
37940
+ Subscription$outboundSchema = objectType({
37941
+ id: nullableType(numberType().int()).optional(),
37942
+ dateStarted: nullableType(stringType()).optional(),
37943
+ dateEnds: nullableType(stringType()).optional(),
37944
+ status: nullableType(stringType()).optional(),
37945
+ locked: nullableType(booleanType()).optional(),
37946
+ variantTitle: nullableType(stringType()).optional()
38166
37947
  }).transform((v2) => {
38167
37948
  return remap(v2, {
38168
- vendorId: "vendor_id",
38169
- facilityId: "facility_id",
38170
- facilityName: "facility_name",
38171
- facilityStatus: "facility_status",
38172
- vendorScanId: "vendor_scan_id",
38173
- vendorScanType: "vendor_scan_type"
37949
+ dateStarted: "date_started",
37950
+ dateEnds: "date_ends",
37951
+ variantTitle: "variant_title"
38174
37952
  });
38175
37953
  });
38176
- ((VendorFacilityStatusView$) => {
38177
- VendorFacilityStatusView$.inboundSchema = VendorFacilityStatusView$inboundSchema;
38178
- VendorFacilityStatusView$.outboundSchema = VendorFacilityStatusView$outboundSchema;
38179
- })(VendorFacilityStatusView$ ||= {});
37954
+ ((Subscription$) => {
37955
+ Subscription$.inboundSchema = Subscription$inboundSchema;
37956
+ Subscription$.outboundSchema = Subscription$outboundSchema;
37957
+ })(Subscription$ ||= {});
38180
37958
  });
38181
37959
 
38182
- // src/models/components/vendorjobtitle.ts
38183
- var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
38184
- var init_vendorjobtitle = __esm(() => {
37960
+ // src/models/components/supervisor.ts
37961
+ var Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$;
37962
+ var init_supervisor = __esm(() => {
38185
37963
  init_lib();
38186
- VendorJobTitle$inboundSchema = objectType({
38187
- id: numberType().int(),
38188
- job: stringType()
37964
+ Supervisor$inboundSchema = objectType({
37965
+ name: nullableType(stringType()).optional(),
37966
+ email: anyType().optional(),
37967
+ phone: nullableType(stringType()).optional()
38189
37968
  });
38190
- VendorJobTitle$outboundSchema = objectType({
38191
- id: numberType().int(),
38192
- job: stringType()
37969
+ Supervisor$outboundSchema = objectType({
37970
+ name: nullableType(stringType()).optional(),
37971
+ email: anyType().optional(),
37972
+ phone: nullableType(stringType()).optional()
38193
37973
  });
38194
- ((VendorJobTitle$) => {
38195
- VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
38196
- VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
38197
- })(VendorJobTitle$ ||= {});
37974
+ ((Supervisor$) => {
37975
+ Supervisor$.inboundSchema = Supervisor$inboundSchema;
37976
+ Supervisor$.outboundSchema = Supervisor$outboundSchema;
37977
+ })(Supervisor$ ||= {});
38198
37978
  });
38199
37979
 
38200
- // src/models/components/vendormanagedbycompany.ts
38201
- var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
38202
- var init_vendormanagedbycompany = __esm(() => {
37980
+ // src/models/components/supportarticle.ts
37981
+ var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
37982
+ var init_supportarticle = __esm(() => {
38203
37983
  init_lib();
38204
37984
  init_primitives();
38205
- VendorManagedByCompanyCompany$inboundSchema = objectType({
38206
- id: nullableType(numberType().int()).optional(),
38207
- name: nullableType(stringType()).optional()
37985
+ SupportArticle$inboundSchema = objectType({
37986
+ id: numberType().int(),
37987
+ title: nullableType(stringType()),
37988
+ description: nullableType(stringType()).optional(),
37989
+ content: nullableType(stringType()).optional(),
37990
+ published: nullableType(booleanType()).optional(),
37991
+ notes: nullableType(stringType()).optional(),
37992
+ video_url: nullableType(stringType()).optional(),
37993
+ category: nullableType(stringType()).optional()
37994
+ }).transform((v2) => {
37995
+ return remap(v2, {
37996
+ video_url: "videoUrl"
37997
+ });
38208
37998
  });
38209
- VendorManagedByCompanyCompany$outboundSchema = objectType({
38210
- id: nullableType(numberType().int()).optional(),
38211
- name: nullableType(stringType()).optional()
37999
+ SupportArticle$outboundSchema = objectType({
38000
+ id: numberType().int(),
38001
+ title: nullableType(stringType()),
38002
+ description: nullableType(stringType()).optional(),
38003
+ content: nullableType(stringType()).optional(),
38004
+ published: nullableType(booleanType()).optional(),
38005
+ notes: nullableType(stringType()).optional(),
38006
+ videoUrl: nullableType(stringType()).optional(),
38007
+ category: nullableType(stringType()).optional()
38008
+ }).transform((v2) => {
38009
+ return remap(v2, {
38010
+ videoUrl: "video_url"
38011
+ });
38212
38012
  });
38213
- ((VendorManagedByCompanyCompany$) => {
38214
- VendorManagedByCompanyCompany$.inboundSchema = VendorManagedByCompanyCompany$inboundSchema;
38215
- VendorManagedByCompanyCompany$.outboundSchema = VendorManagedByCompanyCompany$outboundSchema;
38216
- })(VendorManagedByCompanyCompany$ ||= {});
38217
- VendorManagedByCompany$inboundSchema = objectType({
38218
- id: numberType().int().optional(),
38219
- company: lazyType(() => VendorManagedByCompanyCompany$inboundSchema).optional(),
38220
- edit_profile: nullableType(booleanType()).optional(),
38221
- edit_facilities: nullableType(booleanType()).optional(),
38222
- upload_credentials: nullableType(booleanType()).optional(),
38223
- edit_credentialing_subscription: nullableType(booleanType()).optional(),
38224
- edit_scrubs_subscription: nullableType(booleanType()).optional(),
38225
- purchase_scrub_credits: nullableType(booleanType()).optional(),
38226
- pay_invoices: nullableType(booleanType()).optional()
38013
+ ((SupportArticle$) => {
38014
+ SupportArticle$.inboundSchema = SupportArticle$inboundSchema;
38015
+ SupportArticle$.outboundSchema = SupportArticle$outboundSchema;
38016
+ })(SupportArticle$ ||= {});
38017
+ });
38018
+
38019
+ // src/models/components/userlocation.ts
38020
+ var Timezone, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
38021
+ var init_userlocation = __esm(() => {
38022
+ init_lib();
38023
+ init_primitives();
38024
+ init_state();
38025
+ Timezone = {
38026
+ InternationalDateLineWest: "International Date Line West",
38027
+ MidwayIsland: "Midway Island",
38028
+ AmericanSamoa: "American Samoa",
38029
+ Hawaii: "Hawaii",
38030
+ Alaska: "Alaska",
38031
+ PacificTimeUSAndCanada: "Pacific Time (US & Canada)",
38032
+ Tijuana: "Tijuana",
38033
+ MountainTimeUSAndCanada: "Mountain Time (US & Canada)",
38034
+ Arizona: "Arizona",
38035
+ Chihuahua: "Chihuahua",
38036
+ Mazatlan: "Mazatlan",
38037
+ CentralTimeUSAndCanada: "Central Time (US & Canada)",
38038
+ Saskatchewan: "Saskatchewan",
38039
+ Guadalajara: "Guadalajara",
38040
+ MexicoCity: "Mexico City",
38041
+ Monterrey: "Monterrey",
38042
+ CentralAmerica: "Central America",
38043
+ EasternTimeUSAndCanada: "Eastern Time (US & Canada)",
38044
+ IndianaEast: "Indiana (East)",
38045
+ Bogota: "Bogota",
38046
+ Lima: "Lima",
38047
+ Quito: "Quito",
38048
+ AtlanticTimeCanada: "Atlantic Time (Canada)",
38049
+ Caracas: "Caracas",
38050
+ LaPaz: "La Paz",
38051
+ Santiago: "Santiago",
38052
+ Newfoundland: "Newfoundland",
38053
+ Brasilia: "Brasilia",
38054
+ BuenosAires: "Buenos Aires",
38055
+ Montevideo: "Montevideo",
38056
+ Georgetown: "Georgetown",
38057
+ PuertoRico: "Puerto Rico",
38058
+ Greenland: "Greenland",
38059
+ MidAtlantic: "Mid-Atlantic",
38060
+ Azores: "Azores",
38061
+ CapeVerdeIs: "Cape Verde Is.",
38062
+ Dublin: "Dublin",
38063
+ Edinburgh: "Edinburgh",
38064
+ Lisbon: "Lisbon",
38065
+ London: "London",
38066
+ Casablanca: "Casablanca",
38067
+ Monrovia: "Monrovia",
38068
+ Utc: "UTC",
38069
+ Belgrade: "Belgrade",
38070
+ Bratislava: "Bratislava",
38071
+ Budapest: "Budapest",
38072
+ Ljubljana: "Ljubljana",
38073
+ Prague: "Prague",
38074
+ Sarajevo: "Sarajevo",
38075
+ Skopje: "Skopje",
38076
+ Warsaw: "Warsaw",
38077
+ Zagreb: "Zagreb",
38078
+ Brussels: "Brussels",
38079
+ Copenhagen: "Copenhagen",
38080
+ Madrid: "Madrid",
38081
+ Paris: "Paris",
38082
+ Amsterdam: "Amsterdam",
38083
+ Berlin: "Berlin",
38084
+ Bern: "Bern",
38085
+ Zurich: "Zurich",
38086
+ Rome: "Rome",
38087
+ Stockholm: "Stockholm",
38088
+ Vienna: "Vienna",
38089
+ WestCentralAfrica: "West Central Africa",
38090
+ Bucharest: "Bucharest",
38091
+ Cairo: "Cairo",
38092
+ Helsinki: "Helsinki",
38093
+ Kyiv: "Kyiv",
38094
+ Riga: "Riga",
38095
+ Sofia: "Sofia",
38096
+ Tallinn: "Tallinn",
38097
+ Vilnius: "Vilnius",
38098
+ Athens: "Athens",
38099
+ Istanbul: "Istanbul",
38100
+ Minsk: "Minsk",
38101
+ Jerusalem: "Jerusalem",
38102
+ Harare: "Harare",
38103
+ Pretoria: "Pretoria",
38104
+ Kaliningrad: "Kaliningrad",
38105
+ Moscow: "Moscow",
38106
+ StPetersburg: "St. Petersburg",
38107
+ Volgograd: "Volgograd",
38108
+ Samara: "Samara",
38109
+ Kuwait: "Kuwait",
38110
+ Riyadh: "Riyadh",
38111
+ Nairobi: "Nairobi",
38112
+ Baghdad: "Baghdad",
38113
+ Tehran: "Tehran",
38114
+ AbuDhabi: "Abu Dhabi",
38115
+ Muscat: "Muscat",
38116
+ Baku: "Baku",
38117
+ Tbilisi: "Tbilisi",
38118
+ Yerevan: "Yerevan",
38119
+ Kabul: "Kabul",
38120
+ Ekaterinburg: "Ekaterinburg",
38121
+ Islamabad: "Islamabad",
38122
+ Karachi: "Karachi",
38123
+ Tashkent: "Tashkent",
38124
+ Chennai: "Chennai",
38125
+ Kolkata: "Kolkata",
38126
+ Mumbai: "Mumbai",
38127
+ NewDelhi: "New Delhi",
38128
+ Kathmandu: "Kathmandu",
38129
+ Astana: "Astana",
38130
+ Dhaka: "Dhaka",
38131
+ SriJayawardenepura: "Sri Jayawardenepura",
38132
+ Almaty: "Almaty",
38133
+ Novosibirsk: "Novosibirsk",
38134
+ Rangoon: "Rangoon",
38135
+ Bangkok: "Bangkok",
38136
+ Hanoi: "Hanoi",
38137
+ Jakarta: "Jakarta",
38138
+ Krasnoyarsk: "Krasnoyarsk",
38139
+ Beijing: "Beijing",
38140
+ Chongqing: "Chongqing",
38141
+ HongKong: "Hong Kong",
38142
+ Urumqi: "Urumqi",
38143
+ KualaLumpur: "Kuala Lumpur",
38144
+ Singapore: "Singapore",
38145
+ Taipei: "Taipei",
38146
+ Perth: "Perth",
38147
+ Irkutsk: "Irkutsk",
38148
+ Ulaanbaatar: "Ulaanbaatar",
38149
+ Seoul: "Seoul",
38150
+ Osaka: "Osaka",
38151
+ Sapporo: "Sapporo",
38152
+ Tokyo: "Tokyo",
38153
+ Yakutsk: "Yakutsk",
38154
+ Darwin: "Darwin",
38155
+ Adelaide: "Adelaide",
38156
+ Canberra: "Canberra",
38157
+ Melbourne: "Melbourne",
38158
+ Sydney: "Sydney",
38159
+ Brisbane: "Brisbane",
38160
+ Hobart: "Hobart",
38161
+ Vladivostok: "Vladivostok",
38162
+ Guam: "Guam",
38163
+ PortMoresby: "Port Moresby",
38164
+ Magadan: "Magadan",
38165
+ Srednekolymsk: "Srednekolymsk",
38166
+ SolomonIs: "Solomon Is.",
38167
+ NewCaledonia: "New Caledonia",
38168
+ Fiji: "Fiji",
38169
+ Kamchatka: "Kamchatka",
38170
+ MarshallIs: "Marshall Is.",
38171
+ Auckland: "Auckland",
38172
+ Wellington: "Wellington",
38173
+ NukuAlofa: "Nuku'alofa",
38174
+ TokelauIs: "Tokelau Is.",
38175
+ ChathamIs: "Chatham Is.",
38176
+ Samoa: "Samoa"
38177
+ };
38178
+ Timezone$inboundSchema = nativeEnumType(Timezone);
38179
+ Timezone$outboundSchema = Timezone$inboundSchema;
38180
+ ((Timezone$) => {
38181
+ Timezone$.inboundSchema = Timezone$inboundSchema;
38182
+ Timezone$.outboundSchema = Timezone$outboundSchema;
38183
+ })(Timezone$ ||= {});
38184
+ UserLocation$inboundSchema = objectType({
38185
+ address: nullableType(stringType()).optional(),
38186
+ address1: nullableType(stringType()).optional(),
38187
+ address2: nullableType(stringType()).optional(),
38188
+ city: nullableType(stringType()).optional(),
38189
+ state: nullableType(State$inboundSchema).optional(),
38190
+ zip: nullableType(stringType()).optional(),
38191
+ phone: nullableType(stringType()).optional(),
38192
+ mobile_phone: nullableType(stringType()).optional(),
38193
+ fax: nullableType(stringType()).optional(),
38194
+ country: nullableType(stringType()).optional(),
38195
+ timezone: nullableType(Timezone$inboundSchema).optional()
38227
38196
  }).transform((v2) => {
38228
38197
  return remap(v2, {
38229
- edit_profile: "editProfile",
38230
- edit_facilities: "editFacilities",
38231
- upload_credentials: "uploadCredentials",
38232
- edit_credentialing_subscription: "editCredentialingSubscription",
38233
- edit_scrubs_subscription: "editScrubsSubscription",
38234
- purchase_scrub_credits: "purchaseScrubCredits",
38235
- pay_invoices: "payInvoices"
38198
+ mobile_phone: "mobilePhone"
38236
38199
  });
38237
38200
  });
38238
- VendorManagedByCompany$outboundSchema = objectType({
38239
- id: numberType().int().optional(),
38240
- company: lazyType(() => VendorManagedByCompanyCompany$outboundSchema).optional(),
38241
- editProfile: nullableType(booleanType()).optional(),
38242
- editFacilities: nullableType(booleanType()).optional(),
38243
- uploadCredentials: nullableType(booleanType()).optional(),
38244
- editCredentialingSubscription: nullableType(booleanType()).optional(),
38245
- editScrubsSubscription: nullableType(booleanType()).optional(),
38246
- purchaseScrubCredits: nullableType(booleanType()).optional(),
38247
- payInvoices: nullableType(booleanType()).optional()
38201
+ UserLocation$outboundSchema = objectType({
38202
+ address: nullableType(stringType()).optional(),
38203
+ address1: nullableType(stringType()).optional(),
38204
+ address2: nullableType(stringType()).optional(),
38205
+ city: nullableType(stringType()).optional(),
38206
+ state: nullableType(State$outboundSchema).optional(),
38207
+ zip: nullableType(stringType()).optional(),
38208
+ phone: nullableType(stringType()).optional(),
38209
+ mobilePhone: nullableType(stringType()).optional(),
38210
+ fax: nullableType(stringType()).optional(),
38211
+ country: nullableType(stringType()).optional(),
38212
+ timezone: nullableType(Timezone$outboundSchema).optional()
38248
38213
  }).transform((v2) => {
38249
38214
  return remap(v2, {
38250
- editProfile: "edit_profile",
38251
- editFacilities: "edit_facilities",
38252
- uploadCredentials: "upload_credentials",
38253
- editCredentialingSubscription: "edit_credentialing_subscription",
38254
- editScrubsSubscription: "edit_scrubs_subscription",
38255
- purchaseScrubCredits: "purchase_scrub_credits",
38256
- payInvoices: "pay_invoices"
38215
+ mobilePhone: "mobile_phone"
38257
38216
  });
38258
38217
  });
38259
- ((VendorManagedByCompany$) => {
38260
- VendorManagedByCompany$.inboundSchema = VendorManagedByCompany$inboundSchema;
38261
- VendorManagedByCompany$.outboundSchema = VendorManagedByCompany$outboundSchema;
38262
- })(VendorManagedByCompany$ ||= {});
38218
+ ((UserLocation$) => {
38219
+ UserLocation$.inboundSchema = UserLocation$inboundSchema;
38220
+ UserLocation$.outboundSchema = UserLocation$outboundSchema;
38221
+ })(UserLocation$ ||= {});
38263
38222
  });
38264
38223
 
38265
- // src/models/components/vendorrequiredcredential.ts
38266
- var VendorRequiredCredential$inboundSchema, VendorRequiredCredential$outboundSchema, VendorRequiredCredential$;
38267
- var init_vendorrequiredcredential = __esm(() => {
38224
+ // src/models/components/vendor.ts
38225
+ var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
38226
+ var init_vendor = __esm(() => {
38268
38227
  init_lib();
38269
38228
  init_primitives();
38270
- VendorRequiredCredential$inboundSchema = objectType({
38229
+ init_company();
38230
+ init_department();
38231
+ init_facility();
38232
+ init_imageset();
38233
+ init_subscription();
38234
+ init_supervisor();
38235
+ init_userlocation();
38236
+ One$inboundSchema = objectType({
38271
38237
  id: numberType().int().optional(),
38272
- vendor_id: numberType().int().optional(),
38273
- facility_id: nullableType(numberType().int()).optional(),
38274
- credential_ids: nullableType(stringType()).optional(),
38275
- date_calculated: stringType().optional(),
38276
- company_credential_ids: nullableType(stringType()).optional()
38238
+ first_name: nullableType(stringType()).optional(),
38239
+ last_name: anyType().optional(),
38240
+ email: nullableType(stringType()).optional(),
38241
+ phone: nullableType(stringType()).optional(),
38242
+ mobile_phone: nullableType(stringType()).optional(),
38243
+ fax: nullableType(stringType()).optional(),
38244
+ user_type: nullableType(stringType()).optional(),
38245
+ timezone: nullableType(stringType()).optional(),
38246
+ qr_code: nullableType(stringType()).optional(),
38247
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
38248
+ location: nullableType(UserLocation$inboundSchema).optional()
38277
38249
  }).transform((v2) => {
38278
38250
  return remap(v2, {
38279
- vendor_id: "vendorId",
38280
- facility_id: "facilityId",
38281
- credential_ids: "credentialIds",
38282
- date_calculated: "dateCalculated",
38283
- company_credential_ids: "companyCredentialIds"
38251
+ first_name: "firstName",
38252
+ last_name: "lastName",
38253
+ mobile_phone: "mobilePhone",
38254
+ user_type: "userType",
38255
+ qr_code: "qrCode",
38256
+ image_urls: "imageUrls"
38284
38257
  });
38285
38258
  });
38286
- VendorRequiredCredential$outboundSchema = objectType({
38259
+ One$outboundSchema = objectType({
38287
38260
  id: numberType().int().optional(),
38288
- vendorId: numberType().int().optional(),
38289
- facilityId: nullableType(numberType().int()).optional(),
38290
- credentialIds: nullableType(stringType()).optional(),
38291
- dateCalculated: stringType().optional(),
38292
- companyCredentialIds: nullableType(stringType()).optional()
38261
+ firstName: nullableType(stringType()).optional(),
38262
+ lastName: anyType().optional(),
38263
+ email: nullableType(stringType()).optional(),
38264
+ phone: nullableType(stringType()).optional(),
38265
+ mobilePhone: nullableType(stringType()).optional(),
38266
+ fax: nullableType(stringType()).optional(),
38267
+ userType: nullableType(stringType()).optional(),
38268
+ timezone: nullableType(stringType()).optional(),
38269
+ qrCode: nullableType(stringType()).optional(),
38270
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
38271
+ location: nullableType(UserLocation$outboundSchema).optional()
38293
38272
  }).transform((v2) => {
38294
38273
  return remap(v2, {
38295
- vendorId: "vendor_id",
38296
- facilityId: "facility_id",
38297
- credentialIds: "credential_ids",
38298
- dateCalculated: "date_calculated",
38299
- companyCredentialIds: "company_credential_ids"
38274
+ firstName: "first_name",
38275
+ lastName: "last_name",
38276
+ mobilePhone: "mobile_phone",
38277
+ userType: "user_type",
38278
+ qrCode: "qr_code",
38279
+ imageUrls: "image_urls"
38300
38280
  });
38301
38281
  });
38302
- ((VendorRequiredCredential$) => {
38303
- VendorRequiredCredential$.inboundSchema = VendorRequiredCredential$inboundSchema;
38304
- VendorRequiredCredential$.outboundSchema = VendorRequiredCredential$outboundSchema;
38305
- })(VendorRequiredCredential$ ||= {});
38306
- });
38307
-
38308
- // src/models/components/vendorscrubdetails.ts
38309
- var VendorScrubDetails$inboundSchema, VendorScrubDetails$outboundSchema, VendorScrubDetails$;
38310
- var init_vendorscrubdetails = __esm(() => {
38311
- init_lib();
38312
- init_primitives();
38313
- VendorScrubDetails$inboundSchema = objectType({
38314
- scrub_top_size: nullableType(stringType()).optional(),
38315
- scrub_bottom_size: nullableType(stringType()).optional(),
38316
- scrub_color: nullableType(stringType()).optional(),
38317
- total_credits: nullableType(numberType().int()).optional(),
38318
- total_debits: nullableType(numberType().int()).optional(),
38319
- scrub_credits: nullableType(numberType().int()).optional()
38320
- }).transform((v2) => {
38321
- return remap(v2, {
38322
- scrub_top_size: "scrubTopSize",
38323
- scrub_bottom_size: "scrubBottomSize",
38324
- scrub_color: "scrubColor",
38325
- total_credits: "totalCredits",
38326
- total_debits: "totalDebits",
38327
- scrub_credits: "scrubCredits"
38328
- });
38282
+ ((One$) => {
38283
+ One$.inboundSchema = One$inboundSchema;
38284
+ One$.outboundSchema = One$outboundSchema;
38285
+ })(One$ ||= {});
38286
+ VendorUser$inboundSchema = unionType([lazyType(() => One$inboundSchema), numberType().int()]);
38287
+ VendorUser$outboundSchema = unionType([lazyType(() => One$outboundSchema), numberType().int()]);
38288
+ ((VendorUser$) => {
38289
+ VendorUser$.inboundSchema = VendorUser$inboundSchema;
38290
+ VendorUser$.outboundSchema = VendorUser$outboundSchema;
38291
+ })(VendorUser$ ||= {});
38292
+ VendorType1$inboundSchema = objectType({
38293
+ id: numberType().int().optional(),
38294
+ name: stringType().optional()
38329
38295
  });
38330
- VendorScrubDetails$outboundSchema = objectType({
38331
- scrubTopSize: nullableType(stringType()).optional(),
38332
- scrubBottomSize: nullableType(stringType()).optional(),
38333
- scrubColor: nullableType(stringType()).optional(),
38334
- totalCredits: nullableType(numberType().int()).optional(),
38335
- totalDebits: nullableType(numberType().int()).optional(),
38336
- scrubCredits: nullableType(numberType().int()).optional()
38337
- }).transform((v2) => {
38338
- return remap(v2, {
38339
- scrubTopSize: "scrub_top_size",
38340
- scrubBottomSize: "scrub_bottom_size",
38341
- scrubColor: "scrub_color",
38342
- totalCredits: "total_credits",
38343
- totalDebits: "total_debits",
38344
- scrubCredits: "scrub_credits"
38345
- });
38296
+ VendorType1$outboundSchema = objectType({
38297
+ id: numberType().int().optional(),
38298
+ name: stringType().optional()
38346
38299
  });
38347
- ((VendorScrubDetails$) => {
38348
- VendorScrubDetails$.inboundSchema = VendorScrubDetails$inboundSchema;
38349
- VendorScrubDetails$.outboundSchema = VendorScrubDetails$outboundSchema;
38350
- })(VendorScrubDetails$ ||= {});
38351
- });
38352
-
38353
- // src/models/components/vendorscrubpurchase.ts
38354
- var VendorScrubPurchase$inboundSchema, VendorScrubPurchase$outboundSchema, VendorScrubPurchase$;
38355
- var init_vendorscrubpurchase = __esm(() => {
38356
- init_lib();
38357
- init_primitives();
38358
- VendorScrubPurchase$inboundSchema = objectType({
38300
+ ((VendorType1$) => {
38301
+ VendorType1$.inboundSchema = VendorType1$inboundSchema;
38302
+ VendorType1$.outboundSchema = VendorType1$outboundSchema;
38303
+ })(VendorType1$ ||= {});
38304
+ VendorVendorType$inboundSchema = unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()]);
38305
+ VendorVendorType$outboundSchema = unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()]);
38306
+ ((VendorVendorType$) => {
38307
+ VendorVendorType$.inboundSchema = VendorVendorType$inboundSchema;
38308
+ VendorVendorType$.outboundSchema = VendorVendorType$outboundSchema;
38309
+ })(VendorVendorType$ ||= {});
38310
+ PaymentProfile1$inboundSchema = objectType({
38359
38311
  id: numberType().int().optional(),
38360
- purchase_date: nullableType(stringType()).optional(),
38361
- quantity: nullableType(numberType().int()).optional(),
38362
- total: nullableType(numberType().int()).optional()
38312
+ is_valid: nullableType(booleanType()).optional(),
38313
+ card_type: nullableType(stringType()).optional(),
38314
+ card_last4: nullableType(stringType()).optional(),
38315
+ is_dummy: nullableType(booleanType()).optional(),
38316
+ profile_type: nullableType(stringType()).optional()
38363
38317
  }).transform((v2) => {
38364
38318
  return remap(v2, {
38365
- purchase_date: "purchaseDate"
38319
+ is_valid: "isValid",
38320
+ card_type: "cardType",
38321
+ card_last4: "cardLast4",
38322
+ is_dummy: "isDummy",
38323
+ profile_type: "profileType"
38366
38324
  });
38367
38325
  });
38368
- VendorScrubPurchase$outboundSchema = objectType({
38369
- id: numberType().int().optional(),
38370
- purchaseDate: nullableType(stringType()).optional(),
38371
- quantity: nullableType(numberType().int()).optional(),
38372
- total: nullableType(numberType().int()).optional()
38326
+ PaymentProfile1$outboundSchema = objectType({
38327
+ id: numberType().int().optional(),
38328
+ isValid: nullableType(booleanType()).optional(),
38329
+ cardType: nullableType(stringType()).optional(),
38330
+ cardLast4: nullableType(stringType()).optional(),
38331
+ isDummy: nullableType(booleanType()).optional(),
38332
+ profileType: nullableType(stringType()).optional()
38373
38333
  }).transform((v2) => {
38374
38334
  return remap(v2, {
38375
- purchaseDate: "purchase_date"
38335
+ isValid: "is_valid",
38336
+ cardType: "card_type",
38337
+ cardLast4: "card_last4",
38338
+ isDummy: "is_dummy",
38339
+ profileType: "profile_type"
38376
38340
  });
38377
38341
  });
38378
- ((VendorScrubPurchase$) => {
38379
- VendorScrubPurchase$.inboundSchema = VendorScrubPurchase$inboundSchema;
38380
- VendorScrubPurchase$.outboundSchema = VendorScrubPurchase$outboundSchema;
38381
- })(VendorScrubPurchase$ ||= {});
38382
- });
38383
-
38384
- // src/models/components/webhookendpoint.ts
38385
- var SignatureAlgo, SignatureAlgo$inboundSchema, SignatureAlgo$outboundSchema, SignatureAlgo$, Consumers$inboundSchema, Consumers$outboundSchema, Consumers$, WebhookEndpoint$inboundSchema, WebhookEndpoint$outboundSchema, WebhookEndpoint$;
38386
- var init_webhookendpoint = __esm(() => {
38387
- init_lib();
38388
- init_primitives();
38389
- SignatureAlgo = {
38390
- SigHmacSha256: "sig_hmac_sha256"
38391
- };
38392
- SignatureAlgo$inboundSchema = nativeEnumType(SignatureAlgo);
38393
- SignatureAlgo$outboundSchema = SignatureAlgo$inboundSchema;
38394
- ((SignatureAlgo$) => {
38395
- SignatureAlgo$.inboundSchema = SignatureAlgo$inboundSchema;
38396
- SignatureAlgo$.outboundSchema = SignatureAlgo$outboundSchema;
38397
- })(SignatureAlgo$ ||= {});
38398
- Consumers$inboundSchema = objectType({
38399
- system_id: nullableType(numberType().int()).optional(),
38342
+ ((PaymentProfile1$) => {
38343
+ PaymentProfile1$.inboundSchema = PaymentProfile1$inboundSchema;
38344
+ PaymentProfile1$.outboundSchema = PaymentProfile1$outboundSchema;
38345
+ })(PaymentProfile1$ ||= {});
38346
+ PaymentProfilePaymentProfile$inboundSchema = unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]);
38347
+ PaymentProfilePaymentProfile$outboundSchema = unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]);
38348
+ ((PaymentProfilePaymentProfile$) => {
38349
+ PaymentProfilePaymentProfile$.inboundSchema = PaymentProfilePaymentProfile$inboundSchema;
38350
+ PaymentProfilePaymentProfile$.outboundSchema = PaymentProfilePaymentProfile$outboundSchema;
38351
+ })(PaymentProfilePaymentProfile$ ||= {});
38352
+ PaymentProfile$inboundSchema = unionType([
38353
+ unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]),
38354
+ numberType().int()
38355
+ ]);
38356
+ PaymentProfile$outboundSchema = unionType([
38357
+ unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
38358
+ numberType().int()
38359
+ ]);
38360
+ ((PaymentProfile$) => {
38361
+ PaymentProfile$.inboundSchema = PaymentProfile$inboundSchema;
38362
+ PaymentProfile$.outboundSchema = PaymentProfile$outboundSchema;
38363
+ })(PaymentProfile$ ||= {});
38364
+ PaymentResponsibility$inboundSchema = objectType({
38365
+ id: nullableType(numberType().int()).optional(),
38366
+ company_manager_id: nullableType(numberType().int()).optional(),
38367
+ credentialing_subscription: nullableType(booleanType()).optional(),
38368
+ scrubs_subscription: nullableType(booleanType()).optional(),
38369
+ scrub_credits: nullableType(booleanType()).optional(),
38370
+ hard_badge_initial: nullableType(booleanType()).optional(),
38371
+ hard_badge_extra: nullableType(booleanType()).optional(),
38372
+ other_invoices: nullableType(booleanType()).optional(),
38400
38373
  facility_id: nullableType(numberType().int()).optional(),
38401
38374
  company_id: nullableType(numberType().int()).optional(),
38402
- user_id: nullableType(numberType().int()).optional()
38375
+ credentialing_subscription_user_id: nullableType(numberType().int()).optional(),
38376
+ scrubs_subscription_user_id: nullableType(numberType().int()).optional(),
38377
+ scrub_credits_user_id: nullableType(numberType().int()).optional(),
38378
+ hard_badge_initial_user_id: nullableType(numberType().int()).optional(),
38379
+ hard_badge_extra_user_id: nullableType(numberType().int()).optional(),
38380
+ other_invoices_user_id: nullableType(numberType().int()).optional()
38403
38381
  }).transform((v2) => {
38404
38382
  return remap(v2, {
38405
- system_id: "systemId",
38383
+ company_manager_id: "companyManagerId",
38384
+ credentialing_subscription: "credentialingSubscription",
38385
+ scrubs_subscription: "scrubsSubscription",
38386
+ scrub_credits: "scrubCredits",
38387
+ hard_badge_initial: "hardBadgeInitial",
38388
+ hard_badge_extra: "hardBadgeExtra",
38389
+ other_invoices: "otherInvoices",
38406
38390
  facility_id: "facilityId",
38407
38391
  company_id: "companyId",
38408
- user_id: "userId"
38392
+ credentialing_subscription_user_id: "credentialingSubscriptionUserId",
38393
+ scrubs_subscription_user_id: "scrubsSubscriptionUserId",
38394
+ scrub_credits_user_id: "scrubCreditsUserId",
38395
+ hard_badge_initial_user_id: "hardBadgeInitialUserId",
38396
+ hard_badge_extra_user_id: "hardBadgeExtraUserId",
38397
+ other_invoices_user_id: "otherInvoicesUserId"
38409
38398
  });
38410
38399
  });
38411
- Consumers$outboundSchema = objectType({
38412
- systemId: nullableType(numberType().int()).optional(),
38400
+ PaymentResponsibility$outboundSchema = objectType({
38401
+ id: nullableType(numberType().int()).optional(),
38402
+ companyManagerId: nullableType(numberType().int()).optional(),
38403
+ credentialingSubscription: nullableType(booleanType()).optional(),
38404
+ scrubsSubscription: nullableType(booleanType()).optional(),
38405
+ scrubCredits: nullableType(booleanType()).optional(),
38406
+ hardBadgeInitial: nullableType(booleanType()).optional(),
38407
+ hardBadgeExtra: nullableType(booleanType()).optional(),
38408
+ otherInvoices: nullableType(booleanType()).optional(),
38413
38409
  facilityId: nullableType(numberType().int()).optional(),
38414
38410
  companyId: nullableType(numberType().int()).optional(),
38415
- userId: nullableType(numberType().int()).optional()
38411
+ credentialingSubscriptionUserId: nullableType(numberType().int()).optional(),
38412
+ scrubsSubscriptionUserId: nullableType(numberType().int()).optional(),
38413
+ scrubCreditsUserId: nullableType(numberType().int()).optional(),
38414
+ hardBadgeInitialUserId: nullableType(numberType().int()).optional(),
38415
+ hardBadgeExtraUserId: nullableType(numberType().int()).optional(),
38416
+ otherInvoicesUserId: nullableType(numberType().int()).optional()
38416
38417
  }).transform((v2) => {
38417
38418
  return remap(v2, {
38418
- systemId: "system_id",
38419
+ companyManagerId: "company_manager_id",
38420
+ credentialingSubscription: "credentialing_subscription",
38421
+ scrubsSubscription: "scrubs_subscription",
38422
+ scrubCredits: "scrub_credits",
38423
+ hardBadgeInitial: "hard_badge_initial",
38424
+ hardBadgeExtra: "hard_badge_extra",
38425
+ otherInvoices: "other_invoices",
38419
38426
  facilityId: "facility_id",
38420
38427
  companyId: "company_id",
38421
- userId: "user_id"
38422
- });
38423
- });
38424
- ((Consumers$) => {
38425
- Consumers$.inboundSchema = Consumers$inboundSchema;
38426
- Consumers$.outboundSchema = Consumers$outboundSchema;
38427
- })(Consumers$ ||= {});
38428
- WebhookEndpoint$inboundSchema = objectType({
38429
- id: numberType().int(),
38430
- webhook_url: stringType(),
38431
- signature_algo: SignatureAlgo$inboundSchema.default("sig_hmac_sha256"),
38432
- subscriptions: nullableType(arrayType(stringType())),
38433
- consumers: lazyType(() => Consumers$inboundSchema),
38434
- secrets: nullableType(arrayType(stringType())).optional()
38435
- }).transform((v2) => {
38436
- return remap(v2, {
38437
- webhook_url: "webhookUrl",
38438
- signature_algo: "signatureAlgo"
38439
- });
38440
- });
38441
- WebhookEndpoint$outboundSchema = objectType({
38442
- id: numberType().int(),
38443
- webhookUrl: stringType(),
38444
- signatureAlgo: SignatureAlgo$outboundSchema.default("sig_hmac_sha256"),
38445
- subscriptions: nullableType(arrayType(stringType())),
38446
- consumers: lazyType(() => Consumers$outboundSchema),
38447
- secrets: nullableType(arrayType(stringType())).optional()
38448
- }).transform((v2) => {
38449
- return remap(v2, {
38450
- webhookUrl: "webhook_url",
38451
- signatureAlgo: "signature_algo"
38428
+ credentialingSubscriptionUserId: "credentialing_subscription_user_id",
38429
+ scrubsSubscriptionUserId: "scrubs_subscription_user_id",
38430
+ scrubCreditsUserId: "scrub_credits_user_id",
38431
+ hardBadgeInitialUserId: "hard_badge_initial_user_id",
38432
+ hardBadgeExtraUserId: "hard_badge_extra_user_id",
38433
+ otherInvoicesUserId: "other_invoices_user_id"
38452
38434
  });
38453
38435
  });
38454
- ((WebhookEndpoint$) => {
38455
- WebhookEndpoint$.inboundSchema = WebhookEndpoint$inboundSchema;
38456
- WebhookEndpoint$.outboundSchema = WebhookEndpoint$outboundSchema;
38457
- })(WebhookEndpoint$ ||= {});
38458
- });
38459
-
38460
- // src/models/components/zoneconfig.ts
38461
- var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
38462
- var init_zoneconfig = __esm(() => {
38463
- init_lib();
38464
- init_primitives();
38465
- VendorGroupId1$inboundSchema = objectType({
38466
- id: numberType().int().optional(),
38467
- name: stringType().optional(),
38468
- description: nullableType(stringType()).optional(),
38469
- visible: booleanType().optional()
38470
- });
38471
- VendorGroupId1$outboundSchema = objectType({
38472
- id: numberType().int().optional(),
38473
- name: stringType().optional(),
38474
- description: nullableType(stringType()).optional(),
38475
- visible: booleanType().optional()
38476
- });
38477
- ((VendorGroupId1$) => {
38478
- VendorGroupId1$.inboundSchema = VendorGroupId1$inboundSchema;
38479
- VendorGroupId1$.outboundSchema = VendorGroupId1$outboundSchema;
38480
- })(VendorGroupId1$ ||= {});
38481
- VendorGroupId$inboundSchema = unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()]);
38482
- VendorGroupId$outboundSchema = unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()]);
38483
- ((VendorGroupId$) => {
38484
- VendorGroupId$.inboundSchema = VendorGroupId$inboundSchema;
38485
- VendorGroupId$.outboundSchema = VendorGroupId$outboundSchema;
38486
- })(VendorGroupId$ ||= {});
38487
- CompanyGroupId1$inboundSchema = objectType({
38488
- id: numberType().int().optional(),
38489
- name: stringType().optional(),
38490
- description: nullableType(stringType()).optional(),
38491
- visible: booleanType().optional()
38492
- });
38493
- CompanyGroupId1$outboundSchema = objectType({
38436
+ ((PaymentResponsibility$) => {
38437
+ PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
38438
+ PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
38439
+ })(PaymentResponsibility$ ||= {});
38440
+ Vendor$inboundSchema = objectType({
38494
38441
  id: numberType().int().optional(),
38495
- name: stringType().optional(),
38496
- description: nullableType(stringType()).optional(),
38497
- visible: booleanType().optional()
38498
- });
38499
- ((CompanyGroupId1$) => {
38500
- CompanyGroupId1$.inboundSchema = CompanyGroupId1$inboundSchema;
38501
- CompanyGroupId1$.outboundSchema = CompanyGroupId1$outboundSchema;
38502
- })(CompanyGroupId1$ ||= {});
38503
- CompanyGroupId$inboundSchema = unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()]);
38504
- CompanyGroupId$outboundSchema = unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()]);
38505
- ((CompanyGroupId$) => {
38506
- CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
38507
- CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
38508
- })(CompanyGroupId$ ||= {});
38509
- ZoneConfigAppliesTo$inboundSchema = objectType({
38510
- vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
38511
- company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
38512
- visitor_type: nullableType(stringType()).optional(),
38513
- visitor_subtype: nullableType(stringType()).optional()
38442
+ email_recepient: nullableType(stringType()).optional(),
38443
+ send_weekly_summary_email: nullableType(booleanType()).optional(),
38444
+ title: nullableType(stringType()).optional(),
38445
+ user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
38446
+ vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
38447
+ supervisor: nullableType(Supervisor$inboundSchema).optional(),
38448
+ qr_code: nullableType(stringType()).optional(),
38449
+ head_shot: nullableType(ImageSet$inboundSchema).optional(),
38450
+ drivers_license: nullableType(ImageSet$inboundSchema).optional(),
38451
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
38452
+ payment_profile: nullableType(unionType([
38453
+ unionType([
38454
+ lazyType(() => PaymentProfile1$inboundSchema),
38455
+ numberType().int()
38456
+ ]),
38457
+ numberType().int()
38458
+ ])).optional(),
38459
+ primary_facility: nullableType(Facility$inboundSchema).optional(),
38460
+ primary_department: nullableType(Department$inboundSchema).optional(),
38461
+ company: nullableType(Company$inboundSchema).optional(),
38462
+ credentialing_subscription: nullableType(Subscription$inboundSchema).optional(),
38463
+ scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
38464
+ payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
38465
+ background_check_date_expires: nullableType(stringType()).optional()
38514
38466
  }).transform((v2) => {
38515
38467
  return remap(v2, {
38516
- vendor_group_id: "vendorGroupId",
38517
- company_group_id: "companyGroupId",
38518
- visitor_type: "visitorType",
38519
- visitor_subtype: "visitorSubtype"
38468
+ email_recepient: "emailRecepient",
38469
+ send_weekly_summary_email: "sendWeeklySummaryEmail",
38470
+ vendor_type: "vendorType",
38471
+ qr_code: "qrCode",
38472
+ head_shot: "headShot",
38473
+ drivers_license: "driversLicense",
38474
+ image_urls: "imageUrls",
38475
+ payment_profile: "paymentProfile",
38476
+ primary_facility: "primaryFacility",
38477
+ primary_department: "primaryDepartment",
38478
+ credentialing_subscription: "credentialingSubscription",
38479
+ scrubs_subscription: "scrubsSubscription",
38480
+ payment_responsibility: "paymentResponsibility",
38481
+ background_check_date_expires: "backgroundCheckDateExpires"
38520
38482
  });
38521
38483
  });
38522
- ZoneConfigAppliesTo$outboundSchema = objectType({
38523
- vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
38524
- companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
38525
- visitorType: nullableType(stringType()).optional(),
38526
- visitorSubtype: nullableType(stringType()).optional()
38484
+ Vendor$outboundSchema = objectType({
38485
+ id: numberType().int().optional(),
38486
+ emailRecepient: nullableType(stringType()).optional(),
38487
+ sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
38488
+ title: nullableType(stringType()).optional(),
38489
+ user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
38490
+ vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
38491
+ supervisor: nullableType(Supervisor$outboundSchema).optional(),
38492
+ qrCode: nullableType(stringType()).optional(),
38493
+ headShot: nullableType(ImageSet$outboundSchema).optional(),
38494
+ driversLicense: nullableType(ImageSet$outboundSchema).optional(),
38495
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
38496
+ paymentProfile: nullableType(unionType([
38497
+ unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
38498
+ numberType().int()
38499
+ ])).optional(),
38500
+ primaryFacility: nullableType(Facility$outboundSchema).optional(),
38501
+ primaryDepartment: nullableType(Department$outboundSchema).optional(),
38502
+ company: nullableType(Company$outboundSchema).optional(),
38503
+ credentialingSubscription: nullableType(Subscription$outboundSchema).optional(),
38504
+ scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
38505
+ paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
38506
+ backgroundCheckDateExpires: nullableType(stringType()).optional()
38527
38507
  }).transform((v2) => {
38528
38508
  return remap(v2, {
38529
- vendorGroupId: "vendor_group_id",
38530
- companyGroupId: "company_group_id",
38531
- visitorType: "visitor_type",
38532
- visitorSubtype: "visitor_subtype"
38509
+ emailRecepient: "email_recepient",
38510
+ sendWeeklySummaryEmail: "send_weekly_summary_email",
38511
+ vendorType: "vendor_type",
38512
+ qrCode: "qr_code",
38513
+ headShot: "head_shot",
38514
+ driversLicense: "drivers_license",
38515
+ imageUrls: "image_urls",
38516
+ paymentProfile: "payment_profile",
38517
+ primaryFacility: "primary_facility",
38518
+ primaryDepartment: "primary_department",
38519
+ credentialingSubscription: "credentialing_subscription",
38520
+ scrubsSubscription: "scrubs_subscription",
38521
+ paymentResponsibility: "payment_responsibility",
38522
+ backgroundCheckDateExpires: "background_check_date_expires"
38533
38523
  });
38534
38524
  });
38535
- ((ZoneConfigAppliesTo$) => {
38536
- ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
38537
- ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
38538
- })(ZoneConfigAppliesTo$ ||= {});
38539
- ZoneConfigVendorPolicy$inboundSchema = objectType({
38540
- allow_vendor_scans: booleanType().optional(),
38541
- print_vendor_badge: booleanType().optional(),
38542
- mfa: booleanType().optional(),
38543
- ask_questions: booleanType().optional(),
38544
- requires_facility_appt: booleanType().optional(),
38545
- requires_department_appt: booleanType().optional(),
38546
- requires_credentialed: booleanType().optional(),
38547
- allow_checkin: booleanType().optional(),
38548
- allow_checkout: booleanType().optional(),
38549
- allow_spot_check: booleanType().optional(),
38550
- requires_checkin: booleanType().optional(),
38551
- full_checkin: booleanType().optional(),
38552
- full_checkin_always: booleanType().optional(),
38553
- verify_face: booleanType().optional()
38525
+ ((Vendor$) => {
38526
+ Vendor$.inboundSchema = Vendor$inboundSchema;
38527
+ Vendor$.outboundSchema = Vendor$outboundSchema;
38528
+ })(Vendor$ ||= {});
38529
+ });
38530
+
38531
+ // src/models/components/user.ts
38532
+ var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
38533
+ var init_user = __esm(() => {
38534
+ init_lib();
38535
+ init_primitives();
38536
+ init_company();
38537
+ init_contact();
38538
+ init_imageset();
38539
+ init_userlocation();
38540
+ init_vendor();
38541
+ UserType = {
38542
+ Api: "API",
38543
+ Admin: "Admin",
38544
+ CompanyManager: "Company Manager",
38545
+ FacilityAdmin: "Facility Admin",
38546
+ FacilityUser: "Facility User",
38547
+ InventoryManager: "Inventory Manager",
38548
+ SystemUser: "System User",
38549
+ UserType: "User Type",
38550
+ Vendor: "Vendor"
38551
+ };
38552
+ TokenType = {
38553
+ Permanent: "permanent",
38554
+ OneTime: "one time"
38555
+ };
38556
+ UserType$inboundSchema = nativeEnumType(UserType);
38557
+ UserType$outboundSchema = UserType$inboundSchema;
38558
+ ((UserType$) => {
38559
+ UserType$.inboundSchema = UserType$inboundSchema;
38560
+ UserType$.outboundSchema = UserType$outboundSchema;
38561
+ })(UserType$ ||= {});
38562
+ UserUser$inboundSchema = objectType({
38563
+ id: numberType().int(),
38564
+ first_name: nullableType(stringType()).optional(),
38565
+ last_name: nullableType(stringType()).optional(),
38566
+ email: stringType(),
38567
+ phone: nullableType(stringType()).optional(),
38568
+ mobile_phone: nullableType(stringType()).optional(),
38569
+ fax: nullableType(stringType()).optional(),
38570
+ user_type: UserType$inboundSchema,
38571
+ timezone: nullableType(stringType()).optional(),
38572
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
38573
+ location: nullableType(UserLocation$inboundSchema).optional()
38554
38574
  }).transform((v2) => {
38555
38575
  return remap(v2, {
38556
- allow_vendor_scans: "allowVendorScans",
38557
- print_vendor_badge: "printVendorBadge",
38558
- ask_questions: "askQuestions",
38559
- requires_facility_appt: "requiresFacilityAppt",
38560
- requires_department_appt: "requiresDepartmentAppt",
38561
- requires_credentialed: "requiresCredentialed",
38562
- allow_checkin: "allowCheckin",
38563
- allow_checkout: "allowCheckout",
38564
- allow_spot_check: "allowSpotCheck",
38565
- requires_checkin: "requiresCheckin",
38566
- full_checkin: "fullCheckin",
38567
- full_checkin_always: "fullCheckinAlways",
38568
- verify_face: "verifyFace"
38576
+ first_name: "firstName",
38577
+ last_name: "lastName",
38578
+ mobile_phone: "mobilePhone",
38579
+ user_type: "userType",
38580
+ image_urls: "imageUrls"
38569
38581
  });
38570
38582
  });
38571
- ZoneConfigVendorPolicy$outboundSchema = objectType({
38572
- allowVendorScans: booleanType().optional(),
38573
- printVendorBadge: booleanType().optional(),
38574
- mfa: booleanType().optional(),
38575
- askQuestions: booleanType().optional(),
38576
- requiresFacilityAppt: booleanType().optional(),
38577
- requiresDepartmentAppt: booleanType().optional(),
38578
- requiresCredentialed: booleanType().optional(),
38579
- allowCheckin: booleanType().optional(),
38580
- allowCheckout: booleanType().optional(),
38581
- allowSpotCheck: booleanType().optional(),
38582
- requiresCheckin: booleanType().optional(),
38583
- fullCheckin: booleanType().optional(),
38584
- fullCheckinAlways: booleanType().optional(),
38585
- verifyFace: booleanType().optional()
38583
+ UserUser$outboundSchema = objectType({
38584
+ id: numberType().int(),
38585
+ firstName: nullableType(stringType()).optional(),
38586
+ lastName: nullableType(stringType()).optional(),
38587
+ email: stringType(),
38588
+ phone: nullableType(stringType()).optional(),
38589
+ mobilePhone: nullableType(stringType()).optional(),
38590
+ fax: nullableType(stringType()).optional(),
38591
+ userType: UserType$outboundSchema,
38592
+ timezone: nullableType(stringType()).optional(),
38593
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
38594
+ location: nullableType(UserLocation$outboundSchema).optional()
38586
38595
  }).transform((v2) => {
38587
38596
  return remap(v2, {
38588
- allowVendorScans: "allow_vendor_scans",
38589
- printVendorBadge: "print_vendor_badge",
38590
- askQuestions: "ask_questions",
38591
- requiresFacilityAppt: "requires_facility_appt",
38592
- requiresDepartmentAppt: "requires_department_appt",
38593
- requiresCredentialed: "requires_credentialed",
38594
- allowCheckin: "allow_checkin",
38595
- allowCheckout: "allow_checkout",
38596
- allowSpotCheck: "allow_spot_check",
38597
- requiresCheckin: "requires_checkin",
38598
- fullCheckin: "full_checkin",
38599
- fullCheckinAlways: "full_checkin_always",
38600
- verifyFace: "verify_face"
38597
+ firstName: "first_name",
38598
+ lastName: "last_name",
38599
+ mobilePhone: "mobile_phone",
38600
+ userType: "user_type",
38601
+ imageUrls: "image_urls"
38601
38602
  });
38602
38603
  });
38603
- ((ZoneConfigVendorPolicy$) => {
38604
- ZoneConfigVendorPolicy$.inboundSchema = ZoneConfigVendorPolicy$inboundSchema;
38605
- ZoneConfigVendorPolicy$.outboundSchema = ZoneConfigVendorPolicy$outboundSchema;
38606
- })(ZoneConfigVendorPolicy$ ||= {});
38607
- VisitorCheckinPolicy$inboundSchema = objectType({
38608
- print_visitor_badge: booleanType().optional(),
38609
- ask_questions_visitor_checkins: booleanType().optional(),
38610
- full_checkin: booleanType().optional()
38604
+ ((UserUser$) => {
38605
+ UserUser$.inboundSchema = UserUser$inboundSchema;
38606
+ UserUser$.outboundSchema = UserUser$outboundSchema;
38607
+ })(UserUser$ ||= {});
38608
+ TokenType$inboundSchema = nativeEnumType(TokenType);
38609
+ TokenType$outboundSchema = TokenType$inboundSchema;
38610
+ ((TokenType$) => {
38611
+ TokenType$.inboundSchema = TokenType$inboundSchema;
38612
+ TokenType$.outboundSchema = TokenType$outboundSchema;
38613
+ })(TokenType$ ||= {});
38614
+ UserToken$inboundSchema = objectType({
38615
+ token: stringType(),
38616
+ token_type: TokenType$inboundSchema.default("permanent")
38611
38617
  }).transform((v2) => {
38612
38618
  return remap(v2, {
38613
- print_visitor_badge: "printVisitorBadge",
38614
- ask_questions_visitor_checkins: "askQuestionsVisitorCheckins",
38615
- full_checkin: "fullCheckin"
38619
+ token_type: "tokenType"
38616
38620
  });
38617
38621
  });
38618
- VisitorCheckinPolicy$outboundSchema = objectType({
38619
- printVisitorBadge: booleanType().optional(),
38620
- askQuestionsVisitorCheckins: booleanType().optional(),
38621
- fullCheckin: booleanType().optional()
38622
+ UserToken$outboundSchema = objectType({
38623
+ token: stringType(),
38624
+ tokenType: TokenType$outboundSchema.default("permanent")
38622
38625
  }).transform((v2) => {
38623
38626
  return remap(v2, {
38624
- printVisitorBadge: "print_visitor_badge",
38625
- askQuestionsVisitorCheckins: "ask_questions_visitor_checkins",
38626
- fullCheckin: "full_checkin"
38627
+ tokenType: "token_type"
38627
38628
  });
38628
38629
  });
38629
- ((VisitorCheckinPolicy$) => {
38630
- VisitorCheckinPolicy$.inboundSchema = VisitorCheckinPolicy$inboundSchema;
38631
- VisitorCheckinPolicy$.outboundSchema = VisitorCheckinPolicy$outboundSchema;
38632
- })(VisitorCheckinPolicy$ ||= {});
38633
- VisitRequestPolicy$inboundSchema = objectType({
38634
- ask_questions_visit_requests: nullableType(booleanType()).optional(),
38635
- require_website_visit_request_picture: nullableType(booleanType()).optional(),
38636
- require_kiosk_visit_request_picture: nullableType(booleanType()).optional(),
38637
- visit_request_use_previous_picture: nullableType(booleanType()).optional(),
38638
- auto_approve_visit_requests: nullableType(booleanType()).optional(),
38639
- auto_checkin_visit_requests: nullableType(booleanType()).optional(),
38640
- auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
38641
- auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
38642
- }).transform((v2) => {
38643
- return remap(v2, {
38644
- ask_questions_visit_requests: "askQuestionsVisitRequests",
38645
- require_website_visit_request_picture: "requireWebsiteVisitRequestPicture",
38646
- require_kiosk_visit_request_picture: "requireKioskVisitRequestPicture",
38647
- visit_request_use_previous_picture: "visitRequestUsePreviousPicture",
38648
- auto_approve_visit_requests: "autoApproveVisitRequests",
38649
- auto_checkin_visit_requests: "autoCheckinVisitRequests",
38650
- auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
38651
- auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
38630
+ ((UserToken$) => {
38631
+ UserToken$.inboundSchema = UserToken$inboundSchema;
38632
+ UserToken$.outboundSchema = UserToken$outboundSchema;
38633
+ })(UserToken$ ||= {});
38634
+ InventoryManager$inboundSchema = objectType({});
38635
+ InventoryManager$outboundSchema = objectType({});
38636
+ ((InventoryManager$) => {
38637
+ InventoryManager$.inboundSchema = InventoryManager$inboundSchema;
38638
+ InventoryManager$.outboundSchema = InventoryManager$outboundSchema;
38639
+ })(InventoryManager$ ||= {});
38640
+ User$inboundSchema = objectType({
38641
+ is_gatekeeper: booleanType().optional(),
38642
+ success: booleanType(),
38643
+ user: lazyType(() => UserUser$inboundSchema),
38644
+ user_token: lazyType(() => UserToken$inboundSchema),
38645
+ vendor: Vendor$inboundSchema.optional(),
38646
+ inventory_manager: lazyType(() => InventoryManager$inboundSchema).optional(),
38647
+ contact: Contact$inboundSchema.optional(),
38648
+ company: nullableType(Company$inboundSchema).optional()
38649
+ }).transform((v2) => {
38650
+ return remap(v2, {
38651
+ is_gatekeeper: "isGatekeeper",
38652
+ user_token: "userToken",
38653
+ inventory_manager: "inventoryManager"
38652
38654
  });
38653
38655
  });
38654
- VisitRequestPolicy$outboundSchema = objectType({
38655
- askQuestionsVisitRequests: nullableType(booleanType()).optional(),
38656
- requireWebsiteVisitRequestPicture: nullableType(booleanType()).optional(),
38657
- requireKioskVisitRequestPicture: nullableType(booleanType()).optional(),
38658
- visitRequestUsePreviousPicture: nullableType(booleanType()).optional(),
38659
- autoApproveVisitRequests: nullableType(booleanType()).optional(),
38660
- autoCheckinVisitRequests: nullableType(booleanType()).optional(),
38661
- autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
38662
- autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
38656
+ User$outboundSchema = objectType({
38657
+ isGatekeeper: booleanType().optional(),
38658
+ success: booleanType(),
38659
+ user: lazyType(() => UserUser$outboundSchema),
38660
+ userToken: lazyType(() => UserToken$outboundSchema),
38661
+ vendor: Vendor$outboundSchema.optional(),
38662
+ inventoryManager: lazyType(() => InventoryManager$outboundSchema).optional(),
38663
+ contact: Contact$outboundSchema.optional(),
38664
+ company: nullableType(Company$outboundSchema).optional()
38663
38665
  }).transform((v2) => {
38664
38666
  return remap(v2, {
38665
- askQuestionsVisitRequests: "ask_questions_visit_requests",
38666
- requireWebsiteVisitRequestPicture: "require_website_visit_request_picture",
38667
- requireKioskVisitRequestPicture: "require_kiosk_visit_request_picture",
38668
- visitRequestUsePreviousPicture: "visit_request_use_previous_picture",
38669
- autoApproveVisitRequests: "auto_approve_visit_requests",
38670
- autoCheckinVisitRequests: "auto_checkin_visit_requests",
38671
- autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
38672
- autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
38667
+ isGatekeeper: "is_gatekeeper",
38668
+ userToken: "user_token",
38669
+ inventoryManager: "inventory_manager"
38673
38670
  });
38674
38671
  });
38675
- ((VisitRequestPolicy$) => {
38676
- VisitRequestPolicy$.inboundSchema = VisitRequestPolicy$inboundSchema;
38677
- VisitRequestPolicy$.outboundSchema = VisitRequestPolicy$outboundSchema;
38678
- })(VisitRequestPolicy$ ||= {});
38679
- ZoneConfig$inboundSchema = objectType({
38672
+ ((User$) => {
38673
+ User$.inboundSchema = User$inboundSchema;
38674
+ User$.outboundSchema = User$outboundSchema;
38675
+ })(User$ ||= {});
38676
+ });
38677
+
38678
+ // src/models/components/vendoradditionalfacilityfields.ts
38679
+ var VendorAdditionalFacilityFields$inboundSchema, VendorAdditionalFacilityFields$outboundSchema, VendorAdditionalFacilityFields$;
38680
+ var init_vendoradditionalfacilityfields = __esm(() => {
38681
+ init_lib();
38682
+ VendorAdditionalFacilityFields$inboundSchema = objectType({
38680
38683
  id: numberType().int().optional(),
38681
- zone_id: numberType().int().optional(),
38682
- sort_order: nullableType(numberType().int()).optional(),
38683
- applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
38684
- vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
38685
- visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
38686
- visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
38684
+ system: nullableType(stringType()).optional(),
38685
+ facility: nullableType(stringType()).optional(),
38686
+ field: nullableType(stringType()).optional(),
38687
+ value: nullableType(stringType()).optional()
38688
+ });
38689
+ VendorAdditionalFacilityFields$outboundSchema = objectType({
38690
+ id: numberType().int().optional(),
38691
+ system: nullableType(stringType()).optional(),
38692
+ facility: nullableType(stringType()).optional(),
38693
+ field: nullableType(stringType()).optional(),
38694
+ value: nullableType(stringType()).optional()
38695
+ });
38696
+ ((VendorAdditionalFacilityFields$) => {
38697
+ VendorAdditionalFacilityFields$.inboundSchema = VendorAdditionalFacilityFields$inboundSchema;
38698
+ VendorAdditionalFacilityFields$.outboundSchema = VendorAdditionalFacilityFields$outboundSchema;
38699
+ })(VendorAdditionalFacilityFields$ ||= {});
38700
+ });
38701
+
38702
+ // src/models/components/vendorcredentialsummary.ts
38703
+ var VendorCredentialSummary$inboundSchema, VendorCredentialSummary$outboundSchema, VendorCredentialSummary$;
38704
+ var init_vendorcredentialsummary = __esm(() => {
38705
+ init_lib();
38706
+ init_primitives();
38707
+ init_company();
38708
+ VendorCredentialSummary$inboundSchema = objectType({
38709
+ id: numberType().int(),
38710
+ status: nullableType(stringType()).optional(),
38711
+ company: nullableType(Company$inboundSchema).optional(),
38712
+ date_due: nullableType(stringType()).optional(),
38713
+ date_expires: nullableType(stringType()).optional(),
38714
+ notes: nullableType(stringType()).optional(),
38715
+ expedited: booleanType().optional()
38687
38716
  }).transform((v2) => {
38688
38717
  return remap(v2, {
38689
- zone_id: "zoneId",
38690
- sort_order: "sortOrder",
38691
- applies_to: "appliesTo",
38692
- vendor_policy: "vendorPolicy",
38693
- visitor_checkin_policy: "visitorCheckinPolicy",
38694
- visit_request_policy: "visitRequestPolicy"
38718
+ date_due: "dateDue",
38719
+ date_expires: "dateExpires"
38695
38720
  });
38696
38721
  });
38697
- ZoneConfig$outboundSchema = objectType({
38698
- id: numberType().int().optional(),
38699
- zoneId: numberType().int().optional(),
38700
- sortOrder: nullableType(numberType().int()).optional(),
38701
- appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
38702
- vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
38703
- visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
38704
- visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
38722
+ VendorCredentialSummary$outboundSchema = objectType({
38723
+ id: numberType().int(),
38724
+ status: nullableType(stringType()).optional(),
38725
+ company: nullableType(Company$outboundSchema).optional(),
38726
+ dateDue: nullableType(stringType()).optional(),
38727
+ dateExpires: nullableType(stringType()).optional(),
38728
+ notes: nullableType(stringType()).optional(),
38729
+ expedited: booleanType().optional()
38705
38730
  }).transform((v2) => {
38706
38731
  return remap(v2, {
38707
- zoneId: "zone_id",
38708
- sortOrder: "sort_order",
38709
- appliesTo: "applies_to",
38710
- vendorPolicy: "vendor_policy",
38711
- visitorCheckinPolicy: "visitor_checkin_policy",
38712
- visitRequestPolicy: "visit_request_policy"
38732
+ dateDue: "date_due",
38733
+ dateExpires: "date_expires"
38713
38734
  });
38714
38735
  });
38715
- ((ZoneConfig$) => {
38716
- ZoneConfig$.inboundSchema = ZoneConfig$inboundSchema;
38717
- ZoneConfig$.outboundSchema = ZoneConfig$outboundSchema;
38718
- })(ZoneConfig$ ||= {});
38736
+ ((VendorCredentialSummary$) => {
38737
+ VendorCredentialSummary$.inboundSchema = VendorCredentialSummary$inboundSchema;
38738
+ VendorCredentialSummary$.outboundSchema = VendorCredentialSummary$outboundSchema;
38739
+ })(VendorCredentialSummary$ ||= {});
38719
38740
  });
38720
38741
 
38721
- // src/models/components/zone.ts
38722
- var ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
38723
- var init_zone = __esm(() => {
38742
+ // src/models/components/vendorcredentialscontainer.ts
38743
+ var VendorCredentialsContainer$inboundSchema, VendorCredentialsContainer$outboundSchema, VendorCredentialsContainer$;
38744
+ var init_vendorcredentialscontainer = __esm(() => {
38724
38745
  init_lib();
38725
38746
  init_primitives();
38726
- init_department();
38727
- init_facility();
38728
- init_zoneconfig();
38729
- ZoneFacility$inboundSchema = unionType([Facility$inboundSchema, numberType().int()]);
38730
- ZoneFacility$outboundSchema = unionType([Facility$outboundSchema, numberType().int()]);
38731
- ((ZoneFacility$) => {
38732
- ZoneFacility$.inboundSchema = ZoneFacility$inboundSchema;
38733
- ZoneFacility$.outboundSchema = ZoneFacility$outboundSchema;
38734
- })(ZoneFacility$ ||= {});
38735
- ZoneDepartment$inboundSchema = unionType([Department$inboundSchema, numberType().int()]);
38736
- ZoneDepartment$outboundSchema = unionType([Department$outboundSchema, numberType().int()]);
38737
- ((ZoneDepartment$) => {
38738
- ZoneDepartment$.inboundSchema = ZoneDepartment$inboundSchema;
38739
- ZoneDepartment$.outboundSchema = ZoneDepartment$outboundSchema;
38740
- })(ZoneDepartment$ ||= {});
38741
- ZoneLocation$inboundSchema = objectType({
38742
- street_address: nullableType(stringType()).optional(),
38743
- city: nullableType(stringType()).optional(),
38744
- state: nullableType(stringType()).optional(),
38745
- zip: nullableType(stringType()).optional(),
38746
- floor_number: nullableType(numberType().int()).optional()
38747
+ init_vendorcredentialsummary();
38748
+ VendorCredentialsContainer$inboundSchema = objectType({
38749
+ vc: nullableType(VendorCredentialSummary$inboundSchema).optional(),
38750
+ vc_last: nullableType(VendorCredentialSummary$inboundSchema).optional()
38747
38751
  }).transform((v2) => {
38748
38752
  return remap(v2, {
38749
- street_address: "streetAddress",
38750
- floor_number: "floorNumber"
38753
+ vc_last: "vcLast"
38751
38754
  });
38752
38755
  });
38753
- ZoneLocation$outboundSchema = objectType({
38754
- streetAddress: nullableType(stringType()).optional(),
38755
- city: nullableType(stringType()).optional(),
38756
- state: nullableType(stringType()).optional(),
38757
- zip: nullableType(stringType()).optional(),
38758
- floorNumber: nullableType(numberType().int()).optional()
38756
+ VendorCredentialsContainer$outboundSchema = objectType({
38757
+ vc: nullableType(VendorCredentialSummary$outboundSchema).optional(),
38758
+ vcLast: nullableType(VendorCredentialSummary$outboundSchema).optional()
38759
38759
  }).transform((v2) => {
38760
38760
  return remap(v2, {
38761
- streetAddress: "street_address",
38762
- floorNumber: "floor_number"
38761
+ vcLast: "vc_last"
38763
38762
  });
38764
38763
  });
38765
- ((ZoneLocation$) => {
38766
- ZoneLocation$.inboundSchema = ZoneLocation$inboundSchema;
38767
- ZoneLocation$.outboundSchema = ZoneLocation$outboundSchema;
38768
- })(ZoneLocation$ ||= {});
38769
- KioskOfflineNotification$inboundSchema = objectType({
38770
- is_offline: nullableType(booleanType()).optional(),
38771
- message: nullableType(stringType()).optional(),
38772
- auto_activate: nullableType(stringType()).optional(),
38773
- auto_deactivate: nullableType(stringType()).optional()
38764
+ ((VendorCredentialsContainer$) => {
38765
+ VendorCredentialsContainer$.inboundSchema = VendorCredentialsContainer$inboundSchema;
38766
+ VendorCredentialsContainer$.outboundSchema = VendorCredentialsContainer$outboundSchema;
38767
+ })(VendorCredentialsContainer$ ||= {});
38768
+ });
38769
+
38770
+ // src/models/components/vendorfacilitystatusview.ts
38771
+ var VendorFacilityStatusView$inboundSchema, VendorFacilityStatusView$outboundSchema, VendorFacilityStatusView$;
38772
+ var init_vendorfacilitystatusview = __esm(() => {
38773
+ init_lib();
38774
+ init_primitives();
38775
+ VendorFacilityStatusView$inboundSchema = objectType({
38776
+ vendor_id: numberType().int().optional(),
38777
+ facility_id: numberType().int().optional(),
38778
+ facility_name: stringType().optional(),
38779
+ facility_status: nullableType(stringType()).optional(),
38780
+ vendor_scan_id: nullableType(numberType().int()).optional(),
38781
+ vendor_scan_type: nullableType(numberType().int()).optional()
38774
38782
  }).transform((v2) => {
38775
38783
  return remap(v2, {
38776
- is_offline: "isOffline",
38777
- auto_activate: "autoActivate",
38778
- auto_deactivate: "autoDeactivate"
38784
+ vendor_id: "vendorId",
38785
+ facility_id: "facilityId",
38786
+ facility_name: "facilityName",
38787
+ facility_status: "facilityStatus",
38788
+ vendor_scan_id: "vendorScanId",
38789
+ vendor_scan_type: "vendorScanType"
38779
38790
  });
38780
38791
  });
38781
- KioskOfflineNotification$outboundSchema = objectType({
38782
- isOffline: nullableType(booleanType()).optional(),
38783
- message: nullableType(stringType()).optional(),
38784
- autoActivate: nullableType(stringType()).optional(),
38785
- autoDeactivate: nullableType(stringType()).optional()
38792
+ VendorFacilityStatusView$outboundSchema = objectType({
38793
+ vendorId: numberType().int().optional(),
38794
+ facilityId: numberType().int().optional(),
38795
+ facilityName: stringType().optional(),
38796
+ facilityStatus: nullableType(stringType()).optional(),
38797
+ vendorScanId: nullableType(numberType().int()).optional(),
38798
+ vendorScanType: nullableType(numberType().int()).optional()
38786
38799
  }).transform((v2) => {
38787
38800
  return remap(v2, {
38788
- isOffline: "is_offline",
38789
- autoActivate: "auto_activate",
38790
- autoDeactivate: "auto_deactivate"
38801
+ vendorId: "vendor_id",
38802
+ facilityId: "facility_id",
38803
+ facilityName: "facility_name",
38804
+ facilityStatus: "facility_status",
38805
+ vendorScanId: "vendor_scan_id",
38806
+ vendorScanType: "vendor_scan_type"
38791
38807
  });
38792
38808
  });
38793
- ((KioskOfflineNotification$) => {
38794
- KioskOfflineNotification$.inboundSchema = KioskOfflineNotification$inboundSchema;
38795
- KioskOfflineNotification$.outboundSchema = KioskOfflineNotification$outboundSchema;
38796
- })(KioskOfflineNotification$ ||= {});
38797
- ZoneVendorPolicy$inboundSchema = objectType({
38798
- allow_gps_checkin: booleanType().optional(),
38799
- allow_scrubs: booleanType().optional(),
38800
- allow_vendor_scans: booleanType().optional(),
38801
- requires_checkin_for_scrubs: booleanType().optional(),
38802
- override_limit: nullableType(numberType().int()).optional(),
38803
- override_limit_days: nullableType(numberType().int()).optional()
38809
+ ((VendorFacilityStatusView$) => {
38810
+ VendorFacilityStatusView$.inboundSchema = VendorFacilityStatusView$inboundSchema;
38811
+ VendorFacilityStatusView$.outboundSchema = VendorFacilityStatusView$outboundSchema;
38812
+ })(VendorFacilityStatusView$ ||= {});
38813
+ });
38814
+
38815
+ // src/models/components/vendorjobtitle.ts
38816
+ var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
38817
+ var init_vendorjobtitle = __esm(() => {
38818
+ init_lib();
38819
+ VendorJobTitle$inboundSchema = objectType({
38820
+ id: numberType().int(),
38821
+ job: stringType()
38822
+ });
38823
+ VendorJobTitle$outboundSchema = objectType({
38824
+ id: numberType().int(),
38825
+ job: stringType()
38826
+ });
38827
+ ((VendorJobTitle$) => {
38828
+ VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
38829
+ VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
38830
+ })(VendorJobTitle$ ||= {});
38831
+ });
38832
+
38833
+ // src/models/components/vendormanagedbycompany.ts
38834
+ var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
38835
+ var init_vendormanagedbycompany = __esm(() => {
38836
+ init_lib();
38837
+ init_primitives();
38838
+ VendorManagedByCompanyCompany$inboundSchema = objectType({
38839
+ id: nullableType(numberType().int()).optional(),
38840
+ name: nullableType(stringType()).optional()
38841
+ });
38842
+ VendorManagedByCompanyCompany$outboundSchema = objectType({
38843
+ id: nullableType(numberType().int()).optional(),
38844
+ name: nullableType(stringType()).optional()
38845
+ });
38846
+ ((VendorManagedByCompanyCompany$) => {
38847
+ VendorManagedByCompanyCompany$.inboundSchema = VendorManagedByCompanyCompany$inboundSchema;
38848
+ VendorManagedByCompanyCompany$.outboundSchema = VendorManagedByCompanyCompany$outboundSchema;
38849
+ })(VendorManagedByCompanyCompany$ ||= {});
38850
+ VendorManagedByCompany$inboundSchema = objectType({
38851
+ id: numberType().int().optional(),
38852
+ company: lazyType(() => VendorManagedByCompanyCompany$inboundSchema).optional(),
38853
+ edit_profile: nullableType(booleanType()).optional(),
38854
+ edit_facilities: nullableType(booleanType()).optional(),
38855
+ upload_credentials: nullableType(booleanType()).optional(),
38856
+ edit_credentialing_subscription: nullableType(booleanType()).optional(),
38857
+ edit_scrubs_subscription: nullableType(booleanType()).optional(),
38858
+ purchase_scrub_credits: nullableType(booleanType()).optional(),
38859
+ pay_invoices: nullableType(booleanType()).optional()
38804
38860
  }).transform((v2) => {
38805
38861
  return remap(v2, {
38806
- allow_gps_checkin: "allowGpsCheckin",
38807
- allow_scrubs: "allowScrubs",
38808
- allow_vendor_scans: "allowVendorScans",
38809
- requires_checkin_for_scrubs: "requiresCheckinForScrubs",
38810
- override_limit: "overrideLimit",
38811
- override_limit_days: "overrideLimitDays"
38862
+ edit_profile: "editProfile",
38863
+ edit_facilities: "editFacilities",
38864
+ upload_credentials: "uploadCredentials",
38865
+ edit_credentialing_subscription: "editCredentialingSubscription",
38866
+ edit_scrubs_subscription: "editScrubsSubscription",
38867
+ purchase_scrub_credits: "purchaseScrubCredits",
38868
+ pay_invoices: "payInvoices"
38812
38869
  });
38813
38870
  });
38814
- ZoneVendorPolicy$outboundSchema = objectType({
38815
- allowGpsCheckin: booleanType().optional(),
38816
- allowScrubs: booleanType().optional(),
38817
- allowVendorScans: booleanType().optional(),
38818
- requiresCheckinForScrubs: booleanType().optional(),
38819
- overrideLimit: nullableType(numberType().int()).optional(),
38820
- overrideLimitDays: nullableType(numberType().int()).optional()
38871
+ VendorManagedByCompany$outboundSchema = objectType({
38872
+ id: numberType().int().optional(),
38873
+ company: lazyType(() => VendorManagedByCompanyCompany$outboundSchema).optional(),
38874
+ editProfile: nullableType(booleanType()).optional(),
38875
+ editFacilities: nullableType(booleanType()).optional(),
38876
+ uploadCredentials: nullableType(booleanType()).optional(),
38877
+ editCredentialingSubscription: nullableType(booleanType()).optional(),
38878
+ editScrubsSubscription: nullableType(booleanType()).optional(),
38879
+ purchaseScrubCredits: nullableType(booleanType()).optional(),
38880
+ payInvoices: nullableType(booleanType()).optional()
38821
38881
  }).transform((v2) => {
38822
38882
  return remap(v2, {
38823
- allowGpsCheckin: "allow_gps_checkin",
38824
- allowScrubs: "allow_scrubs",
38825
- allowVendorScans: "allow_vendor_scans",
38826
- requiresCheckinForScrubs: "requires_checkin_for_scrubs",
38827
- overrideLimit: "override_limit",
38828
- overrideLimitDays: "override_limit_days"
38883
+ editProfile: "edit_profile",
38884
+ editFacilities: "edit_facilities",
38885
+ uploadCredentials: "upload_credentials",
38886
+ editCredentialingSubscription: "edit_credentialing_subscription",
38887
+ editScrubsSubscription: "edit_scrubs_subscription",
38888
+ purchaseScrubCredits: "purchase_scrub_credits",
38889
+ payInvoices: "pay_invoices"
38829
38890
  });
38830
38891
  });
38831
- ((ZoneVendorPolicy$) => {
38832
- ZoneVendorPolicy$.inboundSchema = ZoneVendorPolicy$inboundSchema;
38833
- ZoneVendorPolicy$.outboundSchema = ZoneVendorPolicy$outboundSchema;
38834
- })(ZoneVendorPolicy$ ||= {});
38835
- ZoneVisitorCheckinPolicy$inboundSchema = objectType({
38836
- allow_checkin: booleanType().optional(),
38837
- allow_visiting: booleanType().optional(),
38838
- allow_visiting_rooms: booleanType().optional(),
38839
- auto_checkout: booleanType().optional(),
38840
- max_visitor_count: nullableType(numberType().int()).optional()
38892
+ ((VendorManagedByCompany$) => {
38893
+ VendorManagedByCompany$.inboundSchema = VendorManagedByCompany$inboundSchema;
38894
+ VendorManagedByCompany$.outboundSchema = VendorManagedByCompany$outboundSchema;
38895
+ })(VendorManagedByCompany$ ||= {});
38896
+ });
38897
+
38898
+ // src/models/components/vendorrequiredcredential.ts
38899
+ var VendorRequiredCredential$inboundSchema, VendorRequiredCredential$outboundSchema, VendorRequiredCredential$;
38900
+ var init_vendorrequiredcredential = __esm(() => {
38901
+ init_lib();
38902
+ init_primitives();
38903
+ VendorRequiredCredential$inboundSchema = objectType({
38904
+ id: numberType().int().optional(),
38905
+ vendor_id: numberType().int().optional(),
38906
+ facility_id: nullableType(numberType().int()).optional(),
38907
+ credential_ids: nullableType(stringType()).optional(),
38908
+ date_calculated: stringType().optional(),
38909
+ company_credential_ids: nullableType(stringType()).optional()
38841
38910
  }).transform((v2) => {
38842
38911
  return remap(v2, {
38843
- allow_checkin: "allowCheckin",
38844
- allow_visiting: "allowVisiting",
38845
- allow_visiting_rooms: "allowVisitingRooms",
38846
- auto_checkout: "autoCheckout",
38847
- max_visitor_count: "maxVisitorCount"
38912
+ vendor_id: "vendorId",
38913
+ facility_id: "facilityId",
38914
+ credential_ids: "credentialIds",
38915
+ date_calculated: "dateCalculated",
38916
+ company_credential_ids: "companyCredentialIds"
38848
38917
  });
38849
38918
  });
38850
- ZoneVisitorCheckinPolicy$outboundSchema = objectType({
38851
- allowCheckin: booleanType().optional(),
38852
- allowVisiting: booleanType().optional(),
38853
- allowVisitingRooms: booleanType().optional(),
38854
- autoCheckout: booleanType().optional(),
38855
- maxVisitorCount: nullableType(numberType().int()).optional()
38919
+ VendorRequiredCredential$outboundSchema = objectType({
38920
+ id: numberType().int().optional(),
38921
+ vendorId: numberType().int().optional(),
38922
+ facilityId: nullableType(numberType().int()).optional(),
38923
+ credentialIds: nullableType(stringType()).optional(),
38924
+ dateCalculated: stringType().optional(),
38925
+ companyCredentialIds: nullableType(stringType()).optional()
38856
38926
  }).transform((v2) => {
38857
38927
  return remap(v2, {
38858
- allowCheckin: "allow_checkin",
38859
- allowVisiting: "allow_visiting",
38860
- allowVisitingRooms: "allow_visiting_rooms",
38861
- autoCheckout: "auto_checkout",
38862
- maxVisitorCount: "max_visitor_count"
38928
+ vendorId: "vendor_id",
38929
+ facilityId: "facility_id",
38930
+ credentialIds: "credential_ids",
38931
+ dateCalculated: "date_calculated",
38932
+ companyCredentialIds: "company_credential_ids"
38863
38933
  });
38864
38934
  });
38865
- ((ZoneVisitorCheckinPolicy$) => {
38866
- ZoneVisitorCheckinPolicy$.inboundSchema = ZoneVisitorCheckinPolicy$inboundSchema;
38867
- ZoneVisitorCheckinPolicy$.outboundSchema = ZoneVisitorCheckinPolicy$outboundSchema;
38868
- })(ZoneVisitorCheckinPolicy$ ||= {});
38869
- ZoneVisitRequestPolicy$inboundSchema = objectType({
38870
- allow_visiting: booleanType().optional(),
38871
- watchlist_hit_message: nullableType(stringType()).optional(),
38872
- watchdog_hit_message: nullableType(stringType()).optional(),
38873
- guest_limit_exceeded_message: nullableType(stringType()).optional(),
38874
- denied_background_vendor_message: nullableType(stringType()).optional(),
38875
- locked_vendor_message: nullableType(stringType()).optional(),
38876
- stop_checkin_message: nullableType(stringType()).optional(),
38877
- success_message: nullableType(stringType()).optional(),
38878
- show_general_visitor: booleanType().optional(),
38879
- restrict_to_scan_only: booleanType().optional()
38935
+ ((VendorRequiredCredential$) => {
38936
+ VendorRequiredCredential$.inboundSchema = VendorRequiredCredential$inboundSchema;
38937
+ VendorRequiredCredential$.outboundSchema = VendorRequiredCredential$outboundSchema;
38938
+ })(VendorRequiredCredential$ ||= {});
38939
+ });
38940
+
38941
+ // src/models/components/vendorscrubdetails.ts
38942
+ var VendorScrubDetails$inboundSchema, VendorScrubDetails$outboundSchema, VendorScrubDetails$;
38943
+ var init_vendorscrubdetails = __esm(() => {
38944
+ init_lib();
38945
+ init_primitives();
38946
+ VendorScrubDetails$inboundSchema = objectType({
38947
+ scrub_top_size: nullableType(stringType()).optional(),
38948
+ scrub_bottom_size: nullableType(stringType()).optional(),
38949
+ scrub_color: nullableType(stringType()).optional(),
38950
+ total_credits: nullableType(numberType().int()).optional(),
38951
+ total_debits: nullableType(numberType().int()).optional(),
38952
+ scrub_credits: nullableType(numberType().int()).optional()
38880
38953
  }).transform((v2) => {
38881
38954
  return remap(v2, {
38882
- allow_visiting: "allowVisiting",
38883
- watchlist_hit_message: "watchlistHitMessage",
38884
- watchdog_hit_message: "watchdogHitMessage",
38885
- guest_limit_exceeded_message: "guestLimitExceededMessage",
38886
- denied_background_vendor_message: "deniedBackgroundVendorMessage",
38887
- locked_vendor_message: "lockedVendorMessage",
38888
- stop_checkin_message: "stopCheckinMessage",
38889
- success_message: "successMessage",
38890
- show_general_visitor: "showGeneralVisitor",
38891
- restrict_to_scan_only: "restrictToScanOnly"
38955
+ scrub_top_size: "scrubTopSize",
38956
+ scrub_bottom_size: "scrubBottomSize",
38957
+ scrub_color: "scrubColor",
38958
+ total_credits: "totalCredits",
38959
+ total_debits: "totalDebits",
38960
+ scrub_credits: "scrubCredits"
38892
38961
  });
38893
38962
  });
38894
- ZoneVisitRequestPolicy$outboundSchema = objectType({
38895
- allowVisiting: booleanType().optional(),
38896
- watchlistHitMessage: nullableType(stringType()).optional(),
38897
- watchdogHitMessage: nullableType(stringType()).optional(),
38898
- guestLimitExceededMessage: nullableType(stringType()).optional(),
38899
- deniedBackgroundVendorMessage: nullableType(stringType()).optional(),
38900
- lockedVendorMessage: nullableType(stringType()).optional(),
38901
- stopCheckinMessage: nullableType(stringType()).optional(),
38902
- successMessage: nullableType(stringType()).optional(),
38903
- showGeneralVisitor: booleanType().optional(),
38904
- restrictToScanOnly: booleanType().optional()
38963
+ VendorScrubDetails$outboundSchema = objectType({
38964
+ scrubTopSize: nullableType(stringType()).optional(),
38965
+ scrubBottomSize: nullableType(stringType()).optional(),
38966
+ scrubColor: nullableType(stringType()).optional(),
38967
+ totalCredits: nullableType(numberType().int()).optional(),
38968
+ totalDebits: nullableType(numberType().int()).optional(),
38969
+ scrubCredits: nullableType(numberType().int()).optional()
38905
38970
  }).transform((v2) => {
38906
38971
  return remap(v2, {
38907
- allowVisiting: "allow_visiting",
38908
- watchlistHitMessage: "watchlist_hit_message",
38909
- watchdogHitMessage: "watchdog_hit_message",
38910
- guestLimitExceededMessage: "guest_limit_exceeded_message",
38911
- deniedBackgroundVendorMessage: "denied_background_vendor_message",
38912
- lockedVendorMessage: "locked_vendor_message",
38913
- stopCheckinMessage: "stop_checkin_message",
38914
- successMessage: "success_message",
38915
- showGeneralVisitor: "show_general_visitor",
38916
- restrictToScanOnly: "restrict_to_scan_only"
38972
+ scrubTopSize: "scrub_top_size",
38973
+ scrubBottomSize: "scrub_bottom_size",
38974
+ scrubColor: "scrub_color",
38975
+ totalCredits: "total_credits",
38976
+ totalDebits: "total_debits",
38977
+ scrubCredits: "scrub_credits"
38917
38978
  });
38918
38979
  });
38919
- ((ZoneVisitRequestPolicy$) => {
38920
- ZoneVisitRequestPolicy$.inboundSchema = ZoneVisitRequestPolicy$inboundSchema;
38921
- ZoneVisitRequestPolicy$.outboundSchema = ZoneVisitRequestPolicy$outboundSchema;
38922
- })(ZoneVisitRequestPolicy$ ||= {});
38923
- PrinterConfig$inboundSchema = objectType({
38924
- type: nullableType(stringType()).optional(),
38925
- name: nullableType(stringType()).optional(),
38926
- dpi: nullableType(stringType()).optional(),
38927
- ip: nullableType(stringType()).optional(),
38928
- port: nullableType(stringType()).optional(),
38929
- email: nullableType(stringType()).optional(),
38930
- flip: booleanType().optional(),
38931
- orientation: nullableType(stringType()).optional(),
38932
- dymo_brightness_adjust: nullableType(numberType().int()).optional()
38980
+ ((VendorScrubDetails$) => {
38981
+ VendorScrubDetails$.inboundSchema = VendorScrubDetails$inboundSchema;
38982
+ VendorScrubDetails$.outboundSchema = VendorScrubDetails$outboundSchema;
38983
+ })(VendorScrubDetails$ ||= {});
38984
+ });
38985
+
38986
+ // src/models/components/vendorscrubpurchase.ts
38987
+ var VendorScrubPurchase$inboundSchema, VendorScrubPurchase$outboundSchema, VendorScrubPurchase$;
38988
+ var init_vendorscrubpurchase = __esm(() => {
38989
+ init_lib();
38990
+ init_primitives();
38991
+ VendorScrubPurchase$inboundSchema = objectType({
38992
+ id: numberType().int().optional(),
38993
+ purchase_date: nullableType(stringType()).optional(),
38994
+ quantity: nullableType(numberType().int()).optional(),
38995
+ total: nullableType(numberType().int()).optional()
38933
38996
  }).transform((v2) => {
38934
38997
  return remap(v2, {
38935
- dymo_brightness_adjust: "dymoBrightnessAdjust"
38998
+ purchase_date: "purchaseDate"
38936
38999
  });
38937
39000
  });
38938
- PrinterConfig$outboundSchema = objectType({
38939
- type: nullableType(stringType()).optional(),
38940
- name: nullableType(stringType()).optional(),
38941
- dpi: nullableType(stringType()).optional(),
38942
- ip: nullableType(stringType()).optional(),
38943
- port: nullableType(stringType()).optional(),
38944
- email: nullableType(stringType()).optional(),
38945
- flip: booleanType().optional(),
38946
- orientation: nullableType(stringType()).optional(),
38947
- dymoBrightnessAdjust: nullableType(numberType().int()).optional()
39001
+ VendorScrubPurchase$outboundSchema = objectType({
39002
+ id: numberType().int().optional(),
39003
+ purchaseDate: nullableType(stringType()).optional(),
39004
+ quantity: nullableType(numberType().int()).optional(),
39005
+ total: nullableType(numberType().int()).optional()
38948
39006
  }).transform((v2) => {
38949
39007
  return remap(v2, {
38950
- dymoBrightnessAdjust: "dymo_brightness_adjust"
39008
+ purchaseDate: "purchase_date"
38951
39009
  });
38952
39010
  });
38953
- ((PrinterConfig$) => {
38954
- PrinterConfig$.inboundSchema = PrinterConfig$inboundSchema;
38955
- PrinterConfig$.outboundSchema = PrinterConfig$outboundSchema;
38956
- })(PrinterConfig$ ||= {});
38957
- GpsCheckinPolicy$inboundSchema = objectType({
38958
- latitude: nullableType(stringType()).optional(),
38959
- longitude: nullableType(stringType()).optional(),
38960
- gps_checkin_radius: nullableType(numberType().int()).optional(),
38961
- geocode_error: nullableType(stringType()).optional()
39011
+ ((VendorScrubPurchase$) => {
39012
+ VendorScrubPurchase$.inboundSchema = VendorScrubPurchase$inboundSchema;
39013
+ VendorScrubPurchase$.outboundSchema = VendorScrubPurchase$outboundSchema;
39014
+ })(VendorScrubPurchase$ ||= {});
39015
+ });
39016
+
39017
+ // src/models/components/webhookendpoint.ts
39018
+ var SignatureAlgo, SignatureAlgo$inboundSchema, SignatureAlgo$outboundSchema, SignatureAlgo$, Consumers$inboundSchema, Consumers$outboundSchema, Consumers$, WebhookEndpoint$inboundSchema, WebhookEndpoint$outboundSchema, WebhookEndpoint$;
39019
+ var init_webhookendpoint = __esm(() => {
39020
+ init_lib();
39021
+ init_primitives();
39022
+ SignatureAlgo = {
39023
+ SigHmacSha256: "sig_hmac_sha256"
39024
+ };
39025
+ SignatureAlgo$inboundSchema = nativeEnumType(SignatureAlgo);
39026
+ SignatureAlgo$outboundSchema = SignatureAlgo$inboundSchema;
39027
+ ((SignatureAlgo$) => {
39028
+ SignatureAlgo$.inboundSchema = SignatureAlgo$inboundSchema;
39029
+ SignatureAlgo$.outboundSchema = SignatureAlgo$outboundSchema;
39030
+ })(SignatureAlgo$ ||= {});
39031
+ Consumers$inboundSchema = objectType({
39032
+ system_id: nullableType(numberType().int()).optional(),
39033
+ facility_id: nullableType(numberType().int()).optional(),
39034
+ company_id: nullableType(numberType().int()).optional(),
39035
+ user_id: nullableType(numberType().int()).optional()
38962
39036
  }).transform((v2) => {
38963
39037
  return remap(v2, {
38964
- gps_checkin_radius: "gpsCheckinRadius",
38965
- geocode_error: "geocodeError"
39038
+ system_id: "systemId",
39039
+ facility_id: "facilityId",
39040
+ company_id: "companyId",
39041
+ user_id: "userId"
38966
39042
  });
38967
39043
  });
38968
- GpsCheckinPolicy$outboundSchema = objectType({
38969
- latitude: nullableType(stringType()).optional(),
38970
- longitude: nullableType(stringType()).optional(),
38971
- gpsCheckinRadius: nullableType(numberType().int()).optional(),
38972
- geocodeError: nullableType(stringType()).optional()
39044
+ Consumers$outboundSchema = objectType({
39045
+ systemId: nullableType(numberType().int()).optional(),
39046
+ facilityId: nullableType(numberType().int()).optional(),
39047
+ companyId: nullableType(numberType().int()).optional(),
39048
+ userId: nullableType(numberType().int()).optional()
38973
39049
  }).transform((v2) => {
38974
39050
  return remap(v2, {
38975
- gpsCheckinRadius: "gps_checkin_radius",
38976
- geocodeError: "geocode_error"
39051
+ systemId: "system_id",
39052
+ facilityId: "facility_id",
39053
+ companyId: "company_id",
39054
+ userId: "user_id"
38977
39055
  });
38978
39056
  });
38979
- ((GpsCheckinPolicy$) => {
38980
- GpsCheckinPolicy$.inboundSchema = GpsCheckinPolicy$inboundSchema;
38981
- GpsCheckinPolicy$.outboundSchema = GpsCheckinPolicy$outboundSchema;
38982
- })(GpsCheckinPolicy$ ||= {});
38983
- Zone$inboundSchema = objectType({
38984
- id: numberType().int().optional(),
38985
- facility: nullableType(unionType([Facility$inboundSchema, numberType().int()])).optional(),
38986
- department: nullableType(unionType([Department$inboundSchema, numberType().int()])).optional(),
38987
- name: nullableType(stringType()).optional(),
38988
- short_name: nullableType(stringType()).optional(),
38989
- description: nullableType(stringType()).optional(),
38990
- status: nullableType(stringType()).optional(),
38991
- notes: nullableType(stringType()).optional(),
38992
- rules: nullableType(arrayType(nullableType(ZoneConfig$inboundSchema))).optional(),
38993
- location: lazyType(() => ZoneLocation$inboundSchema).optional(),
38994
- kiosk_offline_notification: lazyType(() => KioskOfflineNotification$inboundSchema).optional(),
38995
- vendor_policy: lazyType(() => ZoneVendorPolicy$inboundSchema).optional(),
38996
- visitor_checkin_policy: lazyType(() => ZoneVisitorCheckinPolicy$inboundSchema).optional(),
38997
- visit_request_policy: lazyType(() => ZoneVisitRequestPolicy$inboundSchema).optional(),
38998
- printer_config: lazyType(() => PrinterConfig$inboundSchema).optional(),
38999
- gps_checkin_policy: lazyType(() => GpsCheckinPolicy$inboundSchema).optional()
39057
+ ((Consumers$) => {
39058
+ Consumers$.inboundSchema = Consumers$inboundSchema;
39059
+ Consumers$.outboundSchema = Consumers$outboundSchema;
39060
+ })(Consumers$ ||= {});
39061
+ WebhookEndpoint$inboundSchema = objectType({
39062
+ id: numberType().int(),
39063
+ webhook_url: stringType(),
39064
+ signature_algo: SignatureAlgo$inboundSchema.default("sig_hmac_sha256"),
39065
+ subscriptions: nullableType(arrayType(stringType())),
39066
+ consumers: lazyType(() => Consumers$inboundSchema),
39067
+ secrets: nullableType(arrayType(stringType())).optional()
39000
39068
  }).transform((v2) => {
39001
39069
  return remap(v2, {
39002
- short_name: "shortName",
39003
- kiosk_offline_notification: "kioskOfflineNotification",
39004
- vendor_policy: "vendorPolicy",
39005
- visitor_checkin_policy: "visitorCheckinPolicy",
39006
- visit_request_policy: "visitRequestPolicy",
39007
- printer_config: "printerConfig",
39008
- gps_checkin_policy: "gpsCheckinPolicy"
39070
+ webhook_url: "webhookUrl",
39071
+ signature_algo: "signatureAlgo"
39009
39072
  });
39010
39073
  });
39011
- Zone$outboundSchema = objectType({
39012
- id: numberType().int().optional(),
39013
- facility: nullableType(unionType([Facility$outboundSchema, numberType().int()])).optional(),
39014
- department: nullableType(unionType([Department$outboundSchema, numberType().int()])).optional(),
39015
- name: nullableType(stringType()).optional(),
39016
- shortName: nullableType(stringType()).optional(),
39017
- description: nullableType(stringType()).optional(),
39018
- status: nullableType(stringType()).optional(),
39019
- notes: nullableType(stringType()).optional(),
39020
- rules: nullableType(arrayType(nullableType(ZoneConfig$outboundSchema))).optional(),
39021
- location: lazyType(() => ZoneLocation$outboundSchema).optional(),
39022
- kioskOfflineNotification: lazyType(() => KioskOfflineNotification$outboundSchema).optional(),
39023
- vendorPolicy: lazyType(() => ZoneVendorPolicy$outboundSchema).optional(),
39024
- visitorCheckinPolicy: lazyType(() => ZoneVisitorCheckinPolicy$outboundSchema).optional(),
39025
- visitRequestPolicy: lazyType(() => ZoneVisitRequestPolicy$outboundSchema).optional(),
39026
- printerConfig: lazyType(() => PrinterConfig$outboundSchema).optional(),
39027
- gpsCheckinPolicy: lazyType(() => GpsCheckinPolicy$outboundSchema).optional()
39074
+ WebhookEndpoint$outboundSchema = objectType({
39075
+ id: numberType().int(),
39076
+ webhookUrl: stringType(),
39077
+ signatureAlgo: SignatureAlgo$outboundSchema.default("sig_hmac_sha256"),
39078
+ subscriptions: nullableType(arrayType(stringType())),
39079
+ consumers: lazyType(() => Consumers$outboundSchema),
39080
+ secrets: nullableType(arrayType(stringType())).optional()
39028
39081
  }).transform((v2) => {
39029
39082
  return remap(v2, {
39030
- shortName: "short_name",
39031
- kioskOfflineNotification: "kiosk_offline_notification",
39032
- vendorPolicy: "vendor_policy",
39033
- visitorCheckinPolicy: "visitor_checkin_policy",
39034
- visitRequestPolicy: "visit_request_policy",
39035
- printerConfig: "printer_config",
39036
- gpsCheckinPolicy: "gps_checkin_policy"
39083
+ webhookUrl: "webhook_url",
39084
+ signatureAlgo: "signature_algo"
39037
39085
  });
39038
39086
  });
39039
- ((Zone$) => {
39040
- Zone$.inboundSchema = Zone$inboundSchema;
39041
- Zone$.outboundSchema = Zone$outboundSchema;
39042
- })(Zone$ ||= {});
39087
+ ((WebhookEndpoint$) => {
39088
+ WebhookEndpoint$.inboundSchema = WebhookEndpoint$inboundSchema;
39089
+ WebhookEndpoint$.outboundSchema = WebhookEndpoint$outboundSchema;
39090
+ })(WebhookEndpoint$ ||= {});
39043
39091
  });
39044
39092
 
39045
39093
  // src/models/components/index.ts
@@ -39055,6 +39103,7 @@ var init_components = __esm(() => {
39055
39103
  init_expand();
39056
39104
  init_facility();
39057
39105
  init_facilitysummary();
39106
+ init_handoff();
39058
39107
  init_imageset();
39059
39108
  init_invoice();
39060
39109
  init_invoiceitem();
@@ -40722,6 +40771,62 @@ var init_purchasescrubcredits = __esm(() => {
40722
40771
  })(PurchaseScrubCreditsResponseBody$ ||= {});
40723
40772
  });
40724
40773
 
40774
+ // src/models/operations/securityzonecheckin.ts
40775
+ var Two$inboundSchema, Two$outboundSchema, Two$, One$inboundSchema2, One$outboundSchema2, One$2, SecurityZoneCheckinRequestBody$inboundSchema, SecurityZoneCheckinRequestBody$outboundSchema, SecurityZoneCheckinRequestBody$;
40776
+ var init_securityzonecheckin = __esm(() => {
40777
+ init_lib();
40778
+ init_primitives();
40779
+ Two$inboundSchema = objectType({
40780
+ qr_code: stringType()
40781
+ }).transform((v2) => {
40782
+ return remap(v2, {
40783
+ qr_code: "qrCode"
40784
+ });
40785
+ });
40786
+ Two$outboundSchema = objectType({
40787
+ qrCode: stringType()
40788
+ }).transform((v2) => {
40789
+ return remap(v2, {
40790
+ qrCode: "qr_code"
40791
+ });
40792
+ });
40793
+ ((Two$) => {
40794
+ Two$.inboundSchema = Two$inboundSchema;
40795
+ Two$.outboundSchema = Two$outboundSchema;
40796
+ })(Two$ ||= {});
40797
+ One$inboundSchema2 = objectType({
40798
+ zone_id: numberType().int(),
40799
+ longitude: anyType().optional(),
40800
+ latitude: anyType().optional()
40801
+ }).transform((v2) => {
40802
+ return remap(v2, {
40803
+ zone_id: "zoneId"
40804
+ });
40805
+ });
40806
+ One$outboundSchema2 = objectType({
40807
+ zoneId: numberType().int(),
40808
+ longitude: anyType().optional(),
40809
+ latitude: anyType().optional()
40810
+ }).transform((v2) => {
40811
+ return remap(v2, {
40812
+ zoneId: "zone_id"
40813
+ });
40814
+ });
40815
+ ((One$) => {
40816
+ One$.inboundSchema = One$inboundSchema2;
40817
+ One$.outboundSchema = One$outboundSchema2;
40818
+ })(One$2 ||= {});
40819
+ SecurityZoneCheckinRequestBody$inboundSchema = unionType([lazyType(() => Two$inboundSchema), lazyType(() => One$inboundSchema2)]);
40820
+ SecurityZoneCheckinRequestBody$outboundSchema = unionType([
40821
+ lazyType(() => Two$outboundSchema),
40822
+ lazyType(() => One$outboundSchema2)
40823
+ ]);
40824
+ ((SecurityZoneCheckinRequestBody$) => {
40825
+ SecurityZoneCheckinRequestBody$.inboundSchema = SecurityZoneCheckinRequestBody$inboundSchema;
40826
+ SecurityZoneCheckinRequestBody$.outboundSchema = SecurityZoneCheckinRequestBody$outboundSchema;
40827
+ })(SecurityZoneCheckinRequestBody$ ||= {});
40828
+ });
40829
+
40725
40830
  // src/models/operations/updatevendordetails.ts
40726
40831
  var EmailRecepient, EmailRecepient$inboundSchema, EmailRecepient$outboundSchema, EmailRecepient$, UpdateVendorDetailsRequestBody$inboundSchema, UpdateVendorDetailsRequestBody$outboundSchema, UpdateVendorDetailsRequestBody$, UpdateVendorDetailsRequest$inboundSchema, UpdateVendorDetailsRequest$outboundSchema, UpdateVendorDetailsRequest$;
40727
40832
  var init_updatevendordetails = __esm(() => {
@@ -41035,6 +41140,7 @@ var init_operations = __esm(() => {
41035
41140
  init_password();
41036
41141
  init_passwordresetrequest();
41037
41142
  init_purchasescrubcredits();
41143
+ init_securityzonecheckin();
41038
41144
  init_updatevendordetails();
41039
41145
  init_updatevendormanagedbycompany();
41040
41146
  init_updatevendorscrubdetails();
@@ -45394,11 +45500,112 @@ List or search security zones`,
45394
45500
  };
45395
45501
  });
45396
45502
 
45503
+ // src/funcs/zonesSecurityZoneCheckin.ts
45504
+ function zonesSecurityZoneCheckin(client, request, options) {
45505
+ return new APIPromise($do37(client, request, options));
45506
+ }
45507
+ async function $do37(client, request, options) {
45508
+ const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
45509
+ if (!parsed.ok) {
45510
+ return [parsed, { status: "invalid" }];
45511
+ }
45512
+ const payload = parsed.value;
45513
+ const body = encodeJSON("body", payload, { explode: true });
45514
+ const path = pathToFunc("/security_zones/checkin_request")();
45515
+ const headers = new Headers(compactMap({
45516
+ "Content-Type": "application/json",
45517
+ Accept: "application/json"
45518
+ }));
45519
+ const securityInput = await extractSecurity(client._options.security);
45520
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45521
+ const context = {
45522
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45523
+ operationID: "securityZoneCheckin",
45524
+ oAuth2Scopes: [],
45525
+ resolvedSecurity: requestSecurity,
45526
+ securitySource: client._options.security,
45527
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45528
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45529
+ };
45530
+ const requestRes = client._createRequest(context, {
45531
+ security: requestSecurity,
45532
+ method: "POST",
45533
+ baseURL: options?.serverURL,
45534
+ path,
45535
+ headers,
45536
+ body,
45537
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45538
+ }, options);
45539
+ if (!requestRes.ok) {
45540
+ return [requestRes, { status: "invalid" }];
45541
+ }
45542
+ const req = requestRes.value;
45543
+ const doResult = await client._do(req, {
45544
+ context,
45545
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
45546
+ retryConfig: context.retryConfig,
45547
+ retryCodes: context.retryCodes
45548
+ });
45549
+ if (!doResult.ok) {
45550
+ return [doResult, { status: "request-error", request: req }];
45551
+ }
45552
+ const response = doResult.value;
45553
+ const responseFields = {
45554
+ HttpMeta: { Response: response, Request: req }
45555
+ };
45556
+ const [result] = await match(json(200, Handoff$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45557
+ if (!result.ok) {
45558
+ return [result, { status: "complete", request: req, response }];
45559
+ }
45560
+ return [result, { status: "complete", request: req, response }];
45561
+ }
45562
+ var init_zonesSecurityZoneCheckin = __esm(() => {
45563
+ init_encodings();
45564
+ init_matchers();
45565
+ init_primitives();
45566
+ init_schemas();
45567
+ init_security();
45568
+ init_url();
45569
+ init_components();
45570
+ init_errors();
45571
+ init_operations();
45572
+ init_async();
45573
+ });
45574
+
45575
+ // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
45576
+ var args36, tool$zonesSecurityZoneCheckin;
45577
+ var init_zonesSecurityZoneCheckin2 = __esm(() => {
45578
+ init_zonesSecurityZoneCheckin();
45579
+ init_operations();
45580
+ init_tools();
45581
+ args36 = {
45582
+ request: SecurityZoneCheckinRequestBody$inboundSchema
45583
+ };
45584
+ tool$zonesSecurityZoneCheckin = {
45585
+ name: "zones-security-zone-checkin",
45586
+ description: `Security zone checkin request
45587
+
45588
+ It will create a handoff record in the db for security zone check in request`,
45589
+ args: args36,
45590
+ tool: async (client, args37, ctx) => {
45591
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45592
+ if (!result.ok) {
45593
+ return {
45594
+ content: [{ type: "text", text: result.error.message }],
45595
+ isError: true
45596
+ };
45597
+ }
45598
+ const value = result.value;
45599
+ return formatResult(value, apiCall);
45600
+ }
45601
+ };
45602
+ });
45603
+
45397
45604
  // src/mcp-server/server.ts
45398
45605
  function createMCPServer(deps) {
45399
45606
  const server = new McpServer({
45400
45607
  name: "GreenSecurity",
45401
- version: "0.30.37"
45608
+ version: "0.30.39"
45402
45609
  });
45403
45610
  const client = new GreenSecurityCore({
45404
45611
  security: deps.security,
@@ -45448,6 +45655,7 @@ function createMCPServer(deps) {
45448
45655
  tool(tool$vendorScansVendorScanOut);
45449
45656
  tool(tool$companiesListOrSearchCompanies);
45450
45657
  tool(tool$zonesListOrSearchSecurityZones);
45658
+ tool(tool$zonesSecurityZoneCheckin);
45451
45659
  return server;
45452
45660
  }
45453
45661
  var init_server2 = __esm(() => {
@@ -45491,6 +45699,7 @@ var init_server2 = __esm(() => {
45491
45699
  init_webhooksGetWebhookEndpoint2();
45492
45700
  init_webhooksListAllWebhookEndpoints2();
45493
45701
  init_zonesListOrSearchSecurityZones2();
45702
+ init_zonesSecurityZoneCheckin2();
45494
45703
  });
45495
45704
 
45496
45705
  // src/mcp-server/cli/start/impl.ts
@@ -46689,7 +46898,7 @@ var routes = an({
46689
46898
  var app = He(routes, {
46690
46899
  name: "mcp",
46691
46900
  versionInfo: {
46692
- currentVersion: "0.30.37"
46901
+ currentVersion: "0.30.39"
46693
46902
  }
46694
46903
  });
46695
46904
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -46697,5 +46906,5 @@ export {
46697
46906
  app
46698
46907
  };
46699
46908
 
46700
- //# debugId=AAFC9323C668470A64756E2164756E21
46909
+ //# debugId=9B787DB528C4EE0764756E2164756E21
46701
46910
  //# sourceMappingURL=mcp-server.js.map