@forge/util 1.4.10 → 2.0.0-next.0-experimental-42e3178

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 (196) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +2 -5
  3. package/packages/ari/_tsup-dts-rollup.d.ts +330 -0
  4. package/packages/ari/chunk-5Q5UL6WL.mjs +7 -0
  5. package/packages/ari/chunk-63SGYTKK.mjs +7 -0
  6. package/packages/ari/chunk-6SGR4JWH.mjs +70 -0
  7. package/packages/ari/chunk-7DTHPART.mjs +0 -0
  8. package/packages/ari/chunk-A35RPAYV.mjs +70 -0
  9. package/packages/ari/chunk-CS6RQC3V.mjs +7 -0
  10. package/packages/ari/chunk-CSESCAWL.mjs +7 -0
  11. package/packages/ari/chunk-CZTKEESF.mjs +0 -0
  12. package/packages/ari/chunk-EBM6ALFK.mjs +7 -0
  13. package/packages/ari/chunk-FDNQJ433.mjs +70 -0
  14. package/packages/ari/chunk-FDSHXPYJ.mjs +7 -0
  15. package/packages/ari/chunk-GGIQW4Z4.mjs +70 -0
  16. package/packages/ari/chunk-H42OOLXG.mjs +0 -0
  17. package/packages/ari/chunk-NTIQPGKA.mjs +70 -0
  18. package/packages/ari/chunk-OMSDF73F.mjs +74 -0
  19. package/packages/ari/chunk-Q623MFIX.mjs +70 -0
  20. package/packages/ari/chunk-QVEWE3BL.mjs +70 -0
  21. package/packages/ari/chunk-SWE627ZW.mjs +63 -0
  22. package/packages/ari/chunk-T2BO3UPO.mjs +7 -0
  23. package/packages/ari/chunk-TTDPBFH7.mjs +7 -0
  24. package/packages/ari/chunk-TV27GVTO.mjs +7 -0
  25. package/packages/ari/chunk-UDET3NPV.mjs +7 -0
  26. package/packages/ari/chunk-YHIXSUC3.mjs +70 -0
  27. package/packages/ari/chunk-YZ6V66ML.mjs +0 -0
  28. package/packages/ari/index.d.ts +10 -0
  29. package/packages/ari/index.js +609 -2
  30. package/packages/ari/index.mjs +462 -408
  31. package/packages/ari/jira/index.mjs +86 -86
  32. package/packages/ari/jira-dc-secondary.jira-dc/comment/index.d.ts +3 -0
  33. package/packages/ari/jira-dc-secondary.jira-dc/comment/index.js +343 -0
  34. package/packages/ari/jira-dc-secondary.jira-dc/comment/index.mjs +17 -0
  35. package/packages/ari/jira-dc-secondary.jira-dc/comment/types.d.ts +3 -0
  36. package/packages/ari/jira-dc-secondary.jira-dc/comment/types.js +29 -0
  37. package/packages/ari/jira-dc-secondary.jira-dc/comment/types.mjs +8 -0
  38. package/packages/ari/jira-dc-secondary.jira-dc/index.d.ts +4 -0
  39. package/packages/ari/jira-dc-secondary.jira-dc/index.js +522 -0
  40. package/packages/ari/jira-dc-secondary.jira-dc/index.mjs +28 -0
  41. package/packages/ari/jira-dc-secondary.jira-dc/project/index.d.ts +3 -0
  42. package/packages/ari/jira-dc-secondary.jira-dc/project/index.js +343 -0
  43. package/packages/ari/jira-dc-secondary.jira-dc/project/index.mjs +17 -0
  44. package/packages/ari/jira-dc-secondary.jira-dc/project/types.d.ts +3 -0
  45. package/packages/ari/jira-dc-secondary.jira-dc/project/types.js +29 -0
  46. package/packages/ari/jira-dc-secondary.jira-dc/project/types.mjs +8 -0
  47. package/packages/ari/jira-dc-secondary.jira-dc/space/index.d.ts +3 -0
  48. package/packages/ari/jira-dc-secondary.jira-dc/space/index.js +343 -0
  49. package/packages/ari/jira-dc-secondary.jira-dc/space/index.mjs +17 -0
  50. package/packages/ari/jira-dc-secondary.jira-dc/space/types.d.ts +3 -0
  51. package/packages/ari/jira-dc-secondary.jira-dc/space/types.js +29 -0
  52. package/packages/ari/jira-dc-secondary.jira-dc/space/types.mjs +8 -0
  53. package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.d.ts +3 -0
  54. package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.js +343 -0
  55. package/packages/ari/jira-dc-secondary.jira-dc/work-item/index.mjs +17 -0
  56. package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.d.ts +3 -0
  57. package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.js +29 -0
  58. package/packages/ari/jira-dc-secondary.jira-dc/work-item/types.mjs +8 -0
  59. package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.d.ts +3 -0
  60. package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.js +343 -0
  61. package/packages/ari/jira-dc-tertiary.jira-dc/comment/index.mjs +17 -0
  62. package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.d.ts +3 -0
  63. package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.js +29 -0
  64. package/packages/ari/jira-dc-tertiary.jira-dc/comment/types.mjs +8 -0
  65. package/packages/ari/jira-dc-tertiary.jira-dc/index.d.ts +4 -0
  66. package/packages/ari/jira-dc-tertiary.jira-dc/index.js +522 -0
  67. package/packages/ari/jira-dc-tertiary.jira-dc/index.mjs +28 -0
  68. package/packages/ari/jira-dc-tertiary.jira-dc/project/index.d.ts +3 -0
  69. package/packages/ari/jira-dc-tertiary.jira-dc/project/index.js +343 -0
  70. package/packages/ari/jira-dc-tertiary.jira-dc/project/index.mjs +17 -0
  71. package/packages/ari/jira-dc-tertiary.jira-dc/project/types.d.ts +3 -0
  72. package/packages/ari/jira-dc-tertiary.jira-dc/project/types.js +29 -0
  73. package/packages/ari/jira-dc-tertiary.jira-dc/project/types.mjs +8 -0
  74. package/packages/ari/jira-dc-tertiary.jira-dc/space/index.d.ts +3 -0
  75. package/packages/ari/jira-dc-tertiary.jira-dc/space/index.js +343 -0
  76. package/packages/ari/jira-dc-tertiary.jira-dc/space/index.mjs +17 -0
  77. package/packages/ari/jira-dc-tertiary.jira-dc/space/types.d.ts +3 -0
  78. package/packages/ari/jira-dc-tertiary.jira-dc/space/types.js +29 -0
  79. package/packages/ari/jira-dc-tertiary.jira-dc/space/types.mjs +8 -0
  80. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.d.ts +3 -0
  81. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.js +343 -0
  82. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/index.mjs +17 -0
  83. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.d.ts +3 -0
  84. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.js +29 -0
  85. package/packages/ari/jira-dc-tertiary.jira-dc/work-item/types.mjs +8 -0
  86. package/packages/ari/jira-dc.jira-dc/index.mjs +4 -4
  87. package/packages/ari/jira-servicedesk/index.mjs +11 -11
  88. package/packages/ari/jira-software/index.mjs +14 -14
  89. package/packages/ari/knowledge-discovery/bookmark/index.d.ts +3 -0
  90. package/packages/ari/knowledge-discovery/bookmark/index.js +347 -0
  91. package/packages/ari/knowledge-discovery/bookmark/index.mjs +17 -0
  92. package/packages/ari/knowledge-discovery/bookmark/types.d.ts +3 -0
  93. package/packages/ari/knowledge-discovery/bookmark/types.js +29 -0
  94. package/packages/ari/knowledge-discovery/bookmark/types.mjs +8 -0
  95. package/packages/ari/knowledge-discovery/index.d.ts +1 -0
  96. package/packages/ari/knowledge-discovery/index.js +343 -0
  97. package/packages/ari/knowledge-discovery/index.mjs +13 -0
  98. package/packages/ari/loom/index.mjs +15 -15
  99. package/packages/ari/lucid.lucidchart/index.mjs +4 -4
  100. package/packages/ari/measurement/index.mjs +4 -4
  101. package/packages/ari/mercury/index.mjs +22 -22
  102. package/packages/ari/microsoft/index.mjs +8 -8
  103. package/packages/ari/microsoft.teams/index.mjs +4 -4
  104. package/packages/ari/miro.miro/index.mjs +4 -4
  105. package/packages/ari/opsgenie/index.mjs +28 -28
  106. package/packages/ari/package.json +1 -1
  107. package/packages/ari/papi/index.mjs +4 -4
  108. package/packages/ari/passionfruit/index.mjs +15 -15
  109. package/packages/ari/people-data/index.mjs +4 -4
  110. package/packages/ari/people-perftool/index.mjs +4 -4
  111. package/packages/ari/platform/index.mjs +11 -11
  112. package/packages/ari/proforma/index.mjs +8 -8
  113. package/packages/ari/pure/index.mjs +4 -4
  114. package/packages/ari/radar/index.mjs +4 -4
  115. package/packages/ari/resource-types/bookmark.d.ts +1 -0
  116. package/packages/ari/resource-types/bookmark.js +27 -0
  117. package/packages/ari/resource-types/bookmark.mjs +5 -0
  118. package/packages/ari/resource-types/usage.d.ts +1 -0
  119. package/packages/ari/resource-types/usage.js +27 -0
  120. package/packages/ari/resource-types/usage.mjs +5 -0
  121. package/packages/ari/rovo/index.mjs +4 -4
  122. package/packages/ari/search/index.mjs +4 -4
  123. package/packages/ari/slack/index.mjs +4 -4
  124. package/packages/ari/smartsheet.smartsheet/index.mjs +4 -4
  125. package/packages/ari/statuspage/index.mjs +4 -4
  126. package/packages/ari/townsquare/index.mjs +8 -8
  127. package/packages/ari/trello/index.mjs +8 -8
  128. package/packages/ari/unified-help/index.mjs +4 -4
  129. package/packages/ari/usage-tracking/index.d.ts +1 -0
  130. package/packages/ari/usage-tracking/index.js +332 -0
  131. package/packages/ari/usage-tracking/index.mjs +13 -0
  132. package/packages/ari/usage-tracking/usage/index.d.ts +3 -0
  133. package/packages/ari/usage-tracking/usage/index.js +336 -0
  134. package/packages/ari/usage-tracking/usage/index.mjs +17 -0
  135. package/packages/ari/usage-tracking/usage/types.d.ts +3 -0
  136. package/packages/ari/usage-tracking/usage/types.js +29 -0
  137. package/packages/ari/usage-tracking/usage/types.mjs +8 -0
  138. package/packages/ari/virtual-agent/index.mjs +8 -8
  139. package/packages/ari/workato/index.mjs +4 -4
  140. package/packages/ari/workday/index.mjs +4 -4
  141. package/packages/ari/workday.workday/index.mjs +4 -4
  142. package/packages/ari/zendesk.zendesk/index.mjs +4 -4
  143. package/scripts/build.sh +0 -3
  144. package/packages/in-memory-metrics/CHANGELOG.md +0 -13
  145. package/packages/in-memory-metrics/README.md +0 -18
  146. package/packages/in-memory-metrics/dist/index.d.ts +0 -3
  147. package/packages/in-memory-metrics/dist/index.d.ts.map +0 -1
  148. package/packages/in-memory-metrics/dist/index.js +0 -6
  149. package/packages/in-memory-metrics/dist/index.js.map +0 -1
  150. package/packages/in-memory-metrics/dist/metric/counter.d.ts +0 -11
  151. package/packages/in-memory-metrics/dist/metric/counter.d.ts.map +0 -1
  152. package/packages/in-memory-metrics/dist/metric/counter.js +0 -27
  153. package/packages/in-memory-metrics/dist/metric/counter.js.map +0 -1
  154. package/packages/in-memory-metrics/dist/metric/gauge.d.ts +0 -8
  155. package/packages/in-memory-metrics/dist/metric/gauge.d.ts.map +0 -1
  156. package/packages/in-memory-metrics/dist/metric/gauge.js +0 -18
  157. package/packages/in-memory-metrics/dist/metric/gauge.js.map +0 -1
  158. package/packages/in-memory-metrics/dist/metric/metric.d.ts +0 -9
  159. package/packages/in-memory-metrics/dist/metric/metric.d.ts.map +0 -1
  160. package/packages/in-memory-metrics/dist/metric/metric.js +0 -17
  161. package/packages/in-memory-metrics/dist/metric/metric.js.map +0 -1
  162. package/packages/in-memory-metrics/dist/metric/timed.d.ts +0 -13
  163. package/packages/in-memory-metrics/dist/metric/timed.d.ts.map +0 -1
  164. package/packages/in-memory-metrics/dist/metric/timed.js +0 -48
  165. package/packages/in-memory-metrics/dist/metric/timed.js.map +0 -1
  166. package/packages/in-memory-metrics/dist/metrics.d.ts +0 -33
  167. package/packages/in-memory-metrics/dist/metrics.d.ts.map +0 -1
  168. package/packages/in-memory-metrics/dist/metrics.js +0 -103
  169. package/packages/in-memory-metrics/dist/metrics.js.map +0 -1
  170. package/packages/in-memory-metrics/package.json +0 -31
  171. package/packages/logger-interface/CHANGELOG.md +0 -105
  172. package/packages/logger-interface/README.md +0 -33
  173. package/packages/logger-interface/dist/index.d.ts +0 -24
  174. package/packages/logger-interface/dist/index.d.ts.map +0 -1
  175. package/packages/logger-interface/dist/index.js +0 -33
  176. package/packages/logger-interface/dist/index.js.map +0 -1
  177. package/packages/logger-interface/dist/mocks/index.d.ts +0 -11
  178. package/packages/logger-interface/dist/mocks/index.d.ts.map +0 -1
  179. package/packages/logger-interface/dist/mocks/index.js +0 -22
  180. package/packages/logger-interface/dist/mocks/index.js.map +0 -1
  181. package/packages/logger-interface/package.json +0 -36
  182. package/packages/metrics-interface/CHANGELOG.md +0 -226
  183. package/packages/metrics-interface/README.md +0 -63
  184. package/packages/metrics-interface/dist/index.d.ts +0 -2
  185. package/packages/metrics-interface/dist/index.d.ts.map +0 -1
  186. package/packages/metrics-interface/dist/index.js +0 -18
  187. package/packages/metrics-interface/dist/index.js.map +0 -1
  188. package/packages/metrics-interface/dist/metrics.d.ts +0 -48
  189. package/packages/metrics-interface/dist/metrics.d.ts.map +0 -1
  190. package/packages/metrics-interface/dist/metrics.js +0 -70
  191. package/packages/metrics-interface/dist/metrics.js.map +0 -1
  192. package/packages/metrics-interface/dist/mocks/index.d.ts +0 -43
  193. package/packages/metrics-interface/dist/mocks/index.d.ts.map +0 -1
  194. package/packages/metrics-interface/dist/mocks/index.js +0 -54
  195. package/packages/metrics-interface/dist/mocks/index.js.map +0 -1
  196. package/packages/metrics-interface/package.json +0 -36
@@ -1,105 +0,0 @@
1
- # @atlassian/logger-interface
2
-
3
- ## 2.0.3
4
-
5
- ### Patch Changes
6
-
7
- - 172390575: added list of onboarded packages and updated package descriptions
8
-
9
- ## 2.0.2
10
-
11
- ### Patch Changes
12
-
13
- - 07274041: onboard logging as platform packages
14
-
15
- ## 2.0.1
16
-
17
- ### Patch Changes
18
-
19
- - 174f3f5: incredible-monorepo renamed to node-monorepo
20
-
21
- ## 2.0.0
22
-
23
- ### Major Changes
24
-
25
- - b6125f0: Upgrade NodeJS typings to v16. Package now targets NodeJS runtime 16 and above, all previous NodeJS versions
26
- are now unsupported.
27
-
28
- ## 1.3.21
29
-
30
- ### Patch Changes
31
-
32
- - c0069ef: Package is now compiled with Typescript 4.4
33
-
34
- Useful links:
35
-
36
- - https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#more-compliant-indirect-calls-for-imported-functions
37
- - http://perfectionkills.com/global-eval-what-are-the-options/
38
-
39
- ## 1.3.20
40
-
41
- ### Patch Changes
42
-
43
- - fae10a6: Fixed an issue with compiled typings files after upgrading to TypeScript 4.3. The imports in the typings.d.ts
44
- files were compiled with paths relative to the monorepo root, rather than absolute package paths. This problem has now
45
- been fixed.
46
-
47
- ## 1.3.19
48
-
49
- ### Patch Changes
50
-
51
- - fae196c: Added a feature to the monorepo so packages with non js entrypoints can be used
52
-
53
- ## 1.3.18
54
-
55
- ### Patch Changes
56
-
57
- - fae1709: Fixed an issue during package building, so bumping all packages to ensure distribution assets are valid
58
-
59
- ## 1.3.17
60
-
61
- ### Patch Changes
62
-
63
- - 97644a1: Set Typescript Compiler target to ES2018
64
-
65
- ## 1.3.16
66
-
67
- ### Patch Changes
68
-
69
- - 85bb2aa: monorepo changes: rename packageJson.publishConfig to packageJson.config.publishOverrides
70
-
71
- ## 1.3.15
72
-
73
- ### Patch Changes
74
-
75
- - 645304b: fix: ensure all monorepo packages do not use ranges in their dependencies (for changeset's automatic bumps)
76
-
77
- ## 1.3.14
78
-
79
- ### Patch Changes
80
-
81
- - 4483856: re-add devDependencies back into package.json and update import order linting rules
82
-
83
- ## 1.3.13
84
-
85
- ### Patch Changes
86
-
87
- - 6af309e: chore: update homepage field in package.json
88
-
89
- ## 1.3.12
90
-
91
- ### Patch Changes
92
-
93
- - 37e36f9: fix: the main, types and typings fields in package.json were incorrect on publish
94
-
95
- ## 1.3.11
96
-
97
- ### Patch Changes
98
-
99
- - b9aad92: fix: the previous patch version did not contain dist files
100
-
101
- ## 1.3.10
102
-
103
- ### Patch Changes
104
-
105
- - c255e4f: Dev improvements: Updated how the package is tested and published
@@ -1,33 +0,0 @@
1
- # @atlassian/logger-interface
2
-
3
- Typescript interface that provides standard logging levels `debug`, `info`, `warn`, `error`, and `fatal`.
4
-
5
- ## Usage
6
-
7
- ```typescript
8
- interface Logger {
9
- debug: LogMethod;
10
- info: LogMethod;
11
- warn: LogMethod;
12
- error: LogMethod;
13
- fatal: LogMethod;
14
- }
15
-
16
- interface LogMethod {
17
- (...data: Array<any>): void;
18
- }
19
- ```
20
-
21
- Arguments are untyped to provide freedom of choice for implementors.
22
-
23
- An extension of `Logger` that contains a child method is provided for implementors that expose this method. Usually the
24
- `opts` object contains a set of fields that are added as fields to each logging entry done by the _child_ logger. It may
25
- also serve to set the minimum log level.
26
-
27
- ```typescript
28
- interface HierarchicalLogger extends Logger {
29
- child(opts: any): HierarchicalLogger;
30
- }
31
- ```
32
-
33
- A default implementation named `NoLogger` is provided for testing purposes.
@@ -1,24 +0,0 @@
1
- export interface LogMethod {
2
- (...data: any[]): void;
3
- }
4
- export interface Logger {
5
- debug: LogMethod;
6
- info: LogMethod;
7
- warn: LogMethod;
8
- error: LogMethod;
9
- fatal: LogMethod;
10
- }
11
- export interface HierarchicalLogger extends Logger {
12
- child(opts: any): HierarchicalLogger;
13
- }
14
- export declare class NoLogger implements HierarchicalLogger {
15
- debug(..._data: any[]): void;
16
- info(..._data: any[]): void;
17
- warn(..._data: any[]): void;
18
- error(..._data: any[]): void;
19
- fatal(..._data: any[]): void;
20
- child(..._data: any[]): HierarchicalLogger;
21
- }
22
- export declare function isHierachicalLogger(obj: any): obj is HierarchicalLogger;
23
- export declare function isLogger(obj: any): obj is Logger;
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,KAAK,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAAC;CACtC;AAED,qBAAa,QAAS,YAAW,kBAAkB;IAE1C,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAC5B,IAAI,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAC3B,IAAI,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAC3B,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAC5B,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAC5B,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,kBAAkB;CAIlD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,kBAAkB,CAEvE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAahD"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLogger = exports.isHierachicalLogger = exports.NoLogger = void 0;
4
- class NoLogger {
5
- /* eslint-disable @typescript-eslint/no-unused-vars */
6
- debug(..._data) { }
7
- info(..._data) { }
8
- warn(..._data) { }
9
- error(..._data) { }
10
- fatal(..._data) { }
11
- child(..._data) {
12
- return this;
13
- }
14
- }
15
- exports.NoLogger = NoLogger;
16
- function isHierachicalLogger(obj) {
17
- return 'child' in obj && typeof obj.child === 'function';
18
- }
19
- exports.isHierachicalLogger = isHierachicalLogger;
20
- function isLogger(obj) {
21
- return ('debug' in obj &&
22
- typeof obj.debug === 'function' &&
23
- 'info' in obj &&
24
- typeof obj.info === 'function' &&
25
- 'warn' in obj &&
26
- typeof obj.warn === 'function' &&
27
- 'error' in obj &&
28
- typeof obj.error === 'function' &&
29
- 'fatal' in obj &&
30
- typeof obj.fatal === 'function');
31
- }
32
- exports.isLogger = isLogger;
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAgBA,MAAa,QAAQ;IACnB,sDAAsD;IAC/C,KAAK,CAAC,GAAG,KAAY,IAAS,CAAC;IAC/B,IAAI,CAAC,GAAG,KAAY,IAAS,CAAC;IAC9B,IAAI,CAAC,GAAG,KAAY,IAAS,CAAC;IAC9B,KAAK,CAAC,GAAG,KAAY,IAAS,CAAC;IAC/B,KAAK,CAAC,GAAG,KAAY,IAAS,CAAC;IAC/B,KAAK,CAAC,GAAG,KAAY;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;CAEF;AAXD,4BAWC;AAED,SAAgB,mBAAmB,CAAC,GAAQ;IAC1C,OAAO,OAAO,IAAI,GAAG,IAAI,OAAQ,GAA0B,CAAC,KAAK,KAAK,UAAU,CAAC;AACnF,CAAC;AAFD,kDAEC;AAED,SAAgB,QAAQ,CAAC,GAAQ;IAC/B,OAAO,CACL,OAAO,IAAI,GAAG;QACd,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU;QAC/B,MAAM,IAAI,GAAG;QACb,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU;QAC9B,MAAM,IAAI,GAAG;QACb,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU;QAC9B,OAAO,IAAI,GAAG;QACd,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU;QAC/B,OAAO,IAAI,GAAG;QACd,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU,CAChC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
@@ -1,11 +0,0 @@
1
- import { HierarchicalLogger, LogMethod } from '../index';
2
- export declare class MockLogger implements HierarchicalLogger {
3
- debug: LogMethod;
4
- info: LogMethod;
5
- warn: LogMethod;
6
- error: LogMethod;
7
- fatal: LogMethod;
8
- child: () => HierarchicalLogger;
9
- private _children;
10
- }
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGzD,qBAAa,UAAW,YAAW,kBAAkB;IAC5C,KAAK,EAAE,SAAS,CAAa;IAC7B,IAAI,EAAE,SAAS,CAAa;IAC5B,IAAI,EAAE,SAAS,CAAa;IAC5B,KAAK,EAAE,SAAS,CAAa;IAC7B,KAAK,EAAE,SAAS,CAAa;IAE7B,KAAK,EAAE,MAAM,kBAAkB,CAInC;IAGH,OAAO,CAAC,SAAS,CAAoB;CACtC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MockLogger = void 0;
4
- // Export a mock so any users of this library that use jest can use it.
5
- class MockLogger {
6
- constructor() {
7
- this.debug = jest.fn();
8
- this.info = jest.fn();
9
- this.warn = jest.fn();
10
- this.error = jest.fn();
11
- this.fatal = jest.fn();
12
- this.child = jest.fn(() => {
13
- const childLogger = new MockLogger();
14
- this._children.push(childLogger);
15
- return childLogger;
16
- });
17
- // A property to check children created by this logger.
18
- this._children = [];
19
- }
20
- }
21
- exports.MockLogger = MockLogger;
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mocks/index.ts"],"names":[],"mappings":";;;AAEA,uEAAuE;AACvE,MAAa,UAAU;IAAvB;QACS,UAAK,GAAc,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7B,SAAI,GAAc,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5B,SAAI,GAAc,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5B,UAAK,GAAc,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7B,UAAK,GAAc,IAAI,CAAC,EAAE,EAAE,CAAC;QAE7B,UAAK,GAA6B,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE;YACpD,MAAM,WAAW,GAAG,IAAI,UAAU,EAAE,CAAC;YACrC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACjC,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,uDAAuD;QAC/C,cAAS,GAAiB,EAAE,CAAC;IACvC,CAAC;CAAA;AAfD,gCAeC"}
@@ -1,36 +0,0 @@
1
- {
2
- "name": "logger-interface",
3
- "description": "Typescript interface that provides standard logging levels `debug`, `info`, `warn`, `error`, and `fatal`",
4
- "version": "2.0.3",
5
- "contributors": [
6
- {
7
- "name": "Callum Osmotherly",
8
- "email": "cosmotherly@atlassian.com"
9
- },
10
- {
11
- "name": "Luciano Leggieri",
12
- "email": "lleggieri@atlassian.com"
13
- }
14
- ],
15
- "main": "dist/index",
16
- "license": "Proprietary",
17
- "repository": {
18
- "directory": "src/packages/logging/logger-interface",
19
- "type": "git",
20
- "url": "git@bitbucket.org:atlassian/node-monorepo.git"
21
- },
22
- "homepage": "https://bitbucket.org/atlassian/node-monorepo/src/master/src/packages/logging/logger-interface",
23
- "files": [
24
- "bin/",
25
- "dist/",
26
- "package.json",
27
- "CHANGELOG.md",
28
- "README.md"
29
- ],
30
- "types": "dist/index.d.ts",
31
- "typings": "dist/index.d.ts",
32
- "config": {
33
- "registry": "atlassian",
34
- "isPlatformPackage": true
35
- }
36
- }
@@ -1,226 +0,0 @@
1
- # @atlassian/metrics-interface
2
-
3
- ## 4.0.0
4
-
5
- ### Major Changes
6
-
7
- - 6215e00df: Upgrade Node version to 20
8
-
9
- ## 3.0.2
10
-
11
- ### Patch Changes
12
-
13
- - 172390575: added list of onboarded packages and updated package descriptions
14
-
15
- ## 3.0.1
16
-
17
- ### Patch Changes
18
-
19
- - 39e14c1c: onboarding metrics as platform packages
20
-
21
- ## 3.0.0
22
-
23
- ### Major Changes
24
-
25
- - e93d72e: Add histogram() method to Metrics interface.
26
-
27
- ### Migration
28
-
29
- This is a relatively safe change, but it might break your builds if you use `Metrics` type as now it should have a
30
- "histogram" method.
31
-
32
- ### Example
33
-
34
- Here's how you can use histograms in your code:
35
-
36
- ```typescript
37
- import { Metrics } from '@atlassian/metrics-interface';
38
-
39
- const metrics: Metrics = {
40
- /* ... */
41
- };
42
-
43
- const buckets = [10, 50, 100];
44
- const tags = {
45
- /* ... */
46
- };
47
- const timer = metrics.histogram('metricName', buckets, extraTags).measure();
48
-
49
- // ...some I/O operation
50
-
51
- const extraTags = {
52
- /* ... */
53
- };
54
- timer.stop(extraTags);
55
- ```
56
-
57
- ## 2.3.0
58
-
59
- ### Minor Changes
60
-
61
- - bdcf6df: Add support for set metric type: https://github.com/statsd/statsd/blob/master/docs/metric_types.md#sets.
62
- Counts the number of unique values between flushes.
63
-
64
- ```javascript
65
- metrics.set('aSet', { foo: 'bar' }).add('foo');
66
- metrics.set('aSet', { foo: 'bar' }).add('bar');
67
- metrics.set('aSet', { foo: 'bar' }).add('foo');
68
-
69
- // results in metric aSet reporting a count of 2 (2 unique values 'foo' and 'bar' added to set in the flush interval)
70
- ```
71
-
72
- ## 2.2.0
73
-
74
- ### Minor Changes
75
-
76
- - 1505248: Use the "node:" style import declaration for NodeJS builtins
77
-
78
- ## 2.1.1
79
-
80
- ### Patch Changes
81
-
82
- - d46b350: Bind now one time instead of every time measure is called.
83
-
84
- ## 2.1.0
85
-
86
- ### Minor Changes
87
-
88
- - 1b15f45: Fix for Node 20
89
-
90
- ## 2.0.1
91
-
92
- ### Patch Changes
93
-
94
- - 174f3f5: incredible-monorepo renamed to node-monorepo
95
-
96
- ## 2.0.0
97
-
98
- ### Major Changes
99
-
100
- - b6125f0: Upgrade NodeJS typings to v16. Package now targets NodeJS runtime 16 and above, all previous NodeJS versions
101
- are now unsupported.
102
-
103
- ### Minor Changes
104
-
105
- - b6125f0: Add support for passing in a function to get the current time, defaults to `performance.now`.
106
-
107
- ## 1.3.3
108
-
109
- ### Patch Changes
110
-
111
- - c0069ef: Package is now compiled with Typescript 4.4
112
-
113
- Useful links:
114
-
115
- - https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#more-compliant-indirect-calls-for-imported-functions
116
- - http://perfectionkills.com/global-eval-what-are-the-options/
117
-
118
- ## 1.3.2
119
-
120
- ### Patch Changes
121
-
122
- - fae10a6: Fixed an issue with compiled typings files after upgrading to TypeScript 4.3. The imports in the typings.d.ts
123
- files were compiled with paths relative to the monorepo root, rather than absolute package paths. This problem has now
124
- been fixed.
125
-
126
- ## 1.3.1
127
-
128
- ### Patch Changes
129
-
130
- - fae1cc7: Minor type changes and tweaks so the package now builds with TypeScript ~4.3
131
-
132
- ## 1.3.0
133
-
134
- ### Minor Changes
135
-
136
- - 9913f59: feat: Added configurable timing precision, repalced hrtime with performance from perf_hooks
137
-
138
- ## 1.2.4
139
-
140
- ### Patch Changes
141
-
142
- - fae14d5: An upgrade to prettier caused some changes to linting
143
-
144
- ## 1.2.3
145
-
146
- ### Patch Changes
147
-
148
- - fae196c: Added a feature to the monorepo so packages with non js entrypoints can be used
149
-
150
- ## 1.2.2
151
-
152
- ### Patch Changes
153
-
154
- - fae1709: Fixed an issue during package building, so bumping all packages to ensure distribution assets are valid
155
-
156
- ## 1.2.1
157
-
158
- ### Patch Changes
159
-
160
- - 97644a1: Set Typescript Compiler target to ES2018
161
-
162
- ## 1.2.0
163
-
164
- ### Minor Changes
165
-
166
- - 3e7f6c1: feat: metrics.timing() supports passing tags in stop() function, stop() returns value
167
-
168
- ## 1.1.2
169
-
170
- ### Patch Changes
171
-
172
- - fae1a543: In files where @typescript-eslint/no-namespaces is already ignored, also ignore import/export.
173
-
174
- ## 1.1.1
175
-
176
- ### Patch Changes
177
-
178
- - fae18d7: linting updates to the monorepo
179
-
180
- ## 1.1.0
181
-
182
- ### Minor Changes
183
-
184
- - 1f4aaad: feat: metrics.counter has new 'incrBy' and 'decrBy' interface
185
-
186
- ## 1.0.15
187
-
188
- ### Patch Changes
189
-
190
- - 85bb2aa: monorepo changes: rename packageJson.publishConfig to packageJson.config.publishOverrides
191
-
192
- ## 1.0.14
193
-
194
- ### Patch Changes
195
-
196
- - 645304b: fix: ensure all monorepo packages do not use ranges in their dependencies (for changeset's automatic bumps)
197
-
198
- ## 1.0.13
199
-
200
- ### Patch Changes
201
-
202
- - 6af309e: chore: update homepage field in package.json
203
-
204
- ## 1.0.12
205
-
206
- ### Patch Changes
207
-
208
- - 37e36f9: fix: the main, types and typings fields in package.json were incorrect on publish
209
-
210
- ## 1.0.11
211
-
212
- ### Patch Changes
213
-
214
- - b9aad92: fix: the previous patch version did not contain dist files
215
-
216
- ## 1.0.10
217
-
218
- ### Patch Changes
219
-
220
- - c255e4f: Dev improvements: Updated how the package is tested and published
221
-
222
- ## 1.0.9
223
-
224
- ### Patch Changes
225
-
226
- - 30c71b0: Add eslint import rules.
@@ -1,63 +0,0 @@
1
- # @atlassian/metrics-interface
2
-
3
- This module just exports an interface that provides better interoperability for TypeScript services that use any kind of
4
- metrics.
5
-
6
- ## Usage
7
-
8
- ```typescript
9
- // Import each type as required by your use-case.
10
- import { Metrics, Counter, Gauge, Tags, Timing } from '@atlassian/metrics-interface';
11
-
12
- export class MyMetricsClass implements Metrics {
13
- // Returns a Metrics instance to be used as child.
14
- child(name: string, tags?: Tags): Metrics {
15
- /* ... */
16
- }
17
-
18
- // Create a counter metric:
19
- // const counter = myMetrics.counter('page_visits');
20
- // counter.incr(); // <-- increase the count
21
- // counter.decr(); // <-- decrease the count
22
- counter(name: string, tags?: Tags): Counter {
23
- /* ... */
24
- }
25
-
26
- // Create a simple gauge metric:
27
- // const gauge = myMetrics.gauge('cpu_percentage');
28
- // gauge.set(75);
29
- gauge(name: string, tags?: Tags): Gauge {
30
- /* ... */
31
- }
32
-
33
- // Create a timer metric:
34
- // const initMetric = myMetrics.timing('initialisation');
35
- // const timer = initMetric.measure();
36
- // ...
37
- // timer.stop();
38
- timing(name: string, tags?: Tags): Timing {
39
- /* ... */
40
- }
41
-
42
- // Create a histogram metric:
43
- // const initMetric = myMetrics.histogram('latency', [10, 100, 500]);
44
- // const timer = initMetric.measure();
45
- // ...
46
- // timer.stop();
47
- histogram(name: string, buckets: number[], tags?: Tags): Timing {
48
- /* ... */
49
- }
50
-
51
- // Emit a custom event for your metrics:
52
- // myMetrics.event('something_happened', 'foo bar baz quix...');
53
- event(title: string, description?: string): void {
54
- /* ... */
55
- }
56
- }
57
- ```
58
-
59
- ## Implementations
60
-
61
- For great implementations of this interface, see the following:
62
-
63
- - [statsd-metrics](/platform/node/platform/packages/statsd-metrics-collector/)
@@ -1,2 +0,0 @@
1
- export * from './metrics';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./metrics"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -1,48 +0,0 @@
1
- export interface Tags {
2
- [key: string]: string;
3
- }
4
- export interface Metrics {
5
- child(name: string, tags?: Tags): Metrics;
6
- counter(name: string, tags?: Tags): Counter;
7
- gauge(name: string, tags?: Tags): Gauge;
8
- set(name: string, tags?: Tags): Set;
9
- timing(name: string, tags?: Tags): Timing;
10
- histogram(name: string, buckets: number[], tags?: Tags): Timing;
11
- event(title: string, description?: string): void;
12
- }
13
- export interface Counter {
14
- incr(): void;
15
- decr(): void;
16
- incrBy(val: number): void;
17
- decrBy(val: number): void;
18
- }
19
- export interface Gauge {
20
- set(val: number): void;
21
- }
22
- export interface Timing {
23
- set(val: number, extraTags?: Tags): void;
24
- measure(): Timing.Stop;
25
- }
26
- export interface TimingOptions {
27
- precision?: number;
28
- now?: () => number;
29
- }
30
- export declare namespace Timing {
31
- interface Stop {
32
- stop(extraTags?: Tags, opts?: TimingOptions): number;
33
- }
34
- const measure: (cb: (val: number, extraTags?: Tags) => void, timingOptions?: TimingOptions) => Stop;
35
- }
36
- export interface Set {
37
- add(val: string | number, extraTags?: Tags): void;
38
- }
39
- export declare class NoMetrics implements Metrics {
40
- child(_name: string): Metrics;
41
- counter(_name: string): Counter;
42
- gauge(_name: string): Gauge;
43
- set(_name: string): Set;
44
- timing(_name: string): Timing;
45
- histogram(_name: string): Timing;
46
- event(_title: string, _description?: string): void;
47
- }
48
- //# sourceMappingURL=metrics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAC1C,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAC5C,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IACxC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,CAAC;IACpC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1C,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAChE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,KAAK;IACpB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAGD,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED,yBAAiB,MAAM,CAAC;IACtB,UAAiB,IAAI;QACnB,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;KACtD;IAEM,MAAM,OAAO,aAAc,MAAM,cAAc,IAAI,KAAK,IAAI,kBAAkB,aAAa,KAAG,IAWpG,CAAC;CACH;AAED,MAAM,WAAW,GAAG;IAClB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACnD;AAKD,qBAAa,SAAU,YAAW,OAAO;IACvC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAI7B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAS/B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;IAM3B,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG;IAMvB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAW7B,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAWhC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;CACnD"}