@seamapi/types 1.682.0 → 1.683.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 +150 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +220 -0
- package/dist/index.cjs +150 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer.d.ts +15 -0
- package/lib/seam/connect/models/customer/customer.js +21 -0
- package/lib/seam/connect/models/customer/customer.js.map +1 -0
- package/lib/seam/connect/models/customer/index.d.ts +1 -0
- package/lib/seam/connect/models/customer/index.js +1 -0
- package/lib/seam/connect/models/customer/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +187 -0
- package/lib/seam/connect/openapi.js +150 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +33 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/customer/customer.ts +25 -0
- package/src/lib/seam/connect/models/customer/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +155 -0
- package/src/lib/seam/connect/route-types.ts +33 -0
|
@@ -52694,6 +52694,39 @@ export type Routes = {
|
|
|
52694
52694
|
};
|
|
52695
52695
|
maxDuration: undefined;
|
|
52696
52696
|
};
|
|
52697
|
+
'/seam/customer/v1/customers/list': {
|
|
52698
|
+
route: '/seam/customer/v1/customers/list';
|
|
52699
|
+
method: 'GET' | 'POST';
|
|
52700
|
+
queryParams: {};
|
|
52701
|
+
jsonBody: {};
|
|
52702
|
+
commonParams: {
|
|
52703
|
+
/** Maximum number of records to return per page. */
|
|
52704
|
+
limit?: number;
|
|
52705
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
52706
|
+
page_cursor?: ((string | undefined) | null) | undefined;
|
|
52707
|
+
};
|
|
52708
|
+
formData: {};
|
|
52709
|
+
jsonResponse: {
|
|
52710
|
+
customers: {
|
|
52711
|
+
/** Unique key for the customer within the workspace. */
|
|
52712
|
+
customer_key: string;
|
|
52713
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer. */
|
|
52714
|
+
workspace_id: string;
|
|
52715
|
+
/** Date and time at which the customer was created. */
|
|
52716
|
+
created_at: string;
|
|
52717
|
+
}[];
|
|
52718
|
+
/** Information about the current page of results. */
|
|
52719
|
+
pagination: {
|
|
52720
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
52721
|
+
next_page_cursor: string | null;
|
|
52722
|
+
/** Indicates whether there is another page of results after this one. */
|
|
52723
|
+
has_next_page: boolean;
|
|
52724
|
+
/** URL to get the next page of results. */
|
|
52725
|
+
next_page_url: string | null;
|
|
52726
|
+
};
|
|
52727
|
+
};
|
|
52728
|
+
maxDuration: undefined;
|
|
52729
|
+
};
|
|
52697
52730
|
'/seam/customer/v1/events/list': {
|
|
52698
52731
|
route: '/seam/customer/v1/events/list';
|
|
52699
52732
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const customer = z.object({
|
|
4
|
+
customer_key: z
|
|
5
|
+
.string()
|
|
6
|
+
.describe('Unique key for the customer within the workspace.'),
|
|
7
|
+
workspace_id: z
|
|
8
|
+
.string()
|
|
9
|
+
.uuid()
|
|
10
|
+
.describe(
|
|
11
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.',
|
|
12
|
+
),
|
|
13
|
+
created_at: z
|
|
14
|
+
.string()
|
|
15
|
+
.datetime()
|
|
16
|
+
.describe('Date and time at which the customer was created.'),
|
|
17
|
+
}).describe(`
|
|
18
|
+
---
|
|
19
|
+
route_path: /customers
|
|
20
|
+
undocumented: Internal resource.
|
|
21
|
+
---
|
|
22
|
+
Represents a customer within a workspace. Customers are used to organize resources and manage access for different clients, such as hotels, property managers, and more.
|
|
23
|
+
`)
|
|
24
|
+
|
|
25
|
+
export type Customer = z.infer<typeof customer>
|
|
@@ -9570,6 +9570,31 @@ export default {
|
|
|
9570
9570
|
type: 'object',
|
|
9571
9571
|
'x-route-path': '/connected_accounts',
|
|
9572
9572
|
},
|
|
9573
|
+
customer: {
|
|
9574
|
+
description:
|
|
9575
|
+
'Represents a customer within a workspace. Customers are used to organize resources and manage access for different clients, such as hotels, property managers, and more.',
|
|
9576
|
+
properties: {
|
|
9577
|
+
created_at: {
|
|
9578
|
+
description: 'Date and time at which the customer was created.',
|
|
9579
|
+
format: 'date-time',
|
|
9580
|
+
type: 'string',
|
|
9581
|
+
},
|
|
9582
|
+
customer_key: {
|
|
9583
|
+
description: 'Unique key for the customer within the workspace.',
|
|
9584
|
+
type: 'string',
|
|
9585
|
+
},
|
|
9586
|
+
workspace_id: {
|
|
9587
|
+
description:
|
|
9588
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.',
|
|
9589
|
+
format: 'uuid',
|
|
9590
|
+
type: 'string',
|
|
9591
|
+
},
|
|
9592
|
+
},
|
|
9593
|
+
required: ['customer_key', 'workspace_id', 'created_at'],
|
|
9594
|
+
type: 'object',
|
|
9595
|
+
'x-route-path': '/customers',
|
|
9596
|
+
'x-undocumented': 'Internal resource.',
|
|
9597
|
+
},
|
|
9573
9598
|
customization_profile: {
|
|
9574
9599
|
description: 'A customization profile.',
|
|
9575
9600
|
properties: {
|
|
@@ -54527,6 +54552,136 @@ export default {
|
|
|
54527
54552
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
54528
54553
|
},
|
|
54529
54554
|
},
|
|
54555
|
+
'/seam/customer/v1/customers/list': {
|
|
54556
|
+
get: {
|
|
54557
|
+
description: 'Returns a list of all customers within the workspace.',
|
|
54558
|
+
operationId: 'seamCustomerV1CustomersListGet',
|
|
54559
|
+
parameters: [
|
|
54560
|
+
{
|
|
54561
|
+
in: 'query',
|
|
54562
|
+
name: 'limit',
|
|
54563
|
+
schema: {
|
|
54564
|
+
default: 500,
|
|
54565
|
+
description: 'Maximum number of records to return per page.',
|
|
54566
|
+
exclusiveMinimum: true,
|
|
54567
|
+
minimum: 0,
|
|
54568
|
+
type: 'integer',
|
|
54569
|
+
},
|
|
54570
|
+
},
|
|
54571
|
+
{
|
|
54572
|
+
in: 'query',
|
|
54573
|
+
name: 'page_cursor',
|
|
54574
|
+
schema: {
|
|
54575
|
+
description:
|
|
54576
|
+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
54577
|
+
nullable: true,
|
|
54578
|
+
type: 'string',
|
|
54579
|
+
},
|
|
54580
|
+
},
|
|
54581
|
+
],
|
|
54582
|
+
responses: {
|
|
54583
|
+
200: {
|
|
54584
|
+
content: {
|
|
54585
|
+
'application/json': {
|
|
54586
|
+
schema: {
|
|
54587
|
+
properties: {
|
|
54588
|
+
customers: {
|
|
54589
|
+
items: { $ref: '#/components/schemas/customer' },
|
|
54590
|
+
type: 'array',
|
|
54591
|
+
},
|
|
54592
|
+
ok: { type: 'boolean' },
|
|
54593
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
54594
|
+
},
|
|
54595
|
+
required: ['customers', 'pagination', 'ok'],
|
|
54596
|
+
type: 'object',
|
|
54597
|
+
},
|
|
54598
|
+
},
|
|
54599
|
+
},
|
|
54600
|
+
description: 'OK',
|
|
54601
|
+
},
|
|
54602
|
+
400: { description: 'Bad Request' },
|
|
54603
|
+
401: { description: 'Unauthorized' },
|
|
54604
|
+
},
|
|
54605
|
+
security: [
|
|
54606
|
+
{ api_key: [] },
|
|
54607
|
+
{ pat_with_workspace: [] },
|
|
54608
|
+
{ console_session_with_workspace: [] },
|
|
54609
|
+
],
|
|
54610
|
+
summary: '/seam/customer/v1/customers/list',
|
|
54611
|
+
tags: [],
|
|
54612
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
|
|
54613
|
+
'x-fern-sdk-method-name': 'list',
|
|
54614
|
+
'x-fern-sdk-return-value': 'customers',
|
|
54615
|
+
'x-response-key': 'customers',
|
|
54616
|
+
'x-title': 'List Customers',
|
|
54617
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
54618
|
+
},
|
|
54619
|
+
post: {
|
|
54620
|
+
description: 'Returns a list of all customers within the workspace.',
|
|
54621
|
+
operationId: 'seamCustomerV1CustomersListPost',
|
|
54622
|
+
requestBody: {
|
|
54623
|
+
content: {
|
|
54624
|
+
'application/json': {
|
|
54625
|
+
schema: {
|
|
54626
|
+
properties: {
|
|
54627
|
+
limit: {
|
|
54628
|
+
default: 500,
|
|
54629
|
+
description:
|
|
54630
|
+
'Maximum number of records to return per page.',
|
|
54631
|
+
exclusiveMinimum: true,
|
|
54632
|
+
minimum: 0,
|
|
54633
|
+
type: 'integer',
|
|
54634
|
+
},
|
|
54635
|
+
page_cursor: {
|
|
54636
|
+
description:
|
|
54637
|
+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
54638
|
+
nullable: true,
|
|
54639
|
+
type: 'string',
|
|
54640
|
+
},
|
|
54641
|
+
},
|
|
54642
|
+
type: 'object',
|
|
54643
|
+
},
|
|
54644
|
+
},
|
|
54645
|
+
},
|
|
54646
|
+
},
|
|
54647
|
+
responses: {
|
|
54648
|
+
200: {
|
|
54649
|
+
content: {
|
|
54650
|
+
'application/json': {
|
|
54651
|
+
schema: {
|
|
54652
|
+
properties: {
|
|
54653
|
+
customers: {
|
|
54654
|
+
items: { $ref: '#/components/schemas/customer' },
|
|
54655
|
+
type: 'array',
|
|
54656
|
+
},
|
|
54657
|
+
ok: { type: 'boolean' },
|
|
54658
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
54659
|
+
},
|
|
54660
|
+
required: ['customers', 'pagination', 'ok'],
|
|
54661
|
+
type: 'object',
|
|
54662
|
+
},
|
|
54663
|
+
},
|
|
54664
|
+
},
|
|
54665
|
+
description: 'OK',
|
|
54666
|
+
},
|
|
54667
|
+
400: { description: 'Bad Request' },
|
|
54668
|
+
401: { description: 'Unauthorized' },
|
|
54669
|
+
},
|
|
54670
|
+
security: [
|
|
54671
|
+
{ api_key: [] },
|
|
54672
|
+
{ pat_with_workspace: [] },
|
|
54673
|
+
{ console_session_with_workspace: [] },
|
|
54674
|
+
],
|
|
54675
|
+
summary: '/seam/customer/v1/customers/list',
|
|
54676
|
+
tags: [],
|
|
54677
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
|
|
54678
|
+
'x-fern-sdk-method-name': 'list',
|
|
54679
|
+
'x-fern-sdk-return-value': 'customers',
|
|
54680
|
+
'x-response-key': 'customers',
|
|
54681
|
+
'x-title': 'List Customers',
|
|
54682
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
54683
|
+
},
|
|
54684
|
+
},
|
|
54530
54685
|
'/seam/customer/v1/events/list': {
|
|
54531
54686
|
get: {
|
|
54532
54687
|
description:
|
|
@@ -63013,6 +63013,39 @@ export type Routes = {
|
|
|
63013
63013
|
}
|
|
63014
63014
|
maxDuration: undefined
|
|
63015
63015
|
}
|
|
63016
|
+
'/seam/customer/v1/customers/list': {
|
|
63017
|
+
route: '/seam/customer/v1/customers/list'
|
|
63018
|
+
method: 'GET' | 'POST'
|
|
63019
|
+
queryParams: {}
|
|
63020
|
+
jsonBody: {}
|
|
63021
|
+
commonParams: {
|
|
63022
|
+
/** Maximum number of records to return per page. */
|
|
63023
|
+
limit?: number
|
|
63024
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
63025
|
+
page_cursor?: ((string | undefined) | null) | undefined
|
|
63026
|
+
}
|
|
63027
|
+
formData: {}
|
|
63028
|
+
jsonResponse: {
|
|
63029
|
+
customers: {
|
|
63030
|
+
/** Unique key for the customer within the workspace. */
|
|
63031
|
+
customer_key: string
|
|
63032
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer. */
|
|
63033
|
+
workspace_id: string
|
|
63034
|
+
/** Date and time at which the customer was created. */
|
|
63035
|
+
created_at: string
|
|
63036
|
+
}[]
|
|
63037
|
+
/** Information about the current page of results. */
|
|
63038
|
+
pagination: {
|
|
63039
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
63040
|
+
next_page_cursor: string | null
|
|
63041
|
+
/** Indicates whether there is another page of results after this one. */
|
|
63042
|
+
has_next_page: boolean
|
|
63043
|
+
/** URL to get the next page of results. */
|
|
63044
|
+
next_page_url: string | null
|
|
63045
|
+
}
|
|
63046
|
+
}
|
|
63047
|
+
maxDuration: undefined
|
|
63048
|
+
}
|
|
63016
63049
|
'/seam/customer/v1/events/list': {
|
|
63017
63050
|
route: '/seam/customer/v1/events/list'
|
|
63018
63051
|
method: 'GET' | 'POST'
|