@azure-rest/purview-sharing 1.0.0-alpha.20241119.1 → 1.0.0-alpha.20241122.7

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.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/clientDefinitions.d.ts +87 -0
  3. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  4. package/dist/browser/clientDefinitions.js.map +1 -0
  5. package/dist/browser/index.d.ts +12 -0
  6. package/dist/browser/index.d.ts.map +1 -0
  7. package/dist/browser/index.js +15 -0
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/isUnexpected.d.ts +19 -0
  10. package/dist/browser/isUnexpected.d.ts.map +1 -0
  11. package/dist/browser/isUnexpected.js.map +1 -0
  12. package/dist/browser/models.d.ts +201 -0
  13. package/dist/browser/models.d.ts.map +1 -0
  14. package/dist/browser/outputModels.d.ts +336 -0
  15. package/dist/browser/outputModels.d.ts.map +1 -0
  16. package/dist/browser/package.json +3 -0
  17. package/dist/browser/paginateHelper.d.ts +43 -0
  18. package/dist/browser/paginateHelper.d.ts.map +1 -0
  19. package/dist/browser/parameters.d.ts +123 -0
  20. package/dist/browser/parameters.d.ts.map +1 -0
  21. package/dist/browser/parameters.js.map +1 -0
  22. package/dist/browser/pollingHelper.d.ts +11 -0
  23. package/dist/browser/pollingHelper.d.ts.map +1 -0
  24. package/dist/browser/purviewSharing.d.ts +11 -0
  25. package/dist/browser/purviewSharing.d.ts.map +1 -0
  26. package/dist/browser/purviewSharing.js.map +1 -0
  27. package/dist/browser/responses.d.ts +304 -0
  28. package/dist/browser/responses.d.ts.map +1 -0
  29. package/dist/browser/responses.js.map +1 -0
  30. package/dist/commonjs/clientDefinitions.d.ts +87 -0
  31. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  32. package/dist/commonjs/clientDefinitions.js +5 -0
  33. package/dist/commonjs/clientDefinitions.js.map +1 -0
  34. package/dist/commonjs/index.d.ts +12 -0
  35. package/dist/commonjs/index.d.ts.map +1 -0
  36. package/dist/commonjs/index.js +18 -0
  37. package/dist/commonjs/index.js.map +1 -0
  38. package/dist/commonjs/isUnexpected.d.ts +19 -0
  39. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  40. package/dist/commonjs/isUnexpected.js +89 -0
  41. package/dist/commonjs/isUnexpected.js.map +1 -0
  42. package/dist/commonjs/models.d.ts +201 -0
  43. package/dist/commonjs/models.d.ts.map +1 -0
  44. package/dist/commonjs/models.js +5 -0
  45. package/dist/commonjs/models.js.map +1 -0
  46. package/dist/commonjs/outputModels.d.ts +336 -0
  47. package/dist/commonjs/outputModels.d.ts.map +1 -0
  48. package/dist/commonjs/outputModels.js +5 -0
  49. package/dist/commonjs/outputModels.js.map +1 -0
  50. package/dist/commonjs/package.json +3 -0
  51. package/dist/commonjs/paginateHelper.d.ts +43 -0
  52. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  53. package/dist/commonjs/paginateHelper.js +73 -0
  54. package/dist/commonjs/paginateHelper.js.map +1 -0
  55. package/dist/commonjs/parameters.d.ts +123 -0
  56. package/dist/commonjs/parameters.d.ts.map +1 -0
  57. package/dist/commonjs/parameters.js +5 -0
  58. package/dist/commonjs/parameters.js.map +1 -0
  59. package/dist/commonjs/pollingHelper.d.ts +11 -0
  60. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  61. package/dist/commonjs/pollingHelper.js +53 -0
  62. package/dist/commonjs/pollingHelper.js.map +1 -0
  63. package/dist/commonjs/purviewSharing.d.ts +11 -0
  64. package/dist/commonjs/purviewSharing.d.ts.map +1 -0
  65. package/dist/commonjs/purviewSharing.js +30 -0
  66. package/dist/commonjs/purviewSharing.js.map +1 -0
  67. package/dist/commonjs/responses.d.ts +304 -0
  68. package/dist/commonjs/responses.d.ts.map +1 -0
  69. package/dist/commonjs/responses.js +5 -0
  70. package/dist/commonjs/responses.js.map +1 -0
  71. package/dist/commonjs/tsdoc-metadata.json +11 -0
  72. package/dist/esm/clientDefinitions.d.ts +87 -0
  73. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  74. package/dist/esm/clientDefinitions.js +4 -0
  75. package/dist/esm/clientDefinitions.js.map +1 -0
  76. package/dist/esm/index.d.ts +12 -0
  77. package/dist/esm/index.d.ts.map +1 -0
  78. package/dist/esm/index.js +15 -0
  79. package/dist/esm/index.js.map +1 -0
  80. package/dist/esm/isUnexpected.d.ts +19 -0
  81. package/dist/esm/isUnexpected.d.ts.map +1 -0
  82. package/dist/esm/isUnexpected.js +86 -0
  83. package/dist/esm/isUnexpected.js.map +1 -0
  84. package/dist/esm/models.d.ts +201 -0
  85. package/dist/esm/models.d.ts.map +1 -0
  86. package/dist/esm/models.js +4 -0
  87. package/dist/esm/models.js.map +1 -0
  88. package/dist/esm/outputModels.d.ts +336 -0
  89. package/dist/esm/outputModels.d.ts.map +1 -0
  90. package/dist/esm/outputModels.js +4 -0
  91. package/dist/esm/outputModels.js.map +1 -0
  92. package/dist/esm/package.json +3 -0
  93. package/dist/esm/paginateHelper.d.ts +43 -0
  94. package/dist/esm/paginateHelper.d.ts.map +1 -0
  95. package/dist/esm/paginateHelper.js +70 -0
  96. package/dist/esm/paginateHelper.js.map +1 -0
  97. package/dist/esm/parameters.d.ts +123 -0
  98. package/dist/esm/parameters.d.ts.map +1 -0
  99. package/dist/esm/parameters.js +4 -0
  100. package/dist/esm/parameters.js.map +1 -0
  101. package/dist/esm/pollingHelper.d.ts +11 -0
  102. package/dist/esm/pollingHelper.d.ts.map +1 -0
  103. package/dist/esm/pollingHelper.js +50 -0
  104. package/dist/esm/pollingHelper.js.map +1 -0
  105. package/dist/esm/purviewSharing.d.ts +11 -0
  106. package/dist/esm/purviewSharing.d.ts.map +1 -0
  107. package/dist/esm/purviewSharing.js +27 -0
  108. package/dist/esm/purviewSharing.js.map +1 -0
  109. package/dist/esm/responses.d.ts +304 -0
  110. package/dist/esm/responses.d.ts.map +1 -0
  111. package/dist/esm/responses.js +4 -0
  112. package/dist/esm/responses.js.map +1 -0
  113. package/dist/react-native/clientDefinitions.d.ts +87 -0
  114. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  115. package/dist/react-native/clientDefinitions.js +4 -0
  116. package/dist/react-native/clientDefinitions.js.map +1 -0
  117. package/dist/react-native/index.d.ts +12 -0
  118. package/dist/react-native/index.d.ts.map +1 -0
  119. package/dist/react-native/index.js +15 -0
  120. package/dist/react-native/index.js.map +1 -0
  121. package/dist/react-native/isUnexpected.d.ts +19 -0
  122. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  123. package/dist/react-native/isUnexpected.js +86 -0
  124. package/dist/react-native/isUnexpected.js.map +1 -0
  125. package/dist/react-native/models.d.ts +201 -0
  126. package/dist/react-native/models.d.ts.map +1 -0
  127. package/dist/react-native/models.js +4 -0
  128. package/dist/react-native/models.js.map +1 -0
  129. package/dist/react-native/outputModels.d.ts +336 -0
  130. package/dist/react-native/outputModels.d.ts.map +1 -0
  131. package/dist/react-native/outputModels.js +4 -0
  132. package/dist/react-native/outputModels.js.map +1 -0
  133. package/dist/react-native/package.json +3 -0
  134. package/dist/react-native/paginateHelper.d.ts +43 -0
  135. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  136. package/dist/react-native/paginateHelper.js +70 -0
  137. package/dist/react-native/paginateHelper.js.map +1 -0
  138. package/dist/react-native/parameters.d.ts +123 -0
  139. package/dist/react-native/parameters.d.ts.map +1 -0
  140. package/dist/react-native/parameters.js +4 -0
  141. package/dist/react-native/parameters.js.map +1 -0
  142. package/dist/react-native/pollingHelper.d.ts +11 -0
  143. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  144. package/dist/react-native/pollingHelper.js +50 -0
  145. package/dist/react-native/pollingHelper.js.map +1 -0
  146. package/dist/react-native/purviewSharing.d.ts +11 -0
  147. package/dist/react-native/purviewSharing.d.ts.map +1 -0
  148. package/dist/react-native/purviewSharing.js +27 -0
  149. package/dist/react-native/purviewSharing.js.map +1 -0
  150. package/dist/react-native/responses.d.ts +304 -0
  151. package/dist/react-native/responses.d.ts.map +1 -0
  152. package/dist/react-native/responses.js +4 -0
  153. package/dist/react-native/responses.js.map +1 -0
  154. package/package.json +69 -49
  155. package/dist/index.js +0 -245
  156. package/dist/index.js.map +0 -1
  157. package/dist-esm/src/clientDefinitions.js.map +0 -1
  158. package/dist-esm/src/index.js +0 -14
  159. package/dist-esm/src/index.js.map +0 -1
  160. package/dist-esm/src/isUnexpected.js.map +0 -1
  161. package/dist-esm/src/parameters.js.map +0 -1
  162. package/dist-esm/src/purviewSharing.js.map +0 -1
  163. package/dist-esm/src/responses.js.map +0 -1
  164. package/review/purview-sharing.api.md +0 -1299
  165. /package/{dist-esm/src → dist/browser}/clientDefinitions.js +0 -0
  166. /package/{dist-esm/src → dist/browser}/isUnexpected.js +0 -0
  167. /package/{dist-esm/src → dist/browser}/models.js +0 -0
  168. /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
  169. /package/{dist-esm/src → dist/browser}/outputModels.js +0 -0
  170. /package/{dist-esm/src → dist/browser}/outputModels.js.map +0 -0
  171. /package/{dist-esm/src → dist/browser}/paginateHelper.js +0 -0
  172. /package/{dist-esm/src → dist/browser}/paginateHelper.js.map +0 -0
  173. /package/{dist-esm/src → dist/browser}/parameters.js +0 -0
  174. /package/{dist-esm/src → dist/browser}/pollingHelper.js +0 -0
  175. /package/{dist-esm/src → dist/browser}/pollingHelper.js.map +0 -0
  176. /package/{dist-esm/src → dist/browser}/purviewSharing.js +0 -0
  177. /package/{dist-esm/src → dist/browser}/responses.js +0 -0
  178. /package/{types → dist}/purview-sharing.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n ReceivedShareOutput,\n PurviewShareErrorOutput,\n OperationResponseOutput,\n ReceivedShareListOutput,\n TenantEmailRegistrationOutput,\n SentShareListOutput,\n SentShareOutput,\n SentShareInvitationListOutput,\n SentShareInvitationOutput,\n ShareResourceListOutput,\n} from \"./outputModels.js\";\n\n/** Get a received share */\nexport interface ReceivedSharesGetReceivedShare200Response extends HttpResponse {\n status: \"200\";\n body: ReceivedShareOutput;\n}\n\nexport interface ReceivedSharesGetReceivedShareDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a received share */\nexport interface ReceivedSharesGetReceivedShareDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesGetReceivedShareDefaultHeaders;\n}\n\nexport interface ReceivedSharesCreateOrReplace200Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Update changes to a received share */\nexport interface ReceivedSharesCreateOrReplace200Response extends HttpResponse {\n status: \"200\";\n body: ReceivedShareOutput;\n headers: RawHttpHeaders & ReceivedSharesCreateOrReplace200Headers;\n}\n\nexport interface ReceivedSharesCreateOrReplace201Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Update changes to a received share */\nexport interface ReceivedSharesCreateOrReplace201Response extends HttpResponse {\n status: \"201\";\n body: ReceivedShareOutput;\n headers: RawHttpHeaders & ReceivedSharesCreateOrReplace201Headers;\n}\n\nexport interface ReceivedSharesCreateOrReplaceDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Update changes to a received share */\nexport interface ReceivedSharesCreateOrReplaceDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesCreateOrReplaceDefaultHeaders;\n}\n\nexport interface ReceivedSharesDeleteReceivedShare202Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Delete a received share */\nexport interface ReceivedSharesDeleteReceivedShare202Response extends HttpResponse {\n status: \"202\";\n body: OperationResponseOutput;\n headers: RawHttpHeaders & ReceivedSharesDeleteReceivedShare202Headers;\n}\n\nexport interface ReceivedSharesDeleteReceivedShareDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Delete a received share */\nexport interface ReceivedSharesDeleteReceivedShareDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesDeleteReceivedShareDefaultHeaders;\n}\n\n/** List attached received shares */\nexport interface ReceivedSharesGetAllAttachedReceivedShares200Response extends HttpResponse {\n status: \"200\";\n body: ReceivedShareListOutput;\n}\n\nexport interface ReceivedSharesGetAllAttachedReceivedSharesDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** List attached received shares */\nexport interface ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesGetAllAttachedReceivedSharesDefaultHeaders;\n}\n\n/** List detached received shares */\nexport interface ReceivedSharesGetAllDetachedReceivedShares200Response extends HttpResponse {\n status: \"200\";\n body: ReceivedShareListOutput;\n}\n\nexport interface ReceivedSharesGetAllDetachedReceivedSharesDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** List detached received shares */\nexport interface ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesGetAllDetachedReceivedSharesDefaultHeaders;\n}\n\n/** Activates the email registration for current tenant */\nexport interface ReceivedSharesActivateTenantEmailRegistration200Response extends HttpResponse {\n status: \"200\";\n body: TenantEmailRegistrationOutput;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistrationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Activates the email registration for current tenant */\nexport interface ReceivedSharesActivateTenantEmailRegistrationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesActivateTenantEmailRegistrationDefaultHeaders;\n}\n\n/** Register an email for the current tenant */\nexport interface ReceivedSharesRegisterTenantEmailRegistration200Response extends HttpResponse {\n status: \"200\";\n body: TenantEmailRegistrationOutput;\n}\n\nexport interface ReceivedSharesRegisterTenantEmailRegistrationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Register an email for the current tenant */\nexport interface ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ReceivedSharesRegisterTenantEmailRegistrationDefaultHeaders;\n}\n\n/** List sent shares */\nexport interface SentSharesGetAllSentShares200Response extends HttpResponse {\n status: \"200\";\n body: SentShareListOutput;\n}\n\nexport interface SentSharesGetAllSentSharesDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** List sent shares */\nexport interface SentSharesGetAllSentSharesDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesGetAllSentSharesDefaultHeaders;\n}\n\n/** Get a sent share */\nexport interface SentSharesGetSentShare200Response extends HttpResponse {\n status: \"200\";\n body: SentShareOutput;\n}\n\nexport interface SentSharesGetSentShareDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get a sent share */\nexport interface SentSharesGetSentShareDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesGetSentShareDefaultHeaders;\n}\n\nexport interface SentSharesCreateOrReplace200Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Create or replace a sent share */\nexport interface SentSharesCreateOrReplace200Response extends HttpResponse {\n status: \"200\";\n body: SentShareOutput;\n headers: RawHttpHeaders & SentSharesCreateOrReplace200Headers;\n}\n\nexport interface SentSharesCreateOrReplace201Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Create or replace a sent share */\nexport interface SentSharesCreateOrReplace201Response extends HttpResponse {\n status: \"201\";\n body: SentShareOutput;\n headers: RawHttpHeaders & SentSharesCreateOrReplace201Headers;\n}\n\nexport interface SentSharesCreateOrReplaceDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Create or replace a sent share */\nexport interface SentSharesCreateOrReplaceDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesCreateOrReplaceDefaultHeaders;\n}\n\nexport interface SentSharesDeleteSentShare202Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Delete a sent share */\nexport interface SentSharesDeleteSentShare202Response extends HttpResponse {\n status: \"202\";\n body: OperationResponseOutput;\n headers: RawHttpHeaders & SentSharesDeleteSentShare202Headers;\n}\n\nexport interface SentSharesDeleteSentShareDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Delete a sent share */\nexport interface SentSharesDeleteSentShareDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesDeleteSentShareDefaultHeaders;\n}\n\n/** List sent share recipients */\nexport interface SentSharesGetAllSentShareInvitations200Response extends HttpResponse {\n status: \"200\";\n body: SentShareInvitationListOutput;\n}\n\nexport interface SentSharesGetAllSentShareInvitationsDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** List sent share recipients */\nexport interface SentSharesGetAllSentShareInvitationsDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesGetAllSentShareInvitationsDefaultHeaders;\n}\n\n/** Get recipient for a given sent share */\nexport interface SentSharesGetSentShareInvitation200Response extends HttpResponse {\n status: \"200\";\n body: SentShareInvitationOutput;\n}\n\nexport interface SentSharesGetSentShareInvitationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Get recipient for a given sent share */\nexport interface SentSharesGetSentShareInvitationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesGetSentShareInvitationDefaultHeaders;\n}\n\n/** Create a recipient for a given sent share */\nexport interface SentSharesCreateSentShareInvitation201Response extends HttpResponse {\n status: \"201\";\n body: SentShareInvitationOutput;\n}\n\nexport interface SentSharesCreateSentShareInvitationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Create a recipient for a given sent share */\nexport interface SentSharesCreateSentShareInvitationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesCreateSentShareInvitationDefaultHeaders;\n}\n\nexport interface SentSharesDeleteSentShareInvitation202Headers {\n /** The URL to track the status of the long running operation. */\n \"operation-location\"?: string;\n}\n\n/** Delete a sent share invitation */\nexport interface SentSharesDeleteSentShareInvitation202Response extends HttpResponse {\n status: \"202\";\n body: OperationResponseOutput;\n headers: RawHttpHeaders & SentSharesDeleteSentShareInvitation202Headers;\n}\n\nexport interface SentSharesDeleteSentShareInvitationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Delete a sent share invitation */\nexport interface SentSharesDeleteSentShareInvitationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesDeleteSentShareInvitationDefaultHeaders;\n}\n\n/** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */\nexport interface SentSharesNotifyUserSentShareInvitation200Response extends HttpResponse {\n status: \"200\";\n body: SentShareInvitationOutput;\n}\n\nexport interface SentSharesNotifyUserSentShareInvitationDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */\nexport interface SentSharesNotifyUserSentShareInvitationDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & SentSharesNotifyUserSentShareInvitationDefaultHeaders;\n}\n\n/** List share resources */\nexport interface ShareResourcesGetAllShareResources200Response extends HttpResponse {\n status: \"200\";\n body: ShareResourceListOutput;\n}\n\nexport interface ShareResourcesGetAllShareResourcesDefaultHeaders {\n /** The error code */\n \"x-ms-error-code\"?: string;\n}\n\n/** List share resources */\nexport interface ShareResourcesGetAllShareResourcesDefaultResponse extends HttpResponse {\n status: string;\n body: PurviewShareErrorOutput;\n headers: RawHttpHeaders & ShareResourcesGetAllShareResourcesDefaultHeaders;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.47.12"
