@seamapi/http 1.118.0 → 1.119.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 +217 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +76 -3
- package/dist/index.cjs +219 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/console/v1/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js +1 -0
- package/lib/seam/connect/routes/seam/console/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js +6 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.d.ts +73 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js +140 -0
- package/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.js.map +1 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.d.ts +2 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js +4 -0
- package/lib/seam/connect/routes/seam/console/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +41 -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/console/v1/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts +350 -0
- package/src/lib/seam/connect/routes/seam/console/v1/v1.ts +8 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +115 -0
- package/src/lib/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -103,6 +103,7 @@ __export(index_exports, {
|
|
|
103
103
|
SeamHttpRequest: () => SeamHttpRequest,
|
|
104
104
|
SeamHttpSeamConsole: () => SeamHttpSeamConsole,
|
|
105
105
|
SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
|
|
106
|
+
SeamHttpSeamConsoleV1LynxMigration: () => SeamHttpSeamConsoleV1LynxMigration,
|
|
106
107
|
SeamHttpSeamConsoleV1Sites: () => SeamHttpSeamConsoleV1Sites,
|
|
107
108
|
SeamHttpSeamConsoleV1Timelines: () => SeamHttpSeamConsoleV1Timelines,
|
|
108
109
|
SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
|
|
@@ -223,6 +224,7 @@ __export(connect_exports, {
|
|
|
223
224
|
SeamHttpRequest: () => SeamHttpRequest,
|
|
224
225
|
SeamHttpSeamConsole: () => SeamHttpSeamConsole,
|
|
225
226
|
SeamHttpSeamConsoleV1: () => SeamHttpSeamConsoleV1,
|
|
227
|
+
SeamHttpSeamConsoleV1LynxMigration: () => SeamHttpSeamConsoleV1LynxMigration,
|
|
226
228
|
SeamHttpSeamConsoleV1Sites: () => SeamHttpSeamConsoleV1Sites,
|
|
227
229
|
SeamHttpSeamConsoleV1Timelines: () => SeamHttpSeamConsoleV1Timelines,
|
|
228
230
|
SeamHttpSeamCustomerV1: () => SeamHttpSeamCustomerV1,
|
|
@@ -6127,6 +6129,156 @@ var SeamHttpPhones = class _SeamHttpPhones {
|
|
|
6127
6129
|
}
|
|
6128
6130
|
};
|
|
6129
6131
|
|
|
6132
|
+
// src/lib/seam/connect/routes/seam/console/v1/lynx-migration/lynx-migration.ts
|
|
6133
|
+
var SeamHttpSeamConsoleV1LynxMigration = class _SeamHttpSeamConsoleV1LynxMigration {
|
|
6134
|
+
client;
|
|
6135
|
+
defaults;
|
|
6136
|
+
ltsVersion = seamApiLtsVersion;
|
|
6137
|
+
static ltsVersion = seamApiLtsVersion;
|
|
6138
|
+
constructor(apiKeyOrOptions = {}) {
|
|
6139
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
6140
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6141
|
+
throw new Error(
|
|
6142
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6143
|
+
);
|
|
6144
|
+
}
|
|
6145
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
6146
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6147
|
+
}
|
|
6148
|
+
static fromClient(client, options = {}) {
|
|
6149
|
+
const constructorOptions = { ...options, client };
|
|
6150
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6151
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6152
|
+
}
|
|
6153
|
+
return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
|
|
6154
|
+
}
|
|
6155
|
+
static fromApiKey(apiKey, options = {}) {
|
|
6156
|
+
const constructorOptions = { ...options, apiKey };
|
|
6157
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6158
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6159
|
+
}
|
|
6160
|
+
return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
|
|
6161
|
+
}
|
|
6162
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6163
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
6164
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6165
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6166
|
+
}
|
|
6167
|
+
return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
|
|
6168
|
+
}
|
|
6169
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6170
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6171
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6172
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6173
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6174
|
+
"The client option cannot be used with SeamHttpSeamConsoleV1LynxMigration.fromPublishableKey"
|
|
6175
|
+
);
|
|
6176
|
+
}
|
|
6177
|
+
const client = createClient(clientOptions);
|
|
6178
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
6179
|
+
const { token } = await clientSessions.getOrCreate({
|
|
6180
|
+
user_identifier_key: userIdentifierKey
|
|
6181
|
+
});
|
|
6182
|
+
return _SeamHttpSeamConsoleV1LynxMigration.fromClientSessionToken(
|
|
6183
|
+
token,
|
|
6184
|
+
options
|
|
6185
|
+
);
|
|
6186
|
+
}
|
|
6187
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6188
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
6189
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
6190
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6191
|
+
"Missing consoleSessionToken or workspaceId"
|
|
6192
|
+
);
|
|
6193
|
+
}
|
|
6194
|
+
return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
|
|
6195
|
+
}
|
|
6196
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6197
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
6198
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
6199
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6200
|
+
"Missing personalAccessToken or workspaceId"
|
|
6201
|
+
);
|
|
6202
|
+
}
|
|
6203
|
+
return new _SeamHttpSeamConsoleV1LynxMigration(constructorOptions);
|
|
6204
|
+
}
|
|
6205
|
+
createPaginator(request) {
|
|
6206
|
+
return new SeamPaginator(this, request);
|
|
6207
|
+
}
|
|
6208
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
6209
|
+
const { headers } = this.client.defaults;
|
|
6210
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
6211
|
+
clientSessionToken
|
|
6212
|
+
});
|
|
6213
|
+
for (const key of Object.keys(authHeaders)) {
|
|
6214
|
+
if (headers[key] == null) {
|
|
6215
|
+
throw new Error(
|
|
6216
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
6217
|
+
);
|
|
6218
|
+
}
|
|
6219
|
+
}
|
|
6220
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
6221
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6222
|
+
await clientSessions.get();
|
|
6223
|
+
}
|
|
6224
|
+
getPropertyMigrationStatus(parameters, options = {}) {
|
|
6225
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6226
|
+
throw new Error(
|
|
6227
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6228
|
+
);
|
|
6229
|
+
}
|
|
6230
|
+
return new SeamHttpRequest(this, {
|
|
6231
|
+
pathname: "/seam/console/v1/lynx_migration/get_property_migration_status",
|
|
6232
|
+
method: "POST",
|
|
6233
|
+
body: parameters,
|
|
6234
|
+
responseKey: "lynx_migration_property_run",
|
|
6235
|
+
options
|
|
6236
|
+
});
|
|
6237
|
+
}
|
|
6238
|
+
getReservationMigrationStatus(parameters, options = {}) {
|
|
6239
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6240
|
+
throw new Error(
|
|
6241
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6242
|
+
);
|
|
6243
|
+
}
|
|
6244
|
+
return new SeamHttpRequest(this, {
|
|
6245
|
+
pathname: "/seam/console/v1/lynx_migration/get_reservation_migration_status",
|
|
6246
|
+
method: "POST",
|
|
6247
|
+
body: parameters,
|
|
6248
|
+
responseKey: "lynx_migration_reservation_run",
|
|
6249
|
+
options
|
|
6250
|
+
});
|
|
6251
|
+
}
|
|
6252
|
+
listPropertyReservations(parameters, options = {}) {
|
|
6253
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6254
|
+
throw new Error(
|
|
6255
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6256
|
+
);
|
|
6257
|
+
}
|
|
6258
|
+
return new SeamHttpRequest(this, {
|
|
6259
|
+
pathname: "/seam/console/v1/lynx_migration/list_property_reservations",
|
|
6260
|
+
method: "POST",
|
|
6261
|
+
body: parameters,
|
|
6262
|
+
responseKey: "lynx_migration_property_plan",
|
|
6263
|
+
options
|
|
6264
|
+
});
|
|
6265
|
+
}
|
|
6266
|
+
migrateProperty(parameters, options = {}) {
|
|
6267
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6268
|
+
throw new Error(
|
|
6269
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6270
|
+
);
|
|
6271
|
+
}
|
|
6272
|
+
return new SeamHttpRequest(this, {
|
|
6273
|
+
pathname: "/seam/console/v1/lynx_migration/migrate_property",
|
|
6274
|
+
method: "POST",
|
|
6275
|
+
body: parameters,
|
|
6276
|
+
responseKey: "lynx_migration_property_run",
|
|
6277
|
+
options
|
|
6278
|
+
});
|
|
6279
|
+
}
|
|
6280
|
+
};
|
|
6281
|
+
|
|
6130
6282
|
// src/lib/seam/connect/routes/seam/console/v1/sites/sites.ts
|
|
6131
6283
|
var SeamHttpSeamConsoleV1Sites = class _SeamHttpSeamConsoleV1Sites {
|
|
6132
6284
|
client;
|
|
@@ -6468,6 +6620,12 @@ var SeamHttpSeamConsoleV1 = class _SeamHttpSeamConsoleV1 {
|
|
|
6468
6620
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6469
6621
|
await clientSessions.get();
|
|
6470
6622
|
}
|
|
6623
|
+
get lynxMigration() {
|
|
6624
|
+
return SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
6625
|
+
this.client,
|
|
6626
|
+
this.defaults
|
|
6627
|
+
);
|
|
6628
|
+
}
|
|
6471
6629
|
get sites() {
|
|
6472
6630
|
return SeamHttpSeamConsoleV1Sites.fromClient(this.client, this.defaults);
|
|
6473
6631
|
}
|
|
@@ -12564,6 +12722,66 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
12564
12722
|
return seam.getResourceLocator(...args);
|
|
12565
12723
|
};
|
|
12566
12724
|
}
|
|
12725
|
+
get "/seam/console/v1/lynx_migration/get_property_migration_status"() {
|
|
12726
|
+
const { client, defaults } = this;
|
|
12727
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12728
|
+
throw new Error(
|
|
12729
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12730
|
+
);
|
|
12731
|
+
}
|
|
12732
|
+
return function seamConsoleV1LynxMigrationGetPropertyMigrationStatus(...args) {
|
|
12733
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
12734
|
+
client,
|
|
12735
|
+
defaults
|
|
12736
|
+
);
|
|
12737
|
+
return seam.getPropertyMigrationStatus(...args);
|
|
12738
|
+
};
|
|
12739
|
+
}
|
|
12740
|
+
get "/seam/console/v1/lynx_migration/get_reservation_migration_status"() {
|
|
12741
|
+
const { client, defaults } = this;
|
|
12742
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12743
|
+
throw new Error(
|
|
12744
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12745
|
+
);
|
|
12746
|
+
}
|
|
12747
|
+
return function seamConsoleV1LynxMigrationGetReservationMigrationStatus(...args) {
|
|
12748
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
12749
|
+
client,
|
|
12750
|
+
defaults
|
|
12751
|
+
);
|
|
12752
|
+
return seam.getReservationMigrationStatus(...args);
|
|
12753
|
+
};
|
|
12754
|
+
}
|
|
12755
|
+
get "/seam/console/v1/lynx_migration/list_property_reservations"() {
|
|
12756
|
+
const { client, defaults } = this;
|
|
12757
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12758
|
+
throw new Error(
|
|
12759
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12760
|
+
);
|
|
12761
|
+
}
|
|
12762
|
+
return function seamConsoleV1LynxMigrationListPropertyReservations(...args) {
|
|
12763
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
12764
|
+
client,
|
|
12765
|
+
defaults
|
|
12766
|
+
);
|
|
12767
|
+
return seam.listPropertyReservations(...args);
|
|
12768
|
+
};
|
|
12769
|
+
}
|
|
12770
|
+
get "/seam/console/v1/lynx_migration/migrate_property"() {
|
|
12771
|
+
const { client, defaults } = this;
|
|
12772
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
12773
|
+
throw new Error(
|
|
12774
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
12775
|
+
);
|
|
12776
|
+
}
|
|
12777
|
+
return function seamConsoleV1LynxMigrationMigrateProperty(...args) {
|
|
12778
|
+
const seam = SeamHttpSeamConsoleV1LynxMigration.fromClient(
|
|
12779
|
+
client,
|
|
12780
|
+
defaults
|
|
12781
|
+
);
|
|
12782
|
+
return seam.migrateProperty(...args);
|
|
12783
|
+
};
|
|
12784
|
+
}
|
|
12567
12785
|
get "/seam/console/v1/sites/create"() {
|
|
12568
12786
|
const { client, defaults } = this;
|
|
12569
12787
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -13985,6 +14203,7 @@ exports.SeamHttpPhonesSimulate = SeamHttpPhonesSimulate;
|
|
|
13985
14203
|
exports.SeamHttpRequest = SeamHttpRequest;
|
|
13986
14204
|
exports.SeamHttpSeamConsole = SeamHttpSeamConsole;
|
|
13987
14205
|
exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
14206
|
+
exports.SeamHttpSeamConsoleV1LynxMigration = SeamHttpSeamConsoleV1LynxMigration;
|
|
13988
14207
|
exports.SeamHttpSeamConsoleV1Sites = SeamHttpSeamConsoleV1Sites;
|
|
13989
14208
|
exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
|
|
13990
14209
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|