@itwin/access-control-client 3.7.0 → 4.1.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 +124 -25
- package/README.md +147 -669
- package/lib/cjs/AccessControlClient.d.ts +26 -9
- package/lib/cjs/AccessControlClient.d.ts.map +1 -1
- package/lib/cjs/AccessControlClient.js +21 -5
- package/lib/cjs/AccessControlClient.js.map +1 -1
- package/lib/cjs/access-control-client.d.ts +30 -1
- package/lib/cjs/access-control-client.d.ts.map +1 -1
- package/lib/cjs/access-control-client.js +42 -6
- package/lib/cjs/access-control-client.js.map +1 -1
- package/lib/cjs/accessControlClientInterfaces/GroupClient.d.ts +19 -0
- package/lib/cjs/accessControlClientInterfaces/GroupClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/GroupClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/GroupClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMemberInvitationClient.d.ts +15 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMemberInvitationClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMemberInvitationClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMemberInvitationClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMembersClient.d.ts +19 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMembersClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMembersClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/GroupMembersClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/ITwinJobsClient.d.ts +12 -0
- package/lib/cjs/accessControlClientInterfaces/ITwinJobsClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/ITwinJobsClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/ITwinJobsClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/ItwinSharesClient.d.ts +25 -0
- package/lib/cjs/accessControlClientInterfaces/ItwinSharesClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/ItwinSharesClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/ItwinSharesClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/MemberInvitationsClient.d.ts +12 -0
- package/lib/cjs/accessControlClientInterfaces/MemberInvitationsClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/MemberInvitationsClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/MemberInvitationsClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/OwnerMembersClient .d.ts +13 -0
- package/lib/cjs/accessControlClientInterfaces/OwnerMembersClient .d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/OwnerMembersClient .js +7 -0
- package/lib/cjs/accessControlClientInterfaces/OwnerMembersClient .js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/PermissionsClient.d.ts +10 -0
- package/lib/cjs/accessControlClientInterfaces/PermissionsClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/PermissionsClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/PermissionsClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/RolesClient.d.ts +16 -0
- package/lib/cjs/accessControlClientInterfaces/RolesClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/RolesClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/RolesClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/UserMembersClient.d.ts +16 -0
- package/lib/cjs/accessControlClientInterfaces/UserMembersClient.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/UserMembersClient.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/UserMembersClient.js.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/accessControl.d.ts +23 -0
- package/lib/cjs/accessControlClientInterfaces/accessControl.d.ts.map +1 -0
- package/lib/cjs/accessControlClientInterfaces/accessControl.js +7 -0
- package/lib/cjs/accessControlClientInterfaces/accessControl.js.map +1 -0
- package/lib/cjs/subClients/BaseClient.d.ts +88 -29
- package/lib/cjs/subClients/BaseClient.d.ts.map +1 -1
- package/lib/cjs/subClients/BaseClient.js +165 -40
- package/lib/cjs/subClients/BaseClient.js.map +1 -1
- package/lib/cjs/subClients/GroupMemberInvitationsClient.d.ts +33 -0
- package/lib/cjs/subClients/GroupMemberInvitationsClient.d.ts.map +1 -0
- package/lib/cjs/subClients/GroupMemberInvitationsClient.js +48 -0
- package/lib/cjs/subClients/GroupMemberInvitationsClient.js.map +1 -0
- package/lib/cjs/subClients/GroupMembersClient.d.ts +16 -6
- package/lib/cjs/subClients/GroupMembersClient.d.ts.map +1 -1
- package/lib/cjs/subClients/GroupMembersClient.js +22 -13
- package/lib/cjs/subClients/GroupMembersClient.js.map +1 -1
- package/lib/cjs/subClients/GroupsClient.d.ts +18 -10
- package/lib/cjs/subClients/GroupsClient.d.ts.map +1 -1
- package/lib/cjs/subClients/GroupsClient.js +27 -12
- package/lib/cjs/subClients/GroupsClient.js.map +1 -1
- package/lib/cjs/subClients/ITwinJobsClient.d.ts +12 -5
- package/lib/cjs/subClients/ITwinJobsClient.d.ts.map +1 -1
- package/lib/cjs/subClients/ITwinJobsClient.js +15 -3
- package/lib/cjs/subClients/ITwinJobsClient.js.map +1 -1
- package/lib/cjs/subClients/ItwinShares.d.ts +61 -0
- package/lib/cjs/subClients/ItwinShares.d.ts.map +1 -0
- package/lib/cjs/subClients/ItwinShares.js +77 -0
- package/lib/cjs/subClients/ItwinShares.js.map +1 -0
- package/lib/cjs/subClients/MemberInvitationsClient.d.ts +23 -3
- package/lib/cjs/subClients/MemberInvitationsClient.d.ts.map +1 -1
- package/lib/cjs/subClients/MemberInvitationsClient.js +32 -7
- package/lib/cjs/subClients/MemberInvitationsClient.js.map +1 -1
- package/lib/cjs/subClients/OwnerMembersClient.d.ts +45 -6
- package/lib/cjs/subClients/OwnerMembersClient.d.ts.map +1 -1
- package/lib/cjs/subClients/OwnerMembersClient.js +50 -10
- package/lib/cjs/subClients/OwnerMembersClient.js.map +1 -1
- package/lib/cjs/subClients/PermissionsClient.d.ts +10 -3
- package/lib/cjs/subClients/PermissionsClient.d.ts.map +1 -1
- package/lib/cjs/subClients/PermissionsClient.js +14 -2
- package/lib/cjs/subClients/PermissionsClient.js.map +1 -1
- package/lib/cjs/subClients/RolesClient.d.ts +13 -8
- package/lib/cjs/subClients/RolesClient.d.ts.map +1 -1
- package/lib/cjs/subClients/RolesClient.js +18 -6
- package/lib/cjs/subClients/RolesClient.js.map +1 -1
- package/lib/cjs/subClients/UserMembersClient.d.ts +13 -6
- package/lib/cjs/subClients/UserMembersClient.d.ts.map +1 -1
- package/lib/cjs/subClients/UserMembersClient.js +21 -9
- package/lib/cjs/subClients/UserMembersClient.js.map +1 -1
- package/lib/cjs/types/CommonApiTypes.d.ts +78 -0
- package/lib/cjs/types/CommonApiTypes.d.ts.map +1 -0
- package/lib/cjs/types/CommonApiTypes.js +7 -0
- package/lib/cjs/types/CommonApiTypes.js.map +1 -0
- package/lib/cjs/types/GroupMember.d.ts +75 -0
- package/lib/cjs/types/GroupMember.d.ts.map +1 -0
- package/lib/cjs/types/GroupMember.js +7 -0
- package/lib/cjs/types/GroupMember.js.map +1 -0
- package/lib/cjs/types/Groups.d.ts +83 -0
- package/lib/cjs/types/Groups.d.ts.map +1 -0
- package/lib/cjs/types/Groups.js +7 -0
- package/lib/cjs/types/Groups.js.map +1 -0
- package/lib/cjs/types/ITwinJob.d.ts +70 -0
- package/lib/cjs/types/ITwinJob.d.ts.map +1 -0
- package/lib/cjs/types/ITwinJob.js +7 -0
- package/lib/cjs/types/ITwinJob.js.map +1 -0
- package/lib/cjs/types/Invitations.d.ts +146 -0
- package/lib/cjs/types/Invitations.d.ts.map +1 -0
- package/lib/cjs/types/Invitations.js +7 -0
- package/lib/cjs/types/Invitations.js.map +1 -0
- package/lib/cjs/types/Members.d.ts +71 -0
- package/lib/cjs/types/Members.d.ts.map +1 -0
- package/lib/cjs/types/Members.js +7 -0
- package/lib/cjs/types/Members.js.map +1 -0
- package/lib/cjs/types/OwnerMember.d.ts +105 -0
- package/lib/cjs/types/OwnerMember.d.ts.map +1 -0
- package/lib/cjs/types/OwnerMember.js +7 -0
- package/lib/cjs/types/OwnerMember.js.map +1 -0
- package/lib/cjs/types/Permission.d.ts +5 -0
- package/lib/cjs/types/Permission.d.ts.map +1 -0
- package/lib/cjs/types/Permission.js +7 -0
- package/lib/cjs/types/Permission.js.map +1 -0
- package/lib/cjs/types/Role.d.ts +33 -0
- package/lib/cjs/types/Role.d.ts.map +1 -0
- package/lib/cjs/types/Role.js +7 -0
- package/lib/cjs/types/Role.js.map +1 -0
- package/lib/cjs/types/ShareContract.d.ts +80 -0
- package/lib/cjs/types/ShareContract.d.ts.map +1 -0
- package/lib/cjs/types/ShareContract.js +7 -0
- package/lib/cjs/types/ShareContract.js.map +1 -0
- package/lib/cjs/types/UserMembers.d.ts +115 -0
- package/lib/cjs/types/UserMembers.d.ts.map +1 -0
- package/lib/cjs/types/UserMembers.js +7 -0
- package/lib/cjs/types/UserMembers.js.map +1 -0
- package/lib/cjs/types/links.d.ts +20 -0
- package/lib/cjs/types/links.d.ts.map +1 -0
- package/lib/cjs/types/links.js +7 -0
- package/lib/cjs/types/links.js.map +1 -0
- package/lib/cjs/types/typeUtils.d.ts +42 -0
- package/lib/cjs/types/typeUtils.d.ts.map +1 -0
- package/lib/cjs/types/typeUtils.js +25 -0
- package/lib/cjs/types/typeUtils.js.map +1 -0
- package/lib/esm/AccessControlClient.d.ts +26 -9
- package/lib/esm/AccessControlClient.d.ts.map +1 -1
- package/lib/esm/AccessControlClient.js +31 -5
- package/lib/esm/AccessControlClient.js.map +1 -1
- package/lib/esm/access-control-client.d.ts +30 -1
- package/lib/esm/access-control-client.d.ts.map +1 -1
- package/lib/esm/access-control-client.js +33 -1
- package/lib/esm/access-control-client.js.map +1 -1
- package/lib/esm/accessControlClientInterfaces/GroupClient.d.ts +19 -0
- package/lib/esm/accessControlClientInterfaces/GroupClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/GroupClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/GroupClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/GroupMemberInvitationClient.d.ts +15 -0
- package/lib/esm/accessControlClientInterfaces/GroupMemberInvitationClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/GroupMemberInvitationClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/GroupMemberInvitationClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/GroupMembersClient.d.ts +19 -0
- package/lib/esm/accessControlClientInterfaces/GroupMembersClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/GroupMembersClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/GroupMembersClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/ITwinJobsClient.d.ts +12 -0
- package/lib/esm/accessControlClientInterfaces/ITwinJobsClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/ITwinJobsClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/ITwinJobsClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/ItwinSharesClient.d.ts +25 -0
- package/lib/esm/accessControlClientInterfaces/ItwinSharesClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/ItwinSharesClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/ItwinSharesClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/MemberInvitationsClient.d.ts +12 -0
- package/lib/esm/accessControlClientInterfaces/MemberInvitationsClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/MemberInvitationsClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/MemberInvitationsClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/OwnerMembersClient .d.ts +13 -0
- package/lib/esm/accessControlClientInterfaces/OwnerMembersClient .d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/OwnerMembersClient .js +6 -0
- package/lib/esm/accessControlClientInterfaces/OwnerMembersClient .js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/PermissionsClient.d.ts +10 -0
- package/lib/esm/accessControlClientInterfaces/PermissionsClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/PermissionsClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/PermissionsClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/RolesClient.d.ts +16 -0
- package/lib/esm/accessControlClientInterfaces/RolesClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/RolesClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/RolesClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/UserMembersClient.d.ts +16 -0
- package/lib/esm/accessControlClientInterfaces/UserMembersClient.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/UserMembersClient.js +6 -0
- package/lib/esm/accessControlClientInterfaces/UserMembersClient.js.map +1 -0
- package/lib/esm/accessControlClientInterfaces/accessControl.d.ts +23 -0
- package/lib/esm/accessControlClientInterfaces/accessControl.d.ts.map +1 -0
- package/lib/esm/accessControlClientInterfaces/accessControl.js +6 -0
- package/lib/esm/accessControlClientInterfaces/accessControl.js.map +1 -0
- package/lib/esm/subClients/BaseClient.d.ts +88 -29
- package/lib/esm/subClients/BaseClient.d.ts.map +1 -1
- package/lib/esm/subClients/BaseClient.js +166 -41
- package/lib/esm/subClients/BaseClient.js.map +1 -1
- package/lib/esm/subClients/GroupMemberInvitationsClient.d.ts +33 -0
- package/lib/esm/subClients/GroupMemberInvitationsClient.d.ts.map +1 -0
- package/lib/esm/subClients/GroupMemberInvitationsClient.js +44 -0
- package/lib/esm/subClients/GroupMemberInvitationsClient.js.map +1 -0
- package/lib/esm/subClients/GroupMembersClient.d.ts +16 -6
- package/lib/esm/subClients/GroupMembersClient.d.ts.map +1 -1
- package/lib/esm/subClients/GroupMembersClient.js +22 -13
- package/lib/esm/subClients/GroupMembersClient.js.map +1 -1
- package/lib/esm/subClients/GroupsClient.d.ts +18 -10
- package/lib/esm/subClients/GroupsClient.d.ts.map +1 -1
- package/lib/esm/subClients/GroupsClient.js +27 -12
- package/lib/esm/subClients/GroupsClient.js.map +1 -1
- package/lib/esm/subClients/ITwinJobsClient.d.ts +12 -5
- package/lib/esm/subClients/ITwinJobsClient.d.ts.map +1 -1
- package/lib/esm/subClients/ITwinJobsClient.js +15 -3
- package/lib/esm/subClients/ITwinJobsClient.js.map +1 -1
- package/lib/esm/subClients/ItwinShares.d.ts +61 -0
- package/lib/esm/subClients/ItwinShares.d.ts.map +1 -0
- package/lib/esm/subClients/ItwinShares.js +73 -0
- package/lib/esm/subClients/ItwinShares.js.map +1 -0
- package/lib/esm/subClients/MemberInvitationsClient.d.ts +23 -3
- package/lib/esm/subClients/MemberInvitationsClient.d.ts.map +1 -1
- package/lib/esm/subClients/MemberInvitationsClient.js +32 -7
- package/lib/esm/subClients/MemberInvitationsClient.js.map +1 -1
- package/lib/esm/subClients/OwnerMembersClient.d.ts +45 -6
- package/lib/esm/subClients/OwnerMembersClient.d.ts.map +1 -1
- package/lib/esm/subClients/OwnerMembersClient.js +50 -10
- package/lib/esm/subClients/OwnerMembersClient.js.map +1 -1
- package/lib/esm/subClients/PermissionsClient.d.ts +10 -3
- package/lib/esm/subClients/PermissionsClient.d.ts.map +1 -1
- package/lib/esm/subClients/PermissionsClient.js +14 -2
- package/lib/esm/subClients/PermissionsClient.js.map +1 -1
- package/lib/esm/subClients/RolesClient.d.ts +13 -8
- package/lib/esm/subClients/RolesClient.d.ts.map +1 -1
- package/lib/esm/subClients/RolesClient.js +18 -6
- package/lib/esm/subClients/RolesClient.js.map +1 -1
- package/lib/esm/subClients/UserMembersClient.d.ts +13 -6
- package/lib/esm/subClients/UserMembersClient.d.ts.map +1 -1
- package/lib/esm/subClients/UserMembersClient.js +21 -9
- package/lib/esm/subClients/UserMembersClient.js.map +1 -1
- package/lib/esm/types/CommonApiTypes.d.ts +78 -0
- package/lib/esm/types/CommonApiTypes.d.ts.map +1 -0
- package/lib/esm/types/CommonApiTypes.js +6 -0
- package/lib/esm/types/CommonApiTypes.js.map +1 -0
- package/lib/esm/types/GroupMember.d.ts +75 -0
- package/lib/esm/types/GroupMember.d.ts.map +1 -0
- package/lib/esm/types/GroupMember.js +6 -0
- package/lib/esm/types/GroupMember.js.map +1 -0
- package/lib/esm/types/Groups.d.ts +83 -0
- package/lib/esm/types/Groups.d.ts.map +1 -0
- package/lib/esm/types/Groups.js +6 -0
- package/lib/esm/types/Groups.js.map +1 -0
- package/lib/esm/types/ITwinJob.d.ts +70 -0
- package/lib/esm/types/ITwinJob.d.ts.map +1 -0
- package/lib/esm/types/ITwinJob.js +6 -0
- package/lib/esm/types/ITwinJob.js.map +1 -0
- package/lib/esm/types/Invitations.d.ts +146 -0
- package/lib/esm/types/Invitations.d.ts.map +1 -0
- package/lib/esm/types/Invitations.js +6 -0
- package/lib/esm/types/Invitations.js.map +1 -0
- package/lib/esm/types/Members.d.ts +71 -0
- package/lib/esm/types/Members.d.ts.map +1 -0
- package/lib/esm/types/Members.js +6 -0
- package/lib/esm/types/Members.js.map +1 -0
- package/lib/esm/types/OwnerMember.d.ts +105 -0
- package/lib/esm/types/OwnerMember.d.ts.map +1 -0
- package/lib/esm/types/OwnerMember.js +6 -0
- package/lib/esm/types/OwnerMember.js.map +1 -0
- package/lib/esm/types/Permission.d.ts +5 -0
- package/lib/esm/types/Permission.d.ts.map +1 -0
- package/lib/esm/types/Permission.js +6 -0
- package/lib/esm/types/Permission.js.map +1 -0
- package/lib/esm/types/Role.d.ts +33 -0
- package/lib/esm/types/Role.d.ts.map +1 -0
- package/lib/esm/types/Role.js +6 -0
- package/lib/esm/types/Role.js.map +1 -0
- package/lib/esm/types/ShareContract.d.ts +80 -0
- package/lib/esm/types/ShareContract.d.ts.map +1 -0
- package/lib/esm/types/ShareContract.js +6 -0
- package/lib/esm/types/ShareContract.js.map +1 -0
- package/lib/esm/types/UserMembers.d.ts +115 -0
- package/lib/esm/types/UserMembers.d.ts.map +1 -0
- package/lib/esm/types/UserMembers.js +6 -0
- package/lib/esm/types/UserMembers.js.map +1 -0
- package/lib/esm/types/links.d.ts +20 -0
- package/lib/esm/types/links.d.ts.map +1 -0
- package/lib/esm/types/links.js +6 -0
- package/lib/esm/types/links.js.map +1 -0
- package/lib/esm/types/typeUtils.d.ts +42 -0
- package/lib/esm/types/typeUtils.d.ts.map +1 -0
- package/lib/esm/types/typeUtils.js +22 -0
- package/lib/esm/types/typeUtils.js.map +1 -0
- package/package.json +59 -45
- package/CONTRIBUTING.md +0 -90
- package/GETTINGSTARTED.md +0 -35
- package/lib/cjs/accessControlTypes.d.ts +0 -229
- package/lib/cjs/accessControlTypes.d.ts.map +0 -1
- package/lib/cjs/accessControlTypes.js +0 -25
- package/lib/cjs/accessControlTypes.js.map +0 -1
- package/lib/esm/accessControlTypes.d.ts +0 -229
- package/lib/esm/accessControlTypes.d.ts.map +0 -1
- package/lib/esm/accessControlTypes.js +0 -22
- package/lib/esm/accessControlTypes.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareContract.d.ts","sourceRoot":"","sources":["../../../src/types/ShareContract.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,4FAA4F;IAC5F,QAAQ,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,2BAA2B;IAC1C,8BAA8B;IAC9B,KAAK,EAAG,aAAa,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,0BAA0B;IACzC,+BAA+B;IAC/B,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
//# sourceMappingURL=ShareContract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareContract.js","sourceRoot":"","sources":["../../../src/types/ShareContract.ts"],"names":[],"mappings":";AAAA;;;gGAGgG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Represents an iTwin share contract that allows public access to iTwin data.\n * Share contracts enable external users to access iTwin resources without authentication.\n *\n * @example\n * ```typescript\n * const shareContract: ShareContract = {\n * id: \"550e8400-e29b-41d4-a716-446655440000\",\n * iTwinId: \"a1b2c3d4-e5f6-4789-0123-456789abcdef\",\n * shareKey: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * shareContract: \"Default\",\n * expiration: \"2024-12-31T23:59:59.999Z\"\n * };\n *\n * // Usage in authorization header:\n * const authHeader = `Basic ${shareContract.shareKey}`;\n * ```\n */\nexport interface ShareContract {\n /** Unique identifier for the share contract */\n id: string;\n /** The iTwin ID that this share contract applies to */\n iTwinId: string;\n /** The share key used for authentication. Prepend with 'Basic' in authorization headers. */\n shareKey: string;\n /** The type of share contract (e.g., \"Default\") that defines available APIs */\n shareContract: string;\n /** ISO date string when the share contract expires */\n expiration: string;\n}\n\n/**\n * Response object containing a single share contract.\n *\n * @example\n * ```typescript\n * const response: SingleShareContractResponse = {\n * share: {\n * id: \"550e8400-e29b-41d4-a716-446655440000\",\n * iTwinId: \"a1b2c3d4-e5f6-4789-0123-456789abcdef\",\n * shareKey: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * shareContract: \"Default\",\n * expiration: \"2024-12-31T23:59:59.999Z\"\n * }\n * };\n * ```\n */\nexport interface SingleShareContractResponse {\n /** The share contract data */\n share: ShareContract;\n}\n\n/**\n * Response object containing multiple share contracts.\n *\n * @example\n * ```typescript\n * const response: MultiShareContractResponse = {\n * shares: [\n * {\n * id: \"share1-550e8400-e29b-41d4-a716-446655440000\",\n * iTwinId: \"a1b2c3d4-e5f6-4789-0123-456789abcdef\",\n * shareKey: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * shareContract: \"Default\",\n * expiration: \"2024-12-31T23:59:59.999Z\"\n * },\n * {\n * id: \"share2-550e8400-e29b-41d4-a716-446655440001\",\n * iTwinId: \"a1b2c3d4-e5f6-4789-0123-456789abcdef\",\n * shareKey: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * shareContract: \"Premium\",\n * expiration: \"2025-06-30T23:59:59.999Z\"\n * }\n * ]\n * };\n * ```\n */\nexport interface MultiShareContractResponse {\n /** Array of share contracts */\n shares: ShareContract[];\n}\n"]}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { MemberInvitation } from "./Invitations";
|
|
2
|
+
import type { Links } from "./links";
|
|
3
|
+
import type { UserMember } from "./Members";
|
|
4
|
+
/**
|
|
5
|
+
* Request to add or invite a user member to an iTwin with role assignments.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const newMember: AddUserMember = {
|
|
11
|
+
* email: "newuser@company.com",
|
|
12
|
+
* roleIds: ["5abbfcef-0eab-472a-b5f5-5c5a43df34b1", "83ee0d80-dea3-495a-b6c0-7bb102ebbcc3"]
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export interface AddUserMember {
|
|
17
|
+
/** Array of role IDs to assign to the user */
|
|
18
|
+
roleIds: string[];
|
|
19
|
+
/** Email address of the user to add or invite */
|
|
20
|
+
email: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response from adding user members to an iTwin.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* This response contains both members (users immediately added) and invitations
|
|
27
|
+
* (external users who need to accept invitations). Internal users are automatically
|
|
28
|
+
* added as members, while external users receive email invitations.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const response: AddUserMemberResponse = {
|
|
33
|
+
* members: [
|
|
34
|
+
* // Internal users added immediately
|
|
35
|
+
* { id: "123", email: "internal@company.com", givenName: "Jane", surname: "Doe", organization: "ACME Corp", roles: [...] }
|
|
36
|
+
* ],
|
|
37
|
+
* invitations: [
|
|
38
|
+
* // External users who received invitations
|
|
39
|
+
* { id: "inv456", email: "external@other.com", status: "Pending", roles: [...] }
|
|
40
|
+
* ]
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export interface AddUserMemberResponse {
|
|
45
|
+
/** Users that were immediately added as members (internal users) */
|
|
46
|
+
members: UserMember[];
|
|
47
|
+
/** Invitations sent to external users who need to accept them */
|
|
48
|
+
invitations: MemberInvitation[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* API response wrapper for a single user member operation.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* This interface is used for API responses that return a single user member,
|
|
55
|
+
* such as GET /members/{id} operations.
|
|
56
|
+
*
|
|
57
|
+
* #### Missing Users
|
|
58
|
+
* When users are removed from the Bentley Identity Management System, they are not automatically removed from the iTwin. Therefore, it is possible to have a situation where the user is no longer valid, yet they are still a user member of the iTwin. When this happens, the user member will be returned from this API endpoint with the follow values:
|
|
59
|
+
* ```typescript
|
|
60
|
+
* { member:
|
|
61
|
+
{
|
|
62
|
+
"id": <memberId>,
|
|
63
|
+
"email": null,
|
|
64
|
+
"givenName": null,
|
|
65
|
+
"surname": null,
|
|
66
|
+
"organization": null,
|
|
67
|
+
...
|
|
68
|
+
}
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* #### Cleanup
|
|
73
|
+
* The Access Control API will perform a once-a-week cleanup to remove these "Missing Users". You can rely on this automated clean-up if this timeline is sufficient.
|
|
74
|
+
*
|
|
75
|
+
* If not, you can use the Remove iTwin User Member API (use the memberId) to remove the user member from the iTwin.
|
|
76
|
+
*/
|
|
77
|
+
export interface SingleUserMemberResponse {
|
|
78
|
+
/** The user member data */
|
|
79
|
+
member: UserMember;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* API response wrapper for multiple user members with pagination support.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* This interface is used for API responses that return collections of user members,
|
|
86
|
+
* such as GET /members operations. Includes HAL-style navigation links for pagination.
|
|
87
|
+
*
|
|
88
|
+
* #### Missing Users
|
|
89
|
+
* When users are removed from the Bentley Identity Management System, they are not automatically removed from the iTwin. Therefore, it is possible to have a situation where the user is no longer valid, yet they are still a user member of the iTwin. When this happens, the user members will be returned from this API endpoint with the following values:
|
|
90
|
+
* ```typescript
|
|
91
|
+
* { members: [
|
|
92
|
+
* {
|
|
93
|
+
* "id": <memberId>,
|
|
94
|
+
* "email": null,
|
|
95
|
+
* "givenName": null,
|
|
96
|
+
* "surname": null,
|
|
97
|
+
* "organization": null,
|
|
98
|
+
* ...
|
|
99
|
+
* }
|
|
100
|
+
* ]
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* #### Cleanup
|
|
105
|
+
* The Access Control API will perform a once-a-week cleanup to remove these "Missing Users". You can rely on this automated clean-up if this timeline is sufficient.
|
|
106
|
+
*
|
|
107
|
+
* If not, you can use the Remove iTwin User Member API (use the memberId) to remove the user member from the iTwin.
|
|
108
|
+
*/
|
|
109
|
+
export interface MultipleUserMembersResponse {
|
|
110
|
+
/** Array of user members in the current page */
|
|
111
|
+
members: UserMember[];
|
|
112
|
+
/** HAL-style navigation links for pagination (first, next, prev, last) */
|
|
113
|
+
_links: Links;
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=UserMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMembers.d.ts","sourceRoot":"","sources":["../../../src/types/UserMembers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,iEAAiE;IACjE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,wBAAwB;IACvC,2BAA2B;IAC3B,MAAM,EAAE,UAAU,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gDAAgD;IAChD,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,0EAA0E;IAE1E,MAAM,EAAE,KAAK,CAAC;CACf"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
//# sourceMappingURL=UserMembers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMembers.js","sourceRoot":"","sources":["../../../src/types/UserMembers.ts"],"names":[],"mappings":";AAAA;;;gGAGgG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport type { MemberInvitation } from \"./Invitations\";\nimport type { Links } from \"./links\";\nimport type { UserMember } from \"./Members\";\n\n/**\n * Request to add or invite a user member to an iTwin with role assignments.\n *\n *\n * @example\n * ```typescript\n * const newMember: AddUserMember = {\n * email: \"newuser@company.com\",\n * roleIds: [\"5abbfcef-0eab-472a-b5f5-5c5a43df34b1\", \"83ee0d80-dea3-495a-b6c0-7bb102ebbcc3\"]\n * };\n * ```\n */\nexport interface AddUserMember {\n /** Array of role IDs to assign to the user */\n roleIds: string[];\n /** Email address of the user to add or invite */\n email: string;\n}\n\n/**\n * Response from adding user members to an iTwin.\n *\n * @remarks\n * This response contains both members (users immediately added) and invitations\n * (external users who need to accept invitations). Internal users are automatically\n * added as members, while external users receive email invitations.\n *\n * @example\n * ```typescript\n * const response: AddUserMemberResponse = {\n * members: [\n * // Internal users added immediately\n * { id: \"123\", email: \"internal@company.com\", givenName: \"Jane\", surname: \"Doe\", organization: \"ACME Corp\", roles: [...] }\n * ],\n * invitations: [\n * // External users who received invitations\n * { id: \"inv456\", email: \"external@other.com\", status: \"Pending\", roles: [...] }\n * ]\n * };\n * ```\n */\nexport interface AddUserMemberResponse {\n /** Users that were immediately added as members (internal users) */\n members: UserMember[];\n /** Invitations sent to external users who need to accept them */\n invitations: MemberInvitation[];\n}\n\n/**\n * API response wrapper for a single user member operation.\n *\n * @remarks\n * This interface is used for API responses that return a single user member,\n * such as GET /members/{id} operations.\n *\n * #### Missing Users\n * When users are removed from the Bentley Identity Management System, they are not automatically removed from the iTwin. Therefore, it is possible to have a situation where the user is no longer valid, yet they are still a user member of the iTwin. When this happens, the user member will be returned from this API endpoint with the follow values:\n * ```typescript\n * { member:\n {\n \"id\": <memberId>,\n \"email\": null,\n \"givenName\": null,\n \"surname\": null,\n \"organization\": null,\n ...\n }\n * }\n * ```\n *\n * #### Cleanup\n * The Access Control API will perform a once-a-week cleanup to remove these \"Missing Users\". You can rely on this automated clean-up if this timeline is sufficient.\n *\n * If not, you can use the Remove iTwin User Member API (use the memberId) to remove the user member from the iTwin.\n */\nexport interface SingleUserMemberResponse {\n /** The user member data */\n member: UserMember;\n}\n\n/**\n * API response wrapper for multiple user members with pagination support.\n *\n * @remarks\n * This interface is used for API responses that return collections of user members,\n * such as GET /members operations. Includes HAL-style navigation links for pagination.\n *\n * #### Missing Users\n * When users are removed from the Bentley Identity Management System, they are not automatically removed from the iTwin. Therefore, it is possible to have a situation where the user is no longer valid, yet they are still a user member of the iTwin. When this happens, the user members will be returned from this API endpoint with the following values:\n * ```typescript\n * { members: [\n * {\n * \"id\": <memberId>,\n * \"email\": null,\n * \"givenName\": null,\n * \"surname\": null,\n * \"organization\": null,\n * ...\n * }\n * ]\n * }\n * ```\n *\n * #### Cleanup\n * The Access Control API will perform a once-a-week cleanup to remove these \"Missing Users\". You can rely on this automated clean-up if this timeline is sufficient.\n *\n * If not, you can use the Remove iTwin User Member API (use the memberId) to remove the user member from the iTwin.\n */\nexport interface MultipleUserMembersResponse {\n /** Array of user members in the current page */\n members: UserMember[];\n /** HAL-style navigation links for pagination (first, next, prev, last) */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n _links: Links;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a hyperlink reference in API responses
|
|
3
|
+
*/
|
|
4
|
+
export interface Link {
|
|
5
|
+
/** The URL or URI of the link */
|
|
6
|
+
href: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Collection of navigation links typically used for pagination in API responses.
|
|
10
|
+
* Follows HAL (Hypertext Application Language) specification for hypermedia links.
|
|
11
|
+
*/
|
|
12
|
+
export interface Links {
|
|
13
|
+
/** Link to the current resource */
|
|
14
|
+
self: Link;
|
|
15
|
+
/** Link to the previous page of results */
|
|
16
|
+
prev: Link;
|
|
17
|
+
/** Link to the next page of results */
|
|
18
|
+
next: Link;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../src/types/links.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,2CAA2C;IAC3C,IAAI,EAAE,IAAI,CAAC;IACX,uCAAuC;IACvC,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
//# sourceMappingURL=links.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../../src/types/links.ts"],"names":[],"mappings":";AAAA;;;+FAG+F","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/**\n * Represents a hyperlink reference in API responses\n */\nexport interface Link {\n /** The URL or URI of the link */\n href: string;\n}\n\n/**\n * Collection of navigation links typically used for pagination in API responses.\n * Follows HAL (Hypertext Application Language) specification for hypermedia links.\n */\nexport interface Links {\n /** Link to the current resource */\n self: Link;\n /** Link to the previous page of results */\n prev: Link;\n /** Link to the next page of results */\n next: Link;\n}"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type guard to check if an object has a specific property and narrows the type to Record<string, unknown>
|
|
3
|
+
* @param obj - Unknown object to check for property existence
|
|
4
|
+
* @param prop - Property key name to check for
|
|
5
|
+
* @returns True if the object has the specified property, false otherwise
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const data: unknown = { name: "John", age: 30 };
|
|
10
|
+
* if (hasProperty(data, "name")) {
|
|
11
|
+
* console.log(data.name); // ✅ Type-safe access
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasProperty(obj: unknown, prop: string): obj is Record<string, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Utility type that creates a mapping object where every property of type T must be mapped to a string value.
|
|
18
|
+
* This ensures you can't forget to handle any properties - TypeScript will give you an error if you miss one.
|
|
19
|
+
*
|
|
20
|
+
* @template T - The source object type whose properties need to be mapped
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* interface User { name: string; age: number; }
|
|
25
|
+
*
|
|
26
|
+
* // ✅ Valid - all properties mapped
|
|
27
|
+
* const mapping: ParameterMapping<User> = {
|
|
28
|
+
* name: "user_name",
|
|
29
|
+
* age: "user_age"
|
|
30
|
+
* };
|
|
31
|
+
*
|
|
32
|
+
* // ❌ TypeScript error - missing 'age' property
|
|
33
|
+
* const incomplete: ParameterMapping<User> = {
|
|
34
|
+
* name: "user_name"
|
|
35
|
+
* // Error: Property 'age' is missing!
|
|
36
|
+
* };
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export type ParameterMapping<T> = {
|
|
40
|
+
[K in keyof Required<T>]: string;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=typeUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../../src/types/typeUtils.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEhC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC,CAAC,GAAG,MAAM;CACjC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.hasProperty = hasProperty;
|
|
8
|
+
/**
|
|
9
|
+
* Type guard to check if an object has a specific property and narrows the type to Record<string, unknown>
|
|
10
|
+
* @param obj - Unknown object to check for property existence
|
|
11
|
+
* @param prop - Property key name to check for
|
|
12
|
+
* @returns True if the object has the specified property, false otherwise
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const data: unknown = { name: "John", age: 30 };
|
|
17
|
+
* if (hasProperty(data, "name")) {
|
|
18
|
+
* console.log(data.name); // ✅ Type-safe access
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function hasProperty(obj, prop) {
|
|
23
|
+
return typeof obj === "object" && obj !== null && prop in obj;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=typeUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeUtils.js","sourceRoot":"","sources":["../../../src/types/typeUtils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAgBhG,kCAKC;AAnBD;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CACzB,GAAY,EACZ,IAAY;IAEZ,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC;AAChE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n/**\n * Type guard to check if an object has a specific property and narrows the type to Record<string, unknown>\n * @param obj - Unknown object to check for property existence\n * @param prop - Property key name to check for\n * @returns True if the object has the specified property, false otherwise\n *\n * @example\n * ```typescript\n * const data: unknown = { name: \"John\", age: 30 };\n * if (hasProperty(data, \"name\")) {\n * console.log(data.name); // ✅ Type-safe access\n * }\n * ```\n */\nexport function hasProperty(\n obj: unknown,\n prop: string\n): obj is Record<string, unknown> {\n return typeof obj === \"object\" && obj !== null && prop in obj;\n}\n\n/**\n * Utility type that creates a mapping object where every property of type T must be mapped to a string value.\n * This ensures you can't forget to handle any properties - TypeScript will give you an error if you miss one.\n *\n * @template T - The source object type whose properties need to be mapped\n *\n * @example\n * ```typescript\n * interface User { name: string; age: number; }\n *\n * // ✅ Valid - all properties mapped\n * const mapping: ParameterMapping<User> = {\n * name: \"user_name\",\n * age: \"user_age\"\n * };\n *\n * // ❌ TypeScript error - missing 'age' property\n * const incomplete: ParameterMapping<User> = {\n * name: \"user_name\"\n * // Error: Property 'age' is missing!\n * };\n * ```\n */\nexport type ParameterMapping<T> = {\n [K in keyof Required<T>]: string;\n};"]}
|
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module AccessControlClient
|
|
3
3
|
*/
|
|
4
|
-
import type { IAccessControlClient
|
|
4
|
+
import type { IAccessControlClient } from "./accessControlClientInterfaces/accessControl";
|
|
5
|
+
import type { IGroupsClient } from "./accessControlClientInterfaces/GroupClient";
|
|
6
|
+
import type { IGroupMemberInvitationClient } from "./accessControlClientInterfaces/GroupMemberInvitationClient";
|
|
7
|
+
import type { IGroupMembersClient } from "./accessControlClientInterfaces/GroupMembersClient";
|
|
8
|
+
import type { IITwinJobsClient } from "./accessControlClientInterfaces/ITwinJobsClient";
|
|
9
|
+
import type { IITwinSharesClient } from "./accessControlClientInterfaces/ItwinSharesClient";
|
|
10
|
+
import type { IMemberInvitationsClient } from "./accessControlClientInterfaces/MemberInvitationsClient";
|
|
11
|
+
import type { IOwnerMembersClient } from "./accessControlClientInterfaces/OwnerMembersClient ";
|
|
12
|
+
import type { IPermissionsClient } from "./accessControlClientInterfaces/PermissionsClient";
|
|
13
|
+
import type { IRolesClient } from "./accessControlClientInterfaces/RolesClient";
|
|
14
|
+
import type { IUserMembersClient } from "./accessControlClientInterfaces/UserMembersClient";
|
|
15
|
+
/** Client API to access the access control service.
|
|
16
|
+
*/
|
|
5
17
|
export declare class AccessControlClient implements IAccessControlClient {
|
|
6
|
-
permissions: IPermissionsClient;
|
|
7
|
-
roles: IRolesClient;
|
|
8
|
-
groups: IGroupsClient;
|
|
9
|
-
userMembers: IUserMembersClient;
|
|
10
|
-
groupMembers: IGroupMembersClient;
|
|
11
|
-
ownerMembers: IOwnerMembersClient;
|
|
12
|
-
memberInvitations: IMemberInvitationsClient;
|
|
13
|
-
itwinJobs: IITwinJobsClient;
|
|
18
|
+
readonly permissions: IPermissionsClient;
|
|
19
|
+
readonly roles: IRolesClient;
|
|
20
|
+
readonly groups: IGroupsClient;
|
|
21
|
+
readonly userMembers: IUserMembersClient;
|
|
22
|
+
readonly groupMembers: IGroupMembersClient;
|
|
23
|
+
readonly ownerMembers: IOwnerMembersClient;
|
|
24
|
+
readonly memberInvitations: IMemberInvitationsClient;
|
|
25
|
+
readonly itwinJobs: IITwinJobsClient;
|
|
26
|
+
readonly itwinShares: IITwinSharesClient;
|
|
27
|
+
readonly groupMemberInvitations: IGroupMemberInvitationClient;
|
|
28
|
+
/** Create a new AccessControlClient instance
|
|
29
|
+
* @param url Optional base URL for the access control service. If not provided, defaults to base url.
|
|
30
|
+
*/
|
|
14
31
|
constructor(url?: string);
|
|
15
32
|
}
|
|
16
33
|
//# sourceMappingURL=AccessControlClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlClient.d.ts","sourceRoot":"","sources":["../../src/AccessControlClient.ts"],"names":[],"mappings":"AAIA;;GAEG;
|
|
1
|
+
{"version":3,"file":"AccessControlClient.d.ts","sourceRoot":"","sources":["../../src/AccessControlClient.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAChH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yDAAyD,CAAC;AACxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAY5F;GACG;AACH,qBAAa,mBAAoB,YAAW,oBAAoB;IAC9D,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,MAAM,EAAE,aAAa,CAAC;IACtC,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,SAAgB,YAAY,EAAE,mBAAmB,CAAC;IAClD,SAAgB,YAAY,EAAE,mBAAmB,CAAC;IAClD,SAAgB,iBAAiB,EAAE,wBAAwB,CAAC;IAC5D,SAAgB,SAAS,EAAE,gBAAgB,CAAC;IAC5C,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,SAAgB,sBAAsB,EAAE,4BAA4B,CAAC;IAErE;;OAEG;gBACgB,GAAG,CAAC,EAAE,MAAM;CAYhC"}
|
|
@@ -1,12 +1,36 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module AccessControlClient
|
|
7
|
+
*/
|
|
8
|
+
import { GroupMemberInvitationClient } from './subClients/GroupMemberInvitationsClient';
|
|
9
|
+
import { GroupMembersClient } from "./subClients/GroupMembersClient";
|
|
10
|
+
import { GroupsClient } from "./subClients/GroupsClient";
|
|
11
|
+
import { ITwinJobsClient } from "./subClients/ITwinJobsClient";
|
|
12
|
+
import { ITwinSharesClient } from "./subClients/ItwinShares";
|
|
13
|
+
import { MemberInvitationsClient } from "./subClients/MemberInvitationsClient";
|
|
14
|
+
import { OwnerMembersClient } from "./subClients/OwnerMembersClient";
|
|
1
15
|
import { PermissionsClient } from "./subClients/PermissionsClient";
|
|
2
16
|
import { RolesClient } from "./subClients/RolesClient";
|
|
3
|
-
import { GroupsClient } from "./subClients/GroupsClient";
|
|
4
17
|
import { UserMembersClient } from "./subClients/UserMembersClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { MemberInvitationsClient } from "./subClients/MemberInvitationsClient";
|
|
8
|
-
import { ITwinJobsClient } from "./subClients/ITwinJobsClient";
|
|
18
|
+
/** Client API to access the access control service.
|
|
19
|
+
*/
|
|
9
20
|
export class AccessControlClient {
|
|
21
|
+
permissions;
|
|
22
|
+
roles;
|
|
23
|
+
groups;
|
|
24
|
+
userMembers;
|
|
25
|
+
groupMembers;
|
|
26
|
+
ownerMembers;
|
|
27
|
+
memberInvitations;
|
|
28
|
+
itwinJobs;
|
|
29
|
+
itwinShares;
|
|
30
|
+
groupMemberInvitations;
|
|
31
|
+
/** Create a new AccessControlClient instance
|
|
32
|
+
* @param url Optional base URL for the access control service. If not provided, defaults to base url.
|
|
33
|
+
*/
|
|
10
34
|
constructor(url) {
|
|
11
35
|
this.permissions = new PermissionsClient(url);
|
|
12
36
|
this.roles = new RolesClient(url);
|
|
@@ -16,6 +40,8 @@ export class AccessControlClient {
|
|
|
16
40
|
this.ownerMembers = new OwnerMembersClient(url);
|
|
17
41
|
this.memberInvitations = new MemberInvitationsClient(url);
|
|
18
42
|
this.itwinJobs = new ITwinJobsClient(url);
|
|
43
|
+
this.itwinShares = new ITwinSharesClient(url);
|
|
44
|
+
this.groupMemberInvitations = new GroupMemberInvitationClient(url);
|
|
19
45
|
}
|
|
20
46
|
}
|
|
21
47
|
//# sourceMappingURL=AccessControlClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessControlClient.js","sourceRoot":"","sources":["../../src/AccessControlClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccessControlClient.js","sourceRoot":"","sources":["../../src/AccessControlClient.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAaH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE;GACG;AACH,MAAM,OAAO,mBAAmB;IACd,WAAW,CAAqB;IAChC,KAAK,CAAe;IACpB,MAAM,CAAgB;IACtB,WAAW,CAAqB;IAChC,YAAY,CAAsB;IAClC,YAAY,CAAsB;IAClC,iBAAiB,CAA2B;IAC5C,SAAS,CAAmB;IAC5B,WAAW,CAAqB;IAChC,sBAAsB,CAA+B;IAErE;;OAEG;IACH,YAAmB,GAAY;QAC7B,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,CAAC,iBAAiB,GAAG,IAAI,uBAAuB,CAAC,GAAG,CAAC,CAAC;QAC1D,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,sBAAsB,GAAG,IAAI,2BAA2B,CAAC,GAAG,CAAC,CAAC;IACrE,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n * See LICENSE.md in the project root for license terms and full copyright notice.\r\n *--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module AccessControlClient\r\n */\r\n\r\nimport type { IAccessControlClient } from \"./accessControlClientInterfaces/accessControl\";\r\nimport type { IGroupsClient } from \"./accessControlClientInterfaces/GroupClient\";\r\nimport type { IGroupMemberInvitationClient } from \"./accessControlClientInterfaces/GroupMemberInvitationClient\";\r\nimport type { IGroupMembersClient } from \"./accessControlClientInterfaces/GroupMembersClient\";\r\nimport type { IITwinJobsClient } from \"./accessControlClientInterfaces/ITwinJobsClient\";\r\nimport type { IITwinSharesClient } from \"./accessControlClientInterfaces/ItwinSharesClient\";\r\nimport type { IMemberInvitationsClient } from \"./accessControlClientInterfaces/MemberInvitationsClient\";\r\nimport type { IOwnerMembersClient } from \"./accessControlClientInterfaces/OwnerMembersClient \";\r\nimport type { IPermissionsClient } from \"./accessControlClientInterfaces/PermissionsClient\";\r\nimport type { IRolesClient } from \"./accessControlClientInterfaces/RolesClient\";\r\nimport type { IUserMembersClient } from \"./accessControlClientInterfaces/UserMembersClient\";\r\nimport { GroupMemberInvitationClient } from './subClients/GroupMemberInvitationsClient';\r\nimport { GroupMembersClient } from \"./subClients/GroupMembersClient\";\r\nimport { GroupsClient } from \"./subClients/GroupsClient\";\r\nimport { ITwinJobsClient } from \"./subClients/ITwinJobsClient\";\r\nimport { ITwinSharesClient } from \"./subClients/ItwinShares\";\r\nimport { MemberInvitationsClient } from \"./subClients/MemberInvitationsClient\";\r\nimport { OwnerMembersClient } from \"./subClients/OwnerMembersClient\";\r\nimport { PermissionsClient } from \"./subClients/PermissionsClient\";\r\nimport { RolesClient } from \"./subClients/RolesClient\";\r\nimport { UserMembersClient } from \"./subClients/UserMembersClient\";\r\n\r\n/** Client API to access the access control service.\r\n */\r\nexport class AccessControlClient implements IAccessControlClient {\r\n public readonly permissions: IPermissionsClient;\r\n public readonly roles: IRolesClient;\r\n public readonly groups: IGroupsClient;\r\n public readonly userMembers: IUserMembersClient;\r\n public readonly groupMembers: IGroupMembersClient;\r\n public readonly ownerMembers: IOwnerMembersClient;\r\n public readonly memberInvitations: IMemberInvitationsClient;\r\n public readonly itwinJobs: IITwinJobsClient;\r\n public readonly itwinShares: IITwinSharesClient;\r\n public readonly groupMemberInvitations: IGroupMemberInvitationClient;\r\n\r\n /** Create a new AccessControlClient instance\r\n * @param url Optional base URL for the access control service. If not provided, defaults to base url.\r\n */\r\n public constructor(url?: string) {\r\n this.permissions = new PermissionsClient(url);\r\n this.roles = new RolesClient(url);\r\n this.groups = new GroupsClient(url);\r\n this.userMembers = new UserMembersClient(url);\r\n this.groupMembers = new GroupMembersClient(url);\r\n this.ownerMembers = new OwnerMembersClient(url);\r\n this.memberInvitations = new MemberInvitationsClient(url);\r\n this.itwinJobs = new ITwinJobsClient(url);\r\n this.itwinShares = new ITwinSharesClient(url);\r\n this.groupMemberInvitations = new GroupMemberInvitationClient(url);\r\n }\r\n}\r\n"]}
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
/** @docs-package-description
|
|
2
|
+
* The access-control-client package provides a means of interfacing with services relating to access control for iTwins.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @docs-group-description iTwinsClient
|
|
6
|
+
* Classes for communicating with the access control service.
|
|
7
|
+
*/
|
|
1
8
|
export * from "./AccessControlClient";
|
|
2
|
-
export * from "./
|
|
9
|
+
export * from "./types/CommonApiTypes";
|
|
10
|
+
export * from "./types/GroupMember";
|
|
11
|
+
export * from "./types/Groups";
|
|
12
|
+
export * from "./types/Invitations";
|
|
13
|
+
export * from "./types/ITwinJob";
|
|
14
|
+
export * from "./types/links";
|
|
15
|
+
export * from "./types/OwnerMember";
|
|
16
|
+
export * from "./types/Permission";
|
|
17
|
+
export * from "./types/Role";
|
|
18
|
+
export * from "./types/UserMembers";
|
|
19
|
+
export * from "./types/Members";
|
|
20
|
+
export * from "./types/ShareContract";
|
|
21
|
+
export * from "./accessControlClientInterfaces/accessControl";
|
|
22
|
+
export * from "./accessControlClientInterfaces/GroupClient";
|
|
23
|
+
export * from "./accessControlClientInterfaces/GroupMembersClient";
|
|
24
|
+
export * from "./accessControlClientInterfaces/ITwinJobsClient";
|
|
25
|
+
export * from "./accessControlClientInterfaces/MemberInvitationsClient";
|
|
26
|
+
export * from "./accessControlClientInterfaces/OwnerMembersClient ";
|
|
27
|
+
export * from "./accessControlClientInterfaces/PermissionsClient";
|
|
28
|
+
export * from "./accessControlClientInterfaces/RolesClient";
|
|
29
|
+
export * from "./accessControlClientInterfaces/UserMembersClient";
|
|
30
|
+
export * from "./accessControlClientInterfaces/ItwinSharesClient";
|
|
31
|
+
export * from "./accessControlClientInterfaces/GroupMemberInvitationClient";
|
|
3
32
|
//# sourceMappingURL=access-control-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-control-client.d.ts","sourceRoot":"","sources":["../../src/access-control-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"access-control-client.d.ts","sourceRoot":"","sources":["../../src/access-control-client.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;;GAGG;AAGH,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6DAA6D,CAAA"}
|
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @docs-package-description
|
|
6
|
+
* The access-control-client package provides a means of interfacing with services relating to access control for iTwins.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @docs-group-description iTwinsClient
|
|
10
|
+
* Classes for communicating with the access control service.
|
|
11
|
+
*/
|
|
12
|
+
// Main client export
|
|
5
13
|
export * from "./AccessControlClient";
|
|
6
|
-
|
|
14
|
+
// Types exports
|
|
15
|
+
export * from "./types/CommonApiTypes";
|
|
16
|
+
export * from "./types/GroupMember";
|
|
17
|
+
export * from "./types/Groups";
|
|
18
|
+
export * from "./types/Invitations";
|
|
19
|
+
export * from "./types/ITwinJob";
|
|
20
|
+
export * from "./types/links";
|
|
21
|
+
export * from "./types/OwnerMember";
|
|
22
|
+
export * from "./types/Permission";
|
|
23
|
+
export * from "./types/Role";
|
|
24
|
+
export * from "./types/UserMembers";
|
|
25
|
+
export * from "./types/Members";
|
|
26
|
+
export * from "./types/ShareContract";
|
|
27
|
+
// Client interfaces exports
|
|
28
|
+
export * from "./accessControlClientInterfaces/accessControl";
|
|
29
|
+
export * from "./accessControlClientInterfaces/GroupClient";
|
|
30
|
+
export * from "./accessControlClientInterfaces/GroupMembersClient";
|
|
31
|
+
export * from "./accessControlClientInterfaces/ITwinJobsClient";
|
|
32
|
+
export * from "./accessControlClientInterfaces/MemberInvitationsClient";
|
|
33
|
+
export * from "./accessControlClientInterfaces/OwnerMembersClient ";
|
|
34
|
+
export * from "./accessControlClientInterfaces/PermissionsClient";
|
|
35
|
+
export * from "./accessControlClientInterfaces/RolesClient";
|
|
36
|
+
export * from "./accessControlClientInterfaces/UserMembersClient";
|
|
37
|
+
export * from "./accessControlClientInterfaces/ItwinSharesClient";
|
|
38
|
+
export * from "./accessControlClientInterfaces/GroupMemberInvitationClient";
|
|
7
39
|
//# sourceMappingURL=access-control-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-control-client.js","sourceRoot":"","sources":["../../src/access-control-client.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;
|
|
1
|
+
{"version":3,"file":"access-control-client.js","sourceRoot":"","sources":["../../src/access-control-client.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH;;;GAGG;AAEH,qBAAqB;AACrB,cAAc,uBAAuB,CAAC;AAEtC,gBAAgB;AAChB,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAEtC,4BAA4B;AAC5B,cAAc,+CAA+C,CAAC;AAC9D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6DAA6D,CAAA","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @docs-package-description\r\n * The access-control-client package provides a means of interfacing with services relating to access control for iTwins.\r\n */\r\n\r\n/**\r\n * @docs-group-description iTwinsClient\r\n * Classes for communicating with the access control service.\r\n */\r\n\r\n// Main client export\r\nexport * from \"./AccessControlClient\";\r\n\r\n// Types exports\r\nexport * from \"./types/CommonApiTypes\";\r\nexport * from \"./types/GroupMember\";\r\nexport * from \"./types/Groups\";\r\nexport * from \"./types/Invitations\";\r\nexport * from \"./types/ITwinJob\";\r\nexport * from \"./types/links\";\r\nexport * from \"./types/OwnerMember\";\r\nexport * from \"./types/Permission\";\r\nexport * from \"./types/Role\";\r\nexport * from \"./types/UserMembers\";\r\nexport * from \"./types/Members\";\r\nexport * from \"./types/ShareContract\";\r\n\r\n// Client interfaces exports\r\nexport * from \"./accessControlClientInterfaces/accessControl\";\r\nexport * from \"./accessControlClientInterfaces/GroupClient\";\r\nexport * from \"./accessControlClientInterfaces/GroupMembersClient\";\r\nexport * from \"./accessControlClientInterfaces/ITwinJobsClient\";\r\nexport * from \"./accessControlClientInterfaces/MemberInvitationsClient\";\r\nexport * from \"./accessControlClientInterfaces/OwnerMembersClient \";\r\nexport * from \"./accessControlClientInterfaces/PermissionsClient\";\r\nexport * from \"./accessControlClientInterfaces/RolesClient\";\r\nexport * from \"./accessControlClientInterfaces/UserMembersClient\";\r\nexport * from \"./accessControlClientInterfaces/ItwinSharesClient\";\r\nexport * from \"./accessControlClientInterfaces/GroupMemberInvitationClient\""]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AccessToken } from "@itwin/core-bentley";
|
|
2
|
+
import type { BentleyAPIResponse, ODataQueryParams } from "../types/CommonApiTypes";
|
|
3
|
+
import type { Group, GroupsResponseWithConditionalLinks, SingleGroupResponse } from "../types/Groups";
|
|
4
|
+
export interface IGroupsClient {
|
|
5
|
+
/** Retrieves a list of groups the for a specified iTwin */
|
|
6
|
+
getITwinGroups<T extends Pick<ODataQueryParams, "top" | "skip"> | undefined = undefined>(accessToken: AccessToken, iTwinId: string, arg?: T): Promise<BentleyAPIResponse<GroupsResponseWithConditionalLinks<T>>>;
|
|
7
|
+
/** Retrieves a group for a specified iTwin */
|
|
8
|
+
getITwinGroup(accessToken: AccessToken, iTwinId: string, groupId: string): Promise<BentleyAPIResponse<SingleGroupResponse>>;
|
|
9
|
+
/** Creates a new iTwin group */
|
|
10
|
+
createITwinGroup(accessToken: AccessToken, iTwinId: string, group: Pick<Group, "name" | "description">): Promise<BentleyAPIResponse<SingleGroupResponse>>;
|
|
11
|
+
/** Removes an existing iTwin group */
|
|
12
|
+
deleteITwinGroup(accessToken: AccessToken, iTwinId: string, groupId: string): Promise<BentleyAPIResponse<undefined>>;
|
|
13
|
+
/** Updates an existing iTwin group */
|
|
14
|
+
updateITwinGroup(accessToken: AccessToken, iTwinId: string, groupId: string, group: Partial<Pick<Group, "name" | "description"> & {
|
|
15
|
+
members: string[];
|
|
16
|
+
imsGroups: string[];
|
|
17
|
+
}>): Promise<BentleyAPIResponse<SingleGroupResponse>>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=GroupClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupClient.d.ts","sourceRoot":"","sources":["../../../src/accessControlClientInterfaces/GroupClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,KAAK,EAAE,kCAAkC,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtG,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,cAAc,CAAC,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,SAAS,EACrF,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,CAAC,GACN,OAAO,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE,8CAA8C;IAC9C,aAAa,CACX,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAEpD,gCAAgC;IAChC,gBAAgB,CACd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,GACzC,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAEpD,sCAAsC;IACtC,gBAAgB,CACd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1C,sCAAsC;IACtC,gBAAgB,CACd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,GAC/F,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;CACrD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=GroupClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupClient.js","sourceRoot":"","sources":["../../../src/accessControlClientInterfaces/GroupClient.ts"],"names":[],"mappings":"AAAA;;;gGAGgG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport type { AccessToken } from \"@itwin/core-bentley\";\nimport type { BentleyAPIResponse, ODataQueryParams } from \"../types/CommonApiTypes\";\nimport type { Group, GroupsResponseWithConditionalLinks, SingleGroupResponse } from \"../types/Groups\";\n\nexport interface IGroupsClient {\n /** Retrieves a list of groups the for a specified iTwin */\n getITwinGroups<T extends Pick<ODataQueryParams, \"top\" | \"skip\"> | undefined = undefined>(\n accessToken: AccessToken,\n iTwinId: string,\n arg?: T\n ): Promise<BentleyAPIResponse<GroupsResponseWithConditionalLinks<T>>>;\n\n /** Retrieves a group for a specified iTwin */\n getITwinGroup(\n accessToken: AccessToken,\n iTwinId: string,\n groupId: string\n ): Promise<BentleyAPIResponse<SingleGroupResponse>>;\n\n /** Creates a new iTwin group */\n createITwinGroup(\n accessToken: AccessToken,\n iTwinId: string,\n group: Pick<Group, \"name\" | \"description\">\n ): Promise<BentleyAPIResponse<SingleGroupResponse>>;\n\n /** Removes an existing iTwin group */\n deleteITwinGroup(\n accessToken: AccessToken,\n iTwinId: string,\n groupId: string\n ): Promise<BentleyAPIResponse<undefined>>;\n\n /** Updates an existing iTwin group */\n updateITwinGroup(\n accessToken: AccessToken,\n iTwinId: string,\n groupId: string,\n group: Partial<Pick<Group, \"name\" | \"description\"> & { members: string[]; imsGroups: string[] }>\n ): Promise<BentleyAPIResponse<SingleGroupResponse>>;\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AccessToken } from "@itwin/core-bentley";
|
|
2
|
+
import type { BentleyAPIResponse, ODataQueryParams } from "../types/CommonApiTypes";
|
|
3
|
+
import type { MultipleMemberInvitationResponse } from "../types/Invitations";
|
|
4
|
+
/** @beta */
|
|
5
|
+
export interface IGroupMemberInvitationClient {
|
|
6
|
+
/** Retrieves a list of iTwin group member invitations.
|
|
7
|
+
* @beta
|
|
8
|
+
*/
|
|
9
|
+
queryITwinGroupMemberInvitations(accessToken: AccessToken, iTwinId: string, groupId: string, arg?: Pick<ODataQueryParams, "top" | "skip">): Promise<BentleyAPIResponse<MultipleMemberInvitationResponse>>;
|
|
10
|
+
/** Removes an existing iTwin group member invitation.
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
13
|
+
deleteITwinGroupMemberInvitation(accessToken: AccessToken, iTwinId: string, groupId: string, invitationId: string): Promise<BentleyAPIResponse<undefined>>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GroupMemberInvitationClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupMemberInvitationClient.d.ts","sourceRoot":"","sources":["../../../src/accessControlClientInterfaces/GroupMemberInvitationClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAE7E,YAAY;AACZ,MAAM,WAAW,4BAA4B;IAC3C;;MAEE;IACF,gCAAgC,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,GAAG,MAAM,CAAC,GAC3C,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAEjE;;MAEE;IACF,gCAAgC,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;CAC3C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=GroupMemberInvitationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupMemberInvitationClient.js","sourceRoot":"","sources":["../../../src/accessControlClientInterfaces/GroupMemberInvitationClient.ts"],"names":[],"mappings":"AAAA;;;gGAGgG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport type { AccessToken } from \"@itwin/core-bentley\";\nimport type { BentleyAPIResponse, ODataQueryParams } from \"../types/CommonApiTypes\";\nimport type { MultipleMemberInvitationResponse } from \"../types/Invitations\";\n\n/** @beta */\nexport interface IGroupMemberInvitationClient {\n /** Retrieves a list of iTwin group member invitations.\n * @beta\n */\n queryITwinGroupMemberInvitations(\n accessToken: AccessToken,\n iTwinId: string,\n groupId: string,\n arg?: Pick<ODataQueryParams, \"top\" | \"skip\">\n ): Promise<BentleyAPIResponse<MultipleMemberInvitationResponse>>;\n\n /** Removes an existing iTwin group member invitation.\n * @beta\n */\n deleteITwinGroupMemberInvitation(\n accessToken: AccessToken,\n iTwinId: string,\n groupId: string,\n invitationId: string\n ): Promise<BentleyAPIResponse<undefined>>;\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AccessToken } from "@itwin/core-bentley";
|
|
2
|
+
import type { BentleyAPIResponse, ODataQueryParams } from "../types/CommonApiTypes";
|
|
3
|
+
import type { GroupMemberAssignment, MultipleGroupMembersResponse, SingleGroupMemberResponse } from "../types/GroupMember";
|
|
4
|
+
import type { Links } from "../types/links";
|
|
5
|
+
export interface IGroupMembersClient {
|
|
6
|
+
/** Retrieves a list of group members and their roles assigned to a specified iTwin. */
|
|
7
|
+
queryITwinGroupMembers(accessToken: AccessToken, iTwinId: string, arg?: Pick<ODataQueryParams, "top" | "skip">): Promise<BentleyAPIResponse<MultipleGroupMembersResponse & {
|
|
8
|
+
_links: Links;
|
|
9
|
+
}>>;
|
|
10
|
+
/** Retrieves a specific group member for a specified iTwin. */
|
|
11
|
+
getITwinGroupMember(accessToken: AccessToken, iTwinId: string, memberId: string): Promise<BentleyAPIResponse<SingleGroupMemberResponse>>;
|
|
12
|
+
/** Add new iTwin group members */
|
|
13
|
+
addITwinGroupMembers(accessToken: AccessToken, iTwinId: string, newMembers: GroupMemberAssignment): Promise<BentleyAPIResponse<MultipleGroupMembersResponse>>;
|
|
14
|
+
/** Remove the specified iTwin group member */
|
|
15
|
+
removeITwinGroupMember(accessToken: AccessToken, iTwinId: string, memberId: string): Promise<BentleyAPIResponse<undefined>>;
|
|
16
|
+
/** Update iTwin group member roles */
|
|
17
|
+
updateITwinGroupMember(accessToken: AccessToken, iTwinId: string, memberId: string, roleIds: string[]): Promise<BentleyAPIResponse<SingleGroupMemberResponse>>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=GroupMembersClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupMembersClient.d.ts","sourceRoot":"","sources":["../../../src/accessControlClientInterfaces/GroupMembersClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAC3H,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,uFAAuF;IACvF,sBAAsB,CACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,GAAG,MAAM,CAAC,GAC1C,OAAO,CAAC,kBAAkB,CAAC,4BAA4B,GACzD;QAEA,MAAM,EAAE,KAAK,CAAA;KACZ,CACA,CAAC,CAAC;IAEL,+DAA+D;IAC/D,mBAAmB,CACjB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAE1D,kCAAkC;IAClC,oBAAoB,CAClB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,qBAAqB,GAChC,OAAO,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAE7D,+CAA+C;IAC/C,sBAAsB,CACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1C,uCAAuC;IACvC,sBAAsB,CACpB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,CAAC,CAAC;CAC3D"}
|