9
+ }
10
+ ]
11
+ }
@@ -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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,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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map
@@ -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,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;AAsBxB,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,yCAAyC,GACzC,6CAA6C,GAChD,QAAQ,IAAI,6CAA6C,CAAC;AAC7D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,wCAAwC,GACxC,wCAAwC,GACxC,4CAA4C,GAC/C,QAAQ,IAAI,4CAA4C,CAAC;AAC5D,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,4CAA4C,GAC5C,gDAAgD,GACnD,QAAQ,IAAI,gDAAgD,CAAC;AAChE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,qDAAqD,GACrD,yDAAy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AC;AACtE,wBAAgB,YAAY,CAC1B,QAAQ,EACJ,6CAA6C,GAC7C,iDAAiD,GACpD,QAAQ,IAAI,iDAAiD,CAAC"}
@@ -0,0 +1,86 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ const responseMap = {
4
+ "GET /receivedShares/{receivedShareId}": ["200"],
5
+ "PUT /receivedShares/{receivedShareId}": ["200", "201"],
6
+ "DELETE /receivedShares/{receivedShareId}": ["202"],
7
+ "GET /receivedShares/attached": ["200"],
8
+ "GET /receivedShares/detached": ["200"],
9
+ "POST /emails:activate": ["200"],
10
+ "POST /emails:register": ["200"],
11
+ "GET /sentShares": ["200"],
12
+ "GET /sentShares/{sentShareId}": ["200"],
13
+ "PUT /sentShares/{sentShareId}": ["200", "201"],
14
+ "DELETE /sentShares/{sentShareId}": ["202"],
15
+ "GET /sentShares/{sentShareId}/sentShareInvitations": ["200"],
16
+ "GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["200"],
17
+ "PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["201"],
18
+ "DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["202"],
19
+ "POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify": ["200"],
20
+ "GET /shareResources": ["200"],
21
+ };
22
+ export function isUnexpected(response) {
23
+ const lroOriginal = response.headers["x-ms-original-url"];
24
+ const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
25
+ const method = response.request.method;
26
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
27
+ if (!pathDetails) {
28
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
29
+ }
30
+ return !pathDetails.includes(response.status);
31
+ }
32
+ function getParametrizedPathSuccess(method, path) {
33
+ var _a, _b, _c, _d;
34
+ const pathParts = path.split("/");
35
+ // Traverse list to match the longest candidate
36
+ // matchedLen: the length of candidate path
37
+ // matchedValue: the matched status code array
38
+ let matchedLen = -1, matchedValue = [];
39
+ // Iterate the responseMap to find a match
40
+ for (const [key, value] of Object.entries(responseMap)) {
41
+ // Extracting the path from the map key which is in format
42
+ // GET /path/foo
43
+ if (!key.startsWith(method)) {
44
+ continue;
45
+ }
46
+ const candidatePath = getPathFromMapKey(key);
47
+ // Get each part of the url path
48
+ const candidateParts = candidatePath.split("/");
49
+ // track if we have found a match to return the values found.
50
+ let found = true;
51
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
52
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
53
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
54
+ // If the current part of the candidate is a "template" part
55
+ // Try to use the suffix of pattern to match the path
56
+ // {guid} ==> $
57
+ // {guid}:export ==> :export$
58
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
59
+ if (!isMatched) {
60
+ found = false;
61
+ break;
62
+ }
63
+ continue;
64
+ }
65
+ // If the candidate part is not a template and
66
+ // the parts don't match mark the candidate as not found
67
+ // to move on with the next candidate path.
68
+ if (candidateParts[i] !== pathParts[j]) {
69
+ found = false;
70
+ break;
71
+ }
72
+ }
73
+ // We finished evaluating the current candidate parts
74
+ // Update the matched value if and only if we found the longer pattern
75
+ if (found && candidatePath.length > matchedLen) {
76
+ matchedLen = candidatePath.length;
77
+ matchedValue = value;
78
+ }
79
+ }
80
+ return matchedValue;
81
+ }
82
+ function getPathFromMapKey(mapKey) {
83
+ const pathStart = mapKey.indexOf("/");
84
+ return mapKey.slice(pathStart);
85
+ }
86
+ //# sourceMappingURL=isUnexpected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"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,CAAC,CAAC,CAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAC/C,GAAG,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC;gBAClC,4DAA4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed 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,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,oDAAoD;AACpD,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAAG,MAAM,CAAC;CAC5D;AAED,wBAAwB;AACxB,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,oIAAoI;IACpI,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gIAAgI;IAChI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,iBAAiB,GAAG,aAAa,CAAC;IAC9C,iDAAiD;IACjD,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B;AAED,wDAAwD;AACxD,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,8CAA8C;IAC9C,UAAU,CAAC,EAAE,iCAAiC,CAAC;CAChD;AAED,8CAA8C;AAC9C,MAAM,WAAW,iCAAiC;IAChD,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,oBAAoB;AACpB,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,8CAA8C;IAC9C,UAAU,EAAE,6BAA6B,CAAC;IAC1C,S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