@stackbe/sdk 0.7.3 → 0.7.4
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/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1432,10 +1432,11 @@ interface ListFeatureRequestsOptions {
|
|
|
1432
1432
|
offset?: number;
|
|
1433
1433
|
}
|
|
1434
1434
|
interface FeatureRequestListResponse {
|
|
1435
|
-
|
|
1435
|
+
items: FeatureRequest[];
|
|
1436
1436
|
total: number;
|
|
1437
1437
|
limit: number;
|
|
1438
|
-
|
|
1438
|
+
page: number;
|
|
1439
|
+
hasMore: boolean;
|
|
1439
1440
|
}
|
|
1440
1441
|
interface InterestedCustomer {
|
|
1441
1442
|
customerId: string;
|
|
@@ -1484,13 +1485,16 @@ declare class FeatureRequestsClient {
|
|
|
1484
1485
|
* @example
|
|
1485
1486
|
* ```typescript
|
|
1486
1487
|
* // Get all feature requests
|
|
1487
|
-
* const {
|
|
1488
|
+
* const { items, total, hasMore } = await stackbe.featureRequests.list();
|
|
1488
1489
|
*
|
|
1489
1490
|
* // Filter by status
|
|
1490
1491
|
* const planned = await stackbe.featureRequests.list({ status: 'planned' });
|
|
1491
1492
|
*
|
|
1492
1493
|
* // Sort by votes
|
|
1493
1494
|
* const popular = await stackbe.featureRequests.list({ sortBy: 'votes' });
|
|
1495
|
+
*
|
|
1496
|
+
* // Paginate
|
|
1497
|
+
* const page2 = await stackbe.featureRequests.list({ offset: 50, limit: 50 });
|
|
1494
1498
|
* ```
|
|
1495
1499
|
*/
|
|
1496
1500
|
list(options?: ListFeatureRequestsOptions): Promise<FeatureRequestListResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1432,10 +1432,11 @@ interface ListFeatureRequestsOptions {
|
|
|
1432
1432
|
offset?: number;
|
|
1433
1433
|
}
|
|
1434
1434
|
interface FeatureRequestListResponse {
|
|
1435
|
-
|
|
1435
|
+
items: FeatureRequest[];
|
|
1436
1436
|
total: number;
|
|
1437
1437
|
limit: number;
|
|
1438
|
-
|
|
1438
|
+
page: number;
|
|
1439
|
+
hasMore: boolean;
|
|
1439
1440
|
}
|
|
1440
1441
|
interface InterestedCustomer {
|
|
1441
1442
|
customerId: string;
|
|
@@ -1484,13 +1485,16 @@ declare class FeatureRequestsClient {
|
|
|
1484
1485
|
* @example
|
|
1485
1486
|
* ```typescript
|
|
1486
1487
|
* // Get all feature requests
|
|
1487
|
-
* const {
|
|
1488
|
+
* const { items, total, hasMore } = await stackbe.featureRequests.list();
|
|
1488
1489
|
*
|
|
1489
1490
|
* // Filter by status
|
|
1490
1491
|
* const planned = await stackbe.featureRequests.list({ status: 'planned' });
|
|
1491
1492
|
*
|
|
1492
1493
|
* // Sort by votes
|
|
1493
1494
|
* const popular = await stackbe.featureRequests.list({ sortBy: 'votes' });
|
|
1495
|
+
*
|
|
1496
|
+
* // Paginate
|
|
1497
|
+
* const page2 = await stackbe.featureRequests.list({ offset: 50, limit: 50 });
|
|
1494
1498
|
* ```
|
|
1495
1499
|
*/
|
|
1496
1500
|
list(options?: ListFeatureRequestsOptions): Promise<FeatureRequestListResponse>;
|
package/dist/index.js
CHANGED
|
@@ -1490,13 +1490,16 @@ var FeatureRequestsClient = class {
|
|
|
1490
1490
|
* @example
|
|
1491
1491
|
* ```typescript
|
|
1492
1492
|
* // Get all feature requests
|
|
1493
|
-
* const {
|
|
1493
|
+
* const { items, total, hasMore } = await stackbe.featureRequests.list();
|
|
1494
1494
|
*
|
|
1495
1495
|
* // Filter by status
|
|
1496
1496
|
* const planned = await stackbe.featureRequests.list({ status: 'planned' });
|
|
1497
1497
|
*
|
|
1498
1498
|
* // Sort by votes
|
|
1499
1499
|
* const popular = await stackbe.featureRequests.list({ sortBy: 'votes' });
|
|
1500
|
+
*
|
|
1501
|
+
* // Paginate
|
|
1502
|
+
* const page2 = await stackbe.featureRequests.list({ offset: 50, limit: 50 });
|
|
1500
1503
|
* ```
|
|
1501
1504
|
*/
|
|
1502
1505
|
async list(options = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -1453,13 +1453,16 @@ var FeatureRequestsClient = class {
|
|
|
1453
1453
|
* @example
|
|
1454
1454
|
* ```typescript
|
|
1455
1455
|
* // Get all feature requests
|
|
1456
|
-
* const {
|
|
1456
|
+
* const { items, total, hasMore } = await stackbe.featureRequests.list();
|
|
1457
1457
|
*
|
|
1458
1458
|
* // Filter by status
|
|
1459
1459
|
* const planned = await stackbe.featureRequests.list({ status: 'planned' });
|
|
1460
1460
|
*
|
|
1461
1461
|
* // Sort by votes
|
|
1462
1462
|
* const popular = await stackbe.featureRequests.list({ sortBy: 'votes' });
|
|
1463
|
+
*
|
|
1464
|
+
* // Paginate
|
|
1465
|
+
* const page2 = await stackbe.featureRequests.list({ offset: 50, limit: 50 });
|
|
1463
1466
|
* ```
|
|
1464
1467
|
*/
|
|
1465
1468
|
async list(options = {}) {
|
package/package.json
CHANGED