@replit/connectors 0.1.0 → 0.2.1
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/CHANGELOG.md +16 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +1 -4
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -4
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/top-level.d.mts +10201 -1723
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +10201 -1723
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +5 -2
- package/src/core/pagination.ts +1 -5
- package/src/resources/top-level.ts +13735 -2056
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/client.ts
CHANGED
|
@@ -287,7 +287,10 @@ export class Replit {
|
|
|
287
287
|
/**
|
|
288
288
|
* Import an existing connection after validation
|
|
289
289
|
*/
|
|
290
|
-
createConnection(
|
|
290
|
+
createConnection(
|
|
291
|
+
body: TopLevelAPI.CreateConnectionParams,
|
|
292
|
+
options?: RequestOptions,
|
|
293
|
+
): APIPromise<TopLevelAPI.CreateConnectionResponse> {
|
|
291
294
|
return this.post('/v2/connection', { body, ...options });
|
|
292
295
|
}
|
|
293
296
|
|
|
@@ -351,7 +354,7 @@ export class Replit {
|
|
|
351
354
|
id: string,
|
|
352
355
|
query: TopLevelAPI.GetConnectionParams | null | undefined = {},
|
|
353
356
|
options?: RequestOptions,
|
|
354
|
-
): APIPromise<
|
|
357
|
+
): APIPromise<TopLevelAPI.GetConnectionResponse> {
|
|
355
358
|
return this.get(path`/v2/connection/${id}`, { query, ...options });
|
|
356
359
|
}
|
|
357
360
|
|
package/src/core/pagination.ts
CHANGED
|
@@ -152,11 +152,7 @@ export class OffsetPagination<Item> extends AbstractPage<Item> implements Offset
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
nextPageRequestOptions(): PageRequestOptions | null {
|
|
155
|
-
const offset = this.offset;
|
|
156
|
-
if (!offset) {
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
|
|
155
|
+
const offset = this.offset ?? 0;
|
|
160
156
|
const length = this.getPaginatedItems().length;
|
|
161
157
|
const currentCount = offset + length;
|
|
162
158
|
|