@pdc/sdk 0.20.3 → 0.22.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.
- package/.openapi-generator/FILES +8 -0
- package/dist/types/Funder.d.ts +1 -0
- package/dist/types/FunderCollaborativeInvitation.d.ts +16 -0
- package/dist/types/FunderCollaborativeInvitation.js +12 -0
- package/dist/types/FunderCollaborativeInvitationBundle.d.ts +7 -0
- package/dist/types/FunderCollaborativeInvitationBundle.js +2 -0
- package/dist/types/FunderCollaborativeMember.d.ts +8 -0
- package/dist/types/FunderCollaborativeMember.js +2 -0
- package/dist/types/FunderCollaborativeMemberBundle.d.ts +7 -0
- package/dist/types/FunderCollaborativeMemberBundle.js +2 -0
- package/dist/types/OpportunityPermission.d.ts +4 -0
- package/dist/types/OpportunityPermission.js +2 -0
- package/dist/types/Organization.d.ts +9 -0
- package/dist/types/Organization.js +2 -0
- package/dist/types/UserGroupChangemakerPermission.d.ts +3 -3
- package/dist/types/UserGroupDataProviderPermission.d.ts +1 -1
- package/dist/types/UserGroupFunderPermission.d.ts +1 -1
- package/dist/types/UserGroupOpportunityPermission.d.ts +12 -0
- package/dist/types/UserGroupOpportunityPermission.js +2 -0
- package/dist/types/UserOpportunityPermission.d.ts +12 -0
- package/dist/types/UserOpportunityPermission.js +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +8 -0
- package/package.json +1 -1
- package/src/types/Funder.ts +1 -0
- package/src/types/FunderCollaborativeInvitation.ts +19 -0
- package/src/types/FunderCollaborativeInvitationBundle.ts +13 -0
- package/src/types/FunderCollaborativeMember.ts +12 -0
- package/src/types/FunderCollaborativeMemberBundle.ts +13 -0
- package/src/types/OpportunityPermission.ts +8 -0
- package/src/types/Organization.ts +17 -0
- package/src/types/UserGroupChangemakerPermission.ts +3 -3
- package/src/types/UserGroupDataProviderPermission.ts +1 -1
- package/src/types/UserGroupFunderPermission.ts +1 -1
- package/src/types/UserGroupOpportunityPermission.ts +17 -0
- package/src/types/UserOpportunityPermission.ts +17 -0
- package/src/types/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -22,8 +22,14 @@ src/types/DataProvider.ts
|
|
|
22
22
|
src/types/DataProviderBundle.ts
|
|
23
23
|
src/types/Funder.ts
|
|
24
24
|
src/types/FunderBundle.ts
|
|
25
|
+
src/types/FunderCollaborativeInvitation.ts
|
|
26
|
+
src/types/FunderCollaborativeInvitationBundle.ts
|
|
27
|
+
src/types/FunderCollaborativeMember.ts
|
|
28
|
+
src/types/FunderCollaborativeMemberBundle.ts
|
|
25
29
|
src/types/Opportunity.ts
|
|
26
30
|
src/types/OpportunityBundle.ts
|
|
31
|
+
src/types/OpportunityPermission.ts
|
|
32
|
+
src/types/Organization.ts
|
|
27
33
|
src/types/PartialChangemaker.ts
|
|
28
34
|
src/types/PdcError.ts
|
|
29
35
|
src/types/Permission.ts
|
|
@@ -47,6 +53,8 @@ src/types/UserFunderPermission.ts
|
|
|
47
53
|
src/types/UserGroupChangemakerPermission.ts
|
|
48
54
|
src/types/UserGroupDataProviderPermission.ts
|
|
49
55
|
src/types/UserGroupFunderPermission.ts
|
|
56
|
+
src/types/UserGroupOpportunityPermission.ts
|
|
57
|
+
src/types/UserOpportunityPermission.ts
|
|
50
58
|
src/types/UserPermissions.ts
|
|
51
59
|
src/types/Writable.ts
|
|
52
60
|
src/types/index.ts
|
package/dist/types/Funder.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Writable } from './Writable';
|
|
2
|
+
export interface FunderCollaborativeInvitation {
|
|
3
|
+
funderCollaborativeShortCode: string;
|
|
4
|
+
invitedFunderShortCode: string;
|
|
5
|
+
readonly createdAt: string;
|
|
6
|
+
invitationStatus?: FunderCollaborativeInvitation.InvitationStatusEnum;
|
|
7
|
+
readonly createdBy: string;
|
|
8
|
+
}
|
|
9
|
+
export type WritableFunderCollaborativeInvitation = Writable<FunderCollaborativeInvitation>;
|
|
10
|
+
export declare namespace FunderCollaborativeInvitation {
|
|
11
|
+
enum InvitationStatusEnum {
|
|
12
|
+
Pending = "pending",
|
|
13
|
+
Accepted = "accepted",
|
|
14
|
+
Rejected = "rejected"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunderCollaborativeInvitation = void 0;
|
|
4
|
+
var FunderCollaborativeInvitation;
|
|
5
|
+
(function (FunderCollaborativeInvitation) {
|
|
6
|
+
let InvitationStatusEnum;
|
|
7
|
+
(function (InvitationStatusEnum) {
|
|
8
|
+
InvitationStatusEnum["Pending"] = "pending";
|
|
9
|
+
InvitationStatusEnum["Accepted"] = "accepted";
|
|
10
|
+
InvitationStatusEnum["Rejected"] = "rejected";
|
|
11
|
+
})(InvitationStatusEnum = FunderCollaborativeInvitation.InvitationStatusEnum || (FunderCollaborativeInvitation.InvitationStatusEnum = {}));
|
|
12
|
+
})(FunderCollaborativeInvitation || (exports.FunderCollaborativeInvitation = FunderCollaborativeInvitation = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunderCollaborativeInvitation } from './FunderCollaborativeInvitation';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface FunderCollaborativeInvitationBundle {
|
|
4
|
+
entries: Array<FunderCollaborativeInvitation>;
|
|
5
|
+
total: number;
|
|
6
|
+
}
|
|
7
|
+
export type WritableFunderCollaborativeInvitationBundle = Writable<FunderCollaborativeInvitationBundle>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Writable } from './Writable';
|
|
2
|
+
export interface FunderCollaborativeMember {
|
|
3
|
+
funderCollaborativeShortCode: string;
|
|
4
|
+
memberFunderShortCode: string;
|
|
5
|
+
readonly createdAt: string;
|
|
6
|
+
readonly createdBy: string;
|
|
7
|
+
}
|
|
8
|
+
export type WritableFunderCollaborativeMember = Writable<FunderCollaborativeMember>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FunderCollaborativeMember } from './FunderCollaborativeMember';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface FunderCollaborativeMemberBundle {
|
|
4
|
+
entries: Array<FunderCollaborativeMember>;
|
|
5
|
+
total: number;
|
|
6
|
+
}
|
|
7
|
+
export type WritableFunderCollaborativeMemberBundle = Writable<FunderCollaborativeMemberBundle>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataProvider } from './DataProvider';
|
|
2
|
+
import { ShallowChangemaker } from './ShallowChangemaker';
|
|
3
|
+
import { Writable } from './Writable';
|
|
4
|
+
export interface Organization {
|
|
5
|
+
readonly changemaker: ShallowChangemaker;
|
|
6
|
+
readonly dataProvider: DataProvider;
|
|
7
|
+
readonly funder: DataProvider;
|
|
8
|
+
}
|
|
9
|
+
export type WritableOrganization = Writable<Organization>;
|
|
@@ -2,9 +2,9 @@ import { Permission } from './Permission';
|
|
|
2
2
|
import { Writable } from './Writable';
|
|
3
3
|
export interface UserGroupChangemakerPermission {
|
|
4
4
|
readonly permission?: Permission;
|
|
5
|
-
readonly changemakerId
|
|
6
|
-
readonly keycloakOrganizationId
|
|
7
|
-
readonly createdBy
|
|
5
|
+
readonly changemakerId: number;
|
|
6
|
+
readonly keycloakOrganizationId: string;
|
|
7
|
+
readonly createdBy: string;
|
|
8
8
|
readonly createdAt: string;
|
|
9
9
|
}
|
|
10
10
|
export type WritableUserGroupChangemakerPermission = Writable<UserGroupChangemakerPermission>;
|
|
@@ -3,7 +3,7 @@ import { Writable } from './Writable';
|
|
|
3
3
|
export interface UserGroupDataProviderPermission {
|
|
4
4
|
readonly permission?: Permission;
|
|
5
5
|
dataProviderShortCode: string;
|
|
6
|
-
readonly keycloakOrganizationId
|
|
6
|
+
readonly keycloakOrganizationId: string;
|
|
7
7
|
readonly createdBy: string;
|
|
8
8
|
readonly createdAt: string;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { Writable } from './Writable';
|
|
|
3
3
|
export interface UserGroupFunderPermission {
|
|
4
4
|
readonly permission: Permission;
|
|
5
5
|
funderShortCode: string;
|
|
6
|
-
readonly keycloakOrganizationId
|
|
6
|
+
readonly keycloakOrganizationId: string;
|
|
7
7
|
readonly createdBy: string;
|
|
8
8
|
readonly createdAt: string;
|
|
9
9
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OpportunityPermission } from './OpportunityPermission';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface UserGroupOpportunityPermission {
|
|
4
|
+
readonly opportunityPermission: OpportunityPermission;
|
|
5
|
+
opportunityId: number;
|
|
6
|
+
readonly keycloakOrganizationId: string;
|
|
7
|
+
readonly createdBy: string;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export type WritableUserGroupOpportunityPermission = Writable<UserGroupOpportunityPermission>;
|
|
11
|
+
export declare namespace UserGroupOpportunityPermission {
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OpportunityPermission } from './OpportunityPermission';
|
|
2
|
+
import { Writable } from './Writable';
|
|
3
|
+
export interface UserOpportunityPermission {
|
|
4
|
+
readonly opportunityPermission: OpportunityPermission;
|
|
5
|
+
opportunityId: number;
|
|
6
|
+
readonly userKeycloakUserId: string;
|
|
7
|
+
readonly createdBy: string;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export type WritableUserOpportunityPermission = Writable<UserOpportunityPermission>;
|
|
11
|
+
export declare namespace UserOpportunityPermission {
|
|
12
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,8 +17,14 @@ export * from './DataProvider';
|
|
|
17
17
|
export * from './DataProviderBundle';
|
|
18
18
|
export * from './Funder';
|
|
19
19
|
export * from './FunderBundle';
|
|
20
|
+
export * from './FunderCollaborativeInvitation';
|
|
21
|
+
export * from './FunderCollaborativeInvitationBundle';
|
|
22
|
+
export * from './FunderCollaborativeMember';
|
|
23
|
+
export * from './FunderCollaborativeMemberBundle';
|
|
20
24
|
export * from './Opportunity';
|
|
21
25
|
export * from './OpportunityBundle';
|
|
26
|
+
export * from './OpportunityPermission';
|
|
27
|
+
export * from './Organization';
|
|
22
28
|
export * from './PartialChangemaker';
|
|
23
29
|
export * from './PdcError';
|
|
24
30
|
export * from './Permission';
|
|
@@ -42,4 +48,6 @@ export * from './UserFunderPermission';
|
|
|
42
48
|
export * from './UserGroupChangemakerPermission';
|
|
43
49
|
export * from './UserGroupDataProviderPermission';
|
|
44
50
|
export * from './UserGroupFunderPermission';
|
|
51
|
+
export * from './UserGroupOpportunityPermission';
|
|
52
|
+
export * from './UserOpportunityPermission';
|
|
45
53
|
export * from './UserPermissions';
|
package/dist/types/index.js
CHANGED
|
@@ -33,8 +33,14 @@ __exportStar(require("./DataProvider"), exports);
|
|
|
33
33
|
__exportStar(require("./DataProviderBundle"), exports);
|
|
34
34
|
__exportStar(require("./Funder"), exports);
|
|
35
35
|
__exportStar(require("./FunderBundle"), exports);
|
|
36
|
+
__exportStar(require("./FunderCollaborativeInvitation"), exports);
|
|
37
|
+
__exportStar(require("./FunderCollaborativeInvitationBundle"), exports);
|
|
38
|
+
__exportStar(require("./FunderCollaborativeMember"), exports);
|
|
39
|
+
__exportStar(require("./FunderCollaborativeMemberBundle"), exports);
|
|
36
40
|
__exportStar(require("./Opportunity"), exports);
|
|
37
41
|
__exportStar(require("./OpportunityBundle"), exports);
|
|
42
|
+
__exportStar(require("./OpportunityPermission"), exports);
|
|
43
|
+
__exportStar(require("./Organization"), exports);
|
|
38
44
|
__exportStar(require("./PartialChangemaker"), exports);
|
|
39
45
|
__exportStar(require("./PdcError"), exports);
|
|
40
46
|
__exportStar(require("./Permission"), exports);
|
|
@@ -58,4 +64,6 @@ __exportStar(require("./UserFunderPermission"), exports);
|
|
|
58
64
|
__exportStar(require("./UserGroupChangemakerPermission"), exports);
|
|
59
65
|
__exportStar(require("./UserGroupDataProviderPermission"), exports);
|
|
60
66
|
__exportStar(require("./UserGroupFunderPermission"), exports);
|
|
67
|
+
__exportStar(require("./UserGroupOpportunityPermission"), exports);
|
|
68
|
+
__exportStar(require("./UserOpportunityPermission"), exports);
|
|
61
69
|
__exportStar(require("./UserPermissions"), exports);
|
package/package.json
CHANGED
package/src/types/Funder.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Writable } from './Writable';
|
|
2
|
+
|
|
3
|
+
export interface FunderCollaborativeInvitation {
|
|
4
|
+
funderCollaborativeShortCode: string;
|
|
5
|
+
invitedFunderShortCode: string;
|
|
6
|
+
readonly createdAt: string;
|
|
7
|
+
invitationStatus?: FunderCollaborativeInvitation.InvitationStatusEnum;
|
|
8
|
+
readonly createdBy: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type WritableFunderCollaborativeInvitation = Writable<FunderCollaborativeInvitation>
|
|
12
|
+
|
|
13
|
+
export namespace FunderCollaborativeInvitation {
|
|
14
|
+
export enum InvitationStatusEnum {
|
|
15
|
+
Pending = 'pending',
|
|
16
|
+
Accepted = 'accepted',
|
|
17
|
+
Rejected = 'rejected',
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FunderCollaborativeInvitation,
|
|
3
|
+
} from './FunderCollaborativeInvitation';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface FunderCollaborativeInvitationBundle {
|
|
7
|
+
entries: Array<FunderCollaborativeInvitation>;
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type WritableFunderCollaborativeInvitationBundle = Writable<FunderCollaborativeInvitationBundle>
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Writable } from './Writable';
|
|
2
|
+
|
|
3
|
+
export interface FunderCollaborativeMember {
|
|
4
|
+
funderCollaborativeShortCode: string;
|
|
5
|
+
memberFunderShortCode: string;
|
|
6
|
+
readonly createdAt: string;
|
|
7
|
+
readonly createdBy: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type WritableFunderCollaborativeMember = Writable<FunderCollaborativeMember>
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FunderCollaborativeMember,
|
|
3
|
+
} from './FunderCollaborativeMember';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface FunderCollaborativeMemberBundle {
|
|
7
|
+
entries: Array<FunderCollaborativeMember>;
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type WritableFunderCollaborativeMemberBundle = Writable<FunderCollaborativeMemberBundle>
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DataProvider,
|
|
3
|
+
} from './DataProvider';
|
|
4
|
+
import {
|
|
5
|
+
ShallowChangemaker,
|
|
6
|
+
} from './ShallowChangemaker';
|
|
7
|
+
import { Writable } from './Writable';
|
|
8
|
+
|
|
9
|
+
export interface Organization {
|
|
10
|
+
readonly changemaker: ShallowChangemaker;
|
|
11
|
+
readonly dataProvider: DataProvider;
|
|
12
|
+
readonly funder: DataProvider;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type WritableOrganization = Writable<Organization>
|
|
16
|
+
|
|
17
|
+
|
|
@@ -5,9 +5,9 @@ import { Writable } from './Writable';
|
|
|
5
5
|
|
|
6
6
|
export interface UserGroupChangemakerPermission {
|
|
7
7
|
readonly permission?: Permission;
|
|
8
|
-
readonly changemakerId
|
|
9
|
-
readonly keycloakOrganizationId
|
|
10
|
-
readonly createdBy
|
|
8
|
+
readonly changemakerId: number;
|
|
9
|
+
readonly keycloakOrganizationId: string;
|
|
10
|
+
readonly createdBy: string;
|
|
11
11
|
readonly createdAt: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -6,7 +6,7 @@ import { Writable } from './Writable';
|
|
|
6
6
|
export interface UserGroupDataProviderPermission {
|
|
7
7
|
readonly permission?: Permission;
|
|
8
8
|
dataProviderShortCode: string;
|
|
9
|
-
readonly keycloakOrganizationId
|
|
9
|
+
readonly keycloakOrganizationId: string;
|
|
10
10
|
readonly createdBy: string;
|
|
11
11
|
readonly createdAt: string;
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ import { Writable } from './Writable';
|
|
|
6
6
|
export interface UserGroupFunderPermission {
|
|
7
7
|
readonly permission: Permission;
|
|
8
8
|
funderShortCode: string;
|
|
9
|
-
readonly keycloakOrganizationId
|
|
9
|
+
readonly keycloakOrganizationId: string;
|
|
10
10
|
readonly createdBy: string;
|
|
11
11
|
readonly createdAt: string;
|
|
12
12
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpportunityPermission,
|
|
3
|
+
} from './OpportunityPermission';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface UserGroupOpportunityPermission {
|
|
7
|
+
readonly opportunityPermission: OpportunityPermission;
|
|
8
|
+
opportunityId: number;
|
|
9
|
+
readonly keycloakOrganizationId: string;
|
|
10
|
+
readonly createdBy: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type WritableUserGroupOpportunityPermission = Writable<UserGroupOpportunityPermission>
|
|
15
|
+
|
|
16
|
+
export namespace UserGroupOpportunityPermission {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpportunityPermission,
|
|
3
|
+
} from './OpportunityPermission';
|
|
4
|
+
import { Writable } from './Writable';
|
|
5
|
+
|
|
6
|
+
export interface UserOpportunityPermission {
|
|
7
|
+
readonly opportunityPermission: OpportunityPermission;
|
|
8
|
+
opportunityId: number;
|
|
9
|
+
readonly userKeycloakUserId: string;
|
|
10
|
+
readonly createdBy: string;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type WritableUserOpportunityPermission = Writable<UserOpportunityPermission>
|
|
15
|
+
|
|
16
|
+
export namespace UserOpportunityPermission {
|
|
17
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -17,8 +17,14 @@ export * from './DataProvider';
|
|
|
17
17
|
export * from './DataProviderBundle';
|
|
18
18
|
export * from './Funder';
|
|
19
19
|
export * from './FunderBundle';
|
|
20
|
+
export * from './FunderCollaborativeInvitation';
|
|
21
|
+
export * from './FunderCollaborativeInvitationBundle';
|
|
22
|
+
export * from './FunderCollaborativeMember';
|
|
23
|
+
export * from './FunderCollaborativeMemberBundle';
|
|
20
24
|
export * from './Opportunity';
|
|
21
25
|
export * from './OpportunityBundle';
|
|
26
|
+
export * from './OpportunityPermission';
|
|
27
|
+
export * from './Organization';
|
|
22
28
|
export * from './PartialChangemaker';
|
|
23
29
|
export * from './PdcError';
|
|
24
30
|
export * from './Permission';
|
|
@@ -42,4 +48,6 @@ export * from './UserFunderPermission';
|
|
|
42
48
|
export * from './UserGroupChangemakerPermission';
|
|
43
49
|
export * from './UserGroupDataProviderPermission';
|
|
44
50
|
export * from './UserGroupFunderPermission';
|
|
51
|
+
export * from './UserGroupOpportunityPermission';
|
|
52
|
+
export * from './UserOpportunityPermission';
|
|
45
53
|
export * from './UserPermissions';
|