@seamapi/types 1.559.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 +400 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +532 -0
- package/dist/index.cjs +400 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +459 -0
- package/lib/seam/connect/openapi.js +400 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +73 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +409 -0
- package/src/lib/seam/connect/route-types.ts +73 -0
package/dist/connect.d.cts
CHANGED
|
@@ -91743,6 +91743,465 @@ declare const _default: {
|
|
|
91743
91743
|
'x-undocumented': string;
|
|
91744
91744
|
};
|
|
91745
91745
|
};
|
|
91746
|
+
'/seam/customer/v1/reservations/get': {
|
|
91747
|
+
get: {
|
|
91748
|
+
description: string;
|
|
91749
|
+
operationId: string;
|
|
91750
|
+
parameters: ({
|
|
91751
|
+
in: string;
|
|
91752
|
+
name: string;
|
|
91753
|
+
schema: {
|
|
91754
|
+
description: string;
|
|
91755
|
+
format: string;
|
|
91756
|
+
type: string;
|
|
91757
|
+
};
|
|
91758
|
+
} | {
|
|
91759
|
+
in: string;
|
|
91760
|
+
name: string;
|
|
91761
|
+
schema: {
|
|
91762
|
+
description: string;
|
|
91763
|
+
type: string;
|
|
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;
|
|
91959
|
+
nullable?: never;
|
|
91960
|
+
};
|
|
91961
|
+
} | {
|
|
91962
|
+
in: string;
|
|
91963
|
+
name: string;
|
|
91964
|
+
schema: {
|
|
91965
|
+
description: string;
|
|
91966
|
+
format: string;
|
|
91967
|
+
type: string;
|
|
91968
|
+
default?: never;
|
|
91969
|
+
exclusiveMinimum?: never;
|
|
91970
|
+
minimum?: never;
|
|
91971
|
+
nullable?: never;
|
|
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
|
+
};
|
|
91985
|
+
} | {
|
|
91986
|
+
in: string;
|
|
91987
|
+
name: string;
|
|
91988
|
+
schema: {
|
|
91989
|
+
description: string;
|
|
91990
|
+
nullable: boolean;
|
|
91991
|
+
type: string;
|
|
91992
|
+
format?: never;
|
|
91993
|
+
default?: never;
|
|
91994
|
+
exclusiveMinimum?: never;
|
|
91995
|
+
minimum?: never;
|
|
91996
|
+
};
|
|
91997
|
+
})[];
|
|
91998
|
+
responses: {
|
|
91999
|
+
200: {
|
|
92000
|
+
content: {
|
|
92001
|
+
'application/json': {
|
|
92002
|
+
schema: {
|
|
92003
|
+
properties: {
|
|
92004
|
+
ok: {
|
|
92005
|
+
type: string;
|
|
92006
|
+
};
|
|
92007
|
+
pagination: {
|
|
92008
|
+
$ref: string;
|
|
92009
|
+
};
|
|
92010
|
+
reservations: {
|
|
92011
|
+
items: {
|
|
92012
|
+
properties: {
|
|
92013
|
+
access_methods: {
|
|
92014
|
+
items: {
|
|
92015
|
+
$ref: string;
|
|
92016
|
+
};
|
|
92017
|
+
type: string;
|
|
92018
|
+
};
|
|
92019
|
+
created_at: {
|
|
92020
|
+
format: string;
|
|
92021
|
+
type: string;
|
|
92022
|
+
};
|
|
92023
|
+
ends_at: {
|
|
92024
|
+
format: string;
|
|
92025
|
+
nullable: boolean;
|
|
92026
|
+
type: string;
|
|
92027
|
+
};
|
|
92028
|
+
guest_name: {
|
|
92029
|
+
nullable: boolean;
|
|
92030
|
+
type: string;
|
|
92031
|
+
};
|
|
92032
|
+
name: {
|
|
92033
|
+
nullable: boolean;
|
|
92034
|
+
type: string;
|
|
92035
|
+
};
|
|
92036
|
+
reservation_id: {
|
|
92037
|
+
format: string;
|
|
92038
|
+
type: string;
|
|
92039
|
+
};
|
|
92040
|
+
reservation_key: {
|
|
92041
|
+
type: string;
|
|
92042
|
+
};
|
|
92043
|
+
starts_at: {
|
|
92044
|
+
format: string;
|
|
92045
|
+
nullable: boolean;
|
|
92046
|
+
type: string;
|
|
92047
|
+
};
|
|
92048
|
+
};
|
|
92049
|
+
required: string[];
|
|
92050
|
+
type: string;
|
|
92051
|
+
};
|
|
92052
|
+
type: string;
|
|
92053
|
+
};
|
|
92054
|
+
};
|
|
92055
|
+
required: string[];
|
|
92056
|
+
type: string;
|
|
92057
|
+
};
|
|
92058
|
+
};
|
|
92059
|
+
};
|
|
92060
|
+
description: string;
|
|
92061
|
+
};
|
|
92062
|
+
400: {
|
|
92063
|
+
description: string;
|
|
92064
|
+
};
|
|
92065
|
+
401: {
|
|
92066
|
+
description: string;
|
|
92067
|
+
};
|
|
92068
|
+
};
|
|
92069
|
+
security: {
|
|
92070
|
+
client_session_with_customer: never[];
|
|
92071
|
+
}[];
|
|
92072
|
+
summary: string;
|
|
92073
|
+
tags: never[];
|
|
92074
|
+
'x-fern-sdk-group-name': string[];
|
|
92075
|
+
'x-fern-sdk-method-name': string;
|
|
92076
|
+
'x-fern-sdk-return-value': string;
|
|
92077
|
+
'x-response-key': string;
|
|
92078
|
+
'x-title': string;
|
|
92079
|
+
'x-undocumented': string;
|
|
92080
|
+
};
|
|
92081
|
+
post: {
|
|
92082
|
+
description: string;
|
|
92083
|
+
operationId: string;
|
|
92084
|
+
requestBody: {
|
|
92085
|
+
content: {
|
|
92086
|
+
'application/json': {
|
|
92087
|
+
schema: {
|
|
92088
|
+
properties: {
|
|
92089
|
+
created_before: {
|
|
92090
|
+
description: string;
|
|
92091
|
+
format: string;
|
|
92092
|
+
type: string;
|
|
92093
|
+
};
|
|
92094
|
+
limit: {
|
|
92095
|
+
default: number;
|
|
92096
|
+
description: string;
|
|
92097
|
+
exclusiveMinimum: boolean;
|
|
92098
|
+
minimum: number;
|
|
92099
|
+
type: string;
|
|
92100
|
+
};
|
|
92101
|
+
page_cursor: {
|
|
92102
|
+
description: string;
|
|
92103
|
+
nullable: boolean;
|
|
92104
|
+
type: string;
|
|
92105
|
+
};
|
|
92106
|
+
space_id: {
|
|
92107
|
+
description: string;
|
|
92108
|
+
format: string;
|
|
92109
|
+
type: string;
|
|
92110
|
+
};
|
|
92111
|
+
space_key: {
|
|
92112
|
+
description: string;
|
|
92113
|
+
type: string;
|
|
92114
|
+
};
|
|
92115
|
+
};
|
|
92116
|
+
type: string;
|
|
92117
|
+
};
|
|
92118
|
+
};
|
|
92119
|
+
};
|
|
92120
|
+
};
|
|
92121
|
+
responses: {
|
|
92122
|
+
200: {
|
|
92123
|
+
content: {
|
|
92124
|
+
'application/json': {
|
|
92125
|
+
schema: {
|
|
92126
|
+
properties: {
|
|
92127
|
+
ok: {
|
|
92128
|
+
type: string;
|
|
92129
|
+
};
|
|
92130
|
+
pagination: {
|
|
92131
|
+
$ref: string;
|
|
92132
|
+
};
|
|
92133
|
+
reservations: {
|
|
92134
|
+
items: {
|
|
92135
|
+
properties: {
|
|
92136
|
+
access_methods: {
|
|
92137
|
+
items: {
|
|
92138
|
+
$ref: string;
|
|
92139
|
+
};
|
|
92140
|
+
type: string;
|
|
92141
|
+
};
|
|
92142
|
+
created_at: {
|
|
92143
|
+
format: string;
|
|
92144
|
+
type: string;
|
|
92145
|
+
};
|
|
92146
|
+
ends_at: {
|
|
92147
|
+
format: string;
|
|
92148
|
+
nullable: boolean;
|
|
92149
|
+
type: string;
|
|
92150
|
+
};
|
|
92151
|
+
guest_name: {
|
|
92152
|
+
nullable: boolean;
|
|
92153
|
+
type: string;
|
|
92154
|
+
};
|
|
92155
|
+
name: {
|
|
92156
|
+
nullable: boolean;
|
|
92157
|
+
type: string;
|
|
92158
|
+
};
|
|
92159
|
+
reservation_id: {
|
|
92160
|
+
format: string;
|
|
92161
|
+
type: string;
|
|
92162
|
+
};
|
|
92163
|
+
reservation_key: {
|
|
92164
|
+
type: string;
|
|
92165
|
+
};
|
|
92166
|
+
starts_at: {
|
|
92167
|
+
format: string;
|
|
92168
|
+
nullable: boolean;
|
|
92169
|
+
type: string;
|
|
92170
|
+
};
|
|
92171
|
+
};
|
|
92172
|
+
required: string[];
|
|
92173
|
+
type: string;
|
|
92174
|
+
};
|
|
92175
|
+
type: string;
|
|
92176
|
+
};
|
|
92177
|
+
};
|
|
92178
|
+
required: string[];
|
|
92179
|
+
type: string;
|
|
92180
|
+
};
|
|
92181
|
+
};
|
|
92182
|
+
};
|
|
92183
|
+
description: string;
|
|
92184
|
+
};
|
|
92185
|
+
400: {
|
|
92186
|
+
description: string;
|
|
92187
|
+
};
|
|
92188
|
+
401: {
|
|
92189
|
+
description: string;
|
|
92190
|
+
};
|
|
92191
|
+
};
|
|
92192
|
+
security: {
|
|
92193
|
+
client_session_with_customer: never[];
|
|
92194
|
+
}[];
|
|
92195
|
+
summary: string;
|
|
92196
|
+
tags: never[];
|
|
92197
|
+
'x-fern-sdk-group-name': string[];
|
|
92198
|
+
'x-fern-sdk-method-name': string;
|
|
92199
|
+
'x-fern-sdk-return-value': string;
|
|
92200
|
+
'x-response-key': string;
|
|
92201
|
+
'x-title': string;
|
|
92202
|
+
'x-undocumented': string;
|
|
92203
|
+
};
|
|
92204
|
+
};
|
|
91746
92205
|
'/seam/customer/v1/settings/get': {
|
|
91747
92206
|
get: {
|
|
91748
92207
|
description: string;
|
|
@@ -161289,6 +161748,79 @@ type Routes = {
|
|
|
161289
161748
|
};
|
|
161290
161749
|
};
|
|
161291
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
|
+
};
|
|
161780
|
+
'/seam/customer/v1/reservations/list': {
|
|
161781
|
+
route: '/seam/customer/v1/reservations/list';
|
|
161782
|
+
method: 'GET' | 'POST';
|
|
161783
|
+
queryParams: {};
|
|
161784
|
+
jsonBody: {};
|
|
161785
|
+
commonParams: {
|
|
161786
|
+
/** Filter reservations by space key. */
|
|
161787
|
+
space_key?: string | undefined;
|
|
161788
|
+
/** Filter reservations by space ID (UUID). */
|
|
161789
|
+
space_id?: string | undefined;
|
|
161790
|
+
/** Maximum number of records to return per page. */
|
|
161791
|
+
limit?: number;
|
|
161792
|
+
/** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */
|
|
161793
|
+
created_before?: Date | undefined;
|
|
161794
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
161795
|
+
page_cursor?: ((string | undefined) | null) | undefined;
|
|
161796
|
+
};
|
|
161797
|
+
formData: {};
|
|
161798
|
+
jsonResponse: {
|
|
161799
|
+
reservations: {
|
|
161800
|
+
reservation_id: string;
|
|
161801
|
+
reservation_key: string;
|
|
161802
|
+
name: string | null;
|
|
161803
|
+
starts_at: string | null;
|
|
161804
|
+
ends_at: string | null;
|
|
161805
|
+
created_at: string;
|
|
161806
|
+
guest_name: string | null;
|
|
161807
|
+
access_methods: {
|
|
161808
|
+
access_method_id: string;
|
|
161809
|
+
mode: string;
|
|
161810
|
+
is_issued: boolean;
|
|
161811
|
+
}[];
|
|
161812
|
+
}[];
|
|
161813
|
+
/** Information about the current page of results. */
|
|
161814
|
+
pagination: {
|
|
161815
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
161816
|
+
next_page_cursor: string | null;
|
|
161817
|
+
/** Indicates whether there is another page of results after this one. */
|
|
161818
|
+
has_next_page: boolean;
|
|
161819
|
+
/** URL to get the next page of results. */
|
|
161820
|
+
next_page_url: string | null;
|
|
161821
|
+
};
|
|
161822
|
+
};
|
|
161823
|
+
};
|
|
161292
161824
|
'/seam/customer/v1/settings/get': {
|
|
161293
161825
|
route: '/seam/customer/v1/settings/get';
|
|
161294
161826
|
method: 'GET' | 'POST';
|