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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +2 -2
  3. package/dist/browser/clientDefinitions.d.ts +87 -0
  4. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  5. package/dist/browser/clientDefinitions.js +4 -0
  6. package/dist/browser/clientDefinitions.js.map +1 -0
  7. package/dist/browser/index.d.ts +12 -0
  8. package/dist/browser/index.d.ts.map +1 -0
  9. package/dist/browser/index.js +15 -0
  10. package/dist/browser/index.js.map +1 -0
  11. package/dist/browser/isUnexpected.d.ts +19 -0
  12. package/dist/browser/isUnexpected.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/isUnexpected.js +2 -1
  14. package/dist/browser/isUnexpected.js.map +1 -0
  15. package/dist/browser/logger.d.ts +2 -0
  16. package/dist/browser/logger.d.ts.map +1 -0
  17. package/dist/browser/logger.js +5 -0
  18. package/dist/browser/logger.js.map +1 -0
  19. package/dist/browser/models.d.ts +201 -0
  20. package/dist/browser/models.d.ts.map +1 -0
  21. package/dist/browser/models.js +4 -0
  22. package/dist/browser/models.js.map +1 -0
  23. package/dist/browser/outputModels.d.ts +352 -0
  24. package/dist/browser/outputModels.d.ts.map +1 -0
  25. package/dist/browser/outputModels.js +4 -0
  26. package/dist/browser/outputModels.js.map +1 -0
  27. package/dist/browser/package.json +3 -0
  28. package/dist/browser/paginateHelper.d.ts +68 -0
  29. package/dist/browser/paginateHelper.d.ts.map +1 -0
  30. package/dist/browser/paginateHelper.js +167 -0
  31. package/dist/browser/paginateHelper.js.map +1 -0
  32. package/dist/browser/parameters.d.ts +123 -0
  33. package/dist/browser/parameters.d.ts.map +1 -0
  34. package/dist/browser/parameters.js +4 -0
  35. package/dist/browser/parameters.js.map +1 -0
  36. package/dist/browser/pollingHelper.d.ts +76 -0
  37. package/dist/browser/pollingHelper.d.ts.map +1 -0
  38. package/dist/browser/pollingHelper.js +104 -0
  39. package/dist/browser/pollingHelper.js.map +1 -0
  40. package/dist/browser/purviewSharing.d.ts +16 -0
  41. package/dist/browser/purviewSharing.d.ts.map +1 -0
  42. package/dist/browser/purviewSharing.js +43 -0
  43. package/dist/browser/purviewSharing.js.map +1 -0
  44. package/dist/browser/responses.d.ts +304 -0
  45. package/dist/browser/responses.d.ts.map +1 -0
  46. package/dist/browser/responses.js +4 -0
  47. package/dist/browser/responses.js.map +1 -0
  48. package/dist/commonjs/clientDefinitions.d.ts +87 -0
  49. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  50. package/dist/commonjs/clientDefinitions.js +5 -0
  51. package/dist/commonjs/clientDefinitions.js.map +1 -0
  52. package/dist/commonjs/index.d.ts +12 -0
  53. package/dist/commonjs/index.d.ts.map +1 -0
  54. package/dist/commonjs/index.js +18 -0
  55. package/dist/commonjs/index.js.map +1 -0
  56. package/dist/commonjs/isUnexpected.d.ts +19 -0
  57. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  58. package/dist/commonjs/isUnexpected.js +89 -0
  59. package/dist/commonjs/isUnexpected.js.map +1 -0
  60. package/dist/commonjs/logger.d.ts +2 -0
  61. package/dist/commonjs/logger.d.ts.map +1 -0
  62. package/dist/commonjs/logger.js +8 -0
  63. package/dist/commonjs/logger.js.map +1 -0
  64. package/dist/commonjs/models.d.ts +201 -0
  65. package/dist/commonjs/models.d.ts.map +1 -0
  66. package/dist/commonjs/models.js +5 -0
  67. package/dist/commonjs/models.js.map +1 -0
  68. package/dist/commonjs/outputModels.d.ts +352 -0
  69. package/dist/commonjs/outputModels.d.ts.map +1 -0
  70. package/dist/commonjs/outputModels.js +5 -0
  71. package/dist/commonjs/outputModels.js.map +1 -0
  72. package/dist/commonjs/package.json +3 -0
  73. package/dist/commonjs/paginateHelper.d.ts +68 -0
  74. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  75. package/dist/commonjs/paginateHelper.js +170 -0
  76. package/dist/commonjs/paginateHelper.js.map +1 -0
  77. package/dist/commonjs/parameters.d.ts +123 -0
  78. package/dist/commonjs/parameters.d.ts.map +1 -0
  79. package/dist/commonjs/parameters.js +5 -0
  80. package/dist/commonjs/parameters.js.map +1 -0
  81. package/dist/commonjs/pollingHelper.d.ts +76 -0
  82. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  83. package/dist/commonjs/pollingHelper.js +107 -0
  84. package/dist/commonjs/pollingHelper.js.map +1 -0
  85. package/dist/commonjs/purviewSharing.d.ts +16 -0
  86. package/dist/commonjs/purviewSharing.d.ts.map +1 -0
  87. package/dist/commonjs/purviewSharing.js +46 -0
  88. package/dist/commonjs/purviewSharing.js.map +1 -0
  89. package/dist/commonjs/responses.d.ts +304 -0
  90. package/dist/commonjs/responses.d.ts.map +1 -0
  91. package/dist/commonjs/responses.js +5 -0
  92. package/dist/commonjs/responses.js.map +1 -0
  93. package/dist/commonjs/tsdoc-metadata.json +11 -0
  94. package/dist/esm/clientDefinitions.d.ts +87 -0
  95. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  96. package/dist/esm/clientDefinitions.js +4 -0
  97. package/dist/esm/clientDefinitions.js.map +1 -0
  98. package/dist/esm/index.d.ts +12 -0
  99. package/dist/esm/index.d.ts.map +1 -0
  100. package/dist/esm/index.js +15 -0
  101. package/dist/esm/index.js.map +1 -0
  102. package/dist/esm/isUnexpected.d.ts +19 -0
  103. package/dist/esm/isUnexpected.d.ts.map +1 -0
  104. package/dist/esm/isUnexpected.js +86 -0
  105. package/dist/esm/isUnexpected.js.map +1 -0
  106. package/dist/esm/logger.d.ts +2 -0
  107. package/dist/esm/logger.d.ts.map +1 -0
  108. package/dist/esm/logger.js +5 -0
  109. package/dist/esm/logger.js.map +1 -0
  110. package/dist/esm/models.d.ts +201 -0
  111. package/dist/esm/models.d.ts.map +1 -0
  112. package/dist/esm/models.js +4 -0
  113. package/dist/esm/models.js.map +1 -0
  114. package/dist/esm/outputModels.d.ts +352 -0
  115. package/dist/esm/outputModels.d.ts.map +1 -0
  116. package/dist/esm/outputModels.js +4 -0
  117. package/dist/esm/outputModels.js.map +1 -0
  118. package/dist/esm/package.json +3 -0
  119. package/dist/esm/paginateHelper.d.ts +68 -0
  120. package/dist/esm/paginateHelper.d.ts.map +1 -0
  121. package/dist/esm/paginateHelper.js +167 -0
  122. package/dist/esm/paginateHelper.js.map +1 -0
  123. package/dist/esm/parameters.d.ts +123 -0
  124. package/dist/esm/parameters.d.ts.map +1 -0
  125. package/dist/esm/parameters.js +4 -0
  126. package/dist/esm/parameters.js.map +1 -0
  127. package/dist/esm/pollingHelper.d.ts +76 -0
  128. package/dist/esm/pollingHelper.d.ts.map +1 -0
  129. package/dist/esm/pollingHelper.js +104 -0
  130. package/dist/esm/pollingHelper.js.map +1 -0
  131. package/dist/esm/purviewSharing.d.ts +16 -0
  132. package/dist/esm/purviewSharing.d.ts.map +1 -0
  133. package/dist/esm/purviewSharing.js +43 -0
  134. package/dist/esm/purviewSharing.js.map +1 -0
  135. package/dist/esm/responses.d.ts +304 -0
  136. package/dist/esm/responses.d.ts.map +1 -0
  137. package/dist/esm/responses.js +4 -0
  138. package/dist/esm/responses.js.map +1 -0
  139. package/dist/react-native/clientDefinitions.d.ts +87 -0
  140. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  141. package/dist/react-native/clientDefinitions.js +4 -0
  142. package/dist/react-native/clientDefinitions.js.map +1 -0
  143. package/dist/react-native/index.d.ts +12 -0
  144. package/dist/react-native/index.d.ts.map +1 -0
  145. package/dist/react-native/index.js +15 -0
  146. package/dist/react-native/index.js.map +1 -0
  147. package/dist/react-native/isUnexpected.d.ts +19 -0
  148. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  149. package/dist/react-native/isUnexpected.js +86 -0
  150. package/dist/react-native/isUnexpected.js.map +1 -0
  151. package/dist/react-native/logger.d.ts +2 -0
  152. package/dist/react-native/logger.d.ts.map +1 -0
  153. package/dist/react-native/logger.js +5 -0
  154. package/dist/react-native/logger.js.map +1 -0
  155. package/dist/react-native/models.d.ts +201 -0
  156. package/dist/react-native/models.d.ts.map +1 -0
  157. package/dist/react-native/models.js +4 -0
  158. package/dist/react-native/models.js.map +1 -0
  159. package/dist/react-native/outputModels.d.ts +352 -0
  160. package/dist/react-native/outputModels.d.ts.map +1 -0
  161. package/dist/react-native/outputModels.js +4 -0
  162. package/dist/react-native/outputModels.js.map +1 -0
  163. package/dist/react-native/package.json +3 -0
  164. package/dist/react-native/paginateHelper.d.ts +68 -0
  165. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  166. package/dist/react-native/paginateHelper.js +167 -0
  167. package/dist/react-native/paginateHelper.js.map +1 -0
  168. package/dist/react-native/parameters.d.ts +123 -0
  169. package/dist/react-native/parameters.d.ts.map +1 -0
  170. package/dist/react-native/parameters.js +4 -0
  171. package/dist/react-native/parameters.js.map +1 -0
  172. package/dist/react-native/pollingHelper.d.ts +76 -0
  173. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  174. package/dist/react-native/pollingHelper.js +104 -0
  175. package/dist/react-native/pollingHelper.js.map +1 -0
  176. package/dist/react-native/purviewSharing.d.ts +16 -0
  177. package/dist/react-native/purviewSharing.d.ts.map +1 -0
  178. package/dist/react-native/purviewSharing.js +43 -0
  179. package/dist/react-native/purviewSharing.js.map +1 -0
  180. package/dist/react-native/responses.d.ts +304 -0
  181. package/dist/react-native/responses.d.ts.map +1 -0
  182. package/dist/react-native/responses.js +4 -0
  183. package/dist/react-native/responses.js.map +1 -0
  184. package/package.json +83 -69
  185. package/dist/index.js +0 -240
  186. package/dist/index.js.map +0 -1
  187. package/dist-esm/src/clientDefinitions.js +0 -4
  188. package/dist-esm/src/clientDefinitions.js.map +0 -1
  189. package/dist-esm/src/index.js +0 -14
  190. package/dist-esm/src/index.js.map +0 -1
  191. package/dist-esm/src/isUnexpected.js.map +0 -1
  192. package/dist-esm/src/models.js +0 -4
  193. package/dist-esm/src/models.js.map +0 -1
  194. package/dist-esm/src/outputModels.js +0 -4
  195. package/dist-esm/src/outputModels.js.map +0 -1
  196. package/dist-esm/src/paginateHelper.js +0 -70
  197. package/dist-esm/src/paginateHelper.js.map +0 -1
  198. package/dist-esm/src/parameters.js +0 -4
  199. package/dist-esm/src/parameters.js.map +0 -1
  200. package/dist-esm/src/pollingHelper.js +0 -50
  201. package/dist-esm/src/pollingHelper.js.map +0 -1
  202. package/dist-esm/src/purviewSharing.js +0 -27
  203. package/dist-esm/src/purviewSharing.js.map +0 -1
  204. package/dist-esm/src/responses.js +0 -4
  205. package/dist-esm/src/responses.js.map +0 -1
  206. package/review/purview-sharing.api.md +0 -1234
  207. package/types/purview-sharing.d.ts +0 -1270
