@greensecurity/javascript-sdk 0.30.37 → 0.30.42

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