@seamapi/types 1.697.0 → 1.698.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 +31 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +75 -0
- package/dist/index.cjs +31 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +63 -0
- package/lib/seam/connect/openapi.js +31 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +36 -0
- package/src/lib/seam/connect/route-types.ts +13 -0
package/dist/connect.d.cts
CHANGED
|
@@ -99123,6 +99123,10 @@ declare const _default: {
|
|
|
99123
99123
|
refresh_token?: never;
|
|
99124
99124
|
api_key?: never;
|
|
99125
99125
|
base_api_url?: never;
|
|
99126
|
+
hotel_id?: never;
|
|
99127
|
+
id?: never;
|
|
99128
|
+
is_staging?: never;
|
|
99129
|
+
secret?: never;
|
|
99126
99130
|
};
|
|
99127
99131
|
type: string;
|
|
99128
99132
|
required?: never;
|
|
@@ -99162,6 +99166,10 @@ declare const _default: {
|
|
|
99162
99166
|
refresh_token?: never;
|
|
99163
99167
|
api_key?: never;
|
|
99164
99168
|
base_api_url?: never;
|
|
99169
|
+
hotel_id?: never;
|
|
99170
|
+
id?: never;
|
|
99171
|
+
is_staging?: never;
|
|
99172
|
+
secret?: never;
|
|
99165
99173
|
};
|
|
99166
99174
|
type: string;
|
|
99167
99175
|
required?: never;
|
|
@@ -99200,6 +99208,10 @@ declare const _default: {
|
|
|
99200
99208
|
refresh_token?: never;
|
|
99201
99209
|
api_key?: never;
|
|
99202
99210
|
base_api_url?: never;
|
|
99211
|
+
hotel_id?: never;
|
|
99212
|
+
id?: never;
|
|
99213
|
+
is_staging?: never;
|
|
99214
|
+
secret?: never;
|
|
99203
99215
|
};
|
|
99204
99216
|
required: string[];
|
|
99205
99217
|
type: string;
|
|
@@ -99230,6 +99242,10 @@ declare const _default: {
|
|
|
99230
99242
|
client_password?: never;
|
|
99231
99243
|
api_key?: never;
|
|
99232
99244
|
base_api_url?: never;
|
|
99245
|
+
hotel_id?: never;
|
|
99246
|
+
id?: never;
|
|
99247
|
+
is_staging?: never;
|
|
99248
|
+
secret?: never;
|
|
99233
99249
|
};
|
|
99234
99250
|
type: string;
|
|
99235
99251
|
required?: never;
|
|
@@ -99255,6 +99271,53 @@ declare const _default: {
|
|
|
99255
99271
|
client_password?: never;
|
|
99256
99272
|
property_id?: never;
|
|
99257
99273
|
refresh_token?: never;
|
|
99274
|
+
hotel_id?: never;
|
|
99275
|
+
id?: never;
|
|
99276
|
+
is_staging?: never;
|
|
99277
|
+
secret?: never;
|
|
99278
|
+
};
|
|
99279
|
+
required: string[];
|
|
99280
|
+
type: string;
|
|
99281
|
+
} | {
|
|
99282
|
+
properties: {
|
|
99283
|
+
api_key: {
|
|
99284
|
+
description: string;
|
|
99285
|
+
minLength: number;
|
|
99286
|
+
type: string;
|
|
99287
|
+
};
|
|
99288
|
+
auth_token: {
|
|
99289
|
+
type: string;
|
|
99290
|
+
};
|
|
99291
|
+
hotel_id: {
|
|
99292
|
+
description: string;
|
|
99293
|
+
type: string;
|
|
99294
|
+
};
|
|
99295
|
+
id: {
|
|
99296
|
+
description: string;
|
|
99297
|
+
minLength: number;
|
|
99298
|
+
type: string;
|
|
99299
|
+
};
|
|
99300
|
+
is_staging: {
|
|
99301
|
+
default: boolean;
|
|
99302
|
+
description: string;
|
|
99303
|
+
type: string;
|
|
99304
|
+
};
|
|
99305
|
+
secret: {
|
|
99306
|
+
description: string;
|
|
99307
|
+
minLength: number;
|
|
99308
|
+
type: string;
|
|
99309
|
+
};
|
|
99310
|
+
access_token?: never;
|
|
99311
|
+
client?: never;
|
|
99312
|
+
client_token?: never;
|
|
99313
|
+
enterprise_id?: never;
|
|
99314
|
+
enterprise_ids?: never;
|
|
99315
|
+
is_demo?: never;
|
|
99316
|
+
client_id?: never;
|
|
99317
|
+
client_password?: never;
|
|
99318
|
+
property_id?: never;
|
|
99319
|
+
refresh_token?: never;
|
|
99320
|
+
base_api_url?: never;
|
|
99258
99321
|
};
|
|
99259
99322
|
required: string[];
|
|
99260
99323
|
type: string;
|
|
@@ -168013,6 +168076,18 @@ type Routes = {
|
|
|
168013
168076
|
api_key: string;
|
|
168014
168077
|
/** Optional base API URL (defaults to https://api.smoobu.com/api) */
|
|
168015
168078
|
base_api_url?: string | undefined;
|
|
168079
|
+
} | {
|
|
168080
|
+
/** Zonal API key for X-API-Key header (required) */
|
|
168081
|
+
api_key: string;
|
|
168082
|
+
/** Zonal ID used as 'token' in login request body (required) */
|
|
168083
|
+
id: string;
|
|
168084
|
+
/** Zonal Secret for login request body (required) */
|
|
168085
|
+
secret: string;
|
|
168086
|
+
/** Optional hotel ID for single-property mode */
|
|
168087
|
+
hotel_id?: string | undefined;
|
|
168088
|
+
/** Use staging API instead of production */
|
|
168089
|
+
is_staging?: boolean;
|
|
168090
|
+
auth_token?: string | undefined;
|
|
168016
168091
|
};
|
|
168017
168092
|
};
|
|
168018
168093
|
commonParams: {};
|
package/dist/index.cjs
CHANGED
|
@@ -56706,6 +56706,37 @@ var openapi_default = {
|
|
|
56706
56706
|
},
|
|
56707
56707
|
required: ["api_key"],
|
|
56708
56708
|
type: "object"
|
|
56709
|
+
},
|
|
56710
|
+
{
|
|
56711
|
+
properties: {
|
|
56712
|
+
api_key: {
|
|
56713
|
+
description: "Zonal API key for X-API-Key header (required)",
|
|
56714
|
+
minLength: 1,
|
|
56715
|
+
type: "string"
|
|
56716
|
+
},
|
|
56717
|
+
auth_token: { type: "string" },
|
|
56718
|
+
hotel_id: {
|
|
56719
|
+
description: "Optional hotel ID for single-property mode",
|
|
56720
|
+
type: "string"
|
|
56721
|
+
},
|
|
56722
|
+
id: {
|
|
56723
|
+
description: "Zonal ID used as 'token' in login request body (required)",
|
|
56724
|
+
minLength: 1,
|
|
56725
|
+
type: "string"
|
|
56726
|
+
},
|
|
56727
|
+
is_staging: {
|
|
56728
|
+
default: false,
|
|
56729
|
+
description: "Use staging API instead of production",
|
|
56730
|
+
type: "boolean"
|
|
56731
|
+
},
|
|
56732
|
+
secret: {
|
|
56733
|
+
description: "Zonal Secret for login request body (required)",
|
|
56734
|
+
minLength: 1,
|
|
56735
|
+
type: "string"
|
|
56736
|
+
}
|
|
56737
|
+
},
|
|
56738
|
+
required: ["api_key", "id", "secret"],
|
|
56739
|
+
type: "object"
|
|
56709
56740
|
}
|
|
56710
56741
|
]
|
|
56711
56742
|
},
|