@@ -0,0 +1,304 @@
1
+ import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import type { HttpResponse } from "@azure-rest/core-client";
3
+ import type { ReceivedShareOutput, PurviewShareErrorOutput, OperationResponseOutput, ReceivedShareListOutput, TenantEmailRegistrationOutput, SentShareListOutput, SentShareOutput, SentShareInvitationListOutput, SentShareInvitationOutput, ShareResourceListOutput } from "./outputModels.js";
4
+ /** Get a received share */
5
+ export interface ReceivedSharesGetReceivedShare200Response extends HttpResponse {
6
+ status: "200";
7
+ body: ReceivedShareOutput;
8
+ }
9
+ export interface ReceivedSharesGetReceivedShareDefaultHeaders {
10
+ /** The error code */
11
+ "x-ms-error-code"?: string;
12
+ }
13
+ /** Get a received share */
14
+ export interface ReceivedSharesGetReceivedShareDefaultResponse extends HttpResponse {
15
+ status: string;
16
+ body: PurviewShareErrorOutput;
17
+ headers: RawHttpHeaders & ReceivedSharesGetReceivedShareDefaultHeaders;
18
+ }
19
+ export interface ReceivedSharesCreateOrReplace200Headers {
20
+ /** The URL to track the status of the long running operation. */
21
+ "operation-location"?: string;
22
+ }
23
+ /** Update changes to a received share */
24
+ export interface ReceivedSharesCreateOrReplace200Response extends HttpResponse {
25
+ status: "200";
26
+ body: ReceivedShareOutput;
27
+ headers: RawHttpHeaders & ReceivedSharesCreateOrReplace200Headers;
28
+ }
29
+ export interface ReceivedSharesCreateOrReplace201Headers {
30
+ /** The URL to track the status of the long running operation. */
31
+ "operation-location"?: string;
32
+ }
33
+ /** Update changes to a received share */
34
+ export interface ReceivedSharesCreateOrReplace201Response extends HttpResponse {
35
+ status: "201";
36
+ body: ReceivedShareOutput;
37
+ headers: RawHttpHeaders & ReceivedSharesCreateOrReplace201Headers;
38
+ }
39
+ export interface ReceivedSharesCreateOrReplaceDefaultHeaders {
40
+ /** The error code */
41
+ "x-ms-error-code"?: string;
42
+ }
43
+ /** Update changes to a received share */
44
+ export interface ReceivedSharesCreateOrReplaceDefaultResponse extends HttpResponse {
45
+ status: string;
46
+ body: PurviewShareErrorOutput;
47
+ headers: RawHttpHeaders & ReceivedSharesCreateOrReplaceDefaultHeaders;
48
+ }
49
+ export interface ReceivedSharesDeleteReceivedShare202Headers {
50
+ /** The URL to track the status of the long running operation. */
51
+ "operation-location"?: string;
52
+ }
53
+ /** Delete a received share */
54
+ export interface ReceivedSharesDeleteReceivedShare202Response extends HttpResponse {
55
+ status: "202";
56
+ body: OperationResponseOutput;
57
+ headers: RawHttpHeaders & ReceivedSharesDeleteReceivedShare202Headers;
58
+ }
59
+ export interface ReceivedSharesDeleteReceivedShareDefaultHeaders {
60
+ /** The error code */
61
+ "x-ms-error-code"?: string;
62
+ }
63
+ /** Delete a received share */
64
+ export interface ReceivedSharesDeleteReceivedShareDefaultResponse extends HttpResponse {
65
+ status: string;
66
+ body: PurviewShareErrorOutput;
67
+ headers: RawHttpHeaders & ReceivedSharesDeleteReceivedShareDefaultHeaders;
68
+ }
69
+ /** List attached received shares */
70
+ export interface ReceivedSharesGetAllAttachedReceivedShares200Response extends HttpResponse {
71
+ status: "200";
72
+ body: ReceivedShareListOutput;
73
+ }
74
+ export interface ReceivedSharesGetAllAttachedReceivedSharesDefaultHeaders {
75
+ /** The error code */
76
+ "x-ms-error-code"?: string;
77
+ }
78
+ /** List attached received shares */
79
+ export interface ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse extends HttpResponse {
80
+ status: string;
81
+ body: PurviewShareErrorOutput;
82
+ headers: RawHttpHeaders & ReceivedSharesGetAllAttachedReceivedSharesDefaultHeaders;
83
+ }
84
+ /** List detached received shares */
85
+ export interface ReceivedSharesGetAllDetachedReceivedShares200Response extends HttpResponse {
86
+ status: "200";
87
+ body: ReceivedShareListOutput;
88
+ }
89
+ export interface ReceivedSharesGetAllDetachedReceivedSharesDefaultHeaders {
90
+ /** The error code */
91
+ "x-ms-error-code"?: string;
92
+ }
93
+ /** List detached received shares */
94
+ export interface ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse extends HttpResponse {
95
+ status: string;
96
+ body: PurviewShareErrorOutput;
97
+ headers: RawHttpHeaders & ReceivedSharesGetAllDetachedReceivedSharesDefaultHeaders;
98
+ }
99
+ /** Activates the email registration for current tenant */
100
+ export interface ReceivedSharesActivateTenantEmailRegistration200Response extends HttpResponse {
101
+ status: "200";
102
+ body: TenantEmailRegistrationOutput;
103
+ }
104
+ export interface ReceivedSharesActivateTenantEmailRegistrationDefaultHeaders {
105
+ /** The error code */
106
+ "x-ms-error-code"?: string;
107
+ }
108
+ /** Activates the email registration for current tenant */
109
+ export interface ReceivedSharesActivateTenantEmailRegistrationDefaultResponse extends HttpResponse {
110
+ status: string;
111
+ body: PurviewShareErrorOutput;
112
+ headers: RawHttpHeaders & ReceivedSharesActivateTenantEmailRegistrationDefaultHeaders;
113
+ }
114
+ /** Register an email for the current tenant */
115
+ export interface ReceivedSharesRegisterTenantEmailRegistration200Response extends HttpResponse {
116
+ status: "200";
117
+ body: TenantEmailRegistrationOutput;
118
+ }
119
+ export interface ReceivedSharesRegisterTenantEmailRegistrationDefaultHeaders {
120
+ /** The error code */
121
+ "x-ms-error-code"?: string;
122
+ }
123
+ /** Register an email for the current tenant */
124
+ export interface ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse extends HttpResponse {
125
+ status: string;
126
+ body: PurviewShareErrorOutput;
127
+ headers: RawHttpHeaders & ReceivedSharesRegisterTenantEmailRegistrationDefaultHeaders;
128
+ }
129
+ /** List sent shares */
130
+ export interface SentSharesGetAllSentShares200Response extends HttpResponse {
131
+ status: "200";
132
+ body: SentShareListOutput;
133
+ }
134
+ export interface SentSharesGetAllSentSharesDefaultHeaders {
135
+ /** The error code */
136
+ "x-ms-error-code"?: string;
137
+ }
138
+ /** List sent shares */
139
+ export interface SentSharesGetAllSentSharesDefaultResponse extends HttpResponse {
140
+ status: string;
141
+ body: PurviewShareErrorOutput;
142
+ headers: RawHttpHeaders & SentSharesGetAllSentSharesDefaultHeaders;
143
+ }
144
+ /** Get a sent share */
145
+ export interface SentSharesGetSentShare200Response extends HttpResponse {
146
+ status: "200";
147
+ body: SentShareOutput;
148
+ }
149
+ export interface SentSharesGetSentShareDefaultHeaders {
150
+ /** The error code */
151
+ "x-ms-error-code"?: string;
152
+ }
153
+ /** Get a sent share */
154
+ export interface SentSharesGetSentShareDefaultResponse extends HttpResponse {
155
+ status: string;
156
+ body: PurviewShareErrorOutput;
157
+ headers: RawHttpHeaders & SentSharesGetSentShareDefaultHeaders;
158
+ }
159
+ export interface SentSharesCreateOrReplace200Headers {
160
+ /** The URL to track the status of the long running operation. */
161
+ "operation-location"?: string;
162
+ }
163
+ /** Create or replace a sent share */
164
+ export interface SentSharesCreateOrReplace200Response extends HttpResponse {
165
+ status: "200";
166
+ body: SentShareOutput;
167
+ headers: RawHttpHeaders & SentSharesCreateOrReplace200Headers;
168
+ }
169
+ export interface SentSharesCreateOrReplace201Headers {
170
+ /** The URL to track the status of the long running operation. */
171
+ "operation-location"?: string;
172
+ }
173
+ /** Create or replace a sent share */
174
+ export interface SentSharesCreateOrReplace201Response extends HttpResponse {
175
+ status: "201";
176
+ body: SentShareOutput;
177
+ headers: RawHttpHeaders & SentSharesCreateOrReplace201Headers;
178
+ }
179
+ export interface SentSharesCreateOrReplaceDefaultHeaders {
180
+ /** The error code */
181
+ "x-ms-error-code"?: string;
182
+ }
183
+ /** Create or replace a sent share */
184
+ export interface SentSharesCreateOrReplaceDefaultResponse extends HttpResponse {
185
+ status: string;
186
+ body: PurviewShareErrorOutput;
187
+ headers: RawHttpHeaders & SentSharesCreateOrReplaceDefaultHeaders;
188
+ }
189
+ export interface SentSharesDeleteSentShare202Headers {
190
+ /** The URL to track the status of the long running operation. */
191
+ "operation-location"?: string;
192
+ }
193
+ /** Delete a sent share */
194
+ export interface SentSharesDeleteSentShare202Response extends HttpResponse {
195
+ status: "202";
196
+ body: OperationResponseOutput;
197
+ headers: RawHttpHeaders & SentSharesDeleteSentShare202Headers;
198
+ }
199
+ export interface SentSharesDeleteSentShareDefaultHeaders {
200
+ /** The error code */
201
+ "x-ms-error-code"?: string;
202
+ }
203
+ /** Delete a sent share */
204
+ export interface SentSharesDeleteSentShareDefaultResponse extends HttpResponse {
205
+ status: string;
206
+ body: PurviewShareErrorOutput;
207
+ headers: RawHttpHeaders & SentSharesDeleteSentShareDefaultHeaders;
208
+ }
209
+ /** List sent share recipients */
210
+ export interface SentSharesGetAllSentShareInvitations200Response extends HttpResponse {
211
+ status: "200";
212
+ body: SentShareInvitationListOutput;
213
+ }
214
+ export interface SentSharesGetAllSentShareInvitationsDefaultHeaders {
215
+ /** The error code */
216
+ "x-ms-error-code"?: string;
217
+ }
218
+ /** List sent share recipients */
219
+ export interface SentSharesGetAllSentShareInvitationsDefaultResponse extends HttpResponse {
220
+ status: string;
221
+ body: PurviewShareErrorOutput;
222
+ headers: RawHttpHeaders & SentSharesGetAllSentShareInvitationsDefaultHeaders;
223
+ }
224
+ /** Get recipient for a given sent share */
225
+ export interface SentSharesGetSentShareInvitation200Response extends HttpResponse {
226
+ status: "200";
227
+ body: SentShareInvitationOutput;
228
+ }
229
+ export interface SentSharesGetSentShareInvitationDefaultHeaders {
230
+ /** The error code */
231
+ "x-ms-error-code"?: string;
232
+ }
233
+ /** Get recipient for a given sent share */
234
+ export interface SentSharesGetSentShareInvitationDefaultResponse extends HttpResponse {
235
+ status: string;
236
+ body: PurviewShareErrorOutput;
237
+ headers: RawHttpHeaders & SentSharesGetSentShareInvitationDefaultHeaders;
238
+ }
239
+ /** Create a recipient for a given sent share */
240
+ export interface SentSharesCreateSentShareInvitation201Response extends HttpResponse {
241
+ status: "201";
242
+ body: SentShareInvitationOutput;
243
+ }
244
+ export interface SentSharesCreateSentShareInvitationDefaultHeaders {
245
+ /** The error code */
246
+ "x-ms-error-code"?: string;
247
+ }
248
+ /** Create a recipient for a given sent share */
249
+ export interface SentSharesCreateSentShareInvitationDefaultResponse extends HttpResponse {
250
+ status: string;
251
+ body: PurviewShareErrorOutput;
252
+ headers: RawHttpHeaders & SentSharesCreateSentShareInvitationDefaultHeaders;
253
+ }
254
+ export interface SentSharesDeleteSentShareInvitation202Headers {
255
+ /** The URL to track the status of the long running operation. */
256
+ "operation-location"?: string;
257
+ }
258
+ /** Delete a sent share invitation */
259
+ export interface SentSharesDeleteSentShareInvitation202Response extends HttpResponse {
260
+ status: "202";
261
+ body: OperationResponseOutput;
262
+ headers: RawHttpHeaders & SentSharesDeleteSentShareInvitation202Headers;
263
+ }
264
+ export interface SentSharesDeleteSentShareInvitationDefaultHeaders {
265
+ /** The error code */
266
+ "x-ms-error-code"?: string;
267
+ }
268
+ /** Delete a sent share invitation */
269
+ export interface SentSharesDeleteSentShareInvitationDefaultResponse extends HttpResponse {
270
+ status: string;
271
+ body: PurviewShareErrorOutput;
272
+ headers: RawHttpHeaders & SentSharesDeleteSentShareInvitationDefaultHeaders;
273
+ }
274
+ /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */
275
+ export interface SentSharesNotifyUserSentShareInvitation200Response extends HttpResponse {
276
+ status: "200";
277
+ body: SentShareInvitationOutput;
278
+ }
279
+ export interface SentSharesNotifyUserSentShareInvitationDefaultHeaders {
280
+ /** The error code */
281
+ "x-ms-error-code"?: string;
282
+ }
283
+ /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */
284
+ export interface SentSharesNotifyUserSentShareInvitationDefaultResponse extends HttpResponse {
285
+ status: string;
286
+ body: PurviewShareErrorOutput;
287
+ headers: RawHttpHeaders & SentSharesNotifyUserSentShareInvitationDefaultHeaders;
288
+ }
289
+ /** List share resources */
290
+ export interface ShareResourcesGetAllShareResources200Response extends HttpResponse {
291
+ status: "200";
292
+ body: ShareResourceListOutput;
293
+ }
294
+ export interface ShareResourcesGetAllShareResourcesDefaultHeaders {
295
+ /** The error code */
296
+ "x-ms-error-code"?: string;
297
+ }
298
+ /** List share resources */
299
+ export interface ShareResourcesGetAllShareResourcesDefaultResponse extends HttpResponse {
300
+ status: string;
301
+ body: PurviewShareErrorOutput;
302
+ headers: RawHttpHeaders & ShareResourcesGetAllShareResourcesDefaultHeaders;
303
+ }
304
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,mBAAmB,EACnB,eAAe,EACf,6BAA6B,EAC7B,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAE3B,2BAA2B;AAC3B,MAAM,WAAW,yCAA0C,SAAQ,YAAY;IAC7E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,4CAA4C;IAC3D,qBAAqB;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,YAAY;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uBAAuB,CAAC;IAC9B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cAAc,GAAG,6CAA6C,CAAC;CACzE;AAED,MAAM,WAAW,iDAAiD;IAChE,qBAAqB;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,qCAAqC;AACrC,MAAM,WAAW,kDAAmD,SAAQ,YAAY;IACtF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,cAAc,GAAG,iDAAiD,CAAC;CAC7E;AAED,uGAAuG;AACvG,MAAM,WAAW,kDAAmD,SAAQ,YAAY;IACtF,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,qDAAqD;IACpE,qBAAqB;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,uGAAuG;AACvG,MAAM,WAAW,sDAAuD,SAAQ,YAAY;IAC1F,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,cAAc,GAAG,qDAAqD,CAAC;CACjF;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,YAAY;IACjF,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,MAAM,WAAW,gDAAgD;IAC/D,qBAAqB;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,2BAA2B;AAC3B,MAAM,WAAW,iDAAkD,SAAQ,YAAY;IACrF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,cAAc,GAAG,gDAAgD,CAAC;CAC5E"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -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"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@azure-rest/purview-sharing",
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
- "version": "1.0.0-beta.1",
5
+ "version": "1.0.0-beta.3",
6
6
  "description": "A generated SDK for PurviewSharing.",
