@postrun/js 2.0.0 → 2.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/dist/{chunk-EFB6IKZF.js → chunk-FGI7GS4Z.js} +4 -2
- package/dist/chunk-FGI7GS4Z.js.map +1 -0
- package/dist/{chunk-XXB7GZ3H.js → chunk-PIGL6PUC.js} +3 -3
- package/dist/{chunk-XXB7GZ3H.js.map → chunk-PIGL6PUC.js.map} +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -3
- package/dist/index.d.ts +32 -3
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +2 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +2 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-0ufzFdld.d.cts → types.gen-BJumr-Nk.d.cts} +2 -2
- package/dist/{types.gen-0ufzFdld.d.ts → types.gen-BJumr-Nk.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-EFB6IKZF.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -861,6 +861,7 @@ var zErrorCode = z__namespace.enum([
|
|
|
861
861
|
"publishing_unavailable",
|
|
862
862
|
"x_duplicate_content",
|
|
863
863
|
"x_not_authorized",
|
|
864
|
+
"x_access_not_permitted",
|
|
864
865
|
"x_rate_limited",
|
|
865
866
|
"x_publish_failed",
|
|
866
867
|
"x_media_upload_failed",
|
|
@@ -2872,6 +2873,7 @@ z__namespace.object({
|
|
|
2872
2873
|
"publishing_unavailable",
|
|
2873
2874
|
"x_duplicate_content",
|
|
2874
2875
|
"x_not_authorized",
|
|
2876
|
+
"x_access_not_permitted",
|
|
2875
2877
|
"x_rate_limited",
|
|
2876
2878
|
"x_publish_failed",
|
|
2877
2879
|
"x_media_upload_failed",
|
|
@@ -5889,6 +5891,10 @@ var tokensMint = (options) => (options.client ?? client).post({
|
|
|
5889
5891
|
}
|
|
5890
5892
|
});
|
|
5891
5893
|
|
|
5894
|
+
// src/resources.ts
|
|
5895
|
+
var isPublished = (post) => post.status === "published";
|
|
5896
|
+
var failedVariants = (post) => post.variants.filter((variant) => variant.status === "failed");
|
|
5897
|
+
|
|
5892
5898
|
// src/compose.ts
|
|
5893
5899
|
var ComposeError = class extends Error {
|
|
5894
5900
|
constructor(message) {
|
|
@@ -6090,6 +6096,7 @@ exports.connectionsListAccounts = connectionsListAccounts;
|
|
|
6090
6096
|
exports.connectionsListByProfile = connectionsListByProfile;
|
|
6091
6097
|
exports.connectionsSelect = connectionsSelect;
|
|
6092
6098
|
exports.createPostrunClient = createPostrunClient;
|
|
6099
|
+
exports.failedVariants = failedVariants;
|
|
6093
6100
|
exports.googleCreateAd = googleCreateAd;
|
|
6094
6101
|
exports.googleCreateAdGroup = googleCreateAdGroup;
|
|
6095
6102
|
exports.googleCreateBudget = googleCreateBudget;
|
|
@@ -6133,6 +6140,7 @@ exports.googleSetKeywordBid = googleSetKeywordBid;
|
|
|
6133
6140
|
exports.googleUploadConversions = googleUploadConversions;
|
|
6134
6141
|
exports.googleUploadImageAsset = googleUploadImageAsset;
|
|
6135
6142
|
exports.isPostPlatform = isPostPlatform;
|
|
6143
|
+
exports.isPublished = isPublished;
|
|
6136
6144
|
exports.logsGet = logsGet;
|
|
6137
6145
|
exports.logsList = logsList;
|
|
6138
6146
|
exports.mediaCreate = mediaCreate;
|