@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.
- package/dist/connect.cjs +185 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +245 -10
- package/dist/index.cjs +185 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +214 -10
- package/lib/seam/connect/openapi.js +185 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +31 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +187 -0
- package/src/lib/seam/connect/route-types.ts +31 -0
package/dist/connect.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"
|