@verdocs/js-sdk 1.0.8 → 1.0.12
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/.gitignore +4 -0
- package/.idea/.gitignore +8 -0
- package/.idea/inspectionProfiles/Project_Default.xml +12 -0
- package/.idea/js-sdk.iml +11 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.prettierrc.js +11 -0
- package/LICENSE +21 -0
- package/README.md +8 -5
- package/__mocks__/axios.ts +3 -0
- package/dist/.npmignore +5 -0
- package/{Documents → dist/Documents}/Documents.d.ts +9 -0
- package/{Documents → dist/Documents}/Documents.js +24 -7
- package/{Documents → dist/Documents}/Stars.d.ts +0 -0
- package/{Documents → dist/Documents}/Stars.js +2 -2
- package/{Documents → dist/Documents}/Templates.d.ts +0 -0
- package/{Documents → dist/Documents}/Templates.js +22 -10
- package/{Documents → dist/Documents}/Types.d.ts +0 -0
- package/{Api → dist/Documents}/Types.js +0 -0
- package/{Documents → dist/Documents}/index.d.ts +0 -0
- package/{Documents → dist/Documents}/index.js +0 -0
- package/dist/HTTP/Transport.d.ts +51 -0
- package/dist/HTTP/Transport.js +88 -0
- package/{HTTP → dist/HTTP}/Types.d.ts +0 -0
- package/{Documents → dist/HTTP}/Types.js +0 -0
- package/{HTTP → dist/HTTP}/index.d.ts +0 -0
- package/{HTTP → dist/HTTP}/index.js +0 -0
- package/{Organizations → dist/Organizations}/ApiKeys.d.ts +0 -0
- package/{Organizations → dist/Organizations}/ApiKeys.js +16 -6
- package/{Organizations → dist/Organizations}/Groups.d.ts +0 -0
- package/{Organizations → dist/Organizations}/Groups.js +22 -8
- package/{Organizations → dist/Organizations}/Invitations.d.ts +0 -0
- package/dist/Organizations/Invitations.js +36 -0
- package/{Organizations → dist/Organizations}/Members.d.ts +0 -0
- package/dist/Organizations/Members.js +26 -0
- package/{Organizations → dist/Organizations}/Organizations.d.ts +0 -0
- package/dist/Organizations/Organizations.js +31 -0
- package/{Organizations → dist/Organizations}/Types.d.ts +0 -0
- package/{HTTP → dist/Organizations}/Types.js +0 -0
- package/{Organizations → dist/Organizations}/Webhooks.d.ts +0 -0
- package/dist/Organizations/Webhooks.js +11 -0
- package/{Organizations → dist/Organizations}/index.d.ts +0 -0
- package/{Organizations → dist/Organizations}/index.js +0 -0
- package/dist/README.md +68 -0
- package/{Search → dist/Search}/Content.d.ts +0 -0
- package/{Search → dist/Search}/Content.js +22 -10
- package/{Search → dist/Search}/Types.d.ts +0 -0
- package/{Organizations → dist/Search}/Types.js +0 -0
- package/{Search → dist/Search}/index.d.ts +0 -0
- package/{Search → dist/Search}/index.js +0 -0
- package/{Signatures.d.ts → dist/Signatures.d.ts} +0 -0
- package/dist/Signatures.js +21 -0
- package/{Tags.d.ts → dist/Tags.d.ts} +0 -0
- package/dist/Tags.js +16 -0
- package/{Templates → dist/Templates}/Documents.d.ts +0 -0
- package/{Templates → dist/Templates}/Documents.js +13 -5
- package/{Templates → dist/Templates}/Fields.d.ts +0 -0
- package/dist/Templates/Fields.js +16 -0
- package/{Templates → dist/Templates}/Pages.d.ts +0 -0
- package/dist/Templates/Pages.js +21 -0
- package/{Templates → dist/Templates}/Reminders.d.ts +0 -0
- package/dist/Templates/Reminders.js +21 -0
- package/{Templates → dist/Templates}/Roles.d.ts +0 -0
- package/dist/Templates/Roles.js +36 -0
- package/{Templates → dist/Templates}/Stars.d.ts +0 -0
- package/dist/Templates/Stars.js +11 -0
- package/{Templates → dist/Templates}/Tags.d.ts +0 -0
- package/dist/Templates/Tags.js +16 -0
- package/{Templates → dist/Templates}/Templates.d.ts +0 -0
- package/{Templates → dist/Templates}/Templates.js +33 -11
- package/{Templates → dist/Templates}/Types.d.ts +0 -0
- package/{Templates → dist/Templates}/Types.js +0 -0
- package/{Templates → dist/Templates}/index.d.ts +0 -0
- package/{Templates → dist/Templates}/index.js +0 -0
- package/{Users → dist/Users}/Auth.d.ts +6 -6
- package/{Users → dist/Users}/Auth.js +27 -13
- package/{Users → dist/Users}/Billing.d.ts +0 -0
- package/{Users → dist/Users}/Billing.js +0 -0
- package/{Api → dist/Users}/Notifications.d.ts +0 -0
- package/{Api → dist/Users}/Notifications.js +8 -4
- package/{Users → dist/Users}/Profiles.d.ts +0 -0
- package/{Users → dist/Users}/Profiles.js +41 -11
- package/{Users → dist/Users}/Types.d.ts +13 -0
- package/{Search → dist/Users}/Types.js +0 -0
- package/{Users → dist/Users}/index.d.ts +0 -0
- package/{Users → dist/Users}/index.js +0 -0
- package/{Utils → dist/Utils}/DateTime.d.ts +0 -0
- package/{Utils → dist/Utils}/DateTime.js +0 -0
- package/{Utils → dist/Utils}/index.d.ts +0 -0
- package/{Utils → dist/Utils}/index.js +0 -0
- package/{Validators.d.ts → dist/Validators.d.ts} +0 -0
- package/dist/Validators.js +11 -0
- package/{Whitelabel.d.ts → dist/Whitelabel.d.ts} +0 -0
- package/dist/Whitelabel.js +11 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/dist/package.json +64 -0
- package/docs/.nojekyll +1 -0
- package/docs/README.md +70 -0
- package/docs/enums/Templates.Types.SortOptions.md +76 -0
- package/docs/enums/Templates.Types.Template.md +153 -0
- package/docs/enums/Templates.Types.TemplatePermissions.md +109 -0
- package/docs/enums/Templates.Types.TemplateSenderTypes.md +65 -0
- package/docs/interfaces/Documents.Documents-1.IActivityEntry.md +120 -0
- package/docs/interfaces/Documents.Documents-1.IDocument.md +175 -0
- package/docs/interfaces/Documents.Documents-1.IDocumentSearchOptions.md +98 -0
- package/docs/interfaces/Documents.Documents-1.IDocumentsSearchResult.md +43 -0
- package/docs/interfaces/Documents.Documents-1.IDocumentsSearchResultEntry.md +131 -0
- package/docs/interfaces/Documents.Documents-1.IDocumentsSummary.md +67 -0
- package/docs/interfaces/Documents.Documents-1.IHistory.md +76 -0
- package/docs/interfaces/Documents.Documents-1.IRecipient.md +208 -0
- package/docs/interfaces/Documents.Types.ITemplateSummaryEntry.md +186 -0
- package/docs/interfaces/Documents.Types.ITemplatesSummary.md +43 -0
- package/docs/interfaces/Organizations.Types.IApiKey.md +60 -0
- package/docs/interfaces/Organizations.Types.IApiKeyWithSecret.md +87 -0
- package/docs/interfaces/Organizations.Types.ICreateApiKeyRequest.md +32 -0
- package/docs/interfaces/Organizations.Types.IGroup.md +101 -0
- package/docs/interfaces/Organizations.Types.IGroupDetail.md +129 -0
- package/docs/interfaces/Organizations.Types.IOrganization.md +128 -0
- package/docs/interfaces/Organizations.Types.IUpdateApiKeyRequest.md +32 -0
- package/docs/interfaces/Signatures.ISignature.md +65 -0
- package/docs/interfaces/Tags.ITags.md +43 -0
- package/docs/interfaces/Templates.Types.IDocument.md +109 -0
- package/docs/interfaces/Templates.Types.IField.md +109 -0
- package/docs/interfaces/Templates.Types.IPage.md +87 -0
- package/docs/interfaces/Templates.Types.IReminder.md +109 -0
- package/docs/interfaces/Templates.Types.IRole.md +120 -0
- package/docs/interfaces/Templates.Types.ISetting.md +98 -0
- package/docs/interfaces/Templates.Types.IStar.md +32 -0
- package/docs/interfaces/Templates.Types.ITag.md +32 -0
- package/docs/interfaces/Templates.Types.ITemplate.md +219 -0
- package/docs/interfaces/Templates.Types.ITemplateSearchParams.md +197 -0
- package/docs/interfaces/Templates.Types.ITemplateSummaryEntry.md +186 -0
- package/docs/interfaces/Templates.Types.ITemplatesSearchResult.md +43 -0
- package/docs/interfaces/Templates.Types.ITemplatesSummary.md +43 -0
- package/docs/interfaces/Templates.Types.ITimePeriod.md +32 -0
- package/docs/interfaces/Users.Types.IActiveSession.md +131 -0
- package/docs/interfaces/Users.Types.IAuthenticateAppRequest.md +32 -0
- package/docs/interfaces/Users.Types.IAuthenticateResponse.md +43 -0
- package/docs/interfaces/Users.Types.IAuthenticateUserRequest.md +32 -0
- package/docs/interfaces/Users.Types.ICreateProfileRequest.md +54 -0
- package/docs/interfaces/Users.Types.IPermission.md +36 -0
- package/docs/interfaces/Users.Types.IProfile.md +173 -0
- package/docs/interfaces/Users.Types.IRole.md +36 -0
- package/docs/interfaces/Users.Types.ISwitchProfileResponse.md +54 -0
- package/docs/interfaces/Users.Types.IUpdateProfileRequest.md +43 -0
- package/docs/interfaces/Users.Types.TokenValidationRequest.md +21 -0
- package/docs/interfaces/Users.Types.TokenValidationResponse.md +36 -0
- package/docs/interfaces/Users.Types.UpdateEmailRequest.md +21 -0
- package/docs/interfaces/Users.Types.UpdateEmailResponse.md +21 -0
- package/docs/interfaces/Users.Types.UpdatePasswordRequest.md +43 -0
- package/docs/interfaces/Users.Types.UpdatePasswordResponse.md +34 -0
- package/docs/interfaces/Validators.IValidator.md +32 -0
- package/docs/modules/Documents.Documents-1.md +137 -0
- package/docs/modules/Documents.Stars.md +31 -0
- package/docs/modules/Documents.Templates.md +61 -0
- package/docs/modules/Documents.Types.md +12 -0
- package/docs/modules/Documents.md +12 -0
- package/docs/modules/HTTP.Transport.md +150 -0
- package/docs/modules/HTTP.Types.md +21 -0
- package/docs/modules/HTTP.md +10 -0
- package/docs/modules/Organizations.ApiKeys.md +169 -0
- package/docs/modules/Organizations.Groups.md +190 -0
- package/docs/modules/Organizations.Invitations.md +166 -0
- package/docs/modules/Organizations.Members.md +121 -0
- package/docs/modules/Organizations.Organizations-1.md +119 -0
- package/docs/modules/Organizations.Types.md +17 -0
- package/docs/modules/Organizations.Webhooks.md +53 -0
- package/docs/modules/Organizations.md +20 -0
- package/docs/modules/Signatures.md +90 -0
- package/docs/modules/Tags.md +75 -0
- package/docs/modules/Templates.Documents.md +129 -0
- package/docs/modules/Templates.Fields.md +77 -0
- package/docs/modules/Templates.Pages.md +98 -0
- package/docs/modules/Templates.Reminders.md +98 -0
- package/docs/modules/Templates.Roles.md +163 -0
- package/docs/modules/Templates.Stars.md +52 -0
- package/docs/modules/Templates.Tags.md +75 -0
- package/docs/modules/Templates.Templates-1.md +139 -0
- package/docs/modules/Templates.Types.md +31 -0
- package/docs/modules/Templates.md +17 -0
- package/docs/modules/Users.Auth.md +196 -0
- package/docs/modules/Users.Billing.md +5 -0
- package/docs/modules/Users.Notifications.md +25 -0
- package/docs/modules/Users.Profiles.md +286 -0
- package/docs/modules/Users.Types.md +62 -0
- package/docs/modules/Users.md +13 -0
- package/docs/modules/Utils.DateTime.md +31 -0
- package/docs/modules/Utils.md +9 -0
- package/docs/modules/Validators.md +48 -0
- package/docs/modules/Whitelabel.md +38 -0
- package/docs/modules.md +27 -0
- package/docs-html/.nojekyll +1 -0
- package/docs-html/assets/highlight.css +85 -0
- package/docs-html/assets/icons.css +1043 -0
- package/docs-html/assets/icons.png +0 -0
- package/docs-html/assets/icons@2x.png +0 -0
- package/docs-html/assets/main.js +52 -0
- package/docs-html/assets/search.js +1 -0
- package/docs-html/assets/style.css +1384 -0
- package/docs-html/assets/widgets.png +0 -0
- package/docs-html/assets/widgets@2x.png +0 -0
- package/docs-html/enums/Templates.Types.SortOptions.html +1 -0
- package/docs-html/enums/Templates.Types.Template.html +1 -0
- package/docs-html/enums/Templates.Types.TemplatePermissions.html +1 -0
- package/docs-html/enums/Templates.Types.TemplateSenderTypes.html +1 -0
- package/docs-html/index.html +64 -0
- package/docs-html/interfaces/Documents.Documents-1.IActivityEntry.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IDocument.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IDocumentSearchOptions.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IDocumentsSearchResult.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IDocumentsSearchResultEntry.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IDocumentsSummary.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IHistory.html +1 -0
- package/docs-html/interfaces/Documents.Documents-1.IRecipient.html +1 -0
- package/docs-html/interfaces/Documents.Types.ITemplateSummaryEntry.html +1 -0
- package/docs-html/interfaces/Documents.Types.ITemplatesSummary.html +1 -0
- package/docs-html/interfaces/Organizations.Types.IApiKey.html +1 -0
- package/docs-html/interfaces/Organizations.Types.IApiKeyWithSecret.html +1 -0
- package/docs-html/interfaces/Organizations.Types.ICreateApiKeyRequest.html +1 -0
- package/docs-html/interfaces/Organizations.Types.IGroup.html +9 -0
- package/docs-html/interfaces/Organizations.Types.IGroupDetail.html +9 -0
- package/docs-html/interfaces/Organizations.Types.IOrganization.html +9 -0
- package/docs-html/interfaces/Organizations.Types.IUpdateApiKeyRequest.html +1 -0
- package/docs-html/interfaces/Signatures.ISignature.html +1 -0
- package/docs-html/interfaces/Tags.ITags.html +1 -0
- package/docs-html/interfaces/Templates.Types.IDocument.html +1 -0
- package/docs-html/interfaces/Templates.Types.IField.html +1 -0
- package/docs-html/interfaces/Templates.Types.IPage.html +1 -0
- package/docs-html/interfaces/Templates.Types.IReminder.html +1 -0
- package/docs-html/interfaces/Templates.Types.IRole.html +1 -0
- package/docs-html/interfaces/Templates.Types.ISetting.html +1 -0
- package/docs-html/interfaces/Templates.Types.IStar.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITag.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITemplate.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITemplateSearchParams.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITemplateSummaryEntry.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITemplatesSearchResult.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITemplatesSummary.html +1 -0
- package/docs-html/interfaces/Templates.Types.ITimePeriod.html +1 -0
- package/docs-html/interfaces/Users.Types.IActiveSession.html +1 -0
- package/docs-html/interfaces/Users.Types.IAuthenticateAppRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.IAuthenticateResponse.html +1 -0
- package/docs-html/interfaces/Users.Types.IAuthenticateUserRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.ICreateProfileRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.IPermission.html +5 -0
- package/docs-html/interfaces/Users.Types.IProfile.html +21 -0
- package/docs-html/interfaces/Users.Types.IRole.html +5 -0
- package/docs-html/interfaces/Users.Types.ISwitchProfileResponse.html +1 -0
- package/docs-html/interfaces/Users.Types.IUpdateProfileRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.TokenValidationRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.TokenValidationResponse.html +5 -0
- package/docs-html/interfaces/Users.Types.UpdateEmailRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.UpdateEmailResponse.html +1 -0
- package/docs-html/interfaces/Users.Types.UpdatePasswordRequest.html +1 -0
- package/docs-html/interfaces/Users.Types.UpdatePasswordResponse.html +3 -0
- package/docs-html/interfaces/Validators.IValidator.html +1 -0
- package/docs-html/modules/Documents.Documents-1.html +9 -0
- package/docs-html/modules/Documents.Stars.html +1 -0
- package/docs-html/modules/Documents.Templates.html +1 -0
- package/docs-html/modules/Documents.Types.html +1 -0
- package/docs-html/modules/Documents.html +1 -0
- package/docs-html/modules/HTTP.Transport.html +22 -0
- package/docs-html/modules/HTTP.Types.html +1 -0
- package/docs-html/modules/HTTP.html +1 -0
- package/docs-html/modules/Organizations.ApiKeys.html +29 -0
- package/docs-html/modules/Organizations.Groups.html +15 -0
- package/docs-html/modules/Organizations.Invitations.html +1 -0
- package/docs-html/modules/Organizations.Members.html +1 -0
- package/docs-html/modules/Organizations.Organizations-1.html +1 -0
- package/docs-html/modules/Organizations.Types.html +1 -0
- package/docs-html/modules/Organizations.Webhooks.html +1 -0
- package/docs-html/modules/Organizations.html +6 -0
- package/docs-html/modules/Signatures.html +1 -0
- package/docs-html/modules/Tags.html +1 -0
- package/docs-html/modules/Templates.Documents.html +17 -0
- package/docs-html/modules/Templates.Fields.html +1 -0
- package/docs-html/modules/Templates.Pages.html +1 -0
- package/docs-html/modules/Templates.Reminders.html +1 -0
- package/docs-html/modules/Templates.Roles.html +1 -0
- package/docs-html/modules/Templates.Stars.html +1 -0
- package/docs-html/modules/Templates.Tags.html +1 -0
- package/docs-html/modules/Templates.Templates-1.html +5 -0
- package/docs-html/modules/Templates.Types.html +1 -0
- package/docs-html/modules/Templates.html +1 -0
- package/docs-html/modules/Users.Auth.html +31 -0
- package/docs-html/modules/Users.Billing.html +1 -0
- package/docs-html/modules/Users.Notifications.html +1 -0
- package/docs-html/modules/Users.Profiles.html +44 -0
- package/docs-html/modules/Users.Types.html +1 -0
- package/docs-html/modules/Users.html +1 -0
- package/docs-html/modules/Utils.DateTime.html +1 -0
- package/docs-html/modules/Utils.html +1 -0
- package/docs-html/modules/Validators.html +1 -0
- package/docs-html/modules/Whitelabel.html +1 -0
- package/docs-html/modules.html +11 -0
- package/jestconfig.json +11 -0
- package/package-lock.json +3421 -0
- package/package.json +6 -3
- package/src/Documents/Documents.ts +166 -0
- package/src/Documents/Stars.ts +5 -0
- package/src/Documents/Templates.ts +17 -0
- package/src/Documents/Types.ts +24 -0
- package/src/Documents/index.ts +4 -0
- package/src/HTTP/Transport.ts +95 -0
- package/src/HTTP/Types.ts +1 -0
- package/src/HTTP/index.ts +2 -0
- package/src/Organizations/ApiKeys.ts +85 -0
- package/src/Organizations/Groups.ts +65 -0
- package/src/Organizations/Invitations.ts +36 -0
- package/src/Organizations/Members.ts +26 -0
- package/src/Organizations/Organizations.ts +32 -0
- package/src/Organizations/Types.ts +63 -0
- package/src/Organizations/Webhooks.ts +11 -0
- package/src/Organizations/index.ts +16 -0
- package/src/Search/Content.ts +45 -0
- package/src/Search/Types.ts +83 -0
- package/src/Search/index.ts +2 -0
- package/src/Signatures.ts +29 -0
- package/src/Tags.ts +22 -0
- package/src/Templates/Documents.ts +58 -0
- package/src/Templates/Fields.ts +17 -0
- package/src/Templates/Pages.ts +22 -0
- package/src/Templates/Reminders.ts +22 -0
- package/src/Templates/Roles.ts +37 -0
- package/src/Templates/Stars.ts +12 -0
- package/src/Templates/Tags.ts +17 -0
- package/src/Templates/Templates.ts +42 -0
- package/src/Templates/Types.ts +201 -0
- package/src/Templates/index.ts +9 -0
- package/src/Users/Auth.ts +114 -0
- package/src/Users/Billing.ts +3 -0
- package/src/Users/Notifications.ts +6 -0
- package/src/Users/Profiles.ts +153 -0
- package/src/Users/Types.ts +156 -0
- package/src/Users/index.ts +5 -0
- package/src/Utils/DateTime.ts +43 -0
- package/src/Utils/index.ts +1 -0
- package/src/Validators.ts +16 -0
- package/src/Whitelabel.ts +11 -0
- package/src/__tests__/Organizations/Apikeys.spec.ts +84 -0
- package/src/__tests__/Users/Auth.spec.ts +89 -0
- package/src/__tests__/Users/Profiles.spec.ts +162 -0
- package/src/index.ts +23 -0
- package/tsconfig.json +20 -0
- package/tslint.json +3 -0
- package/Api/Auth.d.ts +0 -71
- package/Api/Auth.js +0 -24
- package/Api/Documents.d.ts +0 -124
- package/Api/Documents.js +0 -47
- package/Api/Endpoint.d.ts +0 -2
- package/Api/Endpoint.js +0 -9
- package/Api/Templates.d.ts +0 -33
- package/Api/Templates.js +0 -55
- package/Api/Types.d.ts +0 -182
- package/Api/index.d.ts +0 -2
- package/Api/index.js +0 -2
- package/AuthManager.d.ts +0 -14
- package/AuthManager.js +0 -53
- package/HTTP/Endpoint.d.ts +0 -4
- package/HTTP/Endpoint.js +0 -12
- package/HTTP/Transport.d.ts +0 -3
- package/HTTP/Transport.js +0 -12
- package/Organizations/Invitations.js +0 -22
- package/Organizations/Members.js +0 -16
- package/Organizations/Organizations.js +0 -13
- package/Organizations/Webhooks.js +0 -7
- package/Signatures.js +0 -7
- package/Tags.js +0 -4
- package/Templates/Fields.js +0 -10
- package/Templates/Pages.js +0 -13
- package/Templates/Reminders.js +0 -13
- package/Templates/Roles.js +0 -22
- package/Templates/Stars.js +0 -7
- package/Templates/Tags.js +0 -10
- package/Users/Notifications.d.ts +0 -1
- package/Users/Notifications.js +0 -40
- package/Users/Types.js +0 -1
- package/Validators.js +0 -5
- package/Whitelabel.js +0 -3
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
[@verdocs/js-sdk - v1.0.12](../README.md) / [Exports](../modules.md) / [Organizations](Organizations.md) / ApiKeys
|
|
2
|
+
|
|
3
|
+
# Namespace: ApiKeys
|
|
4
|
+
|
|
5
|
+
[Organizations](Organizations.md).ApiKeys
|
|
6
|
+
|
|
7
|
+
API keys are used to authenticate server-to-server calls. (API keys should **never** be used for client-to-server operations!)
|
|
8
|
+
To generate a key, either use the Verdocs admin interface and make note of the client_id and client_secret generated, or call
|
|
9
|
+
createKey as shown below. Then call [Users.Auth.authenticateApp](Users.Auth.md#authenticateapp) to obtain an access token using the provided ID and
|
|
10
|
+
secret. Note that server-to-server authentication requests return shorter-lived tokens, so it is important to check the `exp`
|
|
11
|
+
field and re-authenticate as needed for subsequent calls.
|
|
12
|
+
|
|
13
|
+
API keys may be updated or rotated at any time. Regular rotation is recommended. Rotation will not expire or invalidate
|
|
14
|
+
existing server-to-server sessions, so it may be done at any time without disrupting your application.
|
|
15
|
+
|
|
16
|
+
## Table of contents
|
|
17
|
+
|
|
18
|
+
### Functions
|
|
19
|
+
|
|
20
|
+
- [createKey](Organizations.ApiKeys.md#createkey)
|
|
21
|
+
- [deleteKey](Organizations.ApiKeys.md#deletekey)
|
|
22
|
+
- [getKeys](Organizations.ApiKeys.md#getkeys)
|
|
23
|
+
- [rotateKey](Organizations.ApiKeys.md#rotatekey)
|
|
24
|
+
- [updateKey](Organizations.ApiKeys.md#updatekey)
|
|
25
|
+
|
|
26
|
+
## Functions
|
|
27
|
+
|
|
28
|
+
### createKey
|
|
29
|
+
|
|
30
|
+
▸ `Const` **createKey**(`organizationId`, `params`): `Promise`<[`IApiKeyWithSecret`](../interfaces/Organizations.Types.IApiKeyWithSecret.md)\>
|
|
31
|
+
|
|
32
|
+
Create an API key.
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import {ApiKeys} from '@verdocs/js-sdk/Organizations';
|
|
36
|
+
|
|
37
|
+
await ApiKeys.createKey(ORGID, {name: NEWNAME});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type |
|
|
43
|
+
| :------ | :------ |
|
|
44
|
+
| `organizationId` | `string` |
|
|
45
|
+
| `params` | [`ICreateApiKeyRequest`](../interfaces/Organizations.Types.ICreateApiKeyRequest.md) |
|
|
46
|
+
|
|
47
|
+
#### Returns
|
|
48
|
+
|
|
49
|
+
`Promise`<[`IApiKeyWithSecret`](../interfaces/Organizations.Types.IApiKeyWithSecret.md)\>
|
|
50
|
+
|
|
51
|
+
#### Defined in
|
|
52
|
+
|
|
53
|
+
[Organizations/ApiKeys.ts:40](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/ApiKeys.ts#L40)
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### deleteKey
|
|
58
|
+
|
|
59
|
+
▸ `Const` **deleteKey**(`organizationId`, `clientId`): `Promise`<`any`\>
|
|
60
|
+
|
|
61
|
+
Delete an API key.
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import {ApiKeys} from '@verdocs/js-sdk/Organizations';
|
|
65
|
+
|
|
66
|
+
await ApiKeys.deleteKey(ORGID, CLIENTID);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type |
|
|
72
|
+
| :------ | :------ |
|
|
73
|
+
| `organizationId` | `string` |
|
|
74
|
+
| `clientId` | `string` |
|
|
75
|
+
|
|
76
|
+
#### Returns
|
|
77
|
+
|
|
78
|
+
`Promise`<`any`\>
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[Organizations/ApiKeys.ts:82](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/ApiKeys.ts#L82)
|
|
83
|
+
|
|
84
|
+
___
|
|
85
|
+
|
|
86
|
+
### getKeys
|
|
87
|
+
|
|
88
|
+
▸ `Const` **getKeys**(`organizationId`): `Promise`<[`IApiKey`](../interfaces/Organizations.Types.IApiKey.md)[]\>
|
|
89
|
+
|
|
90
|
+
Get a list of keys for a given organization. The caller must have admin access to the organization.
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import {ApiKeys} from '@verdocs/js-sdk/Organizations';
|
|
94
|
+
|
|
95
|
+
const keys = await ApiKeys.getKeys(ORGID);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### Parameters
|
|
99
|
+
|
|
100
|
+
| Name | Type |
|
|
101
|
+
| :------ | :------ |
|
|
102
|
+
| `organizationId` | `string` |
|
|
103
|
+
|
|
104
|
+
#### Returns
|
|
105
|
+
|
|
106
|
+
`Promise`<[`IApiKey`](../interfaces/Organizations.Types.IApiKey.md)[]\>
|
|
107
|
+
|
|
108
|
+
#### Defined in
|
|
109
|
+
|
|
110
|
+
[Organizations/ApiKeys.ts:26](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/ApiKeys.ts#L26)
|
|
111
|
+
|
|
112
|
+
___
|
|
113
|
+
|
|
114
|
+
### rotateKey
|
|
115
|
+
|
|
116
|
+
▸ `Const` **rotateKey**(`organizationId`, `clientId`): `Promise`<[`IApiKeyWithSecret`](../interfaces/Organizations.Types.IApiKeyWithSecret.md)\>
|
|
117
|
+
|
|
118
|
+
Rotate the secret for an API key. The caller must have admin access to the organization.
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import {ApiKeys} from '@verdocs/js-sdk/Organizations';
|
|
122
|
+
|
|
123
|
+
const {client_secret: newSecret} = await ApiKeys.rotateKey(ORGID, CLIENTID);
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Parameters
|
|
127
|
+
|
|
128
|
+
| Name | Type |
|
|
129
|
+
| :------ | :------ |
|
|
130
|
+
| `organizationId` | `string` |
|
|
131
|
+
| `clientId` | `string` |
|
|
132
|
+
|
|
133
|
+
#### Returns
|
|
134
|
+
|
|
135
|
+
`Promise`<[`IApiKeyWithSecret`](../interfaces/Organizations.Types.IApiKeyWithSecret.md)\>
|
|
136
|
+
|
|
137
|
+
#### Defined in
|
|
138
|
+
|
|
139
|
+
[Organizations/ApiKeys.ts:54](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/ApiKeys.ts#L54)
|
|
140
|
+
|
|
141
|
+
___
|
|
142
|
+
|
|
143
|
+
### updateKey
|
|
144
|
+
|
|
145
|
+
▸ `Const` **updateKey**(`organizationId`, `clientId`, `params`): `Promise`<[`IApiKey`](../interfaces/Organizations.Types.IApiKey.md)\>
|
|
146
|
+
|
|
147
|
+
Update an API key to change its assigned Profile ID or Name.
|
|
148
|
+
|
|
149
|
+
```typescript
|
|
150
|
+
import {ApiKeys} from '@verdocs/js-sdk/Organizations';
|
|
151
|
+
|
|
152
|
+
await ApiKeys.updateKey(ORGID, CLIENTID, {name: NEWNAME});
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### Parameters
|
|
156
|
+
|
|
157
|
+
| Name | Type |
|
|
158
|
+
| :------ | :------ |
|
|
159
|
+
| `organizationId` | `string` |
|
|
160
|
+
| `clientId` | `string` |
|
|
161
|
+
| `params` | [`IUpdateApiKeyRequest`](../interfaces/Organizations.Types.IUpdateApiKeyRequest.md) |
|
|
162
|
+
|
|
163
|
+
#### Returns
|
|
164
|
+
|
|
165
|
+
`Promise`<[`IApiKey`](../interfaces/Organizations.Types.IApiKey.md)\>
|
|
166
|
+
|
|
167
|
+
#### Defined in
|
|
168
|
+
|
|
169
|
+
[Organizations/ApiKeys.ts:68](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/ApiKeys.ts#L68)
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
[@verdocs/js-sdk - v1.0.12](../README.md) / [Exports](../modules.md) / [Organizations](Organizations.md) / Groups
|
|
2
|
+
|
|
3
|
+
# Namespace: Groups
|
|
4
|
+
|
|
5
|
+
[Organizations](Organizations.md).Groups
|
|
6
|
+
|
|
7
|
+
Organizations may contain "Groups" of user profiles, called Members. Groups may have permissions assigned that
|
|
8
|
+
apply to all Members, making it easy to configure role-based access control (RBAC) within an Organization. Note
|
|
9
|
+
that permissions are **additive**. A user may be a member of more than one group, and may also have permissions
|
|
10
|
+
assigned directly. In that case, the user will have the combined set of all permissions inherited from all
|
|
11
|
+
sources.
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Functions
|
|
16
|
+
|
|
17
|
+
- [addMembers](Organizations.Groups.md#addmembers)
|
|
18
|
+
- [addPermission](Organizations.Groups.md#addpermission)
|
|
19
|
+
- [deleteMembers](Organizations.Groups.md#deletemembers)
|
|
20
|
+
- [deletePermission](Organizations.Groups.md#deletepermission)
|
|
21
|
+
- [getGroup](Organizations.Groups.md#getgroup)
|
|
22
|
+
- [getGroups](Organizations.Groups.md#getgroups)
|
|
23
|
+
- [getMembers](Organizations.Groups.md#getmembers)
|
|
24
|
+
|
|
25
|
+
## Functions
|
|
26
|
+
|
|
27
|
+
### addMembers
|
|
28
|
+
|
|
29
|
+
▸ `Const` **addMembers**(`organizationId`, `groupId`, `params`): `Promise`<`any`\>
|
|
30
|
+
|
|
31
|
+
#### Parameters
|
|
32
|
+
|
|
33
|
+
| Name | Type |
|
|
34
|
+
| :------ | :------ |
|
|
35
|
+
| `organizationId` | `string` |
|
|
36
|
+
| `groupId` | `string` |
|
|
37
|
+
| `params` | `any` |
|
|
38
|
+
|
|
39
|
+
#### Returns
|
|
40
|
+
|
|
41
|
+
`Promise`<`any`\>
|
|
42
|
+
|
|
43
|
+
#### Defined in
|
|
44
|
+
|
|
45
|
+
[Organizations/Groups.ts:47](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L47)
|
|
46
|
+
|
|
47
|
+
___
|
|
48
|
+
|
|
49
|
+
### addPermission
|
|
50
|
+
|
|
51
|
+
▸ `Const` **addPermission**(`organizationId`, `groupId`, `permissionId`, `params`): `Promise`<`any`\>
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
| Name | Type |
|
|
56
|
+
| :------ | :------ |
|
|
57
|
+
| `organizationId` | `string` |
|
|
58
|
+
| `groupId` | `string` |
|
|
59
|
+
| `permissionId` | `string` |
|
|
60
|
+
| `params` | `any` |
|
|
61
|
+
|
|
62
|
+
#### Returns
|
|
63
|
+
|
|
64
|
+
`Promise`<`any`\>
|
|
65
|
+
|
|
66
|
+
#### Defined in
|
|
67
|
+
|
|
68
|
+
[Organizations/Groups.ts:57](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L57)
|
|
69
|
+
|
|
70
|
+
___
|
|
71
|
+
|
|
72
|
+
### deleteMembers
|
|
73
|
+
|
|
74
|
+
▸ `Const` **deleteMembers**(`organizationId`, `groupId`, `params`): `Promise`<`any`\>
|
|
75
|
+
|
|
76
|
+
#### Parameters
|
|
77
|
+
|
|
78
|
+
| Name | Type |
|
|
79
|
+
| :------ | :------ |
|
|
80
|
+
| `organizationId` | `string` |
|
|
81
|
+
| `groupId` | `string` |
|
|
82
|
+
| `params` | `any` |
|
|
83
|
+
|
|
84
|
+
#### Returns
|
|
85
|
+
|
|
86
|
+
`Promise`<`any`\>
|
|
87
|
+
|
|
88
|
+
#### Defined in
|
|
89
|
+
|
|
90
|
+
[Organizations/Groups.ts:52](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L52)
|
|
91
|
+
|
|
92
|
+
___
|
|
93
|
+
|
|
94
|
+
### deletePermission
|
|
95
|
+
|
|
96
|
+
▸ `Const` **deletePermission**(`organizationId`, `groupId`, `permissionId`): `Promise`<`any`\>
|
|
97
|
+
|
|
98
|
+
#### Parameters
|
|
99
|
+
|
|
100
|
+
| Name | Type |
|
|
101
|
+
| :------ | :------ |
|
|
102
|
+
| `organizationId` | `string` |
|
|
103
|
+
| `groupId` | `string` |
|
|
104
|
+
| `permissionId` | `string` |
|
|
105
|
+
|
|
106
|
+
#### Returns
|
|
107
|
+
|
|
108
|
+
`Promise`<`any`\>
|
|
109
|
+
|
|
110
|
+
#### Defined in
|
|
111
|
+
|
|
112
|
+
[Organizations/Groups.ts:62](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L62)
|
|
113
|
+
|
|
114
|
+
___
|
|
115
|
+
|
|
116
|
+
### getGroup
|
|
117
|
+
|
|
118
|
+
▸ `Const` **getGroup**(`organizationId`, `groupId`): `Promise`<[`IGroupDetail`](../interfaces/Organizations.Types.IGroupDetail.md)\>
|
|
119
|
+
|
|
120
|
+
Get the details for a group.
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {Groups} from '@verdocs/js-sdk/Organizations';
|
|
124
|
+
|
|
125
|
+
const groups = await Groups.getGroups(ORGID);
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Parameters
|
|
129
|
+
|
|
130
|
+
| Name | Type |
|
|
131
|
+
| :------ | :------ |
|
|
132
|
+
| `organizationId` | `string` |
|
|
133
|
+
| `groupId` | `string` |
|
|
134
|
+
|
|
135
|
+
#### Returns
|
|
136
|
+
|
|
137
|
+
`Promise`<[`IGroupDetail`](../interfaces/Organizations.Types.IGroupDetail.md)\>
|
|
138
|
+
|
|
139
|
+
#### Defined in
|
|
140
|
+
|
|
141
|
+
[Organizations/Groups.ts:37](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L37)
|
|
142
|
+
|
|
143
|
+
___
|
|
144
|
+
|
|
145
|
+
### getGroups
|
|
146
|
+
|
|
147
|
+
▸ `Const` **getGroups**(`organizationId`): `Promise`<[`IGroup`](../interfaces/Organizations.Types.IGroup.md)[]\>
|
|
148
|
+
|
|
149
|
+
Get a list of groups for a given organization. The caller must have admin access to the organization.
|
|
150
|
+
|
|
151
|
+
```typescript
|
|
152
|
+
import {Groups} from '@verdocs/js-sdk/Organizations';
|
|
153
|
+
|
|
154
|
+
const groups = await Groups.getGroups(ORGID);
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
#### Parameters
|
|
158
|
+
|
|
159
|
+
| Name | Type |
|
|
160
|
+
| :------ | :------ |
|
|
161
|
+
| `organizationId` | `string` |
|
|
162
|
+
|
|
163
|
+
#### Returns
|
|
164
|
+
|
|
165
|
+
`Promise`<[`IGroup`](../interfaces/Organizations.Types.IGroup.md)[]\>
|
|
166
|
+
|
|
167
|
+
#### Defined in
|
|
168
|
+
|
|
169
|
+
[Organizations/Groups.ts:23](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L23)
|
|
170
|
+
|
|
171
|
+
___
|
|
172
|
+
|
|
173
|
+
### getMembers
|
|
174
|
+
|
|
175
|
+
▸ `Const` **getMembers**(`organizationId`, `groupId`): `Promise`<`any`\>
|
|
176
|
+
|
|
177
|
+
#### Parameters
|
|
178
|
+
|
|
179
|
+
| Name | Type |
|
|
180
|
+
| :------ | :------ |
|
|
181
|
+
| `organizationId` | `string` |
|
|
182
|
+
| `groupId` | `string` |
|
|
183
|
+
|
|
184
|
+
#### Returns
|
|
185
|
+
|
|
186
|
+
`Promise`<`any`\>
|
|
187
|
+
|
|
188
|
+
#### Defined in
|
|
189
|
+
|
|
190
|
+
[Organizations/Groups.ts:42](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Groups.ts#L42)
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
[@verdocs/js-sdk - v1.0.12](../README.md) / [Exports](../modules.md) / [Organizations](Organizations.md) / Invitations
|
|
2
|
+
|
|
3
|
+
# Namespace: Invitations
|
|
4
|
+
|
|
5
|
+
[Organizations](Organizations.md).Invitations
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Functions
|
|
10
|
+
|
|
11
|
+
- [claimInvitation](Organizations.Invitations.md#claiminvitation)
|
|
12
|
+
- [claimNewUser](Organizations.Invitations.md#claimnewuser)
|
|
13
|
+
- [createInvitation](Organizations.Invitations.md#createinvitation)
|
|
14
|
+
- [deleteInvitation](Organizations.Invitations.md#deleteinvitation)
|
|
15
|
+
- [getInvitations](Organizations.Invitations.md#getinvitations)
|
|
16
|
+
- [resendInvitation](Organizations.Invitations.md#resendinvitation)
|
|
17
|
+
- [updateInvitation](Organizations.Invitations.md#updateinvitation)
|
|
18
|
+
|
|
19
|
+
## Functions
|
|
20
|
+
|
|
21
|
+
### claimInvitation
|
|
22
|
+
|
|
23
|
+
▸ `Const` **claimInvitation**(`organizationId`, `email`, `params`): `Promise`<`any`\>
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
| Name | Type |
|
|
28
|
+
| :------ | :------ |
|
|
29
|
+
| `organizationId` | `string` |
|
|
30
|
+
| `email` | `string` |
|
|
31
|
+
| `params` | `any` |
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`Promise`<`any`\>
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[Organizations/Invitations.ts:28](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L28)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### claimNewUser
|
|
44
|
+
|
|
45
|
+
▸ `Const` **claimNewUser**(`organizationId`, `email`, `token`): `Promise`<`any`\>
|
|
46
|
+
|
|
47
|
+
#### Parameters
|
|
48
|
+
|
|
49
|
+
| Name | Type |
|
|
50
|
+
| :------ | :------ |
|
|
51
|
+
| `organizationId` | `string` |
|
|
52
|
+
| `email` | `string` |
|
|
53
|
+
| `token` | `string` |
|
|
54
|
+
|
|
55
|
+
#### Returns
|
|
56
|
+
|
|
57
|
+
`Promise`<`any`\>
|
|
58
|
+
|
|
59
|
+
#### Defined in
|
|
60
|
+
|
|
61
|
+
[Organizations/Invitations.ts:33](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L33)
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### createInvitation
|
|
66
|
+
|
|
67
|
+
▸ `Const` **createInvitation**(`organizationId`, `params`): `Promise`<`any`\>
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type |
|
|
72
|
+
| :------ | :------ |
|
|
73
|
+
| `organizationId` | `string` |
|
|
74
|
+
| `params` | `any` |
|
|
75
|
+
|
|
76
|
+
#### Returns
|
|
77
|
+
|
|
78
|
+
`Promise`<`any`\>
|
|
79
|
+
|
|
80
|
+
#### Defined in
|
|
81
|
+
|
|
82
|
+
[Organizations/Invitations.ts:8](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L8)
|
|
83
|
+
|
|
84
|
+
___
|
|
85
|
+
|
|
86
|
+
### deleteInvitation
|
|
87
|
+
|
|
88
|
+
▸ `Const` **deleteInvitation**(`organizationId`, `email`): `Promise`<`any`\>
|
|
89
|
+
|
|
90
|
+
#### Parameters
|
|
91
|
+
|
|
92
|
+
| Name | Type |
|
|
93
|
+
| :------ | :------ |
|
|
94
|
+
| `organizationId` | `string` |
|
|
95
|
+
| `email` | `string` |
|
|
96
|
+
|
|
97
|
+
#### Returns
|
|
98
|
+
|
|
99
|
+
`Promise`<`any`\>
|
|
100
|
+
|
|
101
|
+
#### Defined in
|
|
102
|
+
|
|
103
|
+
[Organizations/Invitations.ts:13](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L13)
|
|
104
|
+
|
|
105
|
+
___
|
|
106
|
+
|
|
107
|
+
### getInvitations
|
|
108
|
+
|
|
109
|
+
▸ `Const` **getInvitations**(`organizationId`): `Promise`<`any`\>
|
|
110
|
+
|
|
111
|
+
#### Parameters
|
|
112
|
+
|
|
113
|
+
| Name | Type |
|
|
114
|
+
| :------ | :------ |
|
|
115
|
+
| `organizationId` | `string` |
|
|
116
|
+
|
|
117
|
+
#### Returns
|
|
118
|
+
|
|
119
|
+
`Promise`<`any`\>
|
|
120
|
+
|
|
121
|
+
#### Defined in
|
|
122
|
+
|
|
123
|
+
[Organizations/Invitations.ts:3](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L3)
|
|
124
|
+
|
|
125
|
+
___
|
|
126
|
+
|
|
127
|
+
### resendInvitation
|
|
128
|
+
|
|
129
|
+
▸ `Const` **resendInvitation**(`organizationId`, `email`): `Promise`<`any`\>
|
|
130
|
+
|
|
131
|
+
#### Parameters
|
|
132
|
+
|
|
133
|
+
| Name | Type |
|
|
134
|
+
| :------ | :------ |
|
|
135
|
+
| `organizationId` | `string` |
|
|
136
|
+
| `email` | `string` |
|
|
137
|
+
|
|
138
|
+
#### Returns
|
|
139
|
+
|
|
140
|
+
`Promise`<`any`\>
|
|
141
|
+
|
|
142
|
+
#### Defined in
|
|
143
|
+
|
|
144
|
+
[Organizations/Invitations.ts:23](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L23)
|
|
145
|
+
|
|
146
|
+
___
|
|
147
|
+
|
|
148
|
+
### updateInvitation
|
|
149
|
+
|
|
150
|
+
▸ `Const` **updateInvitation**(`organizationId`, `email`, `params`): `Promise`<`any`\>
|
|
151
|
+
|
|
152
|
+
#### Parameters
|
|
153
|
+
|
|
154
|
+
| Name | Type |
|
|
155
|
+
| :------ | :------ |
|
|
156
|
+
| `organizationId` | `string` |
|
|
157
|
+
| `email` | `string` |
|
|
158
|
+
| `params` | `any` |
|
|
159
|
+
|
|
160
|
+
#### Returns
|
|
161
|
+
|
|
162
|
+
`Promise`<`any`\>
|
|
163
|
+
|
|
164
|
+
#### Defined in
|
|
165
|
+
|
|
166
|
+
[Organizations/Invitations.ts:18](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Invitations.ts#L18)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
[@verdocs/js-sdk - v1.0.12](../README.md) / [Exports](../modules.md) / [Organizations](Organizations.md) / Members
|
|
2
|
+
|
|
3
|
+
# Namespace: Members
|
|
4
|
+
|
|
5
|
+
[Organizations](Organizations.md).Members
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Functions
|
|
10
|
+
|
|
11
|
+
- [addMemberRole](Organizations.Members.md#addmemberrole)
|
|
12
|
+
- [deleteMember](Organizations.Members.md#deletemember)
|
|
13
|
+
- [deleteMemberRole](Organizations.Members.md#deletememberrole)
|
|
14
|
+
- [getMemberPlans](Organizations.Members.md#getmemberplans)
|
|
15
|
+
- [getMembers](Organizations.Members.md#getmembers)
|
|
16
|
+
|
|
17
|
+
## Functions
|
|
18
|
+
|
|
19
|
+
### addMemberRole
|
|
20
|
+
|
|
21
|
+
▸ `Const` **addMemberRole**(`organizationId`, `profileId`, `roleId`): `Promise`<`any`\>
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
| Name | Type |
|
|
26
|
+
| :------ | :------ |
|
|
27
|
+
| `organizationId` | `string` |
|
|
28
|
+
| `profileId` | `string` |
|
|
29
|
+
| `roleId` | `string` |
|
|
30
|
+
|
|
31
|
+
#### Returns
|
|
32
|
+
|
|
33
|
+
`Promise`<`any`\>
|
|
34
|
+
|
|
35
|
+
#### Defined in
|
|
36
|
+
|
|
37
|
+
[Organizations/Members.ts:13](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Members.ts#L13)
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### deleteMember
|
|
42
|
+
|
|
43
|
+
▸ `Const` **deleteMember**(`organizationId`, `profileId`): `Promise`<`any`\>
|
|
44
|
+
|
|
45
|
+
#### Parameters
|
|
46
|
+
|
|
47
|
+
| Name | Type |
|
|
48
|
+
| :------ | :------ |
|
|
49
|
+
| `organizationId` | `string` |
|
|
50
|
+
| `profileId` | `string` |
|
|
51
|
+
|
|
52
|
+
#### Returns
|
|
53
|
+
|
|
54
|
+
`Promise`<`any`\>
|
|
55
|
+
|
|
56
|
+
#### Defined in
|
|
57
|
+
|
|
58
|
+
[Organizations/Members.ts:8](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Members.ts#L8)
|
|
59
|
+
|
|
60
|
+
___
|
|
61
|
+
|
|
62
|
+
### deleteMemberRole
|
|
63
|
+
|
|
64
|
+
▸ `Const` **deleteMemberRole**(`organizationId`, `profileId`, `roleId`): `Promise`<`any`\>
|
|
65
|
+
|
|
66
|
+
#### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type |
|
|
69
|
+
| :------ | :------ |
|
|
70
|
+
| `organizationId` | `string` |
|
|
71
|
+
| `profileId` | `string` |
|
|
72
|
+
| `roleId` | `string` |
|
|
73
|
+
|
|
74
|
+
#### Returns
|
|
75
|
+
|
|
76
|
+
`Promise`<`any`\>
|
|
77
|
+
|
|
78
|
+
#### Defined in
|
|
79
|
+
|
|
80
|
+
[Organizations/Members.ts:18](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Members.ts#L18)
|
|
81
|
+
|
|
82
|
+
___
|
|
83
|
+
|
|
84
|
+
### getMemberPlans
|
|
85
|
+
|
|
86
|
+
▸ `Const` **getMemberPlans**(`organizationId`, `profileId`): `Promise`<`any`\>
|
|
87
|
+
|
|
88
|
+
#### Parameters
|
|
89
|
+
|
|
90
|
+
| Name | Type |
|
|
91
|
+
| :------ | :------ |
|
|
92
|
+
| `organizationId` | `string` |
|
|
93
|
+
| `profileId` | `string` |
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`<`any`\>
|
|
98
|
+
|
|
99
|
+
#### Defined in
|
|
100
|
+
|
|
101
|
+
[Organizations/Members.ts:23](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Members.ts#L23)
|
|
102
|
+
|
|
103
|
+
___
|
|
104
|
+
|
|
105
|
+
### getMembers
|
|
106
|
+
|
|
107
|
+
▸ `Const` **getMembers**(`organizationId`): `Promise`<`any`\>
|
|
108
|
+
|
|
109
|
+
#### Parameters
|
|
110
|
+
|
|
111
|
+
| Name | Type |
|
|
112
|
+
| :------ | :------ |
|
|
113
|
+
| `organizationId` | `string` |
|
|
114
|
+
|
|
115
|
+
#### Returns
|
|
116
|
+
|
|
117
|
+
`Promise`<`any`\>
|
|
118
|
+
|
|
119
|
+
#### Defined in
|
|
120
|
+
|
|
121
|
+
[Organizations/Members.ts:3](https://github.com/Verdocs/js-sdk/blob/main/src/Organizations/Members.ts#L3)
|