@egdesk/next-api-plugin 1.5.25 → 1.5.26
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/generate-helpers.js +24 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generate-helpers.js
CHANGED
|
@@ -3224,6 +3224,8 @@ export type InstagramPublishHistoryEntry = {
|
|
|
3224
3224
|
title?: string | null;
|
|
3225
3225
|
caption?: string | null;
|
|
3226
3226
|
imagePath?: string | null;
|
|
3227
|
+
/** Remote Instagram CDN thumbnail when scraped via Sync Stats */
|
|
3228
|
+
imageUrl?: string | null;
|
|
3227
3229
|
postUrl?: string | null;
|
|
3228
3230
|
shortcode?: string | null;
|
|
3229
3231
|
likes?: number | null;
|
|
@@ -3377,11 +3379,19 @@ export async function listInstagramSchedules(connectionId?: string): Promise<{
|
|
|
3377
3379
|
export type CreateInstagramScheduleOptions = {
|
|
3378
3380
|
title: string;
|
|
3379
3381
|
connectionId: string;
|
|
3380
|
-
/**
|
|
3382
|
+
/**
|
|
3383
|
+
* \`bi_products\` rotates BI catalog products and uses their registered photos
|
|
3384
|
+
* as image references. Products + photos must already exist via
|
|
3385
|
+
* bi_register_product(filePaths=...) — this API does NOT accept productImages.
|
|
3386
|
+
* Use \`manual\` for free-text topics with no product photo.
|
|
3387
|
+
*/
|
|
3381
3388
|
topicSource?: 'manual' | 'bi_products';
|
|
3382
3389
|
/** Required when topicSource is bi_products */
|
|
3383
3390
|
biSnapshotId?: string;
|
|
3384
|
-
/**
|
|
3391
|
+
/**
|
|
3392
|
+
* For bi_products: exact product names from bi_list_products (imageCount > 0).
|
|
3393
|
+
* For manual: free-text topics.
|
|
3394
|
+
*/
|
|
3385
3395
|
topics?: string[];
|
|
3386
3396
|
/** HH:MM (24h). Default 09:00. NOTE: this is a RECURRING daily/weekly/monthly
|
|
3387
3397
|
* cron time, not a one-off timer — if it already passed "today" when the
|
|
@@ -3406,11 +3416,18 @@ export type CreateInstagramScheduleOptions = {
|
|
|
3406
3416
|
};
|
|
3407
3417
|
|
|
3408
3418
|
/**
|
|
3409
|
-
* Create a recurring Instagram post schedule.
|
|
3410
|
-
*
|
|
3411
|
-
*
|
|
3412
|
-
*
|
|
3413
|
-
*
|
|
3419
|
+
* Create a recurring Instagram post schedule.
|
|
3420
|
+
*
|
|
3421
|
+
* Product-grounded posts (topicSource='bi_products') require BI catalog photos
|
|
3422
|
+
* first:
|
|
3423
|
+
* 1. bi_list_snapshots → snapshotId
|
|
3424
|
+
* 2. bi_register_product({ snapshotId, name, filePaths: [local photo paths] })
|
|
3425
|
+
* 3. bi_list_products → confirm imageCount > 0
|
|
3426
|
+
* 4. createInstagramSchedule({ topicSource: 'bi_products', biSnapshotId, topics: [product names] })
|
|
3427
|
+
*
|
|
3428
|
+
* The schedule create call rejects bi_products when no catalog photos exist.
|
|
3429
|
+
* Response includes actualNextRun (cron next fire). runNow defaults true for an
|
|
3430
|
+
* immediate post plus the recurring schedule.
|
|
3414
3431
|
*/
|
|
3415
3432
|
export async function createInstagramSchedule(options: CreateInstagramScheduleOptions) {
|
|
3416
3433
|
return callInstagramTool('instagram_schedule_create', options);
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* The minimum EGDesk app version this plugin version is compatible with.
|
|
9
9
|
* The app checks this at setup time and warns on mismatch.
|
|
10
10
|
*/
|
|
11
|
-
export declare const COMPATIBLE_APP_VERSION = "1.4.
|
|
11
|
+
export declare const COMPATIBLE_APP_VERSION = "1.4.39";
|
|
12
12
|
export interface SetupOptions {
|
|
13
13
|
egdeskUrl?: string;
|
|
14
14
|
/** Production EGDesk server URL — written to .env.production.local. Falls back to egdeskUrl. */
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ exports.setupNextApiPlugin = setupNextApiPlugin;
|
|
|
46
46
|
* The minimum EGDesk app version this plugin version is compatible with.
|
|
47
47
|
* The app checks this at setup time and warns on mismatch.
|
|
48
48
|
*/
|
|
49
|
-
exports.COMPATIBLE_APP_VERSION = '1.4.
|
|
49
|
+
exports.COMPATIBLE_APP_VERSION = '1.4.39';
|
|
50
50
|
const fs = __importStar(require("fs"));
|
|
51
51
|
const path = __importStar(require("path"));
|
|
52
52
|
const setup_userdata_1 = require("./setup-userdata");
|