@seamapi/http 1.54.0 → 1.55.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 +146 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +47 -2
- package/dist/index.cjs +148 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/events/events.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/events.js +102 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/events.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/events/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +14 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +5 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +21 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/seam/customer/v1/events/events.ts +211 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/events/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +47 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +47 -0
- package/src/lib/version.ts +1 -1
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
7
11
|
|
|
8
12
|
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
9
13
|
import {
|
|
@@ -168,6 +172,24 @@ export class SeamHttpSeamCustomerV1Settings {
|
|
|
168
172
|
await clientSessions.get()
|
|
169
173
|
}
|
|
170
174
|
|
|
175
|
+
get(
|
|
176
|
+
parameters?: SeamCustomerV1SettingsGetParameters,
|
|
177
|
+
options: SeamCustomerV1SettingsGetOptions = {},
|
|
178
|
+
): SeamCustomerV1SettingsGetRequest {
|
|
179
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
180
|
+
throw new Error(
|
|
181
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
182
|
+
)
|
|
183
|
+
}
|
|
184
|
+
return new SeamHttpRequest(this, {
|
|
185
|
+
pathname: '/seam/customer/v1/settings/get',
|
|
186
|
+
method: 'GET',
|
|
187
|
+
params: parameters,
|
|
188
|
+
responseKey: 'business_vertical',
|
|
189
|
+
options,
|
|
190
|
+
})
|
|
191
|
+
}
|
|
192
|
+
|
|
171
193
|
update(
|
|
172
194
|
parameters?: SeamCustomerV1SettingsUpdateParameters,
|
|
173
195
|
options: SeamCustomerV1SettingsUpdateOptions = {},
|
|
@@ -187,6 +209,30 @@ export class SeamHttpSeamCustomerV1Settings {
|
|
|
187
209
|
}
|
|
188
210
|
}
|
|
189
211
|
|
|
212
|
+
export type SeamCustomerV1SettingsGetParameters =
|
|
213
|
+
RouteRequestParams<'/seam/customer/v1/settings/get'>
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated Use SeamCustomerV1SettingsGetParameters instead.
|
|
217
|
+
*/
|
|
218
|
+
export type SeamCustomerV1SettingsGetParams =
|
|
219
|
+
SeamCustomerV1SettingsGetParameters
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use SeamCustomerV1SettingsGetRequest instead.
|
|
223
|
+
*/
|
|
224
|
+
export type SeamCustomerV1SettingsGetResponse = SetNonNullable<
|
|
225
|
+
Required<RouteResponse<'/seam/customer/v1/settings/get'>>
|
|
226
|
+
>
|
|
227
|
+
|
|
228
|
+
export type SeamCustomerV1SettingsGetRequest = SeamHttpRequest<
|
|
229
|
+
SeamCustomerV1SettingsGetResponse,
|
|
230
|
+
'business_vertical'
|
|
231
|
+
>
|
|
232
|
+
|
|
233
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
234
|
+
export interface SeamCustomerV1SettingsGetOptions {}
|
|
235
|
+
|
|
190
236
|
export type SeamCustomerV1SettingsUpdateParameters =
|
|
191
237
|
RouteRequestBody<'/seam/customer/v1/settings/update'>
|
|
192
238
|
|
|
@@ -35,6 +35,7 @@ import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
|
35
35
|
|
|
36
36
|
import { SeamHttpSeamCustomerV1AutomationRuns } from './automation-runs/index.js'
|
|
37
37
|
import { SeamHttpSeamCustomerV1Automations } from './automations/index.js'
|
|
38
|
+
import { SeamHttpSeamCustomerV1Events } from './events/index.js'
|
|
38
39
|
import { SeamHttpSeamCustomerV1Portals } from './portals/index.js'
|
|
39
40
|
import { SeamHttpSeamCustomerV1Settings } from './settings/index.js'
|
|
40
41
|
|
|
@@ -184,6 +185,10 @@ export class SeamHttpSeamCustomerV1 {
|
|
|
184
185
|
)
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
get events(): SeamHttpSeamCustomerV1Events {
|
|
189
|
+
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults)
|
|
190
|
+
}
|
|
191
|
+
|
|
187
192
|
get portals(): SeamHttpSeamCustomerV1Portals {
|
|
188
193
|
return SeamHttpSeamCustomerV1Portals.fromClient(this.client, this.defaults)
|
|
189
194
|
}
|
|
@@ -560,6 +560,12 @@ import {
|
|
|
560
560
|
type SeamCustomerV1AutomationsUpdateRequest,
|
|
561
561
|
SeamHttpSeamCustomerV1Automations,
|
|
562
562
|
} from './seam/customer/v1/automations/index.js'
|
|
563
|
+
import {
|
|
564
|
+
type SeamCustomerV1EventsListOptions,
|
|
565
|
+
type SeamCustomerV1EventsListParameters,
|
|
566
|
+
type SeamCustomerV1EventsListRequest,
|
|
567
|
+
SeamHttpSeamCustomerV1Events,
|
|
568
|
+
} from './seam/customer/v1/events/index.js'
|
|
563
569
|
import {
|
|
564
570
|
type SeamCustomerV1PortalsGetOptions,
|
|
565
571
|
type SeamCustomerV1PortalsGetParameters,
|
|
@@ -567,6 +573,9 @@ import {
|
|
|
567
573
|
SeamHttpSeamCustomerV1Portals,
|
|
568
574
|
} from './seam/customer/v1/portals/index.js'
|
|
569
575
|
import {
|
|
576
|
+
type SeamCustomerV1SettingsGetOptions,
|
|
577
|
+
type SeamCustomerV1SettingsGetParameters,
|
|
578
|
+
type SeamCustomerV1SettingsGetRequest,
|
|
570
579
|
type SeamCustomerV1SettingsUpdateOptions,
|
|
571
580
|
type SeamCustomerV1SettingsUpdateParameters,
|
|
572
581
|
type SeamCustomerV1SettingsUpdateRequest,
|
|
@@ -2923,6 +2932,24 @@ export class SeamHttpEndpoints {
|
|
|
2923
2932
|
}
|
|
2924
2933
|
}
|
|
2925
2934
|
|
|
2935
|
+
get ['/seam/customer/v1/events/list'](): (
|
|
2936
|
+
parameters?: SeamCustomerV1EventsListParameters,
|
|
2937
|
+
options?: SeamCustomerV1EventsListOptions,
|
|
2938
|
+
) => SeamCustomerV1EventsListRequest {
|
|
2939
|
+
const { client, defaults } = this
|
|
2940
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2941
|
+
throw new Error(
|
|
2942
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2943
|
+
)
|
|
2944
|
+
}
|
|
2945
|
+
return function seamCustomerV1EventsList(
|
|
2946
|
+
...args: Parameters<SeamHttpSeamCustomerV1Events['list']>
|
|
2947
|
+
): ReturnType<SeamHttpSeamCustomerV1Events['list']> {
|
|
2948
|
+
const seam = SeamHttpSeamCustomerV1Events.fromClient(client, defaults)
|
|
2949
|
+
return seam.list(...args)
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2926
2953
|
get ['/seam/customer/v1/portals/get'](): (
|
|
2927
2954
|
parameters?: SeamCustomerV1PortalsGetParameters,
|
|
2928
2955
|
options?: SeamCustomerV1PortalsGetOptions,
|
|
@@ -2941,6 +2968,24 @@ export class SeamHttpEndpoints {
|
|
|
2941
2968
|
}
|
|
2942
2969
|
}
|
|
2943
2970
|
|
|
2971
|
+
get ['/seam/customer/v1/settings/get'](): (
|
|
2972
|
+
parameters?: SeamCustomerV1SettingsGetParameters,
|
|
2973
|
+
options?: SeamCustomerV1SettingsGetOptions,
|
|
2974
|
+
) => SeamCustomerV1SettingsGetRequest {
|
|
2975
|
+
const { client, defaults } = this
|
|
2976
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
2977
|
+
throw new Error(
|
|
2978
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
2979
|
+
)
|
|
2980
|
+
}
|
|
2981
|
+
return function seamCustomerV1SettingsGet(
|
|
2982
|
+
...args: Parameters<SeamHttpSeamCustomerV1Settings['get']>
|
|
2983
|
+
): ReturnType<SeamHttpSeamCustomerV1Settings['get']> {
|
|
2984
|
+
const seam = SeamHttpSeamCustomerV1Settings.fromClient(client, defaults)
|
|
2985
|
+
return seam.get(...args)
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2944
2989
|
get ['/seam/customer/v1/settings/update'](): (
|
|
2945
2990
|
parameters?: SeamCustomerV1SettingsUpdateParameters,
|
|
2946
2991
|
options?: SeamCustomerV1SettingsUpdateOptions,
|
|
@@ -4308,7 +4353,9 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4308
4353
|
| '/seam/console/v1/get_resource_locator'
|
|
4309
4354
|
| '/seam/customer/v1/automation_runs/list'
|
|
4310
4355
|
| '/seam/customer/v1/automations/get'
|
|
4356
|
+
| '/seam/customer/v1/events/list'
|
|
4311
4357
|
| '/seam/customer/v1/portals/get'
|
|
4358
|
+
| '/seam/customer/v1/settings/get'
|
|
4312
4359
|
| '/seam/partner/v1/building_blocks/spaces/auto_map'
|
|
4313
4360
|
| '/spaces/get'
|
|
4314
4361
|
| '/spaces/get_related'
|
package/src/lib/version.ts
CHANGED