@azure-rest/purview-sharing 1.0.0-beta.1 → 1.0.0-beta.3
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/LICENSE +4 -4
- package/README.md +2 -2
- package/dist/browser/clientDefinitions.d.ts +87 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js +4 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +15 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +19 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/isUnexpected.js +2 -1
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +201 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js +4 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/outputModels.d.ts +352 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/outputModels.js +4 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +68 -0
- package/dist/browser/paginateHelper.d.ts.map +1 -0
- package/dist/browser/paginateHelper.js +167 -0
- package/dist/browser/paginateHelper.js.map +1 -0
- package/dist/browser/parameters.d.ts +123 -0
- package/dist/browser/parameters.d.ts.map +1 -0
- package/dist/browser/parameters.js +4 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/pollingHelper.d.ts +76 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/pollingHelper.js +104 -0
- package/dist/browser/pollingHelper.js.map +1 -0
- package/dist/browser/purviewSharing.d.ts +16 -0
- package/dist/browser/purviewSharing.d.ts.map +1 -0
- package/dist/browser/purviewSharing.js +43 -0
- package/dist/browser/purviewSharing.js.map +1 -0
- package/dist/browser/responses.d.ts +304 -0
- package/dist/browser/responses.d.ts.map +1 -0
- package/dist/browser/responses.js +4 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +87 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +18 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +19 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/isUnexpected.js +89 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +201 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +352 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +68 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/paginateHelper.js +170 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +123 -0
- package/dist/commonjs/parameters.d.ts.map +1 -0
- package/dist/commonjs/parameters.js +5 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/pollingHelper.d.ts +76 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +107 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/purviewSharing.d.ts +16 -0
- package/dist/commonjs/purviewSharing.d.ts.map +1 -0
- package/dist/commonjs/purviewSharing.js +46 -0
- package/dist/commonjs/purviewSharing.js.map +1 -0
- package/dist/commonjs/responses.d.ts +304 -0
- package/dist/commonjs/responses.d.ts.map +1 -0
- package/dist/commonjs/responses.js +5 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/clientDefinitions.d.ts +87 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +19 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +86 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +201 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/outputModels.d.ts +352 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +68 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -0
- package/dist/esm/paginateHelper.js +167 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +123 -0
- package/dist/esm/parameters.d.ts.map +1 -0
- package/dist/esm/parameters.js +4 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/pollingHelper.d.ts +76 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +104 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/purviewSharing.d.ts +16 -0
- package/dist/esm/purviewSharing.d.ts.map +1 -0
- package/dist/esm/purviewSharing.js +43 -0
- package/dist/esm/purviewSharing.js.map +1 -0
- package/dist/esm/responses.d.ts +304 -0
- package/dist/esm/responses.d.ts.map +1 -0
- package/dist/esm/responses.js +4 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +87 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +15 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +19 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +86 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +201 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +352 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +68 -0
- package/dist/react-native/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/paginateHelper.js +167 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +123 -0
- package/dist/react-native/parameters.d.ts.map +1 -0
- package/dist/react-native/parameters.js +4 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/pollingHelper.d.ts +76 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +104 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/purviewSharing.d.ts +16 -0
- package/dist/react-native/purviewSharing.d.ts.map +1 -0
- package/dist/react-native/purviewSharing.js +43 -0
- package/dist/react-native/purviewSharing.js.map +1 -0
- package/dist/react-native/responses.d.ts +304 -0
- package/dist/react-native/responses.d.ts.map +1 -0
- package/dist/react-native/responses.js +4 -0
- package/dist/react-native/responses.js.map +1 -0
- package/package.json +83 -69
- package/dist/index.js +0 -240
- package/dist/index.js.map +0 -1
- package/dist-esm/src/clientDefinitions.js +0 -4
- package/dist-esm/src/clientDefinitions.js.map +0 -1
- package/dist-esm/src/index.js +0 -14
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/isUnexpected.js.map +0 -1
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/outputModels.js +0 -4
- package/dist-esm/src/outputModels.js.map +0 -1
- package/dist-esm/src/paginateHelper.js +0 -70
- package/dist-esm/src/paginateHelper.js.map +0 -1
- package/dist-esm/src/parameters.js +0 -4
- package/dist-esm/src/parameters.js.map +0 -1
- package/dist-esm/src/pollingHelper.js +0 -50
- package/dist-esm/src/pollingHelper.js.map +0 -1
- package/dist-esm/src/purviewSharing.js +0 -27
- package/dist-esm/src/purviewSharing.js.map +0 -1
- package/dist-esm/src/responses.js +0 -4
- package/dist-esm/src/responses.js.map +0 -1
- package/review/purview-sharing.api.md +0 -1234
- package/types/purview-sharing.d.ts +0 -1270
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-sharing-rest)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/purview-sharing)
|
|
11
|
-
- [API reference documentation](https://
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/purview-sharing?view=azure-node-preview)
|
|
12
12
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-sharing-rest/samples)
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -50,7 +50,7 @@ AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
|
|
|
50
50
|
|
|
51
51
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
52
52
|
|
|
53
|
-
```
|
|
53
|
+
```ts
|
|
54
54
|
const { setLogLevel } = require("@azure/logger");
|
|
55
55
|
|
|
56
56
|
setLogLevel("info");
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { ReceivedSharesGetReceivedShareParameters, ReceivedSharesCreateOrReplaceParameters, ReceivedSharesDeleteReceivedShareParameters, ReceivedSharesGetAllAttachedReceivedSharesParameters, ReceivedSharesGetAllDetachedReceivedSharesParameters, ReceivedSharesActivateTenantEmailRegistrationParameters, ReceivedSharesRegisterTenantEmailRegistrationParameters, SentSharesGetAllSentSharesParameters, SentSharesGetSentShareParameters, SentSharesCreateOrReplaceParameters, SentSharesDeleteSentShareParameters, SentSharesGetAllSentShareInvitationsParameters, SentSharesGetSentShareInvitationParameters, SentSharesCreateSentShareInvitationParameters, SentSharesDeleteSentShareInvitationParameters, SentSharesNotifyUserSentShareInvitationParameters, ShareResourcesGetAllShareResourcesParameters } from "./parameters.js";
|
|
2
|
+
import type { ReceivedSharesGetReceivedShare200Response, ReceivedSharesGetReceivedShareDefaultResponse, ReceivedSharesCreateOrReplace200Response, ReceivedSharesCreateOrReplace201Response, ReceivedSharesCreateOrReplaceDefaultResponse, ReceivedSharesDeleteReceivedShare202Response, ReceivedSharesDeleteReceivedShareDefaultResponse, ReceivedSharesGetAllAttachedReceivedShares200Response, ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse, ReceivedSharesGetAllDetachedReceivedShares200Response, ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse, ReceivedSharesActivateTenantEmailRegistration200Response, ReceivedSharesActivateTenantEmailRegistrationDefaultResponse, ReceivedSharesRegisterTenantEmailRegistration200Response, ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse, SentSharesGetAllSentShares200Response, SentSharesGetAllSentSharesDefaultResponse, SentSharesGetSentShare200Response, SentSharesGetSentShareDefaultResponse, SentSharesCreateOrReplace200Response, SentSharesCreateOrReplace201Response, SentSharesCreateOrReplaceDefaultResponse, SentSharesDeleteSentShare202Response, SentSharesDeleteSentShareDefaultResponse, SentSharesGetAllSentShareInvitations200Response, SentSharesGetAllSentShareInvitationsDefaultResponse, SentSharesGetSentShareInvitation200Response, SentSharesGetSentShareInvitationDefaultResponse, SentSharesCreateSentShareInvitation201Response, SentSharesCreateSentShareInvitationDefaultResponse, SentSharesDeleteSentShareInvitation202Response, SentSharesDeleteSentShareInvitationDefaultResponse, SentSharesNotifyUserSentShareInvitation200Response, SentSharesNotifyUserSentShareInvitationDefaultResponse, ShareResourcesGetAllShareResources200Response, ShareResourcesGetAllShareResourcesDefaultResponse } from "./responses.js";
|
|
3
|
+
import type { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
4
|
+
export interface ReceivedSharesGetReceivedShare {
|
|
5
|
+
/** Get a received share */
|
|
6
|
+
get(options?: ReceivedSharesGetReceivedShareParameters): StreamableMethod<ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse>;
|
|
7
|
+
/** Update changes to a received share */
|
|
8
|
+
put(options: ReceivedSharesCreateOrReplaceParameters): StreamableMethod<ReceivedSharesCreateOrReplace200Response | ReceivedSharesCreateOrReplace201Response | ReceivedSharesCreateOrReplaceDefaultResponse>;
|
|
9
|
+
/** Delete a received share */
|
|
10
|
+
delete(options?: ReceivedSharesDeleteReceivedShareParameters): StreamableMethod<ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface ReceivedSharesGetAllAttachedReceivedShares {
|
|
13
|
+
/** List attached received shares */
|
|
14
|
+
get(options: ReceivedSharesGetAllAttachedReceivedSharesParameters): StreamableMethod<ReceivedSharesGetAllAttachedReceivedShares200Response | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface ReceivedSharesGetAllDetachedReceivedShares {
|
|
17
|
+
/** List detached received shares */
|
|
18
|
+
get(options?: ReceivedSharesGetAllDetachedReceivedSharesParameters): StreamableMethod<ReceivedSharesGetAllDetachedReceivedShares200Response | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface ReceivedSharesActivateTenantEmailRegistration {
|
|
21
|
+
/** Activates the email registration for current tenant */
|
|
22
|
+
post(options: ReceivedSharesActivateTenantEmailRegistrationParameters): StreamableMethod<ReceivedSharesActivateTenantEmailRegistration200Response | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface ReceivedSharesRegisterTenantEmailRegistration {
|
|
25
|
+
/** Register an email for the current tenant */
|
|
26
|
+
post(options?: ReceivedSharesRegisterTenantEmailRegistrationParameters): StreamableMethod<ReceivedSharesRegisterTenantEmailRegistration200Response | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse>;
|
|
27
|
+
}
|
|
28
|
+
export interface SentSharesGetAllSentShares {
|
|
29
|
+
/** List sent shares */
|
|
30
|
+
get(options: SentSharesGetAllSentSharesParameters): StreamableMethod<SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse>;
|
|
31
|
+
}
|
|
32
|
+
export interface SentSharesGetSentShare {
|
|
33
|
+
/** Get a sent share */
|
|
34
|
+
get(options?: SentSharesGetSentShareParameters): StreamableMethod<SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse>;
|
|
35
|
+
/** Create or replace a sent share */
|
|
36
|
+
put(options: SentSharesCreateOrReplaceParameters): StreamableMethod<SentSharesCreateOrReplace200Response | SentSharesCreateOrReplace201Response | SentSharesCreateOrReplaceDefaultResponse>;
|
|
37
|
+
/** Delete a sent share */
|
|
38
|
+
delete(options?: SentSharesDeleteSentShareParameters): StreamableMethod<SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse>;
|
|
39
|
+
}
|
|
40
|
+
export interface SentSharesGetAllSentShareInvitations {
|
|
41
|
+
/** List sent share recipients */
|
|
42
|
+
get(options?: SentSharesGetAllSentShareInvitationsParameters): StreamableMethod<SentSharesGetAllSentShareInvitations200Response | SentSharesGetAllSentShareInvitationsDefaultResponse>;
|
|
43
|
+
}
|
|
44
|
+
export interface SentSharesGetSentShareInvitation {
|
|
45
|
+
/** Get recipient for a given sent share */
|
|
46
|
+
get(options?: SentSharesGetSentShareInvitationParameters): StreamableMethod<SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse>;
|
|
47
|
+
/** Create a recipient for a given sent share */
|
|
48
|
+
put(options: SentSharesCreateSentShareInvitationParameters): StreamableMethod<SentSharesCreateSentShareInvitation201Response | SentSharesCreateSentShareInvitationDefaultResponse>;
|
|
49
|
+
/** Delete a sent share invitation */
|
|
50
|
+
delete(options?: SentSharesDeleteSentShareInvitationParameters): StreamableMethod<SentSharesDeleteSentShareInvitation202Response | SentSharesDeleteSentShareInvitationDefaultResponse>;
|
|
51
|
+
}
|
|
52
|
+
export interface SentSharesNotifyUserSentShareInvitation {
|
|
53
|
+
/** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */
|
|
54
|
+
post(options?: SentSharesNotifyUserSentShareInvitationParameters): StreamableMethod<SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse>;
|
|
55
|
+
}
|
|
56
|
+
export interface ShareResourcesGetAllShareResources {
|
|
57
|
+
/** List share resources */
|
|
58
|
+
get(options?: ShareResourcesGetAllShareResourcesParameters): StreamableMethod<ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse>;
|
|
59
|
+
}
|
|
60
|
+
export interface Routes {
|
|
61
|
+
/** Resource for '/receivedShares/\{receivedShareId\}' has methods for the following verbs: get, put, delete */
|
|
62
|
+
(path: "/receivedShares/{receivedShareId}", receivedShareId: string): ReceivedSharesGetReceivedShare;
|
|
63
|
+
/** Resource for '/receivedShares/attached' has methods for the following verbs: get */
|
|
64
|
+
(path: "/receivedShares/attached"): ReceivedSharesGetAllAttachedReceivedShares;
|
|
65
|
+
/** Resource for '/receivedShares/detached' has methods for the following verbs: get */
|
|
66
|
+
(path: "/receivedShares/detached"): ReceivedSharesGetAllDetachedReceivedShares;
|
|
67
|
+
/** Resource for '/emails:activate' has methods for the following verbs: post */
|
|
68
|
+
(path: "/emails:activate"): ReceivedSharesActivateTenantEmailRegistration;
|
|
69
|
+
/** Resource for '/emails:register' has methods for the following verbs: post */
|
|
70
|
+
(path: "/emails:register"): ReceivedSharesRegisterTenantEmailRegistration;
|
|
71
|
+
/** Resource for '/sentShares' has methods for the following verbs: get */
|
|
72
|
+
(path: "/sentShares"): SentSharesGetAllSentShares;
|
|
73
|
+
/** Resource for '/sentShares/\{sentShareId\}' has methods for the following verbs: get, put, delete */
|
|
74
|
+
(path: "/sentShares/{sentShareId}", sentShareId: string): SentSharesGetSentShare;
|
|
75
|
+
/** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations' has methods for the following verbs: get */
|
|
76
|
+
(path: "/sentShares/{sentShareId}/sentShareInvitations", sentShareId: string): SentSharesGetAllSentShareInvitations;
|
|
77
|
+
/** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations/\{sentShareInvitationId\}' has methods for the following verbs: get, put, delete */
|
|
78
|
+
(path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId: string, sentShareInvitationId: string): SentSharesGetSentShareInvitation;
|
|
79
|
+
/** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations/\{sentShareInvitationId\}:notify' has methods for the following verbs: post */
|
|
80
|
+
(path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId: string, sentShareInvitationId: string): SentSharesNotifyUserSentShareInvitation;
|
|
81
|
+
/** Resource for '/shareResources' has methods for the following verbs: get */
|
|
82
|
+
(path: "/shareResources"): ShareResourcesGetAllShareResources;
|
|
83
|
+
}
|
|
84
|
+
export type PurviewSharingClient = Client & {
|
|
85
|
+
path: Routes;
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=clientDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wCAAwC,EACxC,uCAAuC,EACvC,2CAA2C,EAC3C,oDAAoD,EACpD,oDAAoD,EACpD,uDAAuD,EACvD,uDAAuD,EACvD,oCAAoC,EACpC,gCAAgC,EAChC,mCAAmC,EACnC,mCAAmC,EACnC,8CAA8C,EAC9C,0CAA0C,EAC1C,6CAA6C,EAC7C,6CAA6C,EAC7C,iDAAiD,EACjD,4CAA4C,EAC7C,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,yCAAyC,EACzC,6CAA6C,EAC7C,wCAAwC,EACxC,wCAAwC,EACxC,4CAA4C,EAC5C,4CAA4C,EAC5C,gDAAgD,EAChD,qDAAqD,EACrD,yDAAyD,EACzD,qDAAqD,EACrD,yDAAyD,EACzD,wDAAwD,EACxD,4DAA4D,EAC5D,wDAAwD,EACxD,4DAA4D,EAC5D,qCAAqC,EACrC,yCAAyC,EACzC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,oCAAoC,EACpC,wCAAwC,EACxC,+CAA+C,EAC/C,mDAAmD,EACnD,2CAA2C,EAC3C,+CAA+C,EAC/C,8CAA8C,EAC9C,kDAAkD,EAClD,8CAA8C,EAC9C,kDAAkD,EAClD,kDAAkD,EAClD,sDAAsD,EACtD,6CAA6C,EAC7C,iDAAiD,EAClD,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE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0B,GAAG,0CAA0C,CAAC;IAC/E,uFAAuF;IACvF,CAAC,IAAI,EAAE,0BAA0B,GAAG,0CAA0C,CAAC;IAC/E,gFAAgF;IAChF,CAAC,IAAI,EAAE,kBAAkB,GAAG,6CAA6C,CAAC;IAC1E,gFAAgF;IAChF,CAAC,IAAI,EAAE,kBAAkB,GAAG,6CAA6C,CAAC;IAC1E,0EAA0E;IAC1E,CAAC,IAAI,EAAE,aAAa,GAAG,0BAA0B,CAAC;IAClD,uGAAuG;IACvG,CAAC,IAAI,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACjF,+GAA+G;IAC/G,CACE,IAAI,EAAE,gDAAgD,EACtD,WAAW,EAAE,MAAM,GAClB,oCAAoC,CAAC;IACxC,sJAAsJ;IACtJ,CACE,IAAI,EAAE,wEAAwE,EAC9E,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,GAC5B,gCAAgC,CAAC;IACpC,iJAAiJ;IACjJ,CACE,IAAI,EAAE,+EAA+E,EACrF,WAAW,EAAE,MAAM,EACnB,qBAAqB,EAAE,MAAM,GAC5B,uCAAuC,CAAC;IAC3C,8EAA8E;IAC9E,CAAC,IAAI,EAAE,iBAAiB,GAAG,kCAAkC,CAAC;CAC/D;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ReceivedSharesGetReceivedShareParameters,\n ReceivedSharesCreateOrReplaceParameters,\n ReceivedSharesDeleteReceivedShareParameters,\n ReceivedSharesGetAllAttachedReceivedSharesParameters,\n ReceivedSharesGetAllDetachedReceivedSharesParameters,\n ReceivedSharesActivateTenantEmailRegistrationParameters,\n ReceivedSharesRegisterTenantEmailRegistrationParameters,\n SentSharesGetAllSentSharesParameters,\n SentSharesGetSentShareParameters,\n SentSharesCreateOrReplaceParameters,\n SentSharesDeleteSentShareParameters,\n SentSharesGetAllSentShareInvitationsParameters,\n SentSharesGetSentShareInvitationParameters,\n SentSharesCreateSentShareInvitationParameters,\n SentSharesDeleteSentShareInvitationParameters,\n SentSharesNotifyUserSentShareInvitationParameters,\n ShareResourcesGetAllShareResourcesParameters,\n} from \"./parameters.js\";\nimport type {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n ShareResourcesGetAllShareResources200Response,\n ShareResourcesGetAllShareResourcesDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ReceivedSharesGetReceivedShare {\n /** Get a received share */\n get(\n options?: ReceivedSharesGetReceivedShareParameters,\n ): StreamableMethod<\n ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse\n >;\n /** Update changes to a received share */\n put(\n options: ReceivedSharesCreateOrReplaceParameters,\n ): StreamableMethod<\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a received share */\n delete(\n options?: ReceivedSharesDeleteReceivedShareParameters,\n ): StreamableMethod<\n ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllAttachedReceivedShares {\n /** List attached received shares */\n get(\n options: ReceivedSharesGetAllAttachedReceivedSharesParameters,\n ): StreamableMethod<\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllDetachedReceivedShares {\n /** List detached received shares */\n get(\n options?: ReceivedSharesGetAllDetachedReceivedSharesParameters,\n ): StreamableMethod<\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistration {\n /** Activates the email registration for current tenant */\n post(\n options: ReceivedSharesActivateTenantEmailRegistrationParameters,\n ): StreamableMethod<\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesRegisterTenantEmailRegistration {\n /** Register an email for the current tenant */\n post(\n options?: ReceivedSharesRegisterTenantEmailRegistrationParameters,\n ): StreamableMethod<\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShares {\n /** List sent shares */\n get(\n options: SentSharesGetAllSentSharesParameters,\n ): StreamableMethod<\n SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShare {\n /** Get a sent share */\n get(\n options?: SentSharesGetSentShareParameters,\n ): StreamableMethod<SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse>;\n /** Create or replace a sent share */\n put(\n options: SentSharesCreateOrReplaceParameters,\n ): StreamableMethod<\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a sent share */\n delete(\n options?: SentSharesDeleteSentShareParameters,\n ): StreamableMethod<\n SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShareInvitations {\n /** List sent share recipients */\n get(\n options?: SentSharesGetAllSentShareInvitationsParameters,\n ): StreamableMethod<\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShareInvitation {\n /** Get recipient for a given sent share */\n get(\n options?: SentSharesGetSentShareInvitationParameters,\n ): StreamableMethod<\n SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse\n >;\n /** Create a recipient for a given sent share */\n put(\n options: SentSharesCreateSentShareInvitationParameters,\n ): StreamableMethod<\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n >;\n /** Delete a sent share invitation */\n delete(\n options?: SentSharesDeleteSentShareInvitationParameters,\n ): StreamableMethod<\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface SentSharesNotifyUserSentShareInvitation {\n /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */\n post(\n options?: SentSharesNotifyUserSentShareInvitationParameters,\n ): StreamableMethod<\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface ShareResourcesGetAllShareResources {\n /** List share resources */\n get(\n options?: ShareResourcesGetAllShareResourcesParameters,\n ): StreamableMethod<\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/receivedShares/\\{receivedShareId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/receivedShares/{receivedShareId}\",\n receivedShareId: string,\n ): ReceivedSharesGetReceivedShare;\n /** Resource for '/receivedShares/attached' has methods for the following verbs: get */\n (path: \"/receivedShares/attached\"): ReceivedSharesGetAllAttachedReceivedShares;\n /** Resource for '/receivedShares/detached' has methods for the following verbs: get */\n (path: \"/receivedShares/detached\"): ReceivedSharesGetAllDetachedReceivedShares;\n /** Resource for '/emails:activate' has methods for the following verbs: post */\n (path: \"/emails:activate\"): ReceivedSharesActivateTenantEmailRegistration;\n /** Resource for '/emails:register' has methods for the following verbs: post */\n (path: \"/emails:register\"): ReceivedSharesRegisterTenantEmailRegistration;\n /** Resource for '/sentShares' has methods for the following verbs: get */\n (path: \"/sentShares\"): SentSharesGetAllSentShares;\n /** Resource for '/sentShares/\\{sentShareId\\}' has methods for the following verbs: get, put, delete */\n (path: \"/sentShares/{sentShareId}\", sentShareId: string): SentSharesGetSentShare;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations' has methods for the following verbs: get */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations\",\n sentShareId: string,\n ): SentSharesGetAllSentShareInvitations;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\",\n sentShareId: string,\n sentShareInvitationId: string,\n ): SentSharesGetSentShareInvitation;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}:notify' has methods for the following verbs: post */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\",\n sentShareId: string,\n sentShareInvitationId: string,\n ): SentSharesNotifyUserSentShareInvitation;\n /** Resource for '/shareResources' has methods for the following verbs: get */\n (path: \"/shareResources\"): ShareResourcesGetAllShareResources;\n}\n\nexport type PurviewSharingClient = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PurviewSharing from "./purviewSharing.js";
|
|
2
|
+
export * from "./purviewSharing.js";
|
|
3
|
+
export * from "./parameters.js";
|
|
4
|
+
export * from "./responses.js";
|
|
5
|
+
export * from "./clientDefinitions.js";
|
|
6
|
+
export * from "./isUnexpected.js";
|
|
7
|
+
export * from "./models.js";
|
|
8
|
+
export * from "./outputModels.js";
|
|
9
|
+
export * from "./paginateHelper.js";
|
|
10
|
+
export * from "./pollingHelper.js";
|
|
11
|
+
export default PurviewSharing;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAGnC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import PurviewSharing from "./purviewSharing.js";
|
|
4
|
+
export * from "./purviewSharing.js";
|
|
5
|
+
export * from "./parameters.js";
|
|
6
|
+
export * from "./responses.js";
|
|
7
|
+
export * from "./clientDefinitions.js";
|
|
8
|
+
export * from "./isUnexpected.js";
|
|
9
|
+
export * from "./models.js";
|
|
10
|
+
export * from "./outputModels.js";
|
|
11
|
+
export * from "./paginateHelper.js";
|
|
12
|
+
export * from "./pollingHelper.js";
|
|
13
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named
|
|
14
|
+
export default PurviewSharing;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,cAAc,MAAM,qBAAqB,CAAC;AAEjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AAEnC,kEAAkE;AAClE,eAAe,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport PurviewSharing from \"./purviewSharing.js\";\n\nexport * from \"./purviewSharing.js\";\nexport * from \"./parameters.js\";\nexport * from \"./responses.js\";\nexport * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport * from \"./models.js\";\nexport * from \"./outputModels.js\";\nexport * from \"./paginateHelper.js\";\nexport * from \"./pollingHelper.js\";\n\n// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named\nexport default PurviewSharing;\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReceivedSharesGetReceivedShare200Response, ReceivedSharesGetReceivedShareDefaultResponse, ReceivedSharesCreateOrReplace200Response, ReceivedSharesCreateOrReplace201Response, ReceivedSharesCreateOrReplaceDefaultResponse, ReceivedSharesDeleteReceivedShare202Response, ReceivedSharesDeleteReceivedShareDefaultResponse, ReceivedSharesGetAllAttachedReceivedShares200Response, ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse, ReceivedSharesGetAllDetachedReceivedShares200Response, ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse, ReceivedSharesActivateTenantEmailRegistration200Response, ReceivedSharesActivateTenantEmailRegistrationDefaultResponse, ReceivedSharesRegisterTenantEmailRegistration200Response, ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse, SentSharesGetAllSentShares200Response, SentSharesGetAllSentSharesDefaultResponse, SentSharesGetSentShare200Response, SentSharesGetSentShareDefaultResponse, SentSharesCreateOrReplace200Response, SentSharesCreateOrReplace201Response, SentSharesCreateOrReplaceDefaultResponse, SentSharesDeleteSentShare202Response, SentSharesDeleteSentShareDefaultResponse, SentSharesGetAllSentShareInvitations200Response, SentSharesGetAllSentShareInvitationsDefaultResponse, SentSharesGetSentShareInvitation200Response, SentSharesGetSentShareInvitationDefaultResponse, SentSharesCreateSentShareInvitation201Response, SentSharesCreateSentShareInvitationDefaultResponse, SentSharesDeleteSentShareInvitation202Response, SentSharesDeleteSentShareInvitationDefaultResponse, SentSharesNotifyUserSentShareInvitation200Response, SentSharesNotifyUserSentShareInvitationDefaultResponse, ShareResourcesGetAllShareResources200Response, ShareResourcesGetAllShareResourcesDefaultResponse } from "./responses.js";
|
|
2
|
+
export declare function isUnexpected(response: ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse): response is ReceivedSharesGetReceivedShareDefaultResponse;
|
|
3
|
+
export declare function isUnexpected(response: ReceivedSharesCreateOrReplace200Response | ReceivedSharesCreateOrReplace201Response | ReceivedSharesCreateOrReplaceDefaultResponse): response is ReceivedSharesCreateOrReplaceDefaultResponse;
|
|
4
|
+
export declare function isUnexpected(response: ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse): response is ReceivedSharesDeleteReceivedShareDefaultResponse;
|
|
5
|
+
export declare function isUnexpected(response: ReceivedSharesGetAllAttachedReceivedShares200Response | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;
|
|
6
|
+
export declare function isUnexpected(response: ReceivedSharesGetAllDetachedReceivedShares200Response | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;
|
|
7
|
+
export declare function isUnexpected(response: ReceivedSharesActivateTenantEmailRegistration200Response | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;
|
|
8
|
+
export declare function isUnexpected(response: ReceivedSharesRegisterTenantEmailRegistration200Response | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;
|
|
9
|
+
export declare function isUnexpected(response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse): response is SentSharesGetAllSentSharesDefaultResponse;
|
|
10
|
+
export declare function isUnexpected(response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse): response is SentSharesGetSentShareDefaultResponse;
|
|
11
|
+
export declare function isUnexpected(response: SentSharesCreateOrReplace200Response | SentSharesCreateOrReplace201Response | SentSharesCreateOrReplaceDefaultResponse): response is SentSharesCreateOrReplaceDefaultResponse;
|
|
12
|
+
export declare function isUnexpected(response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse): response is SentSharesDeleteSentShareDefaultResponse;
|
|
13
|
+
export declare function isUnexpected(response: SentSharesGetAllSentShareInvitations200Response | SentSharesGetAllSentShareInvitationsDefaultResponse): response is SentSharesGetAllSentShareInvitationsDefaultResponse;
|
|
14
|
+
export declare function isUnexpected(response: SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse): response is SentSharesGetSentShareInvitationDefaultResponse;
|
|
15
|
+
export declare function isUnexpected(response: SentSharesCreateSentShareInvitation201Response | SentSharesCreateSentShareInvitationDefaultResponse): response is SentSharesCreateSentShareInvitationDefaultResponse;
|
|
16
|
+
export declare function isUnexpected(response: SentSharesDeleteSentShareInvitation202Response | SentSharesDeleteSentShareInvitationDefaultResponse): response is SentSharesDeleteSentShareInvitationDefaultResponse;
|
|
17
|
+
export declare function isUnexpected(response: SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;
|
|
18
|
+
export declare function isUnexpected(response: ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse): response is ShareResourcesGetAllShareResourcesDefaultResponse;
|
|
19
|
+
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yCAAyC,EACzC,6CAA6C,EAC7C,wCAAwC,EACxC,wCAAwC,EACxC,4CAA4C,EAC5C,4CAA4C,EAC5C,gDAAgD,EAChD,qDAAqD,EACrD,yDAAyD,EACzD,qDAAqD,EACrD,yDAAyD,EACzD,wDAAwD,EACxD,4DAA4D,EAC5D,wDAAwD,EACxD,4DAA4D,EAC5D,qCAAqC,EACrC,yCAAyC,EACzC,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,oCAAoC,EACpC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AAC;AACxD,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oCAAoC,GAAG,wCAAwC,GACxF,QAAQ,IAAI,wCAAwC,CAAC;AACxD,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,+CAA+C,GAC/C,mDAAmD,GACtD,QAAQ,IAAI,mDAAmD,CAAC;AACnE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,2CAA2C,GAC3C,+CAA+C,GAClD,QAAQ,IAAI,+CAA+C,CAAC;AAC/D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,8CAA8C,GAC9C,kDAAkD,GACrD,QAAQ,IAAI,kDAAkD,CAAC;AAClE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,8CAA8C,GAC9C,kDAAkD,GACrD,QAAQ,IAAI,kDAAkD,CAAC;AAClE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,kDAAkD,GAClD,sDAAsD,GACzD,QAAQ,IAAI,sDAAsD,CAAC;AACtE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,6CAA6C,GAC7C,iDAAiD,GACpD,QAAQ,IAAI,iDAAiD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
3
|
const responseMap = {
|
|
4
4
|
"GET /receivedShares/{receivedShareId}": ["200"],
|
|
5
5
|
"PUT /receivedShares/{receivedShareId}": ["200", "201"],
|
|
@@ -17,6 +17,7 @@ const responseMap = {
|
|
|
17
17
|
"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["201"],
|
|
18
18
|
"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["202"],
|
|
19
19
|
"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify": ["200"],
|
|
20
|
+
"GET /shareResources": ["200"],
|
|
20
21
|
};
|
|
21
22
|
export function isUnexpected(response) {
|
|
22
23
|
const lroOriginal = response.headers["x-ms-original-url"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAyClC,MAAM,WAAW,GAA6B;IAC5C,uCAAuC,EAAE,CAAC,KAAK,CAAC;IAChD,uCAAuC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvD,0CAA0C,EAAE,CAAC,KAAK,CAAC;IACnD,8BAA8B,EAAE,CAAC,KAAK,CAAC;IACvC,8BAA8B,EAAE,CAAC,KAAK,CAAC;IACvC,uBAAuB,EAAE,CAAC,KAAK,CAAC;IAChC,uBAAuB,EAAE,CAAC,KAAK,CAAC;IAChC,iBAAiB,EAAE,CAAC,KAAK,CAAC;IAC1B,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,+BAA+B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/C,kCAAkC,EAAE,CAAC,KAAK,CAAC;IAC3C,oDAAoD,EAAE,CAAC,KAAK,CAAC;IAC7D,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,4EAA4E,EAAE,CAAC,KAAK,CAAC;IACrF,+EAA+E,EAAE,CAAC,KAAK,CAAC;IACxF,oFAAoF,EAAE,CAAC,KAAK,CAAC;IAC7F,qBAAqB,EAAE,CAAC,KAAK,CAAC;CAC/B,CAAC;AAmFF,MAAM,UAAU,YAAY,CAC1B,QAoCqD;IAmBrD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,WAAW,GAAG,WAAW,CAA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ed under the MIT License.\n\nimport type {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n ShareResourcesGetAllShareResources200Response,\n ShareResourcesGetAllShareResourcesDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /receivedShares/{receivedShareId}\": [\"200\"],\n \"PUT /receivedShares/{receivedShareId}\": [\"200\", \"201\"],\n \"DELETE /receivedShares/{receivedShareId}\": [\"202\"],\n \"GET /receivedShares/attached\": [\"200\"],\n \"GET /receivedShares/detached\": [\"200\"],\n \"POST /emails:activate\": [\"200\"],\n \"POST /emails:register\": [\"200\"],\n \"GET /sentShares\": [\"200\"],\n \"GET /sentShares/{sentShareId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}\": [\"200\", \"201\"],\n \"DELETE /sentShares/{sentShareId}\": [\"202\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations\": [\"200\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"201\"],\n \"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"202\"],\n \"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\": [\"200\"],\n \"GET /shareResources\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse,\n): response is ReceivedSharesGetReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse,\n): response is ReceivedSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse,\n): response is ReceivedSharesDeleteReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse,\n): response is SentSharesGetAllSentSharesDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse,\n): response is SentSharesGetSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse,\n): response is SentSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse,\n): response is SentSharesDeleteSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse,\n): response is SentSharesGetAllSentShareInvitationsDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse,\n): response is SentSharesGetSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse,\n): response is SentSharesCreateSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse,\n): response is SentSharesDeleteSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse,\n): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse,\n): response is ShareResourcesGetAllShareResourcesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentShares200Response\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShare200Response\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShare202Response\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse,\n): response is\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResourcesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"purview-sharing\");\n"]}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/** A received share data transfer object. */
|
|
2
|
+
export interface ReceivedShareParent extends ProxyResource {
|
|
3
|
+
shareKind: "ReceivedShare" | "InPlace";
|
|
4
|
+
}
|
|
5
|
+
/** Base data transfer object implementation for proxy resources. */
|
|
6
|
+
export interface ProxyResource {
|
|
7
|
+
}
|
|
8
|
+
/** A sent share data transfer object. */
|
|
9
|
+
export interface SentShareParent extends ProxyResource {
|
|
10
|
+
shareKind: "SentShare" | "InPlace";
|
|
11
|
+
}
|
|
12
|
+
/** A sent share invitation data transfer object. */
|
|
13
|
+
export interface SentShareInvitationParent extends ProxyResource {
|
|
14
|
+
invitationKind: "SentShareInvitation" | "Service" | "User";
|
|
15
|
+
}
|
|
16
|
+
/** A share resource. */
|
|
17
|
+
export interface ShareResource extends ProxyResource {
|
|
18
|
+
/** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
|
|
19
|
+
receivedSharesCount?: number;
|
|
20
|
+
/** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
|
|
21
|
+
sentSharesCount?: number;
|
|
22
|
+
/** The types of asset. */
|
|
23
|
+
storeKind?: "AdlsGen2Account" | "BlobAccount";
|
|
24
|
+
/** A Store Reference for an artifact or sink. */
|
|
25
|
+
storeReference?: StoreReference;
|
|
26
|
+
}
|
|
27
|
+
/** A Store Reference for an artifact or sink. */
|
|
28
|
+
export interface StoreReference {
|
|
29
|
+
/** Reference name for resource associated with the sink or artifact. */
|
|
30
|
+
referenceName?: string;
|
|
31
|
+
/** Defines the type of resource being shared */
|
|
32
|
+
type?: "ArmResourceReference";
|
|
33
|
+
}
|
|
34
|
+
/** A tenant email registration data transfer object. */
|
|
35
|
+
export interface TenantEmailRegistration extends ProxyResource {
|
|
36
|
+
/** Tenant email registration property bag. */
|
|
37
|
+
properties?: TenantEmailRegistrationProperties;
|
|
38
|
+
}
|
|
39
|
+
/** Tenant email registration property bag. */
|
|
40
|
+
export interface TenantEmailRegistrationProperties {
|
|
41
|
+
/** Activation code for the registration. */
|
|
42
|
+
activationCode: string;
|
|
43
|
+
}
|
|
44
|
+
/** AdlsGen2 Sink */
|
|
45
|
+
export interface AdlsGen2AccountSink extends SinkParent {
|
|
46
|
+
/** Properties for AdlsGen2 storage account */
|
|
47
|
+
properties: AdlsGen2AccountSinkProperties;
|
|
48
|
+
storeKind: "AdlsGen2Account";
|
|
49
|
+
}
|
|
50
|
+
/** Properties for AdlsGen2 storage account */
|
|
51
|
+
export interface AdlsGen2AccountSinkProperties {
|
|
52
|
+
/** Adls Gen 2 Container Name */
|
|
53
|
+
containerName: string;
|
|
54
|
+
/** Adls Gen 2 Folder */
|
|
55
|
+
folder: string;
|
|
56
|
+
/** Adls Gen 2 Mount Path */
|
|
57
|
+
mountPath?: string;
|
|
58
|
+
}
|
|
59
|
+
/** Holds details on the destination of the mapped artifact */
|
|
60
|
+
export interface SinkParent {
|
|
61
|
+
/** A Store Reference for an artifact or sink. */
|
|
62
|
+
storeReference: StoreReference;
|
|
63
|
+
storeKind: "Sink" | "AdlsGen2Account" | "BlobAccount";
|
|
64
|
+
}
|
|
65
|
+
/** An Adls Gen2 storage account artifact. */
|
|
66
|
+
export interface AdlsGen2Artifact extends ArtifactParent {
|
|
67
|
+
/** Properties for Adls Gen2 storage account. */
|
|
68
|
+
properties: AdlsGen2ArtifactProperties;
|
|
69
|
+
storeKind: "AdlsGen2Account";
|
|
70
|
+
}
|
|
71
|
+
/** Properties for Adls Gen2 storage account. */
|
|
72
|
+
export interface AdlsGen2ArtifactProperties {
|
|
73
|
+
/** A list of Adls Gen2 storage account paths. */
|
|
74
|
+
paths: Array<StorageAccountPath>;
|
|
75
|
+
}
|
|
76
|
+
/** Defines a single StorageAccountPath path */
|
|
77
|
+
export interface StorageAccountPath {
|
|
78
|
+
/** Gets or sets the container name */
|
|
79
|
+
containerName: string;
|
|
80
|
+
/** Gets or sets the path on the receiver side where the artifact is to be mapped */
|
|
81
|
+
receiverPath?: string;
|
|
82
|
+
/** Gets or sets the path to file/folder within the container to be shared */
|
|
83
|
+
senderPath?: string;
|
|
84
|
+
}
|
|
85
|
+
/** A class for sent share artifact. */
|
|
86
|
+
export interface ArtifactParent {
|
|
87
|
+
/** A Store Reference for an artifact or sink. */
|
|
88
|
+
storeReference: StoreReference;
|
|
89
|
+
storeKind: "Artifact" | "AdlsGen2Account" | "BlobAccount";
|
|
90
|
+
}
|
|
91
|
+
/** Blob Sink */
|
|
92
|
+
export interface BlobAccountSink extends SinkParent {
|
|
93
|
+
/** Properties for blob storage account */
|
|
94
|
+
properties: BlobAccountSinkProperties;
|
|
95
|
+
storeKind: "BlobAccount";
|
|
96
|
+
}
|
|
97
|
+
/** Properties for blob storage account */
|
|
98
|
+
export interface BlobAccountSinkProperties {
|
|
99
|
+
/** Blob Container Name */
|
|
100
|
+
containerName: string;
|
|
101
|
+
/** Blob Folder */
|
|
102
|
+
folder: string;
|
|
103
|
+
/** Blob Mount Path */
|
|
104
|
+
mountPath?: string;
|
|
105
|
+
}
|
|
106
|
+
/** Blob storage account artifact. */
|
|
107
|
+
export interface BlobStorageArtifact extends ArtifactParent {
|
|
108
|
+
/** Properties for blob storage account. */
|
|
109
|
+
properties: BlobStorageArtifactProperties;
|
|
110
|
+
storeKind: "BlobAccount";
|
|
111
|
+
}
|
|
112
|
+
/** Properties for blob storage account. */
|
|
113
|
+
export interface BlobStorageArtifactProperties {
|
|
114
|
+
/** A list of blob storage account paths. */
|
|
115
|
+
paths: Array<StorageAccountPath>;
|
|
116
|
+
}
|
|
117
|
+
/** An InPlace received share kind. */
|
|
118
|
+
export interface InPlaceReceivedShare extends ReceivedShareParent {
|
|
119
|
+
/** Properties of in place received share. */
|
|
120
|
+
properties: InPlaceReceivedShareProperties;
|
|
121
|
+
shareKind: "InPlace";
|
|
122
|
+
}
|
|
123
|
+
/** Properties of in place received share. */
|
|
124
|
+
export interface InPlaceReceivedShareProperties {
|
|
125
|
+
/** The types of asset. */
|
|
126
|
+
assetStoreKind?: "AdlsGen2Account" | "BlobAccount";
|
|
127
|
+
/** Received Share Name */
|
|
128
|
+
displayName?: string;
|
|
129
|
+
/** Share status. */
|
|
130
|
+
shareStatus?: "Detached" | "Attached";
|
|
131
|
+
/** Holds details on the destination of the mapped artifact */
|
|
132
|
+
sink?: Sink;
|
|
133
|
+
}
|
|
134
|
+
/** An InPlace share kind. */
|
|
135
|
+
export interface InPlaceSentShare extends SentShareParent {
|
|
136
|
+
/** Properties for InPlace sent share. */
|
|
137
|
+
properties: InPlaceSentShareProperties;
|
|
138
|
+
shareKind: "InPlace";
|
|
139
|
+
}
|
|
140
|
+
/** Properties for InPlace sent share. */
|
|
141
|
+
export interface InPlaceSentShareProperties {
|
|
142
|
+
/** A class for sent share artifact. */
|
|
143
|
+
artifact: Artifact;
|
|
144
|
+
/** Sent share description. */
|
|
145
|
+
description?: string;
|
|
146
|
+
/** The name of the sent share */
|
|
147
|
+
displayName: string;
|
|
148
|
+
}
|
|
149
|
+
/** An service invitation kind. */
|
|
150
|
+
export interface ServiceInvitation extends SentShareInvitationParent {
|
|
151
|
+
/** Properties of the service invitation type. */
|
|
152
|
+
properties: ServiceInvitationProperties;
|
|
153
|
+
invitationKind: "Service";
|
|
154
|
+
}
|
|
155
|
+
/** Properties of the service invitation type. */
|
|
156
|
+
export interface ServiceInvitationProperties {
|
|
157
|
+
/** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */
|
|
158
|
+
expirationDate?: Date | string;
|
|
159
|
+
/** Share status. */
|
|
160
|
+
shareStatus?: "Detached" | "Attached";
|
|
161
|
+
/**
|
|
162
|
+
* The target azure active directory id the invitation is sent to.
|
|
163
|
+
*
|
|
164
|
+
* Value may contain a UUID
|
|
165
|
+
*/
|
|
166
|
+
targetActiveDirectoryId: string;
|
|
167
|
+
/**
|
|
168
|
+
* The target object id in the azure active directory the invitation is sent to.
|
|
169
|
+
*
|
|
170
|
+
* Value may contain a UUID
|
|
171
|
+
*/
|
|
172
|
+
targetObjectId: string;
|
|
173
|
+
}
|
|
174
|
+
/** A user invitation kind. */
|
|
175
|
+
export interface UserInvitation extends SentShareInvitationParent {
|
|
176
|
+
/** Properties of the user invitation type. */
|
|
177
|
+
properties: UserInvitationProperties;
|
|
178
|
+
invitationKind: "User";
|
|
179
|
+
}
|
|
180
|
+
/** Properties of the user invitation type. */
|
|
181
|
+
export interface UserInvitationProperties {
|
|
182
|
+
/** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */
|
|
183
|
+
expirationDate?: Date | string;
|
|
184
|
+
/** Whether or not the recipient was notified via email. */
|
|
185
|
+
notify?: boolean;
|
|
186
|
+
/** Share status. */
|
|
187
|
+
shareStatus?: "Detached" | "Attached";
|
|
188
|
+
/** The receiver email for the invitation is being sent. */
|
|
189
|
+
targetEmail: string;
|
|
190
|
+
}
|
|
191
|
+
/** A received share data transfer object. */
|
|
192
|
+
export type ReceivedShare = InPlaceReceivedShare;
|
|
193
|
+
/** A sent share data transfer object. */
|
|
194
|
+
export type SentShare = InPlaceSentShare;
|
|
195
|
+
/** A sent share invitation data transfer object. */
|
|
196
|
+
export type SentShareInvitation = ServiceInvitation | UserInvitation;
|
|
197
|
+
/** Holds details on the destination of the mapped artifact */
|
|
198
|
+
export type Sink = AdlsGen2AccountSink | BlobAccountSink;
|
|
199
|
+
/** A class for sent share artifact. */
|
|
200
|
+
export type Artifact = AdlsGen2Artifact | BlobStorageArtifact;
|
|
201
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAGA,6CAA6C;AAC7C,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,SAAS,EAAE,eAAe,GAAG,SAAS,CAAC;CACxC;AAED,oEAAoE;AACpE,MAAM,WAAW,aAAa;CAAG;AAEjC,yCAAyC;AACzC,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,SAAS,EAAE,WAAW,GAAG,SAAS,CAAC;CACpC;AAED,oD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;AAC9C,MAAM,WAAW,wBAAwB;IACvC,kKAAkK;IAClK,cAAc,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB;IACpB,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACtC,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,6CAA6C;AAC7C,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC;AACjD,yCAAyC;AACzC,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACzC,oDAAoD;AACpD,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,cAAc,CAAC;AACrE,8DAA8D;AAC9D,MAAM,MAAM,IAAI,GAAG,mBAAmB,GAAG,eAAe,CAAC;AACzD,uCAAuC;AACvC,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A received share data transfer object. */\nexport interface ReceivedShareParent extends ProxyResource {\n shareKind: \"ReceivedShare\" | \"InPlace\";\n}\n\n/** Base data transfer object implementation for proxy resources. */\nexport interface ProxyResource {}\n\n/** A sent share data transfer object. */\nexport interface SentShareParent extends ProxyResource {\n shareKind: \"SentShare\" | \"InPlace\";\n}\n\n/** A sent share invitation data transfer object. */\nexport interface SentShareInvitationParent extends ProxyResource {\n invitationKind: \"SentShareInvitation\" | \"Service\" | \"User\";\n}\n\n/** A share resource. */\nexport interface ShareResource extends ProxyResource {\n /** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n receivedSharesCount?: number;\n /** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n sentSharesCount?: number;\n /** The types of asset. */\n storeKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** A Store Reference for an artifact or sink. */\n storeReference?: StoreReference;\n}\n\n/** A Store Reference for an artifact or sink. */\nexport interface StoreReference {\n /** Reference name for resource associated with the sink or artifact. */\n referenceName?: string;\n /** Defines the type of resource being shared */\n type?: \"ArmResourceReference\";\n}\n\n/** A tenant email registration data transfer object. */\nexport interface TenantEmailRegistration extends ProxyResource {\n /** Tenant email registration property bag. */\n properties?: TenantEmailRegistrationProperties;\n}\n\n/** Tenant email registration property bag. */\nexport interface TenantEmailRegistrationProperties {\n /** Activation code for the registration. */\n activationCode: string;\n}\n\n/** AdlsGen2 Sink */\nexport interface AdlsGen2AccountSink extends SinkParent {\n /** Properties for AdlsGen2 storage account */\n properties: AdlsGen2AccountSinkProperties;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for AdlsGen2 storage account */\nexport interface AdlsGen2AccountSinkProperties {\n /** Adls Gen 2 Container Name */\n containerName: string;\n /** Adls Gen 2 Folder */\n folder: string;\n /** Adls Gen 2 Mount Path */\n mountPath?: string;\n}\n\n/** Holds details on the destination of the mapped artifact */\nexport interface SinkParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReference;\n storeKind: \"Sink\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** An Adls Gen2 storage account artifact. */\nexport interface AdlsGen2Artifact extends ArtifactParent {\n /** Properties for Adls Gen2 storage account. */\n properties: AdlsGen2ArtifactProperties;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for Adls Gen2 storage account. */\nexport interface AdlsGen2ArtifactProperties {\n /** A list of Adls Gen2 storage account paths. */\n paths: Array<StorageAccountPath>;\n}\n\n/** Defines a single StorageAccountPath path */\nexport interface StorageAccountPath {\n /** Gets or sets the container name */\n containerName: string;\n /** Gets or sets the path on the receiver side where the artifact is to be mapped */\n receiverPath?: string;\n /** Gets or sets the path to file/folder within the container to be shared */\n senderPath?: string;\n}\n\n/** A class for sent share artifact. */\nexport interface ArtifactParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReference;\n storeKind: \"Artifact\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** Blob Sink */\nexport interface BlobAccountSink extends SinkParent {\n /** Properties for blob storage account */\n properties: BlobAccountSinkProperties;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account */\nexport interface BlobAccountSinkProperties {\n /** Blob Container Name */\n containerName: string;\n /** Blob Folder */\n folder: string;\n /** Blob Mount Path */\n mountPath?: string;\n}\n\n/** Blob storage account artifact. */\nexport interface BlobStorageArtifact extends ArtifactParent {\n /** Properties for blob storage account. */\n properties: BlobStorageArtifactProperties;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account. */\nexport interface BlobStorageArtifactProperties {\n /** A list of blob storage account paths. */\n paths: Array<StorageAccountPath>;\n}\n\n/** An InPlace received share kind. */\nexport interface InPlaceReceivedShare extends ReceivedShareParent {\n /** Properties of in place received share. */\n properties: InPlaceReceivedShareProperties;\n shareKind: \"InPlace\";\n}\n\n/** Properties of in place received share. */\nexport interface InPlaceReceivedShareProperties {\n /** The types of asset. */\n assetStoreKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** Received Share Name */\n displayName?: string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** Holds details on the destination of the mapped artifact */\n sink?: Sink;\n}\n\n/** An InPlace share kind. */\nexport interface InPlaceSentShare extends SentShareParent {\n /** Properties for InPlace sent share. */\n properties: InPlaceSentShareProperties;\n shareKind: \"InPlace\";\n}\n\n/** Properties for InPlace sent share. */\nexport interface InPlaceSentShareProperties {\n /** A class for sent share artifact. */\n artifact: Artifact;\n /** Sent share description. */\n description?: string;\n /** The name of the sent share */\n displayName: string;\n}\n\n/** An service invitation kind. */\nexport interface ServiceInvitation extends SentShareInvitationParent {\n /** Properties of the service invitation type. */\n properties: ServiceInvitationProperties;\n invitationKind: \"Service\";\n}\n\n/** Properties of the service invitation type. */\nexport interface ServiceInvitationProperties {\n /** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n expirationDate?: Date | string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /**\n * The target azure active directory id the invitation is sent to.\n *\n * Value may contain a UUID\n */\n targetActiveDirectoryId: string;\n /**\n * The target object id in the azure active directory the invitation is sent to.\n *\n * Value may contain a UUID\n */\n targetObjectId: string;\n}\n\n/** A user invitation kind. */\nexport interface UserInvitation extends SentShareInvitationParent {\n /** Properties of the user invitation type. */\n properties: UserInvitationProperties;\n invitationKind: \"User\";\n}\n\n/** Properties of the user invitation type. */\nexport interface UserInvitationProperties {\n /** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n expirationDate?: Date | string;\n /** Whether or not the recipient was notified via email. */\n notify?: boolean;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** The receiver email for the invitation is being sent. */\n targetEmail: string;\n}\n\n/** A received share data transfer object. */\nexport type ReceivedShare = InPlaceReceivedShare;\n/** A sent share data transfer object. */\nexport type SentShare = InPlaceSentShare;\n/** A sent share invitation data transfer object. */\nexport type SentShareInvitation = ServiceInvitation | UserInvitation;\n/** Holds details on the destination of the mapped artifact */\nexport type Sink = AdlsGen2AccountSink | BlobAccountSink;\n/** A class for sent share artifact. */\nexport type Artifact = AdlsGen2Artifact | BlobStorageArtifact;\n"]}
|