@azure-rest/purview-sharing 1.0.0-alpha.20230418.1 → 1.0.0-alpha.20230808.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var coreLro = require('@azure/core-lro');
16
16
  function createClient(endpoint, credentials, options = {}) {
17
17
  var _a, _b;
18
18
  const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}`;
19
- options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-02-15-preview";
19
+ options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-05-30-preview";
20
20
  options = Object.assign(Object.assign({}, options), { credentials: {
21
21
  scopes: ["https://purview.azure.net/.default"],
22
22
  } });
@@ -50,6 +50,7 @@ const responseMap = {
50
50
  "PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["201"],
51
51
  "DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["202"],
52
52
  "POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify": ["200"],
53
+ "GET /shareResources": ["200"],
53
54
  };
54
55
  function isUnexpected(response) {
55
56
  const lroOriginal = response.headers["x-ms-original-url"];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/purviewSharing.ts","../src/isUnexpected.ts","../src/paginateHelper.ts","../src/pollingHelper.ts","../src/index.ts"],"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.2`;\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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /receivedShares/{receivedShareId}\": [\"200\"],\n \"PUT /receivedShares/{receivedShareId}\": [\"200\", \"201\"],\n \"DELETE /receivedShares/{receivedShareId}\": [\"202\"],\n \"GET /receivedShares/attached\": [\"200\"],\n \"GET /receivedShares/detached\": [\"200\"],\n \"POST /emails:activate\": [\"200\"],\n \"POST /emails:register\": [\"200\"],\n \"GET /sentShares\": [\"200\"],\n \"GET /sentShares/{sentShareId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}\": [\"200\", \"201\"],\n \"DELETE /sentShares/{sentShareId}\": [\"202\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations\": [\"200\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"201\"],\n \"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"202\"],\n \"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n): response is ReceivedSharesGetReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n): response is ReceivedSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n): response is ReceivedSharesDeleteReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n): response is SentSharesGetAllSentSharesDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse\n): response is SentSharesGetSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n): response is SentSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n): response is SentSharesDeleteSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n): response is SentSharesGetAllSentShareInvitationsDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n): response is SentSharesGetSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n): response is SentSharesCreateSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n): response is SentSharesDeleteSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentShares200Response\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShare200Response\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShare202Response\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitationDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\"\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n","// 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","// 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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport PurviewSharing from \"./purviewSharing\";\n\nexport * from \"./purviewSharing\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport * from \"./clientDefinitions\";\nexport * from \"./isUnexpected\";\nexport * from \"./models\";\nexport * from \"./outputModels\";\nexport * from \"./paginateHelper\";\nexport * from \"./pollingHelper\";\n\nexport default PurviewSharing;\n"],"names":["getClient","getPagedAsyncIterator","createRestError","createHttpPoller"],"mappings":";;;;;;;;AAAA;AAOA;;;;;AAKG;AACW,SAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,OAAA,GAAyB,EAAE,EAAA;;IAE3B,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,EAAG,QAAQ,CAAA,CAAE,CAAC;IACjD,OAAO,CAAC,UAAU,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,UAAU,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAA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AA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,IAAI,CAAC;AACtE,IAAA,OAAOC,wBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED;;;;AAIG;AACH,SAAS,cAAc,CAA+B,QAAiB,EAAA;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,CAAA,oDAAA,EAAuD,QAAQ,CAAC,MAAM,CAAE,CAAA,CAAC,CAAC;AAC/F,KAAA;IAED,OAAO;AACL,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,WAAW,kCACN,QAAQ,CAAA,EAAA,EACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,EACpB,CAAA;KACF,CAAC;AACJ;;ACnEA;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/purviewSharing.ts","../src/isUnexpected.ts","../src/paginateHelper.ts","../src/pollingHelper.ts","../src/index.ts"],"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-05-30-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.2`;\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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n ShareResourcesGetAllShareResources200Response,\n ShareResourcesGetAllShareResourcesDefaultResponse,\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /receivedShares/{receivedShareId}\": [\"200\"],\n \"PUT /receivedShares/{receivedShareId}\": [\"200\", \"201\"],\n \"DELETE /receivedShares/{receivedShareId}\": [\"202\"],\n \"GET /receivedShares/attached\": [\"200\"],\n \"GET /receivedShares/detached\": [\"200\"],\n \"POST /emails:activate\": [\"200\"],\n \"POST /emails:register\": [\"200\"],\n \"GET /sentShares\": [\"200\"],\n \"GET /sentShares/{sentShareId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}\": [\"200\", \"201\"],\n \"DELETE /sentShares/{sentShareId}\": [\"202\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations\": [\"200\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"201\"],\n \"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"202\"],\n \"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\": [\"200\"],\n \"GET /shareResources\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n): response is ReceivedSharesGetReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n): response is ReceivedSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n): response is ReceivedSharesDeleteReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n): response is SentSharesGetAllSentSharesDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse\n): response is SentSharesGetSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n): response is SentSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n): response is SentSharesDeleteSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n): response is SentSharesGetAllSentShareInvitationsDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n): response is SentSharesGetSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n): response is SentSharesCreateSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n): response is SentSharesDeleteSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n): response is ShareResourcesGetAllShareResourcesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentShares200Response\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShare200Response\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShare202Response\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n): response is\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResourcesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\"\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n","// 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","// 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","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport PurviewSharing from \"./purviewSharing\";\n\nexport * from \"./purviewSharing\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport * from \"./clientDefinitions\";\nexport * from \"./isUnexpected\";\nexport * from \"./models\";\nexport * from \"./outputModels\";\nexport * from \"./paginateHelper\";\nexport * from \"./pollingHelper\";\n\nexport default PurviewSharing;\n"],"names":["getClient","getPagedAsyncIterator","createRestError","createHttpPoller"],"mappings":";;;;;;;;AAAA;AAOA;;;;;AAKG;AACW,SAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,OAAA,GAAyB,EAAE,EAAA;;IAE3B,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,EAAG,QAAQ,CAAA,CAAE,CAAC;IACjD,OAAO,CAAC,UAAU,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,UAAU,MAAI,IAAA,IAA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C,qBAAqB,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,qBAAqB,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,IAAI,CAAC;AACtE,IAAA,OAAOC,wBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAED;;;;AAIG;AACH,SAAS,cAAc,CAA+B,QAAiB,EAAA;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,CAAA,oDAAA,EAAuD,QAAQ,CAAC,MAAM,CAAE,CAAA,CAAC,CAAC;AAC/F,KAAA;IAED,OAAO;AACL,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,WAAW,kCACN,QAAQ,CAAA,EAAA,EACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,EACpB,CAAA;KACF,CAAC;AACJ;;ACnEA;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShareParameters,\n ReceivedSharesCreateOrReplaceParameters,\n ReceivedSharesDeleteReceivedShareParameters,\n ReceivedSharesGetAllAttachedReceivedSharesParameters,\n ReceivedSharesGetAllDetachedReceivedSharesParameters,\n ReceivedSharesActivateTenantEmailRegistrationParameters,\n ReceivedSharesRegisterTenantEmailRegistrationParameters,\n SentSharesGetAllSentSharesParameters,\n SentSharesGetSentShareParameters,\n SentSharesCreateOrReplaceParameters,\n SentSharesDeleteSentShareParameters,\n SentSharesGetAllSentShareInvitationsParameters,\n SentSharesGetSentShareInvitationParameters,\n SentSharesCreateSentShareInvitationParameters,\n SentSharesDeleteSentShareInvitationParameters,\n SentSharesNotifyUserSentShareInvitationParameters,\n} from \"./parameters\";\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n} from \"./responses\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ReceivedSharesGetReceivedShare {\n /** Get a received share */\n get(\n options?: ReceivedSharesGetReceivedShareParameters\n ): StreamableMethod<\n ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse\n >;\n /** Update changes to a received share */\n put(\n options: ReceivedSharesCreateOrReplaceParameters\n ): StreamableMethod<\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a received share */\n delete(\n options?: ReceivedSharesDeleteReceivedShareParameters\n ): StreamableMethod<\n ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllAttachedReceivedShares {\n /** List attached received shares */\n get(\n options: ReceivedSharesGetAllAttachedReceivedSharesParameters\n ): StreamableMethod<\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllDetachedReceivedShares {\n /** List detached received shares */\n get(\n options?: ReceivedSharesGetAllDetachedReceivedSharesParameters\n ): StreamableMethod<\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistration {\n /** Activates the email registration for current tenant */\n post(\n options: ReceivedSharesActivateTenantEmailRegistrationParameters\n ): StreamableMethod<\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesRegisterTenantEmailRegistration {\n /** Register an email for the current tenant */\n post(\n options?: ReceivedSharesRegisterTenantEmailRegistrationParameters\n ): StreamableMethod<\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShares {\n /** List sent shares */\n get(\n options: SentSharesGetAllSentSharesParameters\n ): StreamableMethod<\n SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShare {\n /** Get a sent share */\n get(\n options?: SentSharesGetSentShareParameters\n ): StreamableMethod<SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse>;\n /** Create or replace a sent share */\n put(\n options: SentSharesCreateOrReplaceParameters\n ): StreamableMethod<\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a sent share */\n delete(\n options?: SentSharesDeleteSentShareParameters\n ): StreamableMethod<\n SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShareInvitations {\n /** List sent share recipients */\n get(\n options?: SentSharesGetAllSentShareInvitationsParameters\n ): StreamableMethod<\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShareInvitation {\n /** Get recipient for a given sent share */\n get(\n options?: SentSharesGetSentShareInvitationParameters\n ): StreamableMethod<\n SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse\n >;\n /** Create a recipient for a given sent share */\n put(\n options: SentSharesCreateSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n >;\n /** Delete a sent share invitation */\n delete(\n options?: SentSharesDeleteSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface SentSharesNotifyUserSentShareInvitation {\n /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */\n post(\n options?: SentSharesNotifyUserSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/receivedShares/\\{receivedShareId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/receivedShares/{receivedShareId}\",\n receivedShareId: string\n ): ReceivedSharesGetReceivedShare;\n /** Resource for '/receivedShares/attached' has methods for the following verbs: get */\n (path: \"/receivedShares/attached\"): ReceivedSharesGetAllAttachedReceivedShares;\n /** Resource for '/receivedShares/detached' has methods for the following verbs: get */\n (path: \"/receivedShares/detached\"): ReceivedSharesGetAllDetachedReceivedShares;\n /** Resource for '/emails:activate' has methods for the following verbs: post */\n (path: \"/emails:activate\"): ReceivedSharesActivateTenantEmailRegistration;\n /** Resource for '/emails:register' has methods for the following verbs: post */\n (path: \"/emails:register\"): ReceivedSharesRegisterTenantEmailRegistration;\n /** Resource for '/sentShares' has methods for the following verbs: get */\n (path: \"/sentShares\"): SentSharesGetAllSentShares;\n /** Resource for '/sentShares/\\{sentShareId\\}' has methods for the following verbs: get, put, delete */\n (path: \"/sentShares/{sentShareId}\", sentShareId: string): SentSharesGetSentShare;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations' has methods for the following verbs: get */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations\",\n sentShareId: string\n ): SentSharesGetAllSentShareInvitations;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\",\n sentShareId: string,\n sentShareInvitationId: string\n ): SentSharesGetSentShareInvitation;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}:notify' has methods for the following verbs: post */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\",\n sentShareId: string,\n sentShareInvitationId: string\n ): SentSharesNotifyUserSentShareInvitation;\n}\n\nexport type PurviewSharingClient = Client & {\n path: Routes;\n};\n"]}
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShareParameters,\n ReceivedSharesCreateOrReplaceParameters,\n ReceivedSharesDeleteReceivedShareParameters,\n ReceivedSharesGetAllAttachedReceivedSharesParameters,\n ReceivedSharesGetAllDetachedReceivedSharesParameters,\n ReceivedSharesActivateTenantEmailRegistrationParameters,\n ReceivedSharesRegisterTenantEmailRegistrationParameters,\n SentSharesGetAllSentSharesParameters,\n SentSharesGetSentShareParameters,\n SentSharesCreateOrReplaceParameters,\n SentSharesDeleteSentShareParameters,\n SentSharesGetAllSentShareInvitationsParameters,\n SentSharesGetSentShareInvitationParameters,\n SentSharesCreateSentShareInvitationParameters,\n SentSharesDeleteSentShareInvitationParameters,\n SentSharesNotifyUserSentShareInvitationParameters,\n ShareResourcesGetAllShareResourcesParameters,\n} from \"./parameters\";\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n ShareResourcesGetAllShareResources200Response,\n ShareResourcesGetAllShareResourcesDefaultResponse,\n} from \"./responses\";\nimport { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ReceivedSharesGetReceivedShare {\n /** Get a received share */\n get(\n options?: ReceivedSharesGetReceivedShareParameters\n ): StreamableMethod<\n ReceivedSharesGetReceivedShare200Response | ReceivedSharesGetReceivedShareDefaultResponse\n >;\n /** Update changes to a received share */\n put(\n options: ReceivedSharesCreateOrReplaceParameters\n ): StreamableMethod<\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a received share */\n delete(\n options?: ReceivedSharesDeleteReceivedShareParameters\n ): StreamableMethod<\n ReceivedSharesDeleteReceivedShare202Response | ReceivedSharesDeleteReceivedShareDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllAttachedReceivedShares {\n /** List attached received shares */\n get(\n options: ReceivedSharesGetAllAttachedReceivedSharesParameters\n ): StreamableMethod<\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesGetAllDetachedReceivedShares {\n /** List detached received shares */\n get(\n options?: ReceivedSharesGetAllDetachedReceivedSharesParameters\n ): StreamableMethod<\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesActivateTenantEmailRegistration {\n /** Activates the email registration for current tenant */\n post(\n options: ReceivedSharesActivateTenantEmailRegistrationParameters\n ): StreamableMethod<\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface ReceivedSharesRegisterTenantEmailRegistration {\n /** Register an email for the current tenant */\n post(\n options?: ReceivedSharesRegisterTenantEmailRegistrationParameters\n ): StreamableMethod<\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShares {\n /** List sent shares */\n get(\n options: SentSharesGetAllSentSharesParameters\n ): StreamableMethod<\n SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShare {\n /** Get a sent share */\n get(\n options?: SentSharesGetSentShareParameters\n ): StreamableMethod<SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse>;\n /** Create or replace a sent share */\n put(\n options: SentSharesCreateOrReplaceParameters\n ): StreamableMethod<\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n >;\n /** Delete a sent share */\n delete(\n options?: SentSharesDeleteSentShareParameters\n ): StreamableMethod<\n SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n >;\n}\n\nexport interface SentSharesGetAllSentShareInvitations {\n /** List sent share recipients */\n get(\n options?: SentSharesGetAllSentShareInvitationsParameters\n ): StreamableMethod<\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n >;\n}\n\nexport interface SentSharesGetSentShareInvitation {\n /** Get recipient for a given sent share */\n get(\n options?: SentSharesGetSentShareInvitationParameters\n ): StreamableMethod<\n SentSharesGetSentShareInvitation200Response | SentSharesGetSentShareInvitationDefaultResponse\n >;\n /** Create a recipient for a given sent share */\n put(\n options: SentSharesCreateSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n >;\n /** Delete a sent share invitation */\n delete(\n options?: SentSharesDeleteSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface SentSharesNotifyUserSentShareInvitation {\n /** Notifies the user recipient of the sent share invitation, does not apply to service invitations. */\n post(\n options?: SentSharesNotifyUserSentShareInvitationParameters\n ): StreamableMethod<\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n >;\n}\n\nexport interface ShareResourcesGetAllShareResources {\n /** List share resources */\n get(\n options?: ShareResourcesGetAllShareResourcesParameters\n ): StreamableMethod<\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/receivedShares/\\{receivedShareId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/receivedShares/{receivedShareId}\",\n receivedShareId: string\n ): ReceivedSharesGetReceivedShare;\n /** Resource for '/receivedShares/attached' has methods for the following verbs: get */\n (path: \"/receivedShares/attached\"): ReceivedSharesGetAllAttachedReceivedShares;\n /** Resource for '/receivedShares/detached' has methods for the following verbs: get */\n (path: \"/receivedShares/detached\"): ReceivedSharesGetAllDetachedReceivedShares;\n /** Resource for '/emails:activate' has methods for the following verbs: post */\n (path: \"/emails:activate\"): ReceivedSharesActivateTenantEmailRegistration;\n /** Resource for '/emails:register' has methods for the following verbs: post */\n (path: \"/emails:register\"): ReceivedSharesRegisterTenantEmailRegistration;\n /** Resource for '/sentShares' has methods for the following verbs: get */\n (path: \"/sentShares\"): SentSharesGetAllSentShares;\n /** Resource for '/sentShares/\\{sentShareId\\}' has methods for the following verbs: get, put, delete */\n (path: \"/sentShares/{sentShareId}\", sentShareId: string): SentSharesGetSentShare;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations' has methods for the following verbs: get */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations\",\n sentShareId: string\n ): SentSharesGetAllSentShareInvitations;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\",\n sentShareId: string,\n sentShareInvitationId: string\n ): SentSharesGetSentShareInvitation;\n /** Resource for '/sentShares/\\{sentShareId\\}/sentShareInvitations/\\{sentShareInvitationId\\}:notify' has methods for the following verbs: post */\n (\n path: \"/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\",\n sentShareId: string,\n sentShareInvitationId: string\n ): SentSharesNotifyUserSentShareInvitation;\n /** Resource for '/shareResources' has methods for the following verbs: get */\n (path: \"/shareResources\"): ShareResourcesGetAllShareResources;\n}\n\nexport type PurviewSharingClient = Client & {\n path: Routes;\n};\n"]}
@@ -17,6 +17,7 @@ const responseMap = {
17
17
  "PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["201"],
18
18
  "DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}": ["202"],
19
19
  "POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify": ["200"],
20
+ "GET /shareResources": ["200"],
20
21
  };
