@ever-works/everworks-playbooks-plugin 1.0.9 → 1.0.10

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/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
5
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.8/node_modules/@ever-co/connect-contracts/dist/index.js
6
6
  var PROBLEM_CODES = [
7
7
  "validation_failed",
8
8
  "not_found",
@@ -16,6 +16,10 @@ var PROBLEM_CODES = [
16
16
  "not_connection_owner",
17
17
  "integration_disabled",
18
18
  "integration_revoked",
19
+ "subject_unknown",
20
+ "link_not_found",
21
+ "oidc_client_exists",
22
+ "redirect_uri_invalid",
19
23
  "denied_by_policy",
20
24
  "integration_not_available",
21
25
  "entitlement_required",
@@ -44,6 +48,8 @@ var PROBLEM_CODES = [
44
48
  "illegal_transition",
45
49
  "already_exists",
46
50
  "already_completed",
51
+ "legal_basis_required",
52
+ "receipt_final",
47
53
  "billing_active",
48
54
  "sso_required",
49
55
  "reauth_required",
@@ -1871,9 +1877,16 @@ function playbookSearchFields(entry) {
1871
1877
  extra: entry.stepTitles
1872
1878
  };
1873
1879
  }
1874
- var HTML_TAG_PATTERN = /<[^>]*>/g;
1880
+ var HTML_TAG_PATTERN = /<[^<>]*>/g;
1875
1881
  function sanitizePlaybookText(value, max) {
1876
- return value.replace(HTML_TAG_PATTERN, "").trim().slice(0, max);
1882
+ let current = value;
1883
+ let previous;
1884
+ let passes = 0;
1885
+ do {
1886
+ previous = current;
1887
+ current = current.replace(HTML_TAG_PATTERN, "");
1888
+ } while (current !== previous && ++passes < 32);
1889
+ return current.replace(/(?<!<)<+(?=[a-z/!?])/gi, "").trim().slice(0, max);
1877
1890
  }
1878
1891
  function acceptPlaybookEntry(value) {
1879
1892
  if (!isRecord7(value)) return { entry: null, violation: "entry must be an object" };
@@ -2160,6 +2173,9 @@ var DOMAIN_EVENT_CATALOG = [
2160
2173
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2161
2174
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2162
2175
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2176
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
2177
+ // answer to an integration item (stored on the item; no run is started).
2178
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2163
2179
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2164
2180
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2165
2181
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.7/node_modules/@ever-co/connect-contracts/dist/index.js
1
+ // ../../../node_modules/.pnpm/@ever-co+connect-contracts@1.0.0-rc.8/node_modules/@ever-co/connect-contracts/dist/index.js
2
2
  var PROBLEM_CODES = [
3
3
  "validation_failed",
4
4
  "not_found",
@@ -12,6 +12,10 @@ var PROBLEM_CODES = [
12
12
  "not_connection_owner",
13
13
  "integration_disabled",
14
14
  "integration_revoked",
15
+ "subject_unknown",
16
+ "link_not_found",
17
+ "oidc_client_exists",
18
+ "redirect_uri_invalid",
15
19
  "denied_by_policy",
16
20
  "integration_not_available",
17
21
  "entitlement_required",
@@ -40,6 +44,8 @@ var PROBLEM_CODES = [
40
44
  "illegal_transition",
41
45
  "already_exists",
42
46
  "already_completed",
47
+ "legal_basis_required",
48
+ "receipt_final",
43
49
  "billing_active",
44
50
  "sso_required",
45
51
  "reauth_required",
@@ -1867,9 +1873,16 @@ function playbookSearchFields(entry) {
1867
1873
  extra: entry.stepTitles
1868
1874
  };
1869
1875
  }
1870
- var HTML_TAG_PATTERN = /<[^>]*>/g;
1876
+ var HTML_TAG_PATTERN = /<[^<>]*>/g;
1871
1877
  function sanitizePlaybookText(value, max) {
1872
- return value.replace(HTML_TAG_PATTERN, "").trim().slice(0, max);
1878
+ let current = value;
1879
+ let previous;
1880
+ let passes = 0;
1881
+ do {
1882
+ previous = current;
1883
+ current = current.replace(HTML_TAG_PATTERN, "");
1884
+ } while (current !== previous && ++passes < 32);
1885
+ return current.replace(/(?<!<)<+(?=[a-z/!?])/gi, "").trim().slice(0, max);
1873
1886
  }
1874
1887
  function acceptPlaybookEntry(value) {
1875
1888
  if (!isRecord7(value)) return { entry: null, violation: "entry must be an object" };
@@ -2156,6 +2169,9 @@ var DOMAIN_EVENT_CATALOG = [
2156
2169
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2157
2170
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2158
2171
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2172
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
2173
+ // answer to an integration item (stored on the item; no run is started).
2174
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
2159
2175
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2160
2176
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
2161
2177
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/everworks-playbooks-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Ever Works Playbooks — first-party playbook-provider plugin supplying the built-in Playbook catalogue: packaged outcomes with their trigger, steps, required capabilities, artefacts and escalation points.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,8 +33,8 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@ever-works/contracts": "^1.0.16",
37
- "@ever-works/plugin": "^1.2.12"
36
+ "@ever-works/contracts": "^1.0.19",
37
+ "@ever-works/plugin": "^1.2.16"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsup": "^8.3.0",
@@ -67,8 +67,8 @@
67
67
  "url": "https://github.com/ever-works/ever-works/issues"
68
68
  },
69
69
  "everworksRelease": {
70
- "contentHash": "sha256:849dafa14aa23dca8a4a23f889bae5fd553dfce146ff6ddbcddcd2aac3d25dcd",
71
- "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
72
- "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/everworks-playbooks"
70
+ "contentHash": "sha256:308cc1aa03214abe51a4b15b5d0c7ccca5b9303ccdcc64f24b0f5d9134f6b228",
71
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
72
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/everworks-playbooks"
73
73
  }
74
74
  }