@seamapi/types 1.560.0 → 1.561.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91743,7 +91743,7 @@ declare const _default: {
91743
91743
  'x-undocumented': string;
91744
91744
  };
91745
91745
  };
91746
- '/seam/customer/v1/reservations/list': {
91746
+ '/seam/customer/v1/reservations/get': {
91747
91747
  get: {
91748
91748
  description: string;
91749
91749
  operationId: string;
@@ -91752,23 +91752,210 @@ declare const _default: {
91752
91752
  name: string;
91753
91753
  schema: {
91754
91754
  description: string;
91755
+ format: string;
91755
91756
  type: string;
91756
- default?: never;
91757
- exclusiveMinimum?: never;
91758
- minimum?: never;
91759
- format?: never;
91760
- nullable?: never;
91761
91757
  };
91762
91758
  } | {
91763
91759
  in: string;
91764
91760
  name: string;
91765
91761
  schema: {
91766
- default: number;
91767
91762
  description: string;
91768
- exclusiveMinimum: boolean;
91769
- minimum: number;
91770
91763
  type: string;
91771
91764
  format?: never;
91765
+ };
91766
+ })[];
91767
+ responses: {
91768
+ 200: {
91769
+ content: {
91770
+ 'application/json': {
91771
+ schema: {
91772
+ properties: {
91773
+ ok: {
91774
+ type: string;
91775
+ };
91776
+ reservation: {
91777
+ properties: {
91778
+ access_methods: {
91779
+ items: {
91780
+ $ref: string;
91781
+ };
91782
+ type: string;
91783
+ };
91784
+ created_at: {
91785
+ format: string;
91786
+ type: string;
91787
+ };
91788
+ ends_at: {
91789
+ format: string;
91790
+ nullable: boolean;
91791
+ type: string;
91792
+ };
91793
+ guest_name: {
91794
+ nullable: boolean;
91795
+ type: string;
91796
+ };
91797
+ name: {
91798
+ nullable: boolean;
91799
+ type: string;
91800
+ };
91801
+ reservation_id: {
91802
+ format: string;
91803
+ type: string;
91804
+ };
91805
+ reservation_key: {
91806
+ type: string;
91807
+ };
91808
+ starts_at: {
91809
+ format: string;
91810
+ nullable: boolean;
91811
+ type: string;
91812
+ };
91813
+ };
91814
+ required: string[];
91815
+ type: string;
91816
+ };
91817
+ };
91818
+ required: string[];
91819
+ type: string;
91820
+ };
91821
+ };
91822
+ };
91823
+ description: string;
91824
+ };
91825
+ 400: {
91826
+ description: string;
91827
+ };
91828
+ 401: {
91829
+ description: string;
91830
+ };
91831
+ };
91832
+ security: {
91833
+ client_session_with_customer: never[];
91834
+ }[];
91835
+ summary: string;
91836
+ tags: never[];
91837
+ 'x-fern-sdk-group-name': string[];
91838
+ 'x-fern-sdk-method-name': string;
91839
+ 'x-fern-sdk-return-value': string;
91840
+ 'x-response-key': string;
91841
+ 'x-title': string;
91842
+ 'x-undocumented': string;
91843
+ };
91844
+ post: {
91845
+ description: string;
91846
+ operationId: string;
91847
+ requestBody: {
91848
+ content: {
91849
+ 'application/json': {
91850
+ schema: {
91851
+ properties: {
91852
+ reservation_id: {
91853
+ description: string;
91854
+ format: string;
91855
+ type: string;
91856
+ };
91857
+ reservation_key: {
91858
+ description: string;
91859
+ type: string;
91860
+ };
91861
+ };
91862
+ type: string;
91863
+ };
91864
+ };
91865
+ };
91866
+ };
91867
+ responses: {
91868
+ 200: {
91869
+ content: {
91870
+ 'application/json': {
91871
+ schema: {
91872
+ properties: {
91873
+ ok: {
91874
+ type: string;
91875
+ };
91876
+ reservation: {
91877
+ properties: {
91878
+ access_methods: {
91879
+ items: {
91880
+ $ref: string;
91881
+ };
91882
+ type: string;
91883
+ };
91884
+ created_at: {
91885
+ format: string;
91886
+ type: string;
91887
+ };
91888
+ ends_at: {
91889
+ format: string;
91890
+ nullable: boolean;
91891
+ type: string;
91892
+ };
91893
+ guest_name: {
91894
+ nullable: boolean;
91895
+ type: string;
91896
+ };
91897
+ name: {
91898
+ nullable: boolean;
91899
+ type: string;
91900
+ };
91901
+ reservation_id: {
91902
+ format: string;
91903
+ type: string;
91904
+ };
91905
+ reservation_key: {
91906
+ type: string;
91907
+ };
91908
+ starts_at: {
91909
+ format: string;
91910
+ nullable: boolean;
91911
+ type: string;
91912
+ };
91913
+ };
91914
+ required: string[];
91915
+ type: string;
91916
+ };
91917
+ };
91918
+ required: string[];
91919
+ type: string;
91920
+ };
91921
+ };
91922
+ };
91923
+ description: string;
91924
+ };
91925
+ 400: {
91926
+ description: string;
91927
+ };
91928
+ 401: {
91929
+ description: string;
91930
+ };
91931
+ };
91932
+ security: {
91933
+ client_session_with_customer: never[];
91934
+ }[];
91935
+ summary: string;
91936
+ tags: never[];
91937
+ 'x-fern-sdk-group-name': string[];
91938
+ 'x-fern-sdk-method-name': string;
91939
+ 'x-fern-sdk-return-value': string;
91940
+ 'x-response-key': string;
91941
+ 'x-title': string;
91942
+ 'x-undocumented': string;
91943
+ };
91944
+ };
91945
+ '/seam/customer/v1/reservations/list': {
91946
+ get: {
91947
+ description: string;
91948
+ operationId: string;
91949
+ parameters: ({
91950
+ in: string;
91951
+ name: string;
91952
+ schema: {
91953
+ description: string;
91954
+ type: string;
91955
+ format?: never;
91956
+ default?: never;
91957
+ exclusiveMinimum?: never;
91958
+ minimum?: never;
91772
91959
  nullable?: never;
91773
91960
  };
91774
91961
  } | {
@@ -91783,6 +91970,18 @@ declare const _default: {
91783
91970
  minimum?: never;
91784
91971
  nullable?: never;
91785
91972
  };
91973
+ } | {
91974
+ in: string;
91975
+ name: string;
91976
+ schema: {
91977
+ default: number;
91978
+ description: string;
91979
+ exclusiveMinimum: boolean;
91980
+ minimum: number;
91981
+ type: string;
91982
+ format?: never;
91983
+ nullable?: never;
91984
+ };
91786
91985
  } | {
91787
91986
  in: string;
91788
91987
  name: string;
@@ -91790,10 +91989,10 @@ declare const _default: {
91790
91989
  description: string;
91791
91990
  nullable: boolean;
91792
91991
  type: string;
91992
+ format?: never;
91793
91993
  default?: never;
91794
91994
  exclusiveMinimum?: never;
91795
91995
  minimum?: never;
91796
- format?: never;
91797
91996
  };
91798
91997
  })[];
91799
91998
  responses: {
@@ -91904,6 +92103,11 @@ declare const _default: {
91904
92103
  nullable: boolean;
91905
92104
  type: string;
91906
92105
  };
92106
+ space_id: {
92107
+ description: string;
92108
+ format: string;
92109
+ type: string;
92110
+ };
91907
92111
  space_key: {
91908
92112
  description: string;
91909
92113
  type: string;
@@ -161544,6 +161748,35 @@ type Routes = {
161544
161748
  };
161545
161749
  };
161546
161750
  };
161751
+ '/seam/customer/v1/reservations/get': {
161752
+ route: '/seam/customer/v1/reservations/get';
161753
+ method: 'GET' | 'POST';
161754
+ queryParams: {};
161755
+ jsonBody: {};
161756
+ commonParams: {
161757
+ /** ID of the reservation to retrieve. */
161758
+ reservation_id?: string | undefined;
161759
+ /** Key of the reservation to retrieve. */
161760
+ reservation_key?: string | undefined;
161761
+ };
161762
+ formData: {};
161763
+ jsonResponse: {
161764
+ reservation: {
161765
+ reservation_id: string;
161766
+ reservation_key: string;
161767
+ name: string | null;
161768
+ starts_at: string | null;
161769
+ ends_at: string | null;
161770
+ created_at: string;
161771
+ guest_name: string | null;
161772
+ access_methods: {
161773
+ access_method_id: string;
161774
+ mode: string;
161775
+ is_issued: boolean;
161776
+ }[];
161777
+ };
161778
+ };
161779
+ };
161547
161780
  '/seam/customer/v1/reservations/list': {
161548
161781
  route: '/seam/customer/v1/reservations/list';
161549
161782
  method: 'GET' | 'POST';
@@ -161552,6 +161785,8 @@ type Routes = {
161552
161785
  commonParams: {
161553
161786
  /** Filter reservations by space key. */
161554
161787
  space_key?: string | undefined;
161788
+ /** Filter reservations by space ID (UUID). */
161789
+ space_id?: string | undefined;
161555
161790
  /** Maximum number of records to return per page. */
161556
161791
  limit?: number;
161557
161792
  /** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */
package/dist/index.cjs CHANGED
@@ -51577,6 +51577,177 @@ var openapi_default = {
51577
51577
  "x-undocumented": "Internal endpoint for customer portals."
51578
51578
  }
51579
51579
  },
51580
+ "/seam/customer/v1/reservations/get": {
51581
+ get: {
51582
+ description: "Returns a single reservation for a specific customer by reservation ID.",
51583
+ operationId: "seamCustomerV1ReservationsGetGet",
51584
+ parameters: [
51585
+ {
51586
+ in: "query",
51587
+ name: "reservation_id",
51588
+ schema: {
51589
+ description: "ID of the reservation to retrieve.",
51590
+ format: "uuid",
51591
+ type: "string"
51592
+ }
51593
+ },
51594
+ {
51595
+ in: "query",
51596
+ name: "reservation_key",
51597
+ schema: {
51598
+ description: "Key of the reservation to retrieve.",
51599
+ type: "string"
51600
+ }
51601
+ }
51602
+ ],
51603
+ responses: {
51604
+ 200: {
51605
+ content: {
51606
+ "application/json": {
51607
+ schema: {
51608
+ properties: {
51609
+ ok: { type: "boolean" },
51610
+ reservation: {
51611
+ properties: {
51612
+ access_methods: {
51613
+ items: { $ref: "#/components/schemas/access_method" },
51614
+ type: "array"
51615
+ },
51616
+ created_at: { format: "date-time", type: "string" },
51617
+ ends_at: {
51618
+ format: "date-time",
51619
+ nullable: true,
51620
+ type: "string"
51621
+ },
51622
+ guest_name: { nullable: true, type: "string" },
51623
+ name: { nullable: true, type: "string" },
51624
+ reservation_id: { format: "uuid", type: "string" },
51625
+ reservation_key: { type: "string" },
51626
+ starts_at: {
51627
+ format: "date-time",
51628
+ nullable: true,
51629
+ type: "string"
51630
+ }
51631
+ },
51632
+ required: [
51633
+ "reservation_id",
51634
+ "reservation_key",
51635
+ "name",
51636
+ "starts_at",
51637
+ "ends_at",
51638
+ "created_at",
51639
+ "guest_name",
51640
+ "access_methods"
51641
+ ],
51642
+ type: "object"
51643
+ }
51644
+ },
51645
+ required: ["reservation", "ok"],
51646
+ type: "object"
51647
+ }
51648
+ }
51649
+ },
51650
+ description: "OK"
51651
+ },
51652
+ 400: { description: "Bad Request" },
51653
+ 401: { description: "Unauthorized" }
51654
+ },
51655
+ security: [{ client_session_with_customer: [] }],
51656
+ summary: "/seam/customer/v1/reservations/get",
51657
+ tags: [],
51658
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
51659
+ "x-fern-sdk-method-name": "get",
51660
+ "x-fern-sdk-return-value": "reservation",
51661
+ "x-response-key": "reservation",
51662
+ "x-title": "Get Reservation for Customer",
51663
+ "x-undocumented": "Internal endpoint for customer portals."
51664
+ },
51665
+ post: {
51666
+ description: "Returns a single reservation for a specific customer by reservation ID.",
51667
+ operationId: "seamCustomerV1ReservationsGetPost",
51668
+ requestBody: {
51669
+ content: {
51670
+ "application/json": {
51671
+ schema: {
51672
+ properties: {
51673
+ reservation_id: {
51674
+ description: "ID of the reservation to retrieve.",
51675
+ format: "uuid",
51676
+ type: "string"
51677
+ },
51678
+ reservation_key: {
51679
+ description: "Key of the reservation to retrieve.",
51680
+ type: "string"
51681
+ }
51682
+ },
51683
+ type: "object"
51684
+ }
51685
+ }
51686
+ }
51687
+ },
51688
+ responses: {
51689
+ 200: {
51690
+ content: {
51691
+ "application/json": {
51692
+ schema: {
51693
+ properties: {
51694
+ ok: { type: "boolean" },
51695
+ reservation: {
51696
+ properties: {
51697
+ access_methods: {
51698
+ items: { $ref: "#/components/schemas/access_method" },
51699
+ type: "array"
51700
+ },
51701
+ created_at: { format: "date-time", type: "string" },
51702
+ ends_at: {
51703
+ format: "date-time",
51704
+ nullable: true,
51705
+ type: "string"
51706
+ },
51707
+ guest_name: { nullable: true, type: "string" },
51708
+ name: { nullable: true, type: "string" },
51709
+ reservation_id: { format: "uuid", type: "string" },
51710
+ reservation_key: { type: "string" },
51711
+ starts_at: {
51712
+ format: "date-time",
51713
+ nullable: true,
51714
+ type: "string"
51715
+ }
51716
+ },
51717
+ required: [
51718
+ "reservation_id",
51719
+ "reservation_key",
51720
+ "name",
51721
+ "starts_at",
51722
+ "ends_at",
51723
+ "created_at",
51724
+ "guest_name",
51725
+ "access_methods"
51726
+ ],
51727
+ type: "object"
51728
+ }
51729
+ },
51730
+ required: ["reservation", "ok"],
51731
+ type: "object"
51732
+ }
51733
+ }
51734
+ },
51735
+ description: "OK"
51736
+ },
51737
+ 400: { description: "Bad Request" },
51738
+ 401: { description: "Unauthorized" }
51739
+ },
51740
+ security: [{ client_session_with_customer: [] }],
51741
+ summary: "/seam/customer/v1/reservations/get",
51742
+ tags: [],
51743
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
51744
+ "x-fern-sdk-method-name": "get",
51745
+ "x-fern-sdk-return-value": "reservation",
51746
+ "x-response-key": "reservation",
51747
+ "x-title": "Get Reservation for Customer",
51748
+ "x-undocumented": "Internal endpoint for customer portals."
51749
+ }
51750
+ },
51580
51751
  "/seam/customer/v1/reservations/list": {
51581
51752
  get: {
51582
51753
  description: "Returns a list of reservations for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.",
@@ -51590,6 +51761,15 @@ var openapi_default = {
51590
51761
  type: "string"
51591
51762
  }
51592
51763
  },
51764
+ {
51765
+ in: "query",
51766
+ name: "space_id",
51767
+ schema: {
51768
+ description: "Filter reservations by space ID (UUID).",
51769
+ format: "uuid",
51770
+ type: "string"
51771
+ }
51772
+ },
51593
51773
  {
51594
51774
  in: "query",
51595
51775
  name: "limit",
@@ -51713,6 +51893,11 @@ var openapi_default = {
51713
51893
  nullable: true,
51714
51894
  type: "string"
51715
51895
  },
51896
+ space_id: {
51897
+ description: "Filter reservations by space ID (UUID).",
51898
+ format: "uuid",
51899
+ type: "string"
51900
+ },
51716
51901
  space_key: {
51717
51902
  description: "Filter reservations by space key.",
51718
51903
  type: "string"