7
7
  "keywords": [
8
8
  "node",
@@ -13,96 +13,75 @@
13
13
  "isomorphic"
14
14
  ],
15
15
  "license": "MIT",
16
- "main": "dist/index.js",
17
- "module": "./dist-esm/src/index.js",
18
- "types": "./types/purview-sharing.d.ts",
16
+ "main": "./dist/commonjs/index.js",
17
+ "module": "./dist/esm/index.js",
18
+ "types": "./dist/commonjs/index.d.ts",
19
19
  "repository": "github:Azure/azure-sdk-for-js",
20
20
  "bugs": {
21
21
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
22
22
  },
23
23
  "files": [
24
24
  "dist/",
25
- "dist-esm/src/",
26
- "types/purview-sharing.d.ts",
27
25
  "README.md",
28
- "LICENSE",
29
- "review/*"
26
+ "LICENSE"
30
27
  ],
31
28
  "engines": {
32
- "node": ">=14.0.0"
29
+ "node": ">=18.0.0"
33
30
  },
34
31
  "scripts": {
35
- "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
36
- "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
37
- "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
32
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
33
+ "build:browser": "dev-tool run build-package && dev-tool run bundle",
34
+ "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api",
35
+ "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false",
38
36
  "build:samples": "echo skipped.",
39
- "build:test": "tsc -p . && dev-tool run bundle",
40
- "build:debug": "tsc -p . && dev-tool run bundle && api-extractor run --local",
41
- "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
42
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
37
+ "build:test": "dev-tool run build-package && dev-tool run bundle",
38
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
39
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
43
40
  "execute:samples": "dev-tool samples run samples-dev",
44
- "extract-api": "rimraf review && mkdirp ./review && api-extractor run --local",
45
- "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
41
+ "extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
42
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\" \"samples-dev/**/*.ts\"",
46
43
  "generate:client": "autorest --typescript swagger/README.md && npm run format",
47
- "integration-test:browser": "dev-tool run test:browser",
48
- "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
49
44
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
50
- "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
51
- "lint": "eslint package.json api-extractor.json src test --ext .ts",
45
+ "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
46
+ "integration-test:node": "dev-tool run test:vitest --esm",
47
+ "lint": "eslint package.json api-extractor.json src test",
48
+ "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
52
49
  "pack": "npm pack 2>&1",
50
+ "test": "npm run clean && npm run build:test && npm run unit-test",
53
51
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
54
52
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
55
- "test": "npm run clean && npm run build:test && npm run unit-test",
56
53
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
57
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
58
- "unit-test:browser": "dev-tool run test:browser",
59
- "build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && api-extractor run --local"
54
+ "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
55
+ "unit-test:node": "dev-tool run test:vitest",
56
+ "update-snippets": "echo skipped"
60
57
  },