21
22
  export function isUnexpected(response) {
22
23
  const lroOriginal = response.headers["x-ms-original-url"];
@@ -1 +1 @@
1
- {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuClC,MAAM,WAAW,GAA6B;IAC5C,uCAAuC,EAAE,CAAC,KAAK,CAAC;IAChD,uCAAuC,EAAE,CA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AG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE;oBACd,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;iBACP;gBACD,SAAS;aACV;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE;gBACtC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;aACP;SACF;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE;YAC9C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;SACtB;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /receivedShares/{receivedShareId}\": [\"200\"],\n \"PUT /receivedShares/{receivedShareId}\": [\"200\", \"201\"],\n \"DELETE /receivedShares/{receivedShareId}\": [\"202\"],\n \"GET /receivedShares/attached\": [\"200\"],\n \"GET /receivedShares/detached\": [\"200\"],\n \"POST /emails:activate\": [\"200\"],\n \"POST /emails:register\": [\"200\"],\n \"GET /sentShares\": [\"200\"],\n \"GET /sentShares/{sentShareId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}\": [\"200\", \"201\"],\n \"DELETE /sentShares/{sentShareId}\": [\"202\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations\": [\"200\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"201\"],\n \"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"202\"],\n \"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n): response is ReceivedSharesGetReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n): response is ReceivedSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n): response is ReceivedSharesDeleteReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n): response is SentSharesGetAllSentSharesDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse\n): response is SentSharesGetSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n): response is SentSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n): response is SentSharesDeleteSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n): response is SentSharesGetAllSentShareInvitationsDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n): response is SentSharesGetSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n): response is SentSharesCreateSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n): response is SentSharesDeleteSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentShares200Response\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShare200Response\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShare202Response\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitationDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\"\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAyClC,MAAM,WAAW,GAA6B;IAC5C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A4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,MAAA,cAAc,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE;oBACd,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;iBACP;gBACD,SAAS;aACV;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE;gBACtC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;aACP;SACF;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE;YAC9C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;SACtB;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ReceivedSharesGetReceivedShare200Response,\n ReceivedSharesGetReceivedShareDefaultResponse,\n ReceivedSharesCreateOrReplace200Response,\n ReceivedSharesCreateOrReplace201Response,\n ReceivedSharesCreateOrReplaceDefaultResponse,\n ReceivedSharesDeleteReceivedShare202Response,\n ReceivedSharesDeleteReceivedShareDefaultResponse,\n ReceivedSharesGetAllAttachedReceivedShares200Response,\n ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse,\n ReceivedSharesGetAllDetachedReceivedShares200Response,\n ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse,\n ReceivedSharesActivateTenantEmailRegistration200Response,\n ReceivedSharesActivateTenantEmailRegistrationDefaultResponse,\n ReceivedSharesRegisterTenantEmailRegistration200Response,\n ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse,\n SentSharesGetAllSentShares200Response,\n SentSharesGetAllSentSharesDefaultResponse,\n SentSharesGetSentShare200Response,\n SentSharesGetSentShareDefaultResponse,\n SentSharesCreateOrReplace200Response,\n SentSharesCreateOrReplace201Response,\n SentSharesCreateOrReplaceDefaultResponse,\n SentSharesDeleteSentShare202Response,\n SentSharesDeleteSentShareDefaultResponse,\n SentSharesGetAllSentShareInvitations200Response,\n SentSharesGetAllSentShareInvitationsDefaultResponse,\n SentSharesGetSentShareInvitation200Response,\n SentSharesGetSentShareInvitationDefaultResponse,\n SentSharesCreateSentShareInvitation201Response,\n SentSharesCreateSentShareInvitationDefaultResponse,\n SentSharesDeleteSentShareInvitation202Response,\n SentSharesDeleteSentShareInvitationDefaultResponse,\n SentSharesNotifyUserSentShareInvitation200Response,\n SentSharesNotifyUserSentShareInvitationDefaultResponse,\n ShareResourcesGetAllShareResources200Response,\n ShareResourcesGetAllShareResourcesDefaultResponse,\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /receivedShares/{receivedShareId}\": [\"200\"],\n \"PUT /receivedShares/{receivedShareId}\": [\"200\", \"201\"],\n \"DELETE /receivedShares/{receivedShareId}\": [\"202\"],\n \"GET /receivedShares/attached\": [\"200\"],\n \"GET /receivedShares/detached\": [\"200\"],\n \"POST /emails:activate\": [\"200\"],\n \"POST /emails:register\": [\"200\"],\n \"GET /sentShares\": [\"200\"],\n \"GET /sentShares/{sentShareId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}\": [\"200\", \"201\"],\n \"DELETE /sentShares/{sentShareId}\": [\"202\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations\": [\"200\"],\n \"GET /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"200\"],\n \"PUT /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"201\"],\n \"DELETE /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}\": [\"202\"],\n \"POST /sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify\": [\"200\"],\n \"GET /shareResources\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n): response is ReceivedSharesGetReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n): response is ReceivedSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n): response is ReceivedSharesDeleteReceivedShareDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n): response is ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesActivateTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n): response is ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetAllSentShares200Response | SentSharesGetAllSentSharesDefaultResponse\n): response is SentSharesGetAllSentSharesDefaultResponse;\nexport function isUnexpected(\n response: SentSharesGetSentShare200Response | SentSharesGetSentShareDefaultResponse\n): response is SentSharesGetSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n): response is SentSharesCreateOrReplaceDefaultResponse;\nexport function isUnexpected(\n response: SentSharesDeleteSentShare202Response | SentSharesDeleteSentShareDefaultResponse\n): response is SentSharesDeleteSentShareDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n): response is SentSharesGetAllSentShareInvitationsDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n): response is SentSharesGetSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n): response is SentSharesCreateSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n): response is SentSharesDeleteSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;\nexport function isUnexpected(\n response:\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n): response is ShareResourcesGetAllShareResourcesDefaultResponse;\nexport function isUnexpected(\n response:\n | ReceivedSharesGetReceivedShare200Response\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplace200Response\n | ReceivedSharesCreateOrReplace201Response\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShare202Response\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedShares200Response\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedShares200Response\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistration200Response\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistration200Response\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentShares200Response\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShare200Response\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplace200Response\n | SentSharesCreateOrReplace201Response\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShare202Response\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitations200Response\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitation200Response\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitation201Response\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitation202Response\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitation200Response\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResources200Response\n | ShareResourcesGetAllShareResourcesDefaultResponse\n): response is\n | ReceivedSharesGetReceivedShareDefaultResponse\n | ReceivedSharesCreateOrReplaceDefaultResponse\n | ReceivedSharesDeleteReceivedShareDefaultResponse\n | ReceivedSharesGetAllAttachedReceivedSharesDefaultResponse\n | ReceivedSharesGetAllDetachedReceivedSharesDefaultResponse\n | ReceivedSharesActivateTenantEmailRegistrationDefaultResponse\n | ReceivedSharesRegisterTenantEmailRegistrationDefaultResponse\n | SentSharesGetAllSentSharesDefaultResponse\n | SentSharesGetSentShareDefaultResponse\n | SentSharesCreateOrReplaceDefaultResponse\n | SentSharesDeleteSentShareDefaultResponse\n | SentSharesGetAllSentShareInvitationsDefaultResponse\n | SentSharesGetSentShareInvitationDefaultResponse\n | SentSharesCreateSentShareInvitationDefaultResponse\n | SentSharesDeleteSentShareInvitationDefaultResponse\n | SentSharesNotifyUserSentShareInvitationDefaultResponse\n | ShareResourcesGetAllShareResourcesDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\"\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** A received share data transfer object. */\nexport interface ReceivedShareParent extends ProxyResource {\n shareKind: \"ReceivedShare\" | \"InPlace\";\n}\n\n/** Base data transfer object implementation for proxy resources. */\nexport interface ProxyResource {}\n\n/** A sent share data transfer object. */\nexport interface SentShareParent extends ProxyResource {\n shareKind: \"SentShare\" | \"InPlace\";\n}\n\n/** A sent share invitation data transfer object. */\nexport interface SentShareInvitationParent extends ProxyResource {\n invitationKind: \"SentShareInvitation\" | \"Service\" | \"User\";\n}\n\n/** A 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
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** A received share data transfer object. */\nexport interface ReceivedShareParent extends ProxyResource {\n shareKind: \"ReceivedShare\" | \"InPlace\";\n}\n\n/** Base data transfer object implementation for proxy resources. */\nexport interface ProxyResource {}\n\n/** A sent share data transfer object. */\nexport interface SentShareParent extends ProxyResource {\n shareKind: \"SentShare\" | \"InPlace\";\n}\n\n/** A sent share invitation data transfer object. */\nexport interface SentShareInvitationParent extends ProxyResource {\n invitationKind: \"SentShareInvitation\" | \"Service\" | \"User\";\n}\n\n/** A share resource. */\nexport interface ShareResource extends ProxyResource {\n /** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n receivedSharesCount?: number;\n /** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n sentSharesCount?: number;\n /** The types of asset. */\n storeKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** A Store Reference for an artifact or sink. */\n storeReference?: StoreReference;\n}\n\n/** A Store Reference for an artifact or sink. */\nexport interface StoreReference {\n /** Reference name for resource associated with the sink or artifact. */\n referenceName?: string;\n /** Defines the type of resource being shared */\n type?: \"ArmResourceReference\";\n}\n\n/** A tenant email registration data transfer object. */\nexport interface TenantEmailRegistration extends ProxyResource {\n /** Tenant email registration property bag. */\n properties?: TenantEmailRegistrationProperties;\n}\n\n/** Tenant email registration property bag. */\nexport interface TenantEmailRegistrationProperties {\n /** Activation code for the registration. */\n activationCode: string;\n}\n\n/** AdlsGen2 Sink */\nexport interface AdlsGen2AccountSink extends SinkParent {\n /** Properties for AdlsGen2 storage account */\n properties: AdlsGen2AccountSinkProperties;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for AdlsGen2 storage account */\nexport interface AdlsGen2AccountSinkProperties {\n /** Adls Gen 2 Container Name */\n containerName: string;\n /** Adls Gen 2 Folder */\n folder: string;\n /** Adls Gen 2 Mount Path */\n mountPath?: string;\n}\n\n/** Holds details on the destination of the mapped artifact */\nexport interface SinkParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReference;\n storeKind: \"Sink\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** An Adls Gen2 storage account artifact. */\nexport interface AdlsGen2Artifact extends ArtifactParent {\n /** Properties for Adls Gen2 storage account. */\n properties: AdlsGen2ArtifactProperties;\n storeKind: \"AdlsGen2Account\";\n}\n\n/** Properties for Adls Gen2 storage account. */\nexport interface AdlsGen2ArtifactProperties {\n /** A list of Adls Gen2 storage account paths. */\n paths: Array<StorageAccountPath>;\n}\n\n/** Defines a single StorageAccountPath path */\nexport interface StorageAccountPath {\n /** Gets or sets the container name */\n containerName: string;\n /** Gets or sets the path on the receiver side where the artifact is to be mapped */\n receiverPath?: string;\n /** Gets or sets the path to file/folder within the container to be shared */\n senderPath?: string;\n}\n\n/** A class for sent share artifact. */\nexport interface ArtifactParent {\n /** A Store Reference for an artifact or sink. */\n storeReference: StoreReference;\n storeKind: \"Artifact\" | \"AdlsGen2Account\" | \"BlobAccount\";\n}\n\n/** Blob Sink */\nexport interface BlobAccountSink extends SinkParent {\n /** Properties for blob storage account */\n properties: BlobAccountSinkProperties;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account */\nexport interface BlobAccountSinkProperties {\n /** Blob Container Name */\n containerName: string;\n /** Blob Folder */\n folder: string;\n /** Blob Mount Path */\n mountPath?: string;\n}\n\n/** Blob storage account artifact. */\nexport interface BlobStorageArtifact extends ArtifactParent {\n /** Properties for blob storage account. */\n properties: BlobStorageArtifactProperties;\n storeKind: \"BlobAccount\";\n}\n\n/** Properties for blob storage account. */\nexport interface BlobStorageArtifactProperties {\n /** A list of blob storage account paths. */\n paths: Array<StorageAccountPath>;\n}\n\n/** An InPlace received share kind. */\nexport interface InPlaceReceivedShare extends ReceivedShareParent {\n /** Properties of in place received share. */\n properties: InPlaceReceivedShareProperties;\n shareKind: \"InPlace\";\n}\n\n/** Properties of in place received share. */\nexport interface InPlaceReceivedShareProperties {\n /** The types of asset. */\n assetStoreKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** Received Share Name */\n displayName?: string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** Holds details on the destination of the mapped artifact */\n sink?: Sink;\n}\n\n/** An InPlace share kind. */\nexport interface InPlaceSentShare extends SentShareParent {\n /** Properties for InPlace sent share. */\n properties: InPlaceSentShareProperties;\n shareKind: \"InPlace\";\n}\n\n/** Properties for InPlace sent share. */\nexport interface InPlaceSentShareProperties {\n /** A class for sent share artifact. */\n artifact: Artifact;\n /** Sent share description. */\n description?: string;\n /** The name of the sent share */\n displayName: string;\n}\n\n/** An service invitation kind. */\nexport interface ServiceInvitation extends SentShareInvitationParent {\n /** Properties of the service invitation type. */\n properties: ServiceInvitationProperties;\n invitationKind: \"Service\";\n}\n\n/** Properties of the service invitation type. */\nexport interface ServiceInvitationProperties {\n /** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n expirationDate?: Date | string;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /**\n * The target azure active directory id the invitation is sent to.\n *\n * Value may contain a UUID\n */\n targetActiveDirectoryId: string;\n /**\n * The target object id in the azure active directory the invitation is sent to.\n *\n * Value may contain a UUID\n */\n targetObjectId: string;\n}\n\n/** A user invitation kind. */\nexport interface UserInvitation extends SentShareInvitationParent {\n /** Properties of the user invitation type. */\n properties: UserInvitationProperties;\n invitationKind: \"User\";\n}\n\n/** Properties of the user invitation type. */\nexport interface UserInvitationProperties {\n /** The time at which the invitation will expire. Represented in the standard date-time format as defined by [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) */\n expirationDate?: Date | string;\n /** Whether or not the recipient was notified via email. */\n notify?: boolean;\n /** Share status. */\n shareStatus?: \"Detached\" | \"Attached\";\n /** The receiver email for the invitation is being sent. */\n targetEmail: string;\n}\n\n/** A received share data transfer object. */\nexport type ReceivedShare = InPlaceReceivedShare;\n/** A sent share data transfer object. */\nexport type SentShare = InPlaceSentShare;\n/** A sent share invitation data transfer object. */\nexport type SentShareInvitation = ServiceInvitation | UserInvitation;\n/** Holds details on the destination of the mapped artifact */\nexport type Sink = AdlsGen2AccountSink | BlobAccountSink;\n/** A class for sent share artifact. */\nexport type Artifact = AdlsGen2Artifact | BlobStorageArtifact;\n"]}
@@ -1 +1 @@
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
+ {"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 ReceivedShare */\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 SentShare */\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 SentShareInvitation */\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 page of ShareResource results. */\nexport interface ShareResourceListOutput {\n /** The Url of next result page. */\n nextLink?: string;\n /** Collection of items of type ShareResource */\n value: Array<ShareResourceOutput>;\n}\n\n/** A share resource. */\nexport interface ShareResourceOutput extends ProxyResourceOutput {\n /** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n receivedSharesCount?: number;\n /** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */\n sentSharesCount?: number;\n /** The types of asset. */\n storeKind?: \"AdlsGen2Account\" | \"BlobAccount\";\n /** A Store Reference for an artifact or sink. */\n storeReference?: StoreReferenceOutput;\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/** 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/** 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 +1 @@
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
+ {"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 /** 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 /** 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 /** 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 /** 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\nexport interface ShareResourcesGetAllShareResourcesQueryParamProperties {\n /** Filters the results using OData syntax */\n filter?: string;\n /** Sorts the results using OData syntax */\n orderby?: string;\n}\n\nexport interface ShareResourcesGetAllShareResourcesQueryParam {\n queryParameters?: ShareResourcesGetAllShareResourcesQueryParamProperties;\n}\n\nexport type ShareResourcesGetAllShareResourcesParameters =\n ShareResourcesGetAllShareResourcesQueryParam & RequestParameters;\n"]}
@@ -10,7 +10,7 @@ import { getClient } from "@azure-rest/core-client";
10
10
  export default function createClient(endpoint, credentials, options = {}) {
11
11
  var _a, _b;
12
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";
13
+ options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-05-30-preview";
14
14
  options = Object.assign(Object.assign({}, options), { credentials: {
15
15
  scopes: ["https://purview.azure.net/.default"],
16
16
  } });
@@ -1 +1 @@
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.2`;\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
+ {"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-05-30-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.2`;\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 +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 { 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"]}
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 ShareResourceListOutput,\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\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-alpha.20230418.1",
5
+ "version": "1.0.0-alpha.20230808.2",
6
6
  "description": "A generated SDK for PurviewSharing.",
7
7
  "keywords": [
8
8
  "node",
@@ -61,48 +61,48 @@
61
61
  "sideEffects": false,
62
62
  "autoPublish": false,
63
63
  "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",
64
+ "@azure-rest/core-client": "^1.1.3",
65
+ "@azure/abort-controller": "^1.0.0",
66
+ "@azure/core-auth": "^1.4.0",
67
+ "@azure/core-lro": "^2.5.3",
69
68
  "@azure/core-paging": "^1.5.0",
70
- "@azure/core-lro": "^2.5.0",
71
- "@azure/abort-controller": "^1.0.0"
69
+ "@azure/core-rest-pipeline": "^1.10.3",
70
+ "@azure/logger": "^1.0.0",
71
+ "tslib": "^2.2.0"
72
72
  },
73
73
  "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": "~5.0.0",
74
+ "@azure-tools/test-credential": "^1.0.0",
75
+ "@azure-tools/test-recorder": "^3.0.0",
84
76
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
85
77
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
86
- "@azure-tools/test-credential": "^1.0.0",
87
78
  "@azure/identity": "^2.0.1",
88
- "@azure-tools/test-recorder": "^3.0.0",
89
- "mocha": "^7.1.1",
79
+ "@microsoft/api-extractor": "^7.31.1",
80
+ "@types/chai": "^4.3.5",
90
81
  "@types/mocha": "^7.0.2",
91
- "mocha-junit-reporter": "^1.18.0",
82
+ "@types/node": "^14.0.0",
83
+ "autorest": "latest",
84
+ "chai": "^4.3.7",
92
85
  "cross-env": "^7.0.2",
93
- "@types/chai": "^4.2.8",
94
- "chai": "^4.2.0",
86
+ "dotenv": "^16.0.3",
87
+ "eslint": "^8.41.0",
88
+ "karma": "^6.2.0",
95
89
  "karma-chrome-launcher": "^3.0.0",
96
90
  "karma-coverage": "^2.0.0",
97
91
  "karma-env-preprocessor": "^0.1.1",
98
92
  "karma-firefox-launcher": "^1.1.0",
99
93
  "karma-junit-reporter": "^2.0.1",
100
- "karma-mocha-reporter": "^2.2.5",
101
94
  "karma-mocha": "^2.0.1",
95
+ "karma-mocha-reporter": "^2.2.5",
102
96
  "karma-source-map-support": "~1.4.0",
103
97
  "karma-sourcemap-loader": "^0.3.8",
104
- "karma": "^6.2.0",
105
- "nyc": "^15.0.0"
98
+ "mkdirp": "^2.1.2",
99
+ "mocha": "^7.2.0",
100
+ "mocha-junit-reporter": "^1.18.0",
101
+ "nyc": "^15.0.0",
102
+ "prettier": "^2.5.1",
103
+ "rimraf": "^3.0.0",
104
+ "source-map-support": "^0.5.9",
105
+ "typescript": "~5.0.0"
106
106
  },
107
107
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-sharing-rest/README.md",
108
108
  "//metadata": {
@@ -286,6 +286,9 @@ export function isUnexpected(response: SentSharesDeleteSentShareInvitation202Res
286
286
  // @public (undocumented)
287
287
  export function isUnexpected(response: SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;
288
288
 
289
+ // @public (undocumented)
290
+ export function isUnexpected(response: ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse): response is ShareResourcesGetAllShareResourcesDefaultResponse;
291
+
289
292
  // @public
290
293
  export interface OperationResponseOutput {
291
294
  endTime?: string;
@@ -547,7 +550,6 @@ export interface ReceivedSharesGetAllAttachedReceivedSharesQueryParamProperties
547
550
  filter?: string;
548
551
  orderby?: string;
549
552
  referenceName: string;
550
- skipToken?: string;
551
553
  }
552
554
 
553
555
  // @public (undocumented)
@@ -591,7 +593,6 @@ export interface ReceivedSharesGetAllDetachedReceivedSharesQueryParam {
591
593
  export interface ReceivedSharesGetAllDetachedReceivedSharesQueryParamProperties {
592
594
  filter?: string;
593
595
  orderby?: string;
594
- skipToken?: string;
595
596
  }
596
597
 
597
598
  // @public (undocumented)
@@ -681,6 +682,7 @@ export interface Routes {
681
682
  (path: "/sentShares/{sentShareId}/sentShareInvitations", sentShareId: string): SentSharesGetAllSentShareInvitations;
682
683
  (path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId: string, sentShareInvitationId: string): SentSharesGetSentShareInvitation;
683
684
  (path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId: string, sentShareInvitationId: string): SentSharesNotifyUserSentShareInvitation;
685
+ (path: "/shareResources"): ShareResourcesGetAllShareResources;
684
686
  }
685
687
 
686
688
  // @public
@@ -932,7 +934,6 @@ export interface SentSharesGetAllSentShareInvitationsQueryParam {
932
934
  export interface SentSharesGetAllSentShareInvitationsQueryParamProperties {
933
935
  filter?: string;
934
936
  orderby?: string;
935
- skipToken?: string;
936
937
  }
937
938
 
938
939
  // @public (undocumented)
@@ -977,7 +978,6 @@ export interface SentSharesGetAllSentSharesQueryParamProperties {
977
978
  filter?: string;
978
979
  orderby?: string;
979
980
  referenceName: string;
980
- skipToken?: string;
981
981
  }
982
982
 
983
983
  // @public (undocumented)
@@ -1123,6 +1123,71 @@ export interface ServiceInvitationPropertiesOutput {
1123
1123
  targetObjectId: string;
1124
1124
  }
1125
1125
 
1126
+ // @public
1127
+ export interface ShareResource extends ProxyResource {
1128
+ receivedSharesCount?: number;
1129
+ sentSharesCount?: number;
1130
+ storeKind?: "AdlsGen2Account" | "BlobAccount";
1131
+ storeReference?: StoreReference;
1132
+ }
1133
+
1134
+ // @public
1135
+ export interface ShareResourceListOutput {
1136
+ nextLink?: string;
1137
+ value: Array<ShareResourceOutput>;
1138
+ }
1139
+
1140
+ // @public
1141
+ export interface ShareResourceOutput extends ProxyResourceOutput {
1142
+ receivedSharesCount?: number;
1143
+ sentSharesCount?: number;
1144
+ storeKind?: "AdlsGen2Account" | "BlobAccount";
1145
+ storeReference?: StoreReferenceOutput;
1146
+ }
1147
+
1148
+ // @public (undocumented)
1149
+ export interface ShareResourcesGetAllShareResources {
1150
+ get(options?: ShareResourcesGetAllShareResourcesParameters): StreamableMethod<ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse>;
1151
+ }
1152
+
1153
+ // @public
1154
+ export interface ShareResourcesGetAllShareResources200Response extends HttpResponse {
1155
+ // (undocumented)
1156
+ body: ShareResourceListOutput;
1157
+ // (undocumented)
1158
+ status: "200";
1159
+ }
1160
+
1161
+ // @public (undocumented)
1162
+ export interface ShareResourcesGetAllShareResourcesDefaultHeaders {
1163
+ "x-ms-error-code"?: string;
1164
+ }
1165
+
1166
+ // @public
1167
+ export interface ShareResourcesGetAllShareResourcesDefaultResponse extends HttpResponse {
1168
+ // (undocumented)
1169
+ body: PurviewShareErrorOutput;
1170
+ // (undocumented)
1171
+ headers: RawHttpHeaders & ShareResourcesGetAllShareResourcesDefaultHeaders;
1172
+ // (undocumented)
1173
+ status: string;
1174
+ }
1175
+
1176
+ // @public (undocumented)
1177
+ export type ShareResourcesGetAllShareResourcesParameters = ShareResourcesGetAllShareResourcesQueryParam & RequestParameters;
1178
+
1179
+ // @public (undocumented)
1180
+ export interface ShareResourcesGetAllShareResourcesQueryParam {
1181
+ // (undocumented)
1182
+ queryParameters?: ShareResourcesGetAllShareResourcesQueryParamProperties;
1183
+ }
1184
+
1185
+ // @public (undocumented)
1186
+ export interface ShareResourcesGetAllShareResourcesQueryParamProperties {
1187
+ filter?: string;
1188
+ orderby?: string;
1189
+ }
1190
+
1126
1191
  // @public
1127
1192
  export type Sink = AdlsGen2AccountSink | BlobAccountSink;
1128
1193
 
@@ -331,6 +331,8 @@ export declare function isUnexpected(response: SentSharesDeleteSentShareInvitati
331
331
 
332
332
  export declare function isUnexpected(response: SentSharesNotifyUserSentShareInvitation200Response | SentSharesNotifyUserSentShareInvitationDefaultResponse): response is SentSharesNotifyUserSentShareInvitationDefaultResponse;
333
333
 
334
+ export declare function isUnexpected(response: ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse): response is ShareResourcesGetAllShareResourcesDefaultResponse;
335
+
334
336
  /** Response for long running operation. */
335
337
  export declare interface OperationResponseOutput {
336
338
  /** 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) */
@@ -418,7 +420,7 @@ export declare type ReceivedShare = InPlaceReceivedShare;
418
420
  export declare interface ReceivedShareListOutput {
419
421
  /** The Url of next result page. */
420
422
  nextLink?: string;
421
- /** Collection of items of type DataTransferObjects. */
423
+ /** Collection of items of type ReceivedShare */
422
424
  value: Array<ReceivedShareOutput>;
423
425
  }
424
426
 
@@ -585,8 +587,6 @@ export declare interface ReceivedSharesGetAllAttachedReceivedSharesQueryParam {
585
587
  export declare interface ReceivedSharesGetAllAttachedReceivedSharesQueryParamProperties {
586
588
  /** A name that references a data store. */
587
589
  referenceName: string;
588
- /** The continuation token to list the next page */
589
- skipToken?: string;
590
590
  /** Filters the results using OData syntax */
591
591
  filter?: string;
592
592
  /** Sorts the results using OData syntax */
@@ -623,8 +623,6 @@ export declare interface ReceivedSharesGetAllDetachedReceivedSharesQueryParam {
623
623
  }
624
624
 
625
625
  export declare interface ReceivedSharesGetAllDetachedReceivedSharesQueryParamProperties {
626
- /** The continuation token to list the next page */
627
- skipToken?: string;
628
626
  /** Filters the results using OData syntax */
629
627
  filter?: string;
630
628
  /** Sorts the results using OData syntax */
@@ -715,6 +713,8 @@ export declare interface Routes {
715
713
  (path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}", sentShareId: string, sentShareInvitationId: string): SentSharesGetSentShareInvitation;
716
714
  /** Resource for '/sentShares/\{sentShareId\}/sentShareInvitations/\{sentShareInvitationId\}:notify' has methods for the following verbs: post */
717
715
  (path: "/sentShares/{sentShareId}/sentShareInvitations/{sentShareInvitationId}:notify", sentShareId: string, sentShareInvitationId: string): SentSharesNotifyUserSentShareInvitation;
716
+ /** Resource for '/shareResources' has methods for the following verbs: get */
717
+ (path: "/shareResources"): ShareResourcesGetAllShareResources;
718
718
  }
719
719
 
720
720
  /** A sent share data transfer object. */
@@ -727,7 +727,7 @@ export declare type SentShareInvitation = ServiceInvitation | UserInvitation;
727
727
  export declare interface SentShareInvitationListOutput {
728
728
  /** The Url of next result page. */
729
729
  nextLink?: string;
730
- /** Collection of items of type DataTransferObjects. */
730
+ /** Collection of items of type SentShareInvitation */
731
731
  value: Array<SentShareInvitationOutput>;
732
732
  }
733
733
 
@@ -748,7 +748,7 @@ export declare interface SentShareInvitationParent extends ProxyResource {
748
748
  export declare interface SentShareListOutput {
749
749
  /** The Url of next result page. */
750
750
  nextLink?: string;
751
- /** Collection of items of type DataTransferObjects. */
751
+ /** Collection of items of type SentShare */
752
752
  value: Array<SentShareOutput>;
753
753
  }
754
754
 
@@ -925,8 +925,6 @@ export declare interface SentSharesGetAllSentShareInvitationsQueryParam {
925
925
  }
926
926
 
927
927
  export declare interface SentSharesGetAllSentShareInvitationsQueryParamProperties {
928
- /** The continuation token to list the next page */
929
- skipToken?: string;
930
928
  /** Filters the results using OData syntax */
931
929
  filter?: string;
932
930
  /** Sorts the results using OData syntax */
@@ -965,8 +963,6 @@ export declare interface SentSharesGetAllSentSharesQueryParam {
965
963
  export declare interface SentSharesGetAllSentSharesQueryParamProperties {
966
964
  /** A name that references a data store. */
967
965
  referenceName: string;
968
- /** The continuation token to list the next page */
969
- skipToken?: string;
970
966
  /** Filters the results using OData syntax */
971
967
  filter?: string;
972
968
  /** Sorts the results using OData syntax */
@@ -1129,6 +1125,74 @@ export declare interface ServiceInvitationPropertiesOutput {
1129
1125
  targetObjectId: string;
1130
1126
  }
1131
1127
 
1128
+ /** A share resource. */
1129
+ export declare interface ShareResource extends ProxyResource {
1130
+ /** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
1131
+ receivedSharesCount?: number;
1132
+ /** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
1133
+ sentSharesCount?: number;
1134
+ /** The types of asset. */
1135
+ storeKind?: "AdlsGen2Account" | "BlobAccount";
1136
+ /** A Store Reference for an artifact or sink. */
1137
+ storeReference?: StoreReference;
1138
+ }
1139
+
1140
+ /** A page of ShareResource results. */
1141
+ export declare interface ShareResourceListOutput {
1142
+ /** The Url of next result page. */
1143
+ nextLink?: string;
1144
+ /** Collection of items of type ShareResource */
1145
+ value: Array<ShareResourceOutput>;
1146
+ }
1147
+
1148
+ /** A share resource. */
1149
+ export declare interface ShareResourceOutput extends ProxyResourceOutput {
1150
+ /** A count of Received Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
1151
+ receivedSharesCount?: number;
1152
+ /** A count of Sent Shares associated with the Microsoft.Azure.Purview.Share.ApiService.V3.DataTransferObjects.ShareResource. */
1153
+ sentSharesCount?: number;
1154
+ /** The types of asset. */
1155
+ storeKind?: "AdlsGen2Account" | "BlobAccount";
1156
+ /** A Store Reference for an artifact or sink. */
1157
+ storeReference?: StoreReferenceOutput;
1158
+ }
1159
+
1160
+ export declare interface ShareResourcesGetAllShareResources {
1161
+ /** List share resources */
1162
+ get(options?: ShareResourcesGetAllShareResourcesParameters): StreamableMethod<ShareResourcesGetAllShareResources200Response | ShareResourcesGetAllShareResourcesDefaultResponse>;
1163
+ }
1164
+
1165
+ /** List share resources */
1166
+ export declare interface ShareResourcesGetAllShareResources200Response extends HttpResponse {
1167
+ status: "200";
1168
+ body: ShareResourceListOutput;
1169
+ }
1170
+
1171
+ export declare interface ShareResourcesGetAllShareResourcesDefaultHeaders {
1172
+ /** The error code */
1173
+ "x-ms-error-code"?: string;
1174
+ }
1175
+
1176
+ /** List share resources */
1177
+ export declare interface ShareResourcesGetAllShareResourcesDefaultResponse extends HttpResponse {
1178
+ status: string;
1179
+ body: PurviewShareErrorOutput;
1180
+ headers: RawHttpHeaders & ShareResourcesGetAllShareResourcesDefaultHeaders;
1181
+ }
1182
+
1183
+ export declare type ShareResourcesGetAllShareResourcesParameters = ShareResourcesGetAllShareResourcesQueryParam & RequestParameters;
1184
+
1185
+ export declare interface ShareResourcesGetAllShareResourcesQueryParam {
1186
+ queryParameters?: ShareResourcesGetAllShareResourcesQueryParamProperties;
1187
+ }
1188
+
1189
+ export declare interface ShareResourcesGetAllShareResourcesQueryParamProperties {
1190
+ /** Filters the results using OData syntax */
1191
+ filter?: string;
1192
+ /** Sorts the results using OData syntax */
1193
+ orderby?: string;
1194
+ }
1195
+
1132
1196
  /** Holds details on the destination of the mapped artifact */
1133
1197
  export declare type Sink = AdlsGen2AccountSink | BlobAccountSink;
1134
1198