Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 21 additions & 19 deletions src/lib/seam/connect/models/customer/customer-delete-data.ts
Original file line number Diff line number Diff line change
@@ -1,87 +1,89 @@
import { z } from 'zod'

import { resource_key } from '../../models/resource-key.js'

export const customer_delete_data = z.object({
// Customer keys to delete all data for
customer_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of customer keys to delete all data for.'),

// Location resources to delete
space_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of space keys to delete.'),
property_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of property keys to delete.'),
room_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of room keys to delete.'),
common_area_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of common area keys to delete.'),
unit_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of unit keys to delete.'),
facility_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of facility keys to delete.'),
building_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of building keys to delete.'),
listing_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of listing keys to delete.'),
property_listing_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of property listing keys to delete.'),

// User identity resources to delete
guest_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of guest keys to delete.'),
tenant_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of tenant keys to delete.'),
resident_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of resident keys to delete.'),
user_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of user keys to delete.'),
user_identity_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of user identity keys to delete.'),

// Access grant resources to delete
reservation_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of reservation keys to delete.'),
booking_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of booking keys to delete.'),
access_grant_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of access grant keys to delete.'),
staff_member_keys: z
.array(z.string())
.array(resource_key)
.optional()
.describe('List of staff member keys to delete.'),
})
Expand Down
76 changes: 38 additions & 38 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53613,7 +53613,7 @@ const openapi: OpenAPISpec = {
name: 'customer_keys',
schema: {
description: 'List of customer keys to delete all data for.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53622,7 +53622,7 @@ const openapi: OpenAPISpec = {
name: 'space_keys',
schema: {
description: 'List of space keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53631,7 +53631,7 @@ const openapi: OpenAPISpec = {
name: 'property_keys',
schema: {
description: 'List of property keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53640,7 +53640,7 @@ const openapi: OpenAPISpec = {
name: 'room_keys',
schema: {
description: 'List of room keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53649,7 +53649,7 @@ const openapi: OpenAPISpec = {
name: 'common_area_keys',
schema: {
description: 'List of common area keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53658,7 +53658,7 @@ const openapi: OpenAPISpec = {
name: 'unit_keys',
schema: {
description: 'List of unit keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53667,7 +53667,7 @@ const openapi: OpenAPISpec = {
name: 'facility_keys',
schema: {
description: 'List of facility keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53676,7 +53676,7 @@ const openapi: OpenAPISpec = {
name: 'building_keys',
schema: {
description: 'List of building keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53685,7 +53685,7 @@ const openapi: OpenAPISpec = {
name: 'listing_keys',
schema: {
description: 'List of listing keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53694,7 +53694,7 @@ const openapi: OpenAPISpec = {
name: 'property_listing_keys',
schema: {
description: 'List of property listing keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53703,7 +53703,7 @@ const openapi: OpenAPISpec = {
name: 'guest_keys',
schema: {
description: 'List of guest keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53712,7 +53712,7 @@ const openapi: OpenAPISpec = {
name: 'tenant_keys',
schema: {
description: 'List of tenant keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53721,7 +53721,7 @@ const openapi: OpenAPISpec = {
name: 'resident_keys',
schema: {
description: 'List of resident keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53730,7 +53730,7 @@ const openapi: OpenAPISpec = {
name: 'user_keys',
schema: {
description: 'List of user keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53739,7 +53739,7 @@ const openapi: OpenAPISpec = {
name: 'user_identity_keys',
schema: {
description: 'List of user identity keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53748,7 +53748,7 @@ const openapi: OpenAPISpec = {
name: 'reservation_keys',
schema: {
description: 'List of reservation keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53757,7 +53757,7 @@ const openapi: OpenAPISpec = {
name: 'booking_keys',
schema: {
description: 'List of booking keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53766,7 +53766,7 @@ const openapi: OpenAPISpec = {
name: 'access_grant_keys',
schema: {
description: 'List of access grant keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand All @@ -53775,7 +53775,7 @@ const openapi: OpenAPISpec = {
name: 'staff_member_keys',
schema: {
description: 'List of staff member keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand Down Expand Up @@ -53820,98 +53820,98 @@ const openapi: OpenAPISpec = {
properties: {
access_grant_keys: {
description: 'List of access grant keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
booking_keys: {
description: 'List of booking keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
building_keys: {
description: 'List of building keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
common_area_keys: {
description: 'List of common area keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
customer_keys: {
description:
'List of customer keys to delete all data for.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
facility_keys: {
description: 'List of facility keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
guest_keys: {
description: 'List of guest keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
listing_keys: {
description: 'List of listing keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
property_keys: {
description: 'List of property keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
property_listing_keys: {
description: 'List of property listing keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
reservation_keys: {
description: 'List of reservation keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
resident_keys: {
description: 'List of resident keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
room_keys: {
description: 'List of room keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
space_keys: {
description: 'List of space keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
staff_member_keys: {
description: 'List of staff member keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
tenant_keys: {
description: 'List of tenant keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
unit_keys: {
description: 'List of unit keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
user_identity_keys: {
description: 'List of user identity keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
user_keys: {
description: 'List of user keys to delete.',
items: { type: 'string' },
items: { minLength: 1, type: 'string' },
type: 'array',
},
},
Expand Down
Loading