@forge/util 1.4.1-next.0 → 1.4.1

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/packages/analytics-node-client/README.md +65 -1
  4. package/packages/analytics-node-client/package.json +10 -5
  5. package/packages/analytics-node-client/src/index.js +1 -1
  6. package/packages/ari/_tsup-dts-rollup.d.ts +111 -0
  7. package/packages/ari/chunk-A5KZESJG.mjs +76 -0
  8. package/packages/ari/chunk-GHVFX7QU.mjs +80 -0
  9. package/packages/ari/chunk-IQPZXRAE.mjs +69 -0
  10. package/packages/ari/chunk-PF3FHNQU.mjs +7 -0
  11. package/packages/ari/chunk-QO2BQQRK.mjs +7 -0
  12. package/packages/ari/chunk-RYGO66NC.mjs +7 -0
  13. package/packages/ari/index.js +1 -1
  14. package/packages/ari/index.mjs +197 -191
  15. package/packages/ari/jira/index.d.ts +2 -0
  16. package/packages/ari/jira/index.js +131 -0
  17. package/packages/ari/jira/index.mjs +79 -69
  18. package/packages/ari/jira/issue-remote-link/index.d.ts +3 -0
  19. package/packages/ari/jira/issue-remote-link/index.js +353 -0
  20. package/packages/ari/jira/issue-remote-link/index.mjs +17 -0
  21. package/packages/ari/jira/issue-remote-link/types.d.ts +3 -0
  22. package/packages/ari/jira/issue-remote-link/types.js +29 -0
  23. package/packages/ari/jira/issue-remote-link/types.mjs +8 -0
  24. package/packages/ari/jira/notification-user-preference/index.d.ts +3 -0
  25. package/packages/ari/jira/notification-user-preference/index.js +342 -0
  26. package/packages/ari/jira/notification-user-preference/index.mjs +17 -0
  27. package/packages/ari/jira/notification-user-preference/types.d.ts +3 -0
  28. package/packages/ari/jira/notification-user-preference/types.js +29 -0
  29. package/packages/ari/jira/notification-user-preference/types.mjs +8 -0
  30. package/packages/ari/measurement/index.mjs +4 -4
  31. package/packages/ari/mercury/index.mjs +8 -8
  32. package/packages/ari/opsgenie/index.mjs +38 -38
  33. package/packages/ari/package.json +1 -1
  34. package/packages/ari/papi/index.mjs +4 -4
  35. package/packages/ari/people-perftool/index.mjs +4 -4
  36. package/packages/ari/platform/index.mjs +16 -16
  37. package/packages/ari/resource-types/epic.d.ts +1 -0
  38. package/packages/ari/resource-types/epic.js +27 -0
  39. package/packages/ari/resource-types/epic.mjs +5 -0
  40. package/packages/ari/resource-types/issue-remote-link.d.ts +1 -0
  41. package/packages/ari/resource-types/issue-remote-link.js +27 -0
  42. package/packages/ari/resource-types/issue-remote-link.mjs +5 -0
  43. package/packages/ari/statuspage/index.mjs +4 -4
  44. package/packages/ari/townsquare/index.mjs +11 -11
  45. package/packages/ari/trello/index.mjs +4 -4
  46. package/packages/ari/unified-help/index.mjs +4 -4
  47. package/packages/ari/virtual-agent/conversation/index.d.ts +3 -0
  48. package/packages/ari/virtual-agent/conversation/index.js +349 -0
  49. package/packages/ari/virtual-agent/conversation/index.mjs +17 -0
  50. package/packages/ari/virtual-agent/conversation/types.d.ts +3 -0
  51. package/packages/ari/virtual-agent/conversation/types.js +29 -0
  52. package/packages/ari/virtual-agent/conversation/types.mjs +8 -0
  53. package/packages/ari/virtual-agent/index.d.ts +1 -0
  54. package/packages/ari/virtual-agent/index.js +67 -0
  55. package/packages/ari/virtual-agent/index.mjs +6 -1
  56. package/packages/metrics-interface/CHANGELOG.md +42 -0
  57. package/packages/metrics-interface/README.md +13 -15
  58. package/packages/metrics-interface/dist/metrics.d.ts +2 -0
  59. package/packages/metrics-interface/dist/metrics.d.ts.map +1 -1
  60. package/packages/metrics-interface/dist/metrics.js +11 -1
  61. package/packages/metrics-interface/dist/metrics.js.map +1 -1
  62. package/packages/metrics-interface/dist/mocks/index.d.ts +3 -1
  63. package/packages/metrics-interface/dist/mocks/index.d.ts.map +1 -1
  64. package/packages/metrics-interface/dist/mocks/index.js +3 -1
  65. package/packages/metrics-interface/dist/mocks/index.js.map +1 -1
  66. package/packages/metrics-interface/package.json +3 -2
  67. /package/packages/ari/{chunk-VZUAPXXZ.mjs → chunk-GH4RGVNE.mjs} +0 -0
  68. /package/packages/ari/{chunk-WRVV7GZO.mjs → chunk-NZ5QEVUV.mjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @forge/util
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b82e7f: Bumping dependencies via Renovate:
8
+
9
+ - webpack
10
+
3
11
  ## 1.4.1-next.0
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/util",
3
- "version": "1.4.1-next.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "./scripts/build.sh",
@@ -4,7 +4,7 @@ Analytics Client NodeJS services. Uses the GASv3 platform.
4
4
 
5
5
  * [Event Guidelines](http://go.atlassian.com/analytics)
6
6
  * [Trait Guidelines](https://developer.atlassian.com/platform/targeting/overview/concepts/traits/)
7
- * Questions / Other support: visit us in Slack: #product-analytics-dev "Product Analytics Dev"
7
+ * Questions / Other support: visit us in Slack: [#help-analytics-pipeline](https://atlassian.enterprise.slack.com/archives/CFG85MPMX).
8
8
 
9
9
  ## Usage
10
10
 
@@ -301,6 +301,29 @@ client.sendOperationalEvent({
301
301
  });
302
302
  ```
303
303
 
304
+ ### Set alias or group (optional):
305
+
306
+ The `aliases` container allows you to assign an extra customer identity to GASv3 analytics Track, UI, Screen and Operational events.
307
+
308
+ ```javascript
309
+ analyticsClient.setAlias(
310
+ aliasTypes.A_FUTURE_MEMBER_ID,
311
+ 'dummy-1234',
312
+ );
313
+ ```
314
+ The `groups` container aids in identifying the account or organization associated with your users.
315
+ ```javascript
316
+ analyticsClient.setGroup(
317
+ groupTypes.TRANSACTION_ACCOUNT_ID,
318
+ 'dummy-1234',
319
+ );
320
+ ```
321
+ **Note** The `setAlias` and `setGroup` methods will only accept values that are in the enums `aliasTypes` and `groupTypes`. If you have a specific use case and wish to include a new enum, please get in touch with us at [#help-analytics-pipeline](https://atlassian.enterprise.slack.com/archives/CFG85MPMX).
322
+
323
+ Currently, [we support the following `groupTypes` values](https://bitbucket.org/atlassian/analytics-node-client/src/master/src/constants/group-type.js):
324
+ - `TRANSACTION_ACCOUNT_ID`
325
+
326
+
304
327
  ## Sending a TraitEvent
305
328
 
306
329
  ```javascript
@@ -345,3 +368,44 @@ Changesets are an important part of the development process. Version bumping is
345
368
  Please adhere to the [this](https://developer.atlassian.com/cloud/framework/atlassian-frontend/development/versioning/#versioning-guidelines) guideline when selecting the bump type for your package.
346
369
 
347
370
  Run the command line script `npx changeset`, write changesets that users understand and can take action on and commit changes.
371
+
372
+ ## Migration from v3 to v4 Guide
373
+
374
+ 1. System requirements
375
+
376
+ - Node >= 14
377
+
378
+ 2. Changes to `flush()`
379
+
380
+ The `flush()` function has been deprecated.
381
+
382
+ If you don’t want to batch messages, you can turn batching off by setting the`maxEventsInBatch` setting to 1, like so:
383
+
384
+ ```
385
+ const client = analyticsClient({
386
+ ...
387
+ maxEventsInBatch: 1
388
+ });
389
+ ```
390
+
391
+ If you want to avoid losing events after shutting down your console. Call `.gracefulShutdown()` to stop collecting new events and flush all existing events.
392
+
393
+ ```
394
+ await client .gracefulShutdown()
395
+ ```
396
+
397
+ ***Note*** Calling `.gracefulShutdown()` will stop collecting new events.
398
+
399
+ If you need to call gracefulShudown() function and subsequently trigger new events, you should instantiate a new instance of the analytics client.
400
+
401
+ 3. Changes to `flushAt`
402
+
403
+ The `flushAt` configuration option has been renamed to `maxEventsInBatch`.
404
+
405
+ 4. Changes to `retryDelayFn`
406
+
407
+ The `retryDelayFn` has been removed from `@segment/analytics-node`. Use `maxRetries` to configure the number of times to retry flushing a batch.
408
+
409
+ 5. Changes to `timeout`
410
+
411
+ The `timeout` option has been removed from `@segment/analytics-node`. Use `httpRequestTimeout` to configure the maximum number of milliseconds to wait for an http request.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytics-node-client",
3
- "version": "3.6.0",
3
+ "version": "4.1.1",
4
4
  "description": "Analytics Serverside client for Node JS",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -23,23 +23,28 @@
23
23
  "license": "Private",
24
24
  "devDependencies": {
25
25
  "@changesets/cli": "^2.26.1",
26
- "eslint": "^4.18.1",
26
+ "eslint": "^8.56.0",
27
27
  "eslint-config-jbunton": "0.0.3",
28
28
  "jasmine": "^3.0.0",
29
29
  "jasmine-console-reporter": "^1.2.6",
30
- "jasmine-http-server-spy": "^0.4.0",
30
+ "jasmine-http-server-spy": "^0.5.0",
31
31
  "jasmine-promise-tools": "^1.1.0",
32
32
  "jasmine-reporters": "^2.2.0",
33
- "jest": "^24.9.0",
33
+ "jest": "^29.7.0",
34
34
  "npm-run-all": "^3.1.0",
35
35
  "proxyquire": "^1.7.2",
36
36
  "typescript": "^5.2.2",
37
37
  "watch": "https://github.com/jbunton-atlassian/watch#5de0fc9c13df5ebc3320c1cbe275916cc954142d"
38
38
  },
39
39
  "dependencies": {
40
- "analytics-node": "^6.2.0",
40
+ "@segment/analytics-node": "^1.1.3",
41
41
  "lodash": "^4.17.21"
42
42
  },
43
+ "overrides": {
44
+ "watch": {
45
+ "exec-sh": "^0.4.0"
46
+ }
47
+ },
43
48
  "files": [
44
49
  "src"
45
50
  ]