@seamapi/types 1.842.0 → 1.843.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 +127 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +18 -0
- package/dist/index.cjs +127 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.js +127 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +18 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +131 -0
- package/src/lib/seam/connect/route-types.ts +18 -0
package/dist/connect.d.cts
CHANGED
|
@@ -128364,6 +128364,24 @@ type Routes = {
|
|
|
128364
128364
|
};
|
|
128365
128365
|
maxDuration: undefined;
|
|
128366
128366
|
};
|
|
128367
|
+
'/seam/customer/v1/connectors/external_sites/list': {
|
|
128368
|
+
route: '/seam/customer/v1/connectors/external_sites/list';
|
|
128369
|
+
method: 'GET' | 'POST';
|
|
128370
|
+
queryParams: {};
|
|
128371
|
+
jsonBody: {};
|
|
128372
|
+
commonParams: {
|
|
128373
|
+
/** ID of the connected account to list external sites for */
|
|
128374
|
+
connected_account_id: string;
|
|
128375
|
+
};
|
|
128376
|
+
formData: {};
|
|
128377
|
+
jsonResponse: {
|
|
128378
|
+
external_sites: {
|
|
128379
|
+
key: string;
|
|
128380
|
+
name: string;
|
|
128381
|
+
}[];
|
|
128382
|
+
};
|
|
128383
|
+
maxDuration: undefined;
|
|
128384
|
+
};
|
|
128367
128385
|
'/seam/customer/v1/connectors/ical/validate-config': {
|
|
128368
128386
|
route: '/seam/customer/v1/connectors/ical/validate-config';
|
|
128369
128387
|
method: 'POST';
|
package/dist/index.cjs
CHANGED
|
@@ -67350,6 +67350,133 @@ var openapi = {
|
|
|
67350
67350
|
"x-undocumented": "Internal endpoint for Console."
|
|
67351
67351
|
}
|
|
67352
67352
|
},
|
|
67353
|
+
"/seam/customer/v1/connectors/external_sites/list": {
|
|
67354
|
+
get: {
|
|
67355
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
67356
|
+
operationId: "seamCustomerV1ConnectorsExternalSitesListGet",
|
|
67357
|
+
parameters: [
|
|
67358
|
+
{
|
|
67359
|
+
in: "query",
|
|
67360
|
+
name: "connected_account_id",
|
|
67361
|
+
required: true,
|
|
67362
|
+
schema: {
|
|
67363
|
+
description: "ID of the connected account to list external sites for",
|
|
67364
|
+
format: "uuid",
|
|
67365
|
+
type: "string"
|
|
67366
|
+
}
|
|
67367
|
+
}
|
|
67368
|
+
],
|
|
67369
|
+
responses: {
|
|
67370
|
+
200: {
|
|
67371
|
+
content: {
|
|
67372
|
+
"application/json": {
|
|
67373
|
+
schema: {
|
|
67374
|
+
properties: {
|
|
67375
|
+
external_sites: {
|
|
67376
|
+
items: {
|
|
67377
|
+
properties: {
|
|
67378
|
+
key: { type: "string" },
|
|
67379
|
+
name: { type: "string" }
|
|
67380
|
+
},
|
|
67381
|
+
required: ["key", "name"],
|
|
67382
|
+
type: "object"
|
|
67383
|
+
},
|
|
67384
|
+
type: "array"
|
|
67385
|
+
},
|
|
67386
|
+
ok: { type: "boolean" }
|
|
67387
|
+
},
|
|
67388
|
+
required: ["external_sites", "ok"],
|
|
67389
|
+
type: "object"
|
|
67390
|
+
}
|
|
67391
|
+
}
|
|
67392
|
+
},
|
|
67393
|
+
description: "OK"
|
|
67394
|
+
},
|
|
67395
|
+
400: { description: "Bad Request" },
|
|
67396
|
+
401: { description: "Unauthorized" }
|
|
67397
|
+
},
|
|
67398
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
67399
|
+
summary: "/seam/customer/v1/connectors/external_sites/list",
|
|
67400
|
+
tags: [],
|
|
67401
|
+
"x-fern-sdk-group-name": [
|
|
67402
|
+
"seam",
|
|
67403
|
+
"customer",
|
|
67404
|
+
"v1",
|
|
67405
|
+
"connectors",
|
|
67406
|
+
"external_sites"
|
|
67407
|
+
],
|
|
67408
|
+
"x-fern-sdk-method-name": "list",
|
|
67409
|
+
"x-fern-sdk-return-value": "external_sites",
|
|
67410
|
+
"x-response-key": "external_sites",
|
|
67411
|
+
"x-title": "List External Sites for a Connected Account",
|
|
67412
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
67413
|
+
},
|
|
67414
|
+
post: {
|
|
67415
|
+
description: "Lists sites/properties available from the external system for a given connected account by calling the connector's live API.",
|
|
67416
|
+
operationId: "seamCustomerV1ConnectorsExternalSitesListPost",
|
|
67417
|
+
requestBody: {
|
|
67418
|
+
content: {
|
|
67419
|
+
"application/json": {
|
|
67420
|
+
schema: {
|
|
67421
|
+
properties: {
|
|
67422
|
+
connected_account_id: {
|
|
67423
|
+
description: "ID of the connected account to list external sites for",
|
|
67424
|
+
format: "uuid",
|
|
67425
|
+
type: "string"
|
|
67426
|
+
}
|
|
67427
|
+
},
|
|
67428
|
+
required: ["connected_account_id"],
|
|
67429
|
+
type: "object"
|
|
67430
|
+
}
|
|
67431
|
+
}
|
|
67432
|
+
}
|
|
67433
|
+
},
|
|
67434
|
+
responses: {
|
|
67435
|
+
200: {
|
|
67436
|
+
content: {
|
|
67437
|
+
"application/json": {
|
|
67438
|
+
schema: {
|
|
67439
|
+
properties: {
|
|
67440
|
+
external_sites: {
|
|
67441
|
+
items: {
|
|
67442
|
+
properties: {
|
|
67443
|
+
key: { type: "string" },
|
|
67444
|
+
name: { type: "string" }
|
|
67445
|
+
},
|
|
67446
|
+
required: ["key", "name"],
|
|
67447
|
+
type: "object"
|
|
67448
|
+
},
|
|
67449
|
+
type: "array"
|
|
67450
|
+
},
|
|
67451
|
+
ok: { type: "boolean" }
|
|
67452
|
+
},
|
|
67453
|
+
required: ["external_sites", "ok"],
|
|
67454
|
+
type: "object"
|
|
67455
|
+
}
|
|
67456
|
+
}
|
|
67457
|
+
},
|
|
67458
|
+
description: "OK"
|
|
67459
|
+
},
|
|
67460
|
+
400: { description: "Bad Request" },
|
|
67461
|
+
401: { description: "Unauthorized" }
|
|
67462
|
+
},
|
|
67463
|
+
security: [{ api_key: [] }, { console_session_with_workspace: [] }],
|
|
67464
|
+
summary: "/seam/customer/v1/connectors/external_sites/list",
|
|
67465
|
+
tags: [],
|
|
67466
|
+
"x-fern-sdk-group-name": [
|
|
67467
|
+
"seam",
|
|
67468
|
+
"customer",
|
|
67469
|
+
"v1",
|
|
67470
|
+
"connectors",
|
|
67471
|
+
"external_sites"
|
|
67472
|
+
],
|
|
67473
|
+
"x-fern-sdk-method-name": "list",
|
|
67474
|
+
"x-fern-sdk-return-value": "external_sites",
|
|
67475
|
+
"x-response-key": "external_sites",
|
|
67476
|
+
"x-title": "List External Sites for a Connected Account",
|
|
67477
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
67478
|
+
}
|
|
67479
|
+
},
|
|
67353
67480
|
"/seam/customer/v1/connectors/ical/validate-config": {
|
|
67354
67481
|
post: {
|
|
67355
67482
|
description: "Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.",
|