@posty5/social-publisher-post 5.0.0 → 5.1.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/README.md +5 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +889 -239
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +890 -240
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -544,6 +544,8 @@ Search and retrieve publishing posts with pagination and filtering options.
|
|
|
544
544
|
- `currentStatus` (string, optional): Filter by post status ('pending', 'processing', 'done', 'error', etc.)
|
|
545
545
|
- `tag` (string, optional): Filter by custom tag
|
|
546
546
|
- `refId` (string, optional): Filter by reference ID
|
|
547
|
+
- `fromDate` / `toDate` (string, optional): Created-at window, `YYYY-MM-DD`.
|
|
548
|
+
Applied only when both are sent (one alone filters nothing), in whole UTC days.
|
|
547
549
|
- `pagination` (IPaginationParams, optional): Pagination settings
|
|
548
550
|
- `page` (number): Page number (default: 1)
|
|
549
551
|
- `pageSize` (number): Items per page (default: 10)
|
|
@@ -658,6 +660,9 @@ const specificPost = await client.list(
|
|
|
658
660
|
if (specificPost.items.length > 0) {
|
|
659
661
|
console.log("Found post:", specificPost.items[0].caption);
|
|
660
662
|
}
|
|
663
|
+
|
|
664
|
+
// Posts created in a date window (both bounds, YYYY-MM-DD, whole UTC days)
|
|
665
|
+
const lastWeekPosts = await client.list({ fromDate: "2026-10-01", toDate: "2026-10-07" });
|
|
661
666
|
```
|
|
662
667
|
|
|
663
668
|
---
|
package/dist/index.d.mts
CHANGED
|
@@ -849,6 +849,19 @@ interface IListParams {
|
|
|
849
849
|
"facebook.postInfo.isAllow"?: boolean;
|
|
850
850
|
"instagram.postInfo.isAllow"?: boolean;
|
|
851
851
|
"tiktok.postInfo.isAllow"?: boolean;
|
|
852
|
+
/**
|
|
853
|
+
* Created on or after this day, `YYYY-MM-DD`. Applied only together with
|
|
854
|
+
* `toDate` (and vice versa): the API ignores a lone bound, and this SDK
|
|
855
|
+
* does not check the pair. Matched on the creation date, in whole UTC days
|
|
856
|
+
* (the API rounds `fromDate` to the start of its UTC day).
|
|
857
|
+
*/
|
|
858
|
+
fromDate?: string;
|
|
859
|
+
/**
|
|
860
|
+
* Created on or before this day, `YYYY-MM-DD`. Applied only together with
|
|
861
|
+
* `fromDate` (and vice versa); the API rounds `toDate` to the end of its
|
|
862
|
+
* UTC day.
|
|
863
|
+
*/
|
|
864
|
+
toDate?: string;
|
|
852
865
|
}
|
|
853
866
|
/**
|
|
854
867
|
* Longest video the API accepts for a `longVideo` post: 60 minutes.
|
package/dist/index.d.ts
CHANGED
|
@@ -849,6 +849,19 @@ interface IListParams {
|
|
|
849
849
|
"facebook.postInfo.isAllow"?: boolean;
|
|
850
850
|
"instagram.postInfo.isAllow"?: boolean;
|
|
851
851
|
"tiktok.postInfo.isAllow"?: boolean;
|
|
852
|
+
/**
|
|
853
|
+
* Created on or after this day, `YYYY-MM-DD`. Applied only together with
|
|
854
|
+
* `toDate` (and vice versa): the API ignores a lone bound, and this SDK
|
|
855
|
+
* does not check the pair. Matched on the creation date, in whole UTC days
|
|
856
|
+
* (the API rounds `fromDate` to the start of its UTC day).
|
|
857
|
+
*/
|
|
858
|
+
fromDate?: string;
|
|
859
|
+
/**
|
|
860
|
+
* Created on or before this day, `YYYY-MM-DD`. Applied only together with
|
|
861
|
+
* `fromDate` (and vice versa); the API rounds `toDate` to the end of its
|
|
862
|
+
* UTC day.
|
|
863
|
+
*/
|
|
864
|
+
toDate?: string;
|
|
852
865
|
}
|
|
853
866
|
/**
|
|
854
867
|
* Longest video the API accepts for a `longVideo` post: 60 minutes.
|