@wix/auto_sdk_seo_content-plan-flows 1.0.2 → 1.0.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.
@@ -7,11 +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. The flow
12
- * reaches `KEYWORD_RESEARCH` when keyword research starts, so check that the
13
- * research finished with Get Site Keyword Research before you call Create
14
- * Content Plan.
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`.
15
15
  */
16
16
  interface ContentPlanFlow {
17
17
  /**
@@ -33,10 +33,10 @@ interface ContentPlanFlow {
33
33
  /**
34
34
  * Current status of the content plan flow.
35
35
  *
36
- * The status advances on its own as generation progresses, except at
37
- * `KEYWORD_RESEARCH`, where the flow waits for a call to Create Content
38
- * Plan. Keyword research may still be running at that point; its own
39
- * status is on Get Site Keyword Research.
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.
40
40
  */
41
41
  status?: StatusWithLiterals;
42
42
  /**
@@ -82,10 +82,10 @@ declare enum Status {
82
82
  /** The site's existing content is being summarized. */
83
83
  SITE_SUMMARY = "SITE_SUMMARY",
84
84
  /**
85
- * Keyword research has started, and the flow waits here until Create
86
- * Content Plan is called. This status doesn't change when the research
87
- * succeeds. Poll Get Site Keyword Research with `keywordResearchId`
88
- * until its status is `SUCCESS`, then call Create Content Plan.
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.
89
89
  */
90
90
  KEYWORD_RESEARCH = "KEYWORD_RESEARCH",
91
91
  /** Blog post briefs are being generated from the keyword research. */
@@ -531,10 +531,11 @@ declare function getContentPlanFlow(contentPlanFlowId: string): Promise<NonNulla
531
531
  * A successful response means the flow was created, not that generation
532
532
  * succeeded. Check `status` rather than relying on the response alone.
533
533
  *
534
- * The flow stops at `KEYWORD_RESEARCH` and waits. Once Get Site Keyword
535
- * Research reports the flow's research as `SUCCESS`, call Create Content
536
- * Plan to generate the blog post briefs and let the flow continue to
537
- * `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`.
538
539
  *
539
540
  * A failed flow is retried automatically, and each retry creates a separate
540
541
  * flow with its own ID. The original flow keeps its `FAIL` status, so call
@@ -8,11 +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. The flow
13
- * reaches `KEYWORD_RESEARCH` when keyword research starts, so check that the
14
- * research finished with Get Site Keyword Research before you call Create
15
- * Content Plan.
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`.
16
16
  */
17
17
  interface ContentPlanFlow {
18
18
  /**
@@ -34,10 +34,10 @@ interface ContentPlanFlow {
34
34
  /**
35
35
  * Current status of the content plan flow.
36
36
  *
37
- * The status advances on its own as generation progresses, except at
38
- * `KEYWORD_RESEARCH`, where the flow waits for a call to Create Content
39
- * Plan. Keyword research may still be running at that point; its own
40
- * status is on Get Site Keyword Research.
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.
41
41
  */
42
42
  status?: StatusWithLiterals;
43
43
  /**
@@ -83,10 +83,10 @@ declare enum Status {
83
83
  /** The site's existing content is being summarized. */
84
84
  SITE_SUMMARY = "SITE_SUMMARY",
85
85
  /**
86
- * Keyword research has started, and the flow waits here until Create
87
- * Content Plan is called. This status doesn't change when the research
88
- * succeeds. Poll Get Site Keyword Research with `keywordResearchId`
89
- * until its status is `SUCCESS`, then call Create Content Plan.
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.
90
90
  */
91
91
  KEYWORD_RESEARCH = "KEYWORD_RESEARCH",
92
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.2",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -29,7 +29,7 @@
29
29
  "service-plugins"
30
30
  ],
31
31
  "dependencies": {
32
- "@wix/sdk-runtime": "^1.0.24",
32
+ "@wix/sdk-runtime": "^1.0.28",
33
33
  "@wix/sdk-types": "^1.17.11"
34
34
  },
35
35
  "devDependencies": {
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.promote.seo.v1.content_plan_content_plan_flow"
51
51
  }
52
52
  },
53
- "falconPackageHash": "f28294f4d08da94d5234b6b37321ce1164c78c2ed38e66c280b67d2f"
53
+ "falconPackageHash": "cce06edbdd010da3ad9786e027006eb0a08c6087f15e3c61d1849508"
54
54
  }