@azure-rest/purview-sharing 1.0.0-beta.1 → 1.0.0-beta.4

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 (207) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE +4 -4
  3. package/README.md +74 -3
  4. package/dist/browser/clientDefinitions.d.ts +87 -0
  5. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  6. package/dist/browser/clientDefinitions.js +4 -0
  7. package/dist/browser/clientDefinitions.js.map +1 -0
  8. package/dist/browser/index.d.ts +12 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/dist/browser/index.js +15 -0
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/isUnexpected.d.ts +19 -0
  13. package/dist/browser/isUnexpected.d.ts.map +1 -0
  14. package/{dist-esm/src → dist/browser}/isUnexpected.js +6 -6
  15. package/dist/browser/isUnexpected.js.map +1 -0
  16. package/dist/browser/logger.d.ts +2 -0
  17. package/dist/browser/logger.d.ts.map +1 -0
  18. package/dist/browser/logger.js +5 -0
  19. package/dist/browser/logger.js.map +1 -0
  20. package/dist/browser/models.d.ts +201 -0
  21. package/dist/browser/models.d.ts.map +1 -0
  22. package/dist/browser/models.js +4 -0
  23. package/dist/browser/models.js.map +1 -0
  24. package/dist/browser/outputModels.d.ts +352 -0
  25. package/dist/browser/outputModels.d.ts.map +1 -0
  26. package/dist/browser/outputModels.js +4 -0
  27. package/dist/browser/outputModels.js.map +1 -0
  28. package/dist/browser/package.json +3 -0
  29. package/dist/browser/paginateHelper.d.ts +68 -0
  30. package/dist/browser/paginateHelper.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/paginateHelper.js +70 -3
  32. package/dist/browser/paginateHelper.js.map +1 -0
  33. package/dist/browser/parameters.d.ts +123 -0
  34. package/dist/browser/parameters.d.ts.map +1 -0
  35. package/dist/browser/parameters.js +4 -0
  36. package/dist/browser/parameters.js.map +1 -0
  37. package/dist/browser/pollingHelper.d.ts +76 -0
  38. package/dist/browser/pollingHelper.d.ts.map +1 -0
  39. package/dist/browser/pollingHelper.js +107 -0
  40. package/dist/browser/pollingHelper.js.map +1 -0
  41. package/dist/browser/purviewSharing.d.ts +16 -0
  42. package/dist/browser/purviewSharing.d.ts.map +1 -0
  43. package/dist/browser/purviewSharing.js +45 -0
  44. package/dist/browser/purviewSharing.js.map +1 -0
  45. package/dist/browser/responses.d.ts +304 -0
  46. package/dist/browser/responses.d.ts.map +1 -0
  47. package/dist/browser/responses.js +4 -0
  48. package/dist/browser/responses.js.map +1 -0
  49. package/dist/commonjs/clientDefinitions.d.ts +87 -0
  50. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  51. package/dist/commonjs/clientDefinitions.js +5 -0
  52. package/dist/commonjs/clientDefinitions.js.map +1 -0
  53. package/dist/commonjs/index.d.ts +12 -0
  54. package/dist/commonjs/index.d.ts.map +1 -0
  55. package/dist/commonjs/index.js +18 -0
  56. package/dist/commonjs/index.js.map +1 -0
  57. package/dist/commonjs/isUnexpected.d.ts +19 -0
  58. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  59. package/dist/commonjs/isUnexpected.js +88 -0
  60. package/dist/commonjs/isUnexpected.js.map +1 -0
  61. package/dist/commonjs/logger.d.ts +2 -0
  62. package/dist/commonjs/logger.d.ts.map +1 -0
  63. package/dist/commonjs/logger.js +8 -0
  64. package/dist/commonjs/logger.js.map +1 -0
  65. package/dist/commonjs/models.d.ts +201 -0
  66. package/dist/commonjs/models.d.ts.map +1 -0
  67. package/dist/commonjs/models.js +5 -0
  68. package/dist/commonjs/models.js.map +1 -0
  69. package/dist/commonjs/outputModels.d.ts +352 -0
  70. package/dist/commonjs/outputModels.d.ts.map +1 -0
  71. package/dist/commonjs/outputModels.js +5 -0
  72. package/dist/commonjs/outputModels.js.map +1 -0
  73. package/dist/commonjs/package.json +3 -0
  74. package/dist/commonjs/paginateHelper.d.ts +68 -0
  75. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  76. package/dist/commonjs/paginateHelper.js +140 -0
  77. package/dist/commonjs/paginateHelper.js.map +1 -0
  78. package/dist/commonjs/parameters.d.ts +123 -0
  79. package/dist/commonjs/parameters.d.ts.map +1 -0
  80. package/dist/commonjs/parameters.js +5 -0
  81. package/dist/commonjs/parameters.js.map +1 -0
  82. package/dist/commonjs/pollingHelper.d.ts +76 -0
  83. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  84. package/dist/commonjs/pollingHelper.js +110 -0
  85. package/dist/commonjs/pollingHelper.js.map +1 -0
  86. package/dist/commonjs/purviewSharing.d.ts +16 -0
  87. package/dist/commonjs/purviewSharing.d.ts.map +1 -0
  88. package/dist/commonjs/purviewSharing.js +48 -0
  89. package/dist/commonjs/purviewSharing.js.map +1 -0
  90. package/dist/commonjs/responses.d.ts +304 -0
  91. package/dist/commonjs/responses.d.ts.map +1 -0
  92. package/dist/commonjs/responses.js +5 -0
  93. package/dist/commonjs/responses.js.map +1 -0
  94. package/dist/commonjs/tsdoc-metadata.json +11 -0
  95. package/dist/esm/clientDefinitions.d.ts +87 -0
  96. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  97. package/dist/esm/clientDefinitions.js +4 -0
  98. package/dist/esm/clientDefinitions.js.map +1 -0
  99. package/dist/esm/index.d.ts +12 -0
  100. package/dist/esm/index.d.ts.map +1 -0
  101. package/dist/esm/index.js +15 -0
  102. package/dist/esm/index.js.map +1 -0
  103. package/dist/esm/isUnexpected.d.ts +19 -0
  104. package/dist/esm/isUnexpected.d.ts.map +1 -0
  105. package/dist/esm/isUnexpected.js +85 -0
  106. package/dist/esm/isUnexpected.js.map +1 -0
  107. package/dist/esm/logger.d.ts +2 -0
  108. package/dist/esm/logger.d.ts.map +1 -0
  109. package/dist/esm/logger.js +5 -0
  110. package/dist/esm/logger.js.map +1 -0
  111. package/dist/esm/models.d.ts +201 -0
  112. package/dist/esm/models.d.ts.map +1 -0
  113. package/dist/esm/models.js +4 -0
  114. package/dist/esm/models.js.map +1 -0
  115. package/dist/esm/outputModels.d.ts +352 -0
  116. package/dist/esm/outputModels.d.ts.map +1 -0
  117. package/dist/esm/outputModels.js +4 -0
  118. package/dist/esm/outputModels.js.map +1 -0
  119. package/dist/esm/package.json +3 -0
  120. package/dist/esm/paginateHelper.d.ts +68 -0
  121. package/dist/esm/paginateHelper.d.ts.map +1 -0
  122. package/dist/esm/paginateHelper.js +137 -0
  123. package/dist/esm/paginateHelper.js.map +1 -0
  124. package/dist/esm/parameters.d.ts +123 -0
  125. package/dist/esm/parameters.d.ts.map +1 -0
  126. package/dist/esm/parameters.js +4 -0
  127. package/dist/esm/parameters.js.map +1 -0
  128. package/dist/esm/pollingHelper.d.ts +76 -0
  129. package/dist/esm/pollingHelper.d.ts.map +1 -0
  130. package/dist/esm/pollingHelper.js +107 -0
  131. package/dist/esm/pollingHelper.js.map +1 -0
  132. package/dist/esm/purviewSharing.d.ts +16 -0
  133. package/dist/esm/purviewSharing.d.ts.map +1 -0
  134. package/dist/esm/purviewSharing.js +45 -0
  135. package/dist/esm/purviewSharing.js.map +1 -0
  136. package/dist/esm/responses.d.ts +304 -0
  137. package/dist/esm/responses.d.ts.map +1 -0
  138. package/dist/esm/responses.js +4 -0
  139. package/dist/esm/responses.js.map +1 -0
  140. package/dist/react-native/clientDefinitions.d.ts +87 -0
  141. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  142. package/dist/react-native/clientDefinitions.js +4 -0
  143. package/dist/react-native/clientDefinitions.js.map +1 -0
  144. package/dist/react-native/index.d.ts +12 -0
  145. package/dist/react-native/index.d.ts.map +1 -0
  146. package/dist/react-native/index.js +15 -0
  147. package/dist/react-native/index.js.map +1 -0
  148. package/dist/react-native/isUnexpected.d.ts +19 -0
  149. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  150. package/dist/react-native/isUnexpected.js +85 -0
  151. package/dist/react-native/isUnexpected.js.map +1 -0
  152. package/dist/react-native/logger.d.ts +2 -0
  153. package/dist/react-native/logger.d.ts.map +1 -0
  154. package/dist/react-native/logger.js +5 -0
  155. package/dist/react-native/logger.js.map +1 -0
  156. package/dist/react-native/models.d.ts +201 -0
  157. package/dist/react-native/models.d.ts.map +1 -0
  158. package/dist/react-native/models.js +4 -0
  159. package/dist/react-native/models.js.map +1 -0
  160. package/dist/react-native/outputModels.d.ts +352 -0
  161. package/dist/react-native/outputModels.d.ts.map +1 -0
  162. package/dist/react-native/outputModels.js +4 -0
  163. package/dist/react-native/outputModels.js.map +1 -0
  164. package/dist/react-native/package.json +3 -0
  165. package/dist/react-native/paginateHelper.d.ts +68 -0
  166. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  167. package/dist/react-native/paginateHelper.js +137 -0
  168. package/dist/react-native/paginateHelper.js.map +1 -0
  169. package/dist/react-native/parameters.d.ts +123 -0
  170. package/dist/react-native/parameters.d.ts.map +1 -0
  171. package/dist/react-native/parameters.js +4 -0
  172. package/dist/react-native/parameters.js.map +1 -0
  173. package/dist/react-native/pollingHelper.d.ts +76 -0
  174. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  175. package/dist/react-native/pollingHelper.js +107 -0
  176. package/dist/react-native/pollingHelper.js.map +1 -0
  177. package/dist/react-native/purviewSharing.d.ts +16 -0
  178. package/dist/react-native/purviewSharing.d.ts.map +1 -0
  179. package/dist/react-native/purviewSharing.js +45 -0
  180. package/dist/react-native/purviewSharing.js.map +1 -0
  181. package/dist/react-native/responses.d.ts +304 -0
  182. package/dist/react-native/responses.d.ts.map +1 -0
  183. package/dist/react-native/responses.js +4 -0
  184. package/dist/react-native/responses.js.map +1 -0
  185. package/package.json +86 -78
  186. package/review/{purview-sharing.api.md → purview-sharing-node.api.md} +123 -19
  187. package/dist/index.js +0 -240
  188. package/dist/index.js.map +0 -1
  189. package/dist-esm/src/clientDefinitions.js +0 -4
  190. package/dist-esm/src/clientDefinitions.js.map +0 -1
  191. package/dist-esm/src/index.js +0 -14
  192. package/dist-esm/src/index.js.map +0 -1
  193. package/dist-esm/src/isUnexpected.js.map +0 -1
  194. package/dist-esm/src/models.js +0 -4
  195. package/dist-esm/src/models.js.map +0 -1
  196. package/dist-esm/src/outputModels.js +0 -4
  197. package/dist-esm/src/outputModels.js.map +0 -1
  198. package/dist-esm/src/paginateHelper.js.map +0 -1
  199. package/dist-esm/src/parameters.js +0 -4
  200. package/dist-esm/src/parameters.js.map +0 -1
  201. package/dist-esm/src/pollingHelper.js +0 -50
  202. package/dist-esm/src/pollingHelper.js.map +0 -1
  203. package/dist-esm/src/purviewSharing.js +0 -27
  204. package/dist-esm/src/purviewSharing.js.map +0 -1
  205. package/dist-esm/src/responses.js +0 -4
  206. package/dist-esm/src/responses.js.map +0 -1
  207. package/types/purview-sharing.d.ts +0 -1270
@@ -1 +0,0 @@
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 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/** 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/** 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"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=outputModels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.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 ReceivedShareOutputParent extends ProxyResourceOutput {\n shareKind: \"ReceivedShare\" | \"InPlace\";\n}\n\n/** Base data transfer object implementation for proxy resources. */\nexport interface ProxyResourceOutput {\n /** The unique id of the resource. */\n readonly id?: string;\n /** Type of the resource. */\n readonly type?: string;\n}\n\n/** The purview share error model. */\nexport interface PurviewShareErrorOutput {\n /** The purview share error body model. */\n error: PurviewShareErrorInfoOutput;\n}\n\n/** The purview share error body model. */\nexport interface PurviewShareErrorInfoOutput {\n /** Code of the error */\n code: string;\n /** Nested details of the error model */\n details?: Array<PurviewShareErrorInfoOutput>;\n /** Message of the error */\n message: string;\n /** Target of the error */\n target?: string;\n}\n\n/** Response for long running operation. */\nexport interface OperationResponseOutput {\n /** End time of the long running operation. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n endTime?: string;\n /** The purview share error body model. */\n error?: PurviewShareErrorInfoOutput;\n /** Job id of the long running operation */\n id?: string;\n /** Start time of the long running operation. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n startTime?: string;\n /** States for long running operations. */\n status: \"Running\" | \"TransientFailure\" | \"Succeeded\" | \"Failed\" | \"NotStarted\";\n}\n\n/** List of received shares. */\nexport interface ReceivedShareListOutput {\n /** The Url of next result page. */\n nextLink?: string;\n /** Collection of items of type DataTransferObjects. */\n value: Array<ReceivedShareOutput>;\n}\n\n/** List of sent shares. */\nexport interface SentShareListOutput {\n /** The Url of next result page. */\n nextLink?: string;\n /** Collection of items of type DataTransferObjects. */\n value: Array<SentShareOutput>;\n}\n\n/** A sent share data transfer object. */\nexport interface SentShareOutputParent extends ProxyResourceOutput {\n shareKind: \"SentShare\" | \"InPlace\";\n}\n\n/** List of the sent share invitations */\nexport interface SentShareInvitationListOutput {\n /** The Url of next result page. */\n nextLink?: string;\n /** Collection of items of type DataTransferObjects. */\n value: Array<SentShareInvitationOutput>;\n}\n\n/** A sent share invitation data transfer object. */\nexport interface SentShareInvitationOutputParent extends ProxyResourceOutput {\n invitationKind: \"SentShareInvitation\" | \"Service\" | \"User\";\n}\n\n/** A tenant email registration data transfer object. */\nexport interface TenantEmailRegistrationOutput extends ProxyResourceOutput {\n /** Tenant email registration property bag. */\n properties?: TenantEmailRegistrationPropertiesOutput;\n}\n\n/** Tenant email registration property bag. */\nexport interface TenantEmailRegistrationPropertiesOutput {\n /** Activation code for the registration. */\n activationCode: string;\n /** Date of the activation expiration. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly activationExpiration?: string;\n /** The email to register. */\n readonly email?: string;\n /** Defines the supported types for registration. */\n readonly registrationStatus?: \"ActivationPending\" | \"Activated\" | \"ActivationAttemptsExhausted\";\n /** State of the resource */\n readonly state?: \"Unknown\" | \"Succeeded\" | \"Creating\" | \"Deleting\" | \"Moving\" | \"Failed\";\n /** The tenant id to register. */\n readonly tenantId?: string;\n}\n\n/** AdlsGen2 Sink */\nexport interface AdlsGen2AccountSinkOutput extends SinkOutputParent {\n /** Properties for AdlsGen2 storage account */\n properties: AdlsGen2AccountSinkPropertiesOutput;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for AdlsGen2 storage account */\nexport interface AdlsGen2AccountSinkPropertiesOutput {\n /** Adls Gen 2 Container Name */\n containerName: string;\n /** Adls Gen 2 Folder */\n folder: string;\n /** Adls Gen 2 Location */\n readonly location?: string;\n /** Adls Gen 2 Mount Path */\n mountPath?: string;\n}\n\n/** Holds details on the destination of the mapped artifact */\nexport interface SinkOutputParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReferenceOutput;\n storeKind: \"Sink\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** A Store Reference for an artifact or sink. */\nexport interface StoreReferenceOutput {\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/** An Adls Gen2 storage account artifact. */\nexport interface AdlsGen2ArtifactOutput extends ArtifactOutputParent {\n /** Properties for Adls Gen2 storage account. */\n properties: AdlsGen2ArtifactPropertiesOutput;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for Adls Gen2 storage account. */\nexport interface AdlsGen2ArtifactPropertiesOutput {\n /** Location of the storage account. */\n readonly location?: string;\n /** A list of Adls Gen2 storage account paths. */\n paths: Array<StorageAccountPathOutput>;\n}\n\n/** Defines a single StorageAccountPath path */\nexport interface StorageAccountPathOutput {\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 ArtifactOutputParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReferenceOutput;\n storeKind: \"Artifact\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** Blob Sink */\nexport interface BlobAccountSinkOutput extends SinkOutputParent {\n /** Properties for blob storage account */\n properties: BlobAccountSinkPropertiesOutput;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account */\nexport interface BlobAccountSinkPropertiesOutput {\n /** Blob Container Name */\n containerName: string;\n /** Blob Folder */\n folder: string;\n /** Blob Location */\n readonly location?: string;\n /** Blob Mount Path */\n mountPath?: string;\n}\n\n/** Blob storage account artifact. */\nexport interface BlobStorageArtifactOutput extends ArtifactOutputParent {\n /** Properties for blob storage account. */\n properties: BlobStorageArtifactPropertiesOutput;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account. */\nexport interface BlobStorageArtifactPropertiesOutput {\n /** Location of the storage account. */\n readonly location?: string;\n /** A list of blob storage account paths. */\n paths: Array<StorageAccountPathOutput>;\n}\n\n/** An InPlace received share kind. */\nexport interface InPlaceReceivedShareOutput extends ReceivedShareOutputParent {\n /** Properties of in place received share. */\n properties: InPlaceReceivedSharePropertiesOutput;\n shareKind: \"InPlace\";\n}\n\n/** Properties of in place received share. */\nexport interface InPlaceReceivedSharePropertiesOutput {\n /** Location of the shared Asset. */\n readonly assetLocation?: string;\n /** The types of asset. */\n assetStoreKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** Time at which the received share was created. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly createdAt?: string;\n /** Received Share Name */\n displayName?: string;\n /** The expiration date of the received share. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly expirationDate?: string;\n /** Email of the user/receiver who received the sent share invitation */\n readonly receiverEmail?: string;\n /** Name of the user/receiver who received the sent share invitation */\n readonly receiverName?: string;\n /** Tenant name of the user/receiver who received the sent share invitation */\n readonly receiverTenantName?: string;\n /** Email of the sender who created the sent share invitation */\n readonly senderEmail?: string;\n /** Name of the sender who created the sent share invitation */\n readonly senderName?: string;\n /** Tenant name of the sender who created the sent share invitation */\n readonly senderTenantName?: string;\n /** Share description. */\n readonly sentShareDescription?: string;\n /** Time at which the sent share was shared. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly sharedAt?: string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** Holds details on the destination of the mapped artifact */\n sink?: SinkOutput;\n /** State of the resource */\n readonly state?: \"Unknown\" | \"Succeeded\" | \"Creating\" | \"Deleting\" | \"Moving\" | \"Failed\";\n}\n\n/** An InPlace share kind. */\nexport interface InPlaceSentShareOutput extends SentShareOutputParent {\n /** Properties for InPlace sent share. */\n properties: InPlaceSentSharePropertiesOutput;\n shareKind: \"InPlace\";\n}\n\n/** Properties for InPlace sent share. */\nexport interface InPlaceSentSharePropertiesOutput {\n /** A class for sent share artifact. */\n artifact: ArtifactOutput;\n /** Time at which the sent share was created. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly createdAt?: string;\n /** List of shares on which the sent share depends. */\n readonly dependsOn?: Array<string>;\n /** Sent share description. */\n description?: string;\n /** The name of the sent share */\n displayName: string;\n /** Email of the sender who created the sent share. */\n readonly senderEmail?: string;\n /** Name of the sender who created the sent share. */\n readonly senderName?: string;\n /** Tenant name of the sender who created the sent share. */\n readonly senderTenantName?: string;\n /** State of the resource */\n readonly state?: \"Unknown\" | \"Succeeded\" | \"Creating\" | \"Deleting\" | \"Moving\" | \"Failed\";\n}\n\n/** An service invitation kind. */\nexport interface ServiceInvitationOutput extends SentShareInvitationOutputParent {\n /** Properties of the service invitation type. */\n properties: ServiceInvitationPropertiesOutput;\n invitationKind: \"Service\";\n}\n\n/** Properties of the service invitation type. */\nexport interface ServiceInvitationPropertiesOutput {\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?: string;\n /** Email address of the sender. */\n readonly senderEmail?: string;\n /** Name of the sender */\n readonly senderName?: string;\n /** Tenant name of the sender */\n readonly senderTenantName?: string;\n /** Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly sentAt?: string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** State of the resource */\n readonly state?: \"Unknown\" | \"Succeeded\" | \"Creating\" | \"Deleting\" | \"Moving\" | \"Failed\";\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 UserInvitationOutput extends SentShareInvitationOutputParent {\n /** Properties of the user invitation type. */\n properties: UserInvitationPropertiesOutput;\n invitationKind: \"User\";\n}\n\n/** Properties of the user invitation type. */\nexport interface UserInvitationPropertiesOutput {\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?: string;\n /** Whether or not the recipient was notified via email. */\n notify?: boolean;\n /** Email address of the sender. */\n readonly senderEmail?: string;\n /** Name of the sender */\n readonly senderName?: string;\n /** Tenant name of the sender */\n readonly senderTenantName?: string;\n /** Gets the time at which the invitation was sent. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n readonly sentAt?: string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** State of the resource */\n readonly state?: \"Unknown\" | \"Succeeded\" | \"Creating\" | \"Deleting\" | \"Moving\" | \"Failed\";\n /** The receiver email for the invitation is being sent. */\n targetEmail: string;\n}\n\n/** A received share data transfer object. */\nexport type ReceivedShareOutput = InPlaceReceivedShareOutput;\n/** A sent share data transfer object. */\nexport type SentShareOutput = InPlaceSentShareOutput;\n/** A sent share invitation data transfer object. */\nexport type SentShareInvitationOutput = ServiceInvitationOutput | UserInvitationOutput;\n/** Holds details on the destination of the mapped artifact */\nexport type SinkOutput = AdlsGen2AccountSinkOutput | BlobAccountSinkOutput;\n/** A class for sent share artifact. */\nexport type ArtifactOutput = AdlsGen2ArtifactOutput | BlobStorageArtifactOutput;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,qBAAqB,EAA2C,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AAyCzF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,CAAC;gBACjB,kBAAkB,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBACxD,MAAM,MAAM,GAAG,WAAW,CAAW,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC5D,OAAO;oBACL,IAAI,EAAE,MAAM;oBACZ,YAAY,EAAE,QAAQ;iBACvB,CAAC;YACJ,CAAC;KACR,CAAC;IAEF,OAAO,qBAAqB,CAAC,WAAW,CAAC,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAAa,EAAE,YAAqB;IACvD,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACnE,MAAM,IAAI,KAAK,CAAC,iBAAiB,YAAY,kCAAkC,CAAC,CAAC;KAClF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IAEjE,qEAAqE;IACrE,qEAAqE;IACrE,iDAAiD;IACjD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;KACH;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B;IACzD,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;KACH;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {}\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response\n );\n }\n}\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=parameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport { ReceivedShare, TenantEmailRegistration, SentShare, SentShareInvitation } from \"./models\";\n\nexport type ReceivedSharesGetReceivedShareParameters = RequestParameters;\n\nexport interface ReceivedSharesCreateOrReplaceBodyParam {\n /** The received share to create or replace */\n body: ReceivedShare;\n}\n\nexport interface ReceivedSharesCreateOrReplaceMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ReceivedSharesCreateOrReplaceParameters = ReceivedSharesCreateOrReplaceMediaTypesParam &\n ReceivedSharesCreateOrReplaceBodyParam &\n RequestParameters;\nexport type ReceivedSharesDeleteReceivedShareParameters = RequestParameters;\n\nexport interface ReceivedSharesGetAllAttachedReceivedSharesQueryParamProperties {\n /** A name that references a data store. */\n referenceName: string;\n /** The continuation token to list the next page */\n skipToken?: string;\n /** Filters the results using OData syntax */\n filter?: string;\n /** Sorts the results using OData syntax */\n orderby?: string;\n}\n\nexport interface ReceivedSharesGetAllAttachedReceivedSharesQueryParam {\n queryParameters: ReceivedSharesGetAllAttachedReceivedSharesQueryParamProperties;\n}\n\nexport type ReceivedSharesGetAllAttachedReceivedSharesParameters =\n ReceivedSharesGetAllAttachedReceivedSharesQueryParam & RequestParameters;\n\nexport interface ReceivedSharesGetAllDetachedReceivedSharesQueryParamProperties {\n /** The continuation token to list the next page */\n skipToken?: string;\n /** Filters the results using OData syntax */\n filter?: string;\n /** Sorts the results using OData syntax */\n orderby?: string;\n}\n\nexport interface ReceivedSharesGetAllDetachedReceivedSharesQueryParam {\n queryParameters?: ReceivedSharesGetAllDetachedReceivedSharesQueryParamProperties;\n}\n\nexport type ReceivedSharesGetAllDetachedReceivedSharesParameters =\n ReceivedSharesGetAllDetachedReceivedSharesQueryParam & RequestParameters;\n\nexport interface ReceivedSharesActivateTenantEmailRegistrationHeaders {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n \"repeatability-request-id\"?: string;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistrationBodyParam {\n /** The tenant email registration payload */\n body: TenantEmailRegistration;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistrationHeaderParam {\n headers?: RawHttpHeadersInput & ReceivedSharesActivateTenantEmailRegistrationHeaders;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistrationMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ReceivedSharesActivateTenantEmailRegistrationParameters =\n ReceivedSharesActivateTenantEmailRegistrationHeaderParam &\n ReceivedSharesActivateTenantEmailRegistrationMediaTypesParam &\n ReceivedSharesActivateTenantEmailRegistrationBodyParam &\n RequestParameters;\n\nexport interface ReceivedSharesRegisterTenantEmailRegistrationHeaders {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n \"repeatability-request-id\"?: string;\n}\n\nexport interface ReceivedSharesRegisterTenantEmailRegistrationHeaderParam {\n headers?: RawHttpHeadersInput & ReceivedSharesRegisterTenantEmailRegistrationHeaders;\n}\n\nexport type ReceivedSharesRegisterTenantEmailRegistrationParameters =\n ReceivedSharesRegisterTenantEmailRegistrationHeaderParam & RequestParameters;\n\nexport interface SentSharesGetAllSentSharesQueryParamProperties {\n /** A name that references a data store. */\n referenceName: string;\n /** The continuation token to list the next page */\n skipToken?: string;\n /** Filters the results using OData syntax */\n filter?: string;\n /** Sorts the results using OData syntax */\n orderby?: string;\n}\n\nexport interface SentSharesGetAllSentSharesQueryParam {\n queryParameters: SentSharesGetAllSentSharesQueryParamProperties;\n}\n\nexport type SentSharesGetAllSentSharesParameters = SentSharesGetAllSentSharesQueryParam &\n RequestParameters;\nexport type SentSharesGetSentShareParameters = RequestParameters;\n\nexport interface SentSharesCreateOrReplaceBodyParam {\n /** The sent share to create or replace. */\n body: SentShare;\n}\n\nexport interface SentSharesCreateOrReplaceMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type SentSharesCreateOrReplaceParameters = SentSharesCreateOrReplaceMediaTypesParam &\n SentSharesCreateOrReplaceBodyParam &\n RequestParameters;\nexport type SentSharesDeleteSentShareParameters = RequestParameters;\n\nexport interface SentSharesGetAllSentShareInvitationsQueryParamProperties {\n /** The continuation token to list the next page */\n skipToken?: string;\n /** Filters the results using OData syntax */\n filter?: string;\n /** Sorts the results using OData syntax */\n orderby?: string;\n}\n\nexport interface SentSharesGetAllSentShareInvitationsQueryParam {\n queryParameters?: SentSharesGetAllSentShareInvitationsQueryParamProperties;\n}\n\nexport type SentSharesGetAllSentShareInvitationsParameters =\n SentSharesGetAllSentShareInvitationsQueryParam & RequestParameters;\nexport type SentSharesGetSentShareInvitationParameters = RequestParameters;\n\nexport interface SentSharesCreateSentShareInvitationBodyParam {\n /** The sent share invitation to create. */\n body: SentShareInvitation;\n}\n\nexport interface SentSharesCreateSentShareInvitationMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type SentSharesCreateSentShareInvitationParameters =\n SentSharesCreateSentShareInvitationMediaTypesParam &\n SentSharesCreateSentShareInvitationBodyParam &\n RequestParameters;\nexport type SentSharesDeleteSentShareInvitationParameters = RequestParameters;\n\nexport interface SentSharesNotifyUserSentShareInvitationHeaders {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n \"repeatability-request-id\"?: string;\n}\n\nexport interface SentSharesNotifyUserSentShareInvitationHeaderParam {\n headers?: RawHttpHeadersInput & SentSharesNotifyUserSentShareInvitationHeaders;\n}\n\nexport type SentSharesNotifyUserSentShareInvitationParameters =\n SentSharesNotifyUserSentShareInvitationHeaderParam & RequestParameters;\n"]}
@@ -1,50 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { createHttpPoller, } from "@azure/core-lro";
4
- /**
5
- * Helper function that builds a Poller object to help polling a long running operation.
6
- * @param client - Client to use for sending the request to get additional pages.
7
- * @param initialResponse - The initial response.
8
- * @param options - Options to set a resume state or custom polling interval.
9
- * @returns - A poller object to poll for operation state updates and eventually get the final response.
10
- */
11
- export async function getLongRunningPoller(client, initialResponse, options = {}) {
12
- var _a;
13
- const poller = {
14
- requestMethod: initialResponse.request.method,
15
- requestPath: initialResponse.request.url,
16
- sendInitialRequest: async () => {
17
- // In the case of Rest Clients we are building the LRO poller object from a response that's the reason
18
- // we are not triggering the initial request here, just extracting the information from the
19
- // response we were provided.
20
- return getLroResponse(initialResponse);
21
- },
22
- sendPollRequest: async (path) => {
23
- // This is the callback that is going to be called to poll the service
24
- // to get the latest status. We use the client provided and the polling path
25
- // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
26
- // depending on the lro pattern that the service implements. If non is provided we default to the initial path.
27
- const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get();
28
- const lroResponse = getLroResponse(response);
29
- lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
30
- return lroResponse;
31
- },
32
- };
33
- options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true;
34
- return createHttpPoller(poller, options);
35
- }
36
- /**
37
- * Converts a Rest Client response to a response that the LRO implementation understands
38
- * @param response - a rest client http response
39
- * @returns - An LRO response that the LRO implementation understands
40
- */
41
- function getLroResponse(response) {
42
- if (Number.isNaN(response.status)) {
43
- throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
44
- }
45
- return {
46
- flatResponse: response,
47
- rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
48
- };
49
- }
50
- //# sourceMappingURL=pollingHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAML,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;;IAEvE,MAAM,MAAM,GAAkC;QAC5C,aAAa,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM;QAC7C,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC9B,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;YACvF,MAAM,WAAW,GAAG,cAAc,CAAC,QAAmB,CAAC,CAAC;YACxD,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC;YACnF,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,qBAAqB,GAAG,MAAA,OAAO,CAAC,qBAAqB,mCAAI,IAAI,CAAC;IACtE,OAAO,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CAA+B,QAAiB;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KAC/F;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport {\n CreateHttpPollerOptions,\n LongRunningOperation,\n LroResponse,\n OperationState,\n SimplePollerLike,\n createHttpPoller,\n} from \"@azure/core-lro\";\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {}\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const poller: LongRunningOperation<TResult> = {\n requestMethod: initialResponse.request.method,\n requestPath: initialResponse.request.url,\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n const response = await client.pathUnchecked(path ?? initialResponse.request.url).get();\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n return createHttpPoller(poller, options);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(response: TResult): LroResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -1,27 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { getClient } from "@azure-rest/core-client";
4
- /**
5
- * Initialize a new instance of `PurviewSharingClient`
6
- * @param endpoint type: string, The sharing endpoint of your purview account. Example: https://{accountName}.purview.azure.com/share
7
- * @param credentials type: TokenCredential, uniquely identify client credential
8
- * @param options type: ClientOptions, the parameter for all optional parameters
9
- */
10
- export default function createClient(endpoint, credentials, options = {}) {
11
- var _a, _b;
12
- const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}`;
13
- options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-02-15-preview";
14
- options = Object.assign(Object.assign({}, options), { credentials: {
15
- scopes: ["https://purview.azure.net/.default"],
16
- } });
17
- const userAgentInfo = `azsdk-js-purview-sharing-rest/1.0.0-beta.1`;
18
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
19
- ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
20
- : `${userAgentInfo}`;
21
- options = Object.assign(Object.assign({}, options), { userAgentOptions: {
22
- userAgentPrefix,
23
- } });
24
- const client = getClient(baseUrl, credentials, options);
25
- return client;
26
- }
27
- //# sourceMappingURL=purviewSharing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"purviewSharing.js","sourceRoot":"","sources":["../../src/purviewSharing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAiB,MAAM,yBAAyB,CAAC;AAInE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,EAAE,CAAC;IACjD,OAAO,CAAC,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAChE,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,oCAAoC,CAAC;SAC/C,GACF,CAAC;IAEF,MAAM,aAAa,GAAG,4CAA4C,CAAC;IACnE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,GACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAyB,CAAC;IAEhF,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { PurviewSharingClient } from \"./clientDefinitions\";\n\n/**\n * Initialize a new instance of `PurviewSharingClient`\n * @param endpoint type: string, The sharing endpoint of your purview account. Example: https://{accountName}.purview.azure.com/share\n * @param credentials type: TokenCredential, uniquely identify client credential\n * @param options type: ClientOptions, the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {}\n): PurviewSharingClient {\n const baseUrl = options.baseUrl ?? `${endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2023-02-15-preview\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://purview.azure.net/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-purview-sharing-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as PurviewSharingClient;\n\n return client;\n}\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=responses.js.map
@@ -1 +0,0 @@
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 { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ReceivedShareOutput,\n PurviewShareErrorOutput,\n OperationResponseOutput,\n ReceivedShareListOutput,\n TenantEmailRegistrationOutput,\n SentShareListOutput,\n SentShareOutput,\n SentShareInvitationListOutput,\n SentShareInvitationOutput,\n} from \"./outputModels\";\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"]}