@forge/auth 0.0.8-next.0 → 0.0.9-experimental-04cc2b9
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/LICENSE.txt +1 -1
- package/out/api.d.ts.map +1 -1
- package/out/confluence/index.d.ts +2 -2
- package/out/confluence/index.d.ts.map +1 -1
- package/out/confluence/permissions.d.ts +1 -1
- package/out/confluence/permissions.d.ts.map +1 -1
- package/out/jira/index.d.ts +2 -2
- package/out/jira/index.d.ts.map +1 -1
- package/out/jira/permissions.d.ts +2 -2
- package/out/jira/permissions.d.ts.map +1 -1
- package/out/types.d.ts +4 -4
- package/out/types.d.ts.map +1 -1
- package/package.json +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @forge/auth
|
|
2
2
|
|
|
3
|
+
## 0.0.9-experimental-04cc2b9
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- d9ef926: Adds support for TypeScript 5
|
|
8
|
+
|
|
9
|
+
## 0.0.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 94243f1: Split development and contribution guidelines
|
|
14
|
+
|
|
15
|
+
## 0.0.9-next.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 94243f1: Split development and contribution guidelines
|
|
20
|
+
|
|
21
|
+
## 0.0.8
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 984c454: Forcing patch bump to update internal registry
|
|
26
|
+
|
|
3
27
|
## 0.0.8-next.0
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/LICENSE.txt
CHANGED
package/out/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAY1C,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAY1C,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/D,uBAAuB,CAAC,EACxB,wBAAwB,CAAC,IAAI,EAAE,MAAM,KAAK,eAAe,oCAM1D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchHelper } from '../types';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type RequestConfluence = FetchHelper['requestConfluence'];
|
|
3
|
+
export type ContentId = string | number;
|
|
4
4
|
export declare const authorizeConfluenceWithFetch: (requestConfluence: RequestConfluence, accountId: string) => {
|
|
5
5
|
readonly onConfluenceContent: (contentId: ContentId) => Record<string, import("../types").PermissionCheck>;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/confluence/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/confluence/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,KAAK,iBAAiB,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AA+BxC,eAAO,MAAM,4BAA4B,GAAI,mBAAmB,iBAAiB,EAAE,WAAW,MAAM;8CAE/D,SAAS;CAG7C,CAAC"}
|
|
@@ -3,6 +3,6 @@ declare const API_PERMISSIONS_MAP: {
|
|
|
3
3
|
readonly canUpdate: "update";
|
|
4
4
|
readonly canDelete: "delete";
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ApiPermissionsMap = typeof API_PERMISSIONS_MAP;
|
|
7
7
|
export default API_PERMISSIONS_MAP;
|
|
8
8
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/confluence/permissions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,mBAAmB;;;;CAIf,CAAC;AAEX,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/confluence/permissions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,mBAAmB;;;;CAIf,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,mBAAmB,CAAC;AAC3D,eAAe,mBAAmB,CAAC"}
|
package/out/jira/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetchHelper } from '../types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type RequestJira = FetchHelper['requestJira'];
|
|
3
|
+
export type Id = number | string;
|
|
4
4
|
export interface ProjectPermission {
|
|
5
5
|
permissions: string[];
|
|
6
6
|
issues?: Id[];
|
package/out/jira/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jira/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jira/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;AAIrD,MAAM,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AACjC,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAsDD,eAAO,MAAM,sBAAsB,GAAI,aAAa,WAAW,EAAE,WAAW,MAAM;+CAEtC,iBAAiB,EAAE;uCAIjC,EAAE,GAAG,EAAE,EAAE;mCAMb,EAAE,GAAG,EAAE,EAAE;CAMlC,CAAC"}
|
|
@@ -22,7 +22,7 @@ declare const API_PROJECTS_PERMISSIONS_MAP: {
|
|
|
22
22
|
readonly canCreateAttachments: "CREATE_ATTACHMENTS";
|
|
23
23
|
readonly canDeleteAllAttachments: "DELETE_ALL_ATTACHMENTS";
|
|
24
24
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
25
|
+
export type ApiIssuesPermissionsMap = typeof API_ISSUES_PERMISSIONS_MAP;
|
|
26
|
+
export type ApiProjectsPermissionsMap = typeof API_PROJECTS_PERMISSIONS_MAP;
|
|
27
27
|
export { API_ISSUES_PERMISSIONS_MAP, API_PROJECTS_PERMISSIONS_MAP };
|
|
28
28
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/jira/permissions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,0BAA0B;;;;;;;;;;;CAWtB,CAAC;AAEX,QAAA,MAAM,4BAA4B;;;;;;;;;;;CAWxB,CAAC;AAEX,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/jira/permissions.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,0BAA0B;;;;;;;;;;;CAWtB,CAAC;AAEX,QAAA,MAAM,4BAA4B;;;;;;;;;;;CAWxB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,OAAO,0BAA0B,CAAC;AACxE,MAAM,MAAM,yBAAyB,GAAG,OAAO,4BAA4B,CAAC;AAE5E,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,CAAC"}
|
package/out/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type PermissionCheck = (args?: any) => Promise<boolean | object>;
|
|
2
|
+
export type PermissionCheckAPI = Record<string, PermissionCheck | ((args?: any) => PermissionCheckAPI)>;
|
|
3
3
|
export interface RequestOptions {
|
|
4
4
|
method: string;
|
|
5
5
|
headers?: {
|
|
@@ -7,10 +7,10 @@ export interface RequestOptions {
|
|
|
7
7
|
};
|
|
8
8
|
body: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type RequestFunction<T = any> = (path: string, options: RequestOptions) => Promise<T>;
|
|
11
11
|
export interface FetchHelper {
|
|
12
12
|
requestJira: RequestFunction;
|
|
13
13
|
requestConfluence: RequestFunction;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type AuthorizeWithFetchHelper = (fetchHelper: FetchHelper, accountId: string) => PermissionCheckAPI;
|
|
16
16
|
//# sourceMappingURL=types.d.ts.map
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,kBAAkB,CAAC,CAAC,CAAC;AACxG,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAE7F,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,eAAe,CAAC;IAC7B,iBAAiB,EAAE,eAAe,CAAC;CACpC;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,KAAK,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9-experimental-04cc2b9",
|
|
4
4
|
"description": "Supports authorization for product REST API calls",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -15,5 +15,16 @@
|
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"typescript": ">=5.0.0"
|
|
21
|
+
},
|
|
22
|
+
"peerDependenciesMeta": {
|
|
23
|
+
"typescript": {
|
|
24
|
+
"optional": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "5.9.2"
|
|
18
29
|
}
|
|
19
30
|
}
|