@forge/usage 0.1.0-next.2 → 0.1.1-next.0
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/CHANGELOG.md +24 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +1 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @forge/usage
|
|
2
2
|
|
|
3
|
+
## 0.1.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b2ebca: Remove applicableExemptionId and sandboxAppChargeable from the reportUsageCount payload
|
|
8
|
+
- @forge/api@8.4.1-next.0
|
|
9
|
+
|
|
10
|
+
## 0.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 1820780: Added the `@forge/usage` package with `reportUsageCount`, which reports a billable COUNTER usage event for Marketplace usage-based pricing. It accepts `usageCount`, `usageTimestamp` and an optional `user` account ID, and derives the remaining fields from the runtime.
|
|
15
|
+
- 255a038: `reportUsageCount` now returns the raw API response instead of throwing when the response is not ok.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [5a91774]
|
|
20
|
+
- Updated dependencies [b1f95d4]
|
|
21
|
+
- Updated dependencies [c7783c5]
|
|
22
|
+
- Updated dependencies [8693a88]
|
|
23
|
+
- Updated dependencies [43dca32]
|
|
24
|
+
- Updated dependencies [2995cbe]
|
|
25
|
+
- @forge/api@8.4.0
|
|
26
|
+
|
|
3
27
|
## 0.1.0-next.2
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,iBAAiB,0CAA0C,CAAC;AACzE,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,uDAAuD,CAAC;AAKlF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,iBAAiB,0CAA0C,CAAC;AACzE,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,uDAAuD,CAAC;AAKlF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA2CF,eAAO,MAAM,sBAAsB,GAAI,kBAAkB,WAAW,MAC3B,QAAQ,sBAAsB,KAAG,OAAO,CAAC,WAAW,CAwB5F,CAAC;AAKF,eAAO,MAAM,gBAAgB,WA7BoB,sBAAsB,KAAG,OAAO,CAAC,WAAW,CA6Bd,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -38,15 +38,13 @@ const createReportUsageCount = (requestAtlassian) => {
|
|
|
38
38
|
const dimensions = [
|
|
39
39
|
{ id: 'billableAction', value: exports.BILLABLE_ACTION },
|
|
40
40
|
{ id: 'actor', value: actor },
|
|
41
|
-
{ id: 'installationContext', value: contextAri }
|
|
42
|
-
{ id: 'sandboxAppChargeable', value: 'false' }
|
|
41
|
+
{ id: 'installationContext', value: contextAri }
|
|
43
42
|
];
|
|
44
43
|
const payload = {
|
|
45
44
|
usageUniqueId: (0, crypto_1.randomUUID)(),
|
|
46
45
|
metricType: COUNTER_METRIC_TYPE,
|
|
47
46
|
usageCount: params.usageCount,
|
|
48
47
|
usageTimestamp,
|
|
49
|
-
applicableExemptionId: null,
|
|
50
48
|
dimensions
|
|
51
49
|
};
|
|
52
50
|
return await requestAtlassian(exports.USAGE_EVENTS_PATH, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/usage",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-next.0",
|
|
4
4
|
"description": "Forge Usage SDK",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"compile": "tsc -b -v"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/api": "^8.4.
|
|
13
|
+
"@forge/api": "^8.4.1-next.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "20.19.1",
|