diff --git a/package-lock.json b/package-lock.json index 32f9bcd3..d5760b68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.624.0", + "@seamapi/types": "1.625.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", @@ -49,7 +49,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.624.0" + "@seamapi/types": "^1.625.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1371,9 +1371,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.624.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.624.0.tgz", - "integrity": "sha512-yiwYfjWN5+fPZLi4XUpv2BpMTA+BKIb38aQCSseNGBVn96FTYtuqR4ulLs6Mjx1VKKSMSteLNHgTAt5AwRohvA==", + "version": "1.625.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.625.0.tgz", + "integrity": "sha512-NXY0AWqNUz/z+UGPHFpNgcFj37jaHJ4yuYInWisy43B23oIX1u+XYQo2Gm5/z9UrDrnsYW78op1l0/xaSohBtg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index f0558a9c..4ff85104 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.624.0" + "@seamapi/types": "^1.625.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -102,7 +102,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.624.0", + "@seamapi/types": "1.625.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index a3d48630..c4603292 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -651,6 +651,9 @@ import { SeamHttpSeamCustomerV1Spaces, } from './seam/customer/v1/spaces/index.js' import { + type SeamCustomerV1StaffMembersGetOptions, + type SeamCustomerV1StaffMembersGetParameters, + type SeamCustomerV1StaffMembersGetRequest, type SeamCustomerV1StaffMembersListOptions, type SeamCustomerV1StaffMembersListParameters, type SeamCustomerV1StaffMembersListRequest, @@ -3304,6 +3307,27 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/staff_members/get'(): ( + parameters?: SeamCustomerV1StaffMembersGetParameters, + options?: SeamCustomerV1StaffMembersGetOptions, + ) => SeamCustomerV1StaffMembersGetRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1StaffMembersGet( + ...args: Parameters + ): ReturnType { + const seam = SeamHttpSeamCustomerV1StaffMembers.fromClient( + client, + defaults, + ) + return seam.get(...args) + } + } + get '/seam/customer/v1/staff_members/list'(): ( parameters?: SeamCustomerV1StaffMembersListParameters, options?: SeamCustomerV1StaffMembersListOptions, @@ -4524,6 +4548,7 @@ export type SeamHttpEndpointQueryPaths = | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/settings/get' | '/seam/customer/v1/spaces/list' + | '/seam/customer/v1/staff_members/get' | '/seam/customer/v1/staff_members/list' | '/seam/partner/v1/building_blocks/spaces/auto_map' | '/spaces/get' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts b/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts index d32e013b..f0b11933 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts @@ -171,6 +171,24 @@ export class SeamHttpSeamCustomerV1StaffMembers { await clientSessions.get() } + get( + parameters?: SeamCustomerV1StaffMembersGetParameters, + options: SeamCustomerV1StaffMembersGetOptions = {}, + ): SeamCustomerV1StaffMembersGetRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/staff_members/get', + method: 'POST', + body: parameters, + responseKey: 'staff_member', + options, + }) + } + list( parameters?: SeamCustomerV1StaffMembersListParameters, options: SeamCustomerV1StaffMembersListOptions = {}, @@ -190,6 +208,29 @@ export class SeamHttpSeamCustomerV1StaffMembers { } } +export type SeamCustomerV1StaffMembersGetParameters = + RouteRequestBody<'/seam/customer/v1/staff_members/get'> + +/** + * @deprecated Use SeamCustomerV1StaffMembersGetParameters instead. + */ +export type SeamCustomerV1StaffMembersGetParams = + SeamCustomerV1StaffMembersGetParameters + +/** + * @deprecated Use SeamCustomerV1StaffMembersGetRequest instead. + */ +export type SeamCustomerV1StaffMembersGetResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1StaffMembersGetRequest = SeamHttpRequest< + SeamCustomerV1StaffMembersGetResponse, + 'staff_member' +> + +export interface SeamCustomerV1StaffMembersGetOptions {} + export type SeamCustomerV1StaffMembersListParameters = RouteRequestBody<'/seam/customer/v1/staff_members/list'>