61
58
  "sideEffects": false,
62
59
  "autoPublish": false,
63
60
  "dependencies": {
64
- "@azure/core-auth": "^1.3.0",
65
- "@azure-rest/core-client": "^1.1.0",
66
- "@azure/core-rest-pipeline": "^1.8.0",
67
- "@azure/logger": "^1.0.0",
68
- "tslib": "^2.2.0",
69
- "@azure/core-paging": "^1.5.0",
70
- "@azure/core-lro": "^2.5.0",
71
- "@azure/abort-controller": "^1.0.0"
61
+ "@azure-rest/core-client": "^2.3.1",
62
+ "@azure/abort-controller": "^2.1.2",
63
+ "@azure/core-auth": "^1.9.0",
64
+ "@azure/core-lro": "^3.0.0",
65
+ "@azure/core-rest-pipeline": "^1.18.0",
66
+ "@azure/logger": "^1.1.4",
67
+ "tslib": "^2.8.1"
72
68
  },
73
69
  "devDependencies": {
74
- "@microsoft/api-extractor": "^7.31.1",
75
- "autorest": "latest",
76
- "@types/node": "^14.0.0",
77
- "dotenv": "^16.0.0",
78
- "eslint": "^8.0.0",
79
- "mkdirp": "^2.1.2",
80
- "prettier": "^2.5.1",
81
- "rimraf": "^3.0.0",
82
- "source-map-support": "^0.5.9",
83
- "typescript": "~4.8.0",
70
+ "@azure-tools/test-credential": "^2.0.0",
71
+ "@azure-tools/test-recorder": "^4.1.0",
72
+ "@azure-tools/test-utils-vitest": "^1.0.0",
84
73
  "@azure/dev-tool": "^1.0.0",
85
74
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
86
- "@azure-tools/test-credential": "^1.0.0",
87
- "@azure/identity": "^2.0.1",
88
- "@azure-tools/test-recorder": "^3.0.0",
89
- "mocha": "^7.1.1",
90
- "@types/mocha": "^7.0.2",
91
- "mocha-junit-reporter": "^1.18.0",
92
- "cross-env": "^7.0.2",
93
- "@types/chai": "^4.2.8",
94
- "chai": "^4.2.0",
95
- "karma-chrome-launcher": "^3.0.0",
96
- "karma-coverage": "^2.0.0",
97
- "karma-env-preprocessor": "^0.1.1",
98
- "karma-firefox-launcher": "^1.1.0",
99
- "karma-junit-reporter": "^2.0.1",
100
- "karma-mocha-reporter": "^2.2.5",
101
- "karma-mocha": "^2.0.1",
102
- "karma-source-map-support": "~1.4.0",
103
- "karma-sourcemap-loader": "^0.3.8",
104
- "karma": "^6.2.0",
105
- "nyc": "^15.0.0"
75
+ "@azure/identity": "^4.5.0",
76
+ "@types/node": "^18.0.0",
77
+ "@vitest/browser": "^3.0.3",
78
+ "@vitest/coverage-istanbul": "^3.0.3",
79
+ "autorest": "latest",
80
+ "dotenv": "^16.0.3",
81
+ "eslint": "^9.9.0",
82
+ "playwright": "^1.49.0",
83
+ "typescript": "~5.7.2",
84
+ "vitest": "^3.0.3"
106
85
  },
107
86
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-sharing-rest/README.md",
108
87
  "//metadata": {
@@ -117,15 +96,50 @@
117
96
  }
118
97
  ]
119
98
  },
120
- "browser": {
121
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
122
- },
99
+ "browser": "./dist/browser/index.js",
123
100
  "//sampleConfiguration": {
124
101
  "productName": "Purview Sharing",
125
102
  "productSlugs": [
126
103
  "azure"
127
104
  ],
128
- "disableDocsMs": true,
129
- "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/purview-sharing?view=azure-node-preview"
105
+ "disableDocsMs": true
106
+ },
107
+ "type": "module",
108
+ "tshy": {
109
+ "exports": {
110
+ "./package.json": "./package.json",
111
+ ".": "./src/index.ts"
112
+ },
113
+ "dialects": [
114
+ "esm",
115
+ "commonjs"
116
+ ],
117
+ "esmDialects": [
118
+ "browser",
119
+ "react-native"
120
+ ],
121
+ "selfLink": false,
122
+ "project": "./tsconfig.src.json"
123
+ },
124
+ "exports": {
125
+ "./package.json": "./package.json",
126
+ ".": {
127
+ "browser": {
128
+ "types": "./dist/browser/index.d.ts",
129
+ "default": "./dist/browser/index.js"
130
+ },
131
+ "react-native": {
132
+ "types": "./dist/react-native/index.d.ts",
133
+ "default": "./dist/react-native/index.js"
134
+ },
135
+ "import": {
136
+ "types": "./dist/esm/index.d.ts",
137
+ "default": "./dist/esm/index.js"
138
+ },
139
+ "require": {
140
+ "types": "./dist/commonjs/index.d.ts",
141
+ "default": "./dist/commonjs/index.js"
142
+ }
143
+ }
130
144
  }
131
145
  }