@wix/auto_sdk_seo_content-plan-flows 1.0.1 → 1.0.3

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.
@@ -7,8 +7,11 @@ import { NonNullablePaths } from '@wix/sdk-types';
7
7
  * business category, and real search volume data. Generating one takes several
8
8
  * minutes, so the flow runs asynchronously and reports its progress in `status`.
9
9
  *
10
- * A flow doesn't run to completion on its own. It stops at `KEYWORD_RESEARCH`
11
- * and waits for a call to Create Content Plan before it continues.
10
+ * A flow reaches `KEYWORD_RESEARCH` when keyword research starts, not when it
11
+ * finishes. Some flows advance automatically. For a flow still waiting here,
12
+ * check its matching research with Get Site Keyword Research, then re-read the
13
+ * flow before calling Create Content Plan once. Skip Create if the flow has
14
+ * already advanced to `CONTENT_PLAN` or `SUCCESS`.
12
15
  */
13
16
  interface ContentPlanFlow {
14
17
  /**
@@ -30,9 +33,10 @@ interface ContentPlanFlow {
30
33
  /**
31
34
  * Current status of the content plan flow.
32
35
  *
33
- * The status advances on its own as generation progresses, except at
34
- * `KEYWORD_RESEARCH`, where the flow waits for a call to Create Content
35
- * Plan.
36
+ * `KEYWORD_RESEARCH` can mean research is running or the flow is waiting
37
+ * for Create Content Plan. Get Site Keyword Research reports research's
38
+ * own status. A flow already at `CONTENT_PLAN` or `SUCCESS` needs no
39
+ * release call.
36
40
  */
37
41
  status?: StatusWithLiterals;
38
42
  /**
@@ -53,9 +57,10 @@ interface ContentPlanFlow {
53
57
  */
54
58
  statusAdditionalData?: Record<string, any> | null;
55
59
  /**
56
- * ID of the keyword research the flow produced.
60
+ * ID of the keyword research the flow started.
57
61
  *
58
- * Available once `status` is `KEYWORD_RESEARCH` or later.
62
+ * Available once `status` is `KEYWORD_RESEARCH` or later. Pass it to Get
63
+ * Site Keyword Research to check whether the research finished.
59
64
  * @format GUID
60
65
  */
61
66
  keywordResearchId?: string | null;
@@ -77,8 +82,10 @@ declare enum Status {
77
82
  /** The site's existing content is being summarized. */
78
83
  SITE_SUMMARY = "SITE_SUMMARY",
79
84
  /**
80
- * Keyword research is complete and the flow is waiting. Call Create
81
- * Content Plan to generate the blog post briefs and continue the flow.
85
+ * Keyword research has started. This does not prove research is ready.
86
+ * Check the matching research with Get Site Keyword Research. After
87
+ * research succeeds, re-read the flow before calling Create Content
88
+ * Plan once if it still waits here.
82
89
  */
83
90
  KEYWORD_RESEARCH = "KEYWORD_RESEARCH",
84
91
  /** Blog post briefs are being generated from the keyword research. */
@@ -524,8 +531,11 @@ declare function getContentPlanFlow(contentPlanFlowId: string): Promise<NonNulla
524
531
  * A successful response means the flow was created, not that generation
525
532
  * succeeded. Check `status` rather than relying on the response alone.
526
533
  *
527
- * The flow stops at `KEYWORD_RESEARCH` and waits. Call Create Content Plan
528
- * to generate the blog post briefs and let the flow continue to `SUCCESS`.
534
+ * Some flows advance automatically. For a flow at `KEYWORD_RESEARCH`,
535
+ * use Get Site Keyword Research to check its matching research. After
536
+ * research `SUCCESS`, re-read the flow and call Create Content Plan once
537
+ * only if it still waits at `KEYWORD_RESEARCH` with the same research ID.
538
+ * Skip Create if the flow is already at `CONTENT_PLAN` or `SUCCESS`.
529
539
  *
530
540
  * A failed flow is retried automatically, and each retry creates a separate
531
541
  * flow with its own ID. The original flow keeps its `FAIL` status, so call
@@ -8,8 +8,11 @@ import '@wix/sdk-types';
8
8
  * business category, and real search volume data. Generating one takes several
9
9
  * minutes, so the flow runs asynchronously and reports its progress in `status`.
10
10
  *
11
- * A flow doesn't run to completion on its own. It stops at `KEYWORD_RESEARCH`
12
- * and waits for a call to Create Content Plan before it continues.
11
+ * A flow reaches `KEYWORD_RESEARCH` when keyword research starts, not when it
12
+ * finishes. Some flows advance automatically. For a flow still waiting here,
13
+ * check its matching research with Get Site Keyword Research, then re-read the
14
+ * flow before calling Create Content Plan once. Skip Create if the flow has
15
+ * already advanced to `CONTENT_PLAN` or `SUCCESS`.
13
16
  */
14
17
  interface ContentPlanFlow {
15
18
  /**
@@ -31,9 +34,10 @@ interface ContentPlanFlow {
31
34
  /**
32
35
  * Current status of the content plan flow.
33
36
  *
34
- * The status advances on its own as generation progresses, except at
35
- * `KEYWORD_RESEARCH`, where the flow waits for a call to Create Content
36
- * Plan.
37
+ * `KEYWORD_RESEARCH` can mean research is running or the flow is waiting
38
+ * for Create Content Plan. Get Site Keyword Research reports research's
39
+ * own status. A flow already at `CONTENT_PLAN` or `SUCCESS` needs no
40
+ * release call.
37
41
  */
38
42
  status?: StatusWithLiterals;
39
43
  /**
@@ -54,9 +58,10 @@ interface ContentPlanFlow {
54
58
  */
55
59
  statusAdditionalData?: Record<string, any> | null;
56
60
  /**
57
- * ID of the keyword research the flow produced.
61
+ * ID of the keyword research the flow started.
58
62
  *
59
- * Available once `status` is `KEYWORD_RESEARCH` or later.
63
+ * Available once `status` is `KEYWORD_RESEARCH` or later. Pass it to Get
64
+ * Site Keyword Research to check whether the research finished.
60
65
  * @format GUID
61
66
  */
62
67
  keywordResearchId?: string | null;
@@ -78,8 +83,10 @@ declare enum Status {
78
83
  /** The site's existing content is being summarized. */
79
84
  SITE_SUMMARY = "SITE_SUMMARY",
80
85
  /**
81
- * Keyword research is complete and the flow is waiting. Call Create
82
- * Content Plan to generate the blog post briefs and continue the flow.
86
+ * Keyword research has started. This does not prove research is ready.
87
+ * Check the matching research with Get Site Keyword Research. After
88
+ * research succeeds, re-read the flow before calling Create Content
89
+ * Plan once if it still waits here.
83
90
  */
84
91
  KEYWORD_RESEARCH = "KEYWORD_RESEARCH",
85
92
  /** Blog post briefs are being generated from the keyword research. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_seo_content-plan-flows",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.promote.seo.v1.content_plan_content_plan_flow"
51
51
  }
52
52
  },
53
- "falconPackageHash": "490b33e3e78c717027c88faed34b5238a1596ba353de0f22c89fb286"
53
+ "falconPackageHash": "aaff608a400d6ddab632b1a026a1c41efc9797f50e3ad00c1604fc87"
54
54
  }