@azure-rest/onlineexperimentation 1.0.0-alpha.20250807.2 → 1.0.0-alpha.20250822.1
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/browser/clientDefinitions.d.ts +1 -0
- package/dist/browser/clientDefinitions.js +1 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/extensibleEnums.d.ts +1 -0
- package/dist/browser/extensibleEnums.js +1 -0
- package/dist/browser/extensibleEnums.js.map +1 -0
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.js +1 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +1 -0
- package/dist/browser/isUnexpected.js +1 -0
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +1 -0
- package/dist/browser/logger.js +1 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +1 -0
- package/dist/browser/models.js +1 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/onlineExperimentationClient.d.ts +1 -0
- package/dist/browser/onlineExperimentationClient.js +1 -0
- package/dist/browser/onlineExperimentationClient.js.map +1 -0
- package/dist/browser/outputModels.d.ts +1 -0
- package/dist/browser/outputModels.js +1 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/paginateHelper.d.ts +1 -0
- package/dist/browser/paginateHelper.js +1 -0
- package/dist/browser/paginateHelper.js.map +1 -0
- package/dist/browser/parameters.d.ts +1 -0
- package/dist/browser/parameters.js +1 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/responses.d.ts +1 -0
- package/dist/browser/responses.js +1 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +1 -0
- package/dist/commonjs/clientDefinitions.js +1 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/extensibleEnums.d.ts +1 -0
- package/dist/commonjs/extensibleEnums.js +1 -0
- package/dist/commonjs/extensibleEnums.js.map +1 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +12 -27
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +1 -0
- package/dist/commonjs/isUnexpected.js +1 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +1 -0
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +1 -0
- package/dist/commonjs/models.js +1 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/onlineExperimentationClient.d.ts +1 -0
- package/dist/commonjs/onlineExperimentationClient.js +1 -0
- package/dist/commonjs/onlineExperimentationClient.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +1 -0
- package/dist/commonjs/outputModels.js +1 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/paginateHelper.d.ts +1 -0
- package/dist/commonjs/paginateHelper.js +1 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +1 -0
- package/dist/commonjs/parameters.js +1 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/responses.d.ts +1 -0
- package/dist/commonjs/responses.js +1 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/esm/clientDefinitions.d.ts +1 -0
- package/dist/esm/clientDefinitions.js +1 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/extensibleEnums.d.ts +1 -0
- package/dist/esm/extensibleEnums.js +1 -0
- package/dist/esm/extensibleEnums.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +1 -0
- package/dist/esm/isUnexpected.js +1 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +1 -0
- package/dist/esm/logger.js +1 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +1 -0
- package/dist/esm/models.js +1 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/onlineExperimentationClient.d.ts +1 -0
- package/dist/esm/onlineExperimentationClient.js +1 -0
- package/dist/esm/onlineExperimentationClient.js.map +1 -0
- package/dist/esm/outputModels.d.ts +1 -0
- package/dist/esm/outputModels.js +1 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/paginateHelper.d.ts +1 -0
- package/dist/esm/paginateHelper.js +1 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +1 -0
- package/dist/esm/parameters.js +1 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/responses.d.ts +1 -0
- package/dist/esm/responses.js +1 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +1 -0
- package/dist/react-native/clientDefinitions.js +1 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/extensibleEnums.d.ts +1 -0
- package/dist/react-native/extensibleEnums.js +1 -0
- package/dist/react-native/extensibleEnums.js.map +1 -0
- package/dist/react-native/index.d.ts +1 -0
- package/dist/react-native/index.js +1 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +1 -0
- package/dist/react-native/isUnexpected.js +1 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +1 -0
- package/dist/react-native/logger.js +1 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +1 -0
- package/dist/react-native/models.js +1 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/onlineExperimentationClient.d.ts +1 -0
- package/dist/react-native/onlineExperimentationClient.js +1 -0
- package/dist/react-native/onlineExperimentationClient.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +1 -0
- package/dist/react-native/outputModels.js +1 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/paginateHelper.d.ts +1 -0
- package/dist/react-native/paginateHelper.js +1 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +1 -0
- package/dist/react-native/parameters.js +1 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/responses.d.ts +1 -0
- package/dist/react-native/responses.js +1 -0
- package/dist/react-native/responses.js.map +1 -0
- package/package.json +41 -40
|
@@ -0,0 +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/** Defines experiment metric metadata and computation details. */\nexport interface ExperimentMetricOutput {\n /** Identifier for this experiment metric. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. */\n readonly id: string;\n /**\n * Determines whether it is included in experiment analysis.\n *\n * Possible values: \"Active\", \"Inactive\"\n */\n lifecycle: LifecycleStageOutput;\n /** A user-friendly display name for the experiment metric shown in reports and dashboards. */\n displayName: string;\n /** A detailed description of the experiment metric. */\n description: string;\n /** Categories associated with the experiment metric. Used for organizing and filtering metrics. */\n categories: string[];\n /**\n * The desired direction for changes in the metric value.\n *\n * Possible values: \"Increase\", \"Decrease\", \"Neutral\"\n */\n desiredDirection: DesiredDirectionOutput;\n /** The metric definition specifying how the metric value is calculated from event data. */\n definition: ExperimentMetricDefinitionOutput;\n /** ETag of the experiment metric. */\n readonly eTag: string;\n /** The timestamp (UTC) of the last modification to the experiment metric resource. */\n readonly lastModifiedAt: string;\n}\n\n/** The metric definition, which determines how the metric value is calculated from event data. */\nexport interface ExperimentMetricDefinitionOutputParent {\n type: string;\n}\n\n/** The definition of an EventCount metric definition. Counts the occurrences of a specified event. */\nexport interface EventCountMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"EventCount\";\n /** Event to observe. */\n event: ObservedEventOutput;\n}\n\n/** An event observed by a metric. */\nexport interface ObservedEventOutput {\n /** The name of the event. */\n eventName: string;\n /** [Optional] A condition to filter events. */\n filter?: string;\n}\n\n/** The definition of a UserCount metric definition. Counts unique users who encounter a specified event. */\nexport interface UserCountMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"UserCount\";\n /** Event to observe. */\n event: ObservedEventOutput;\n}\n\n/** The definition of an EventRate metric definition. Calculates the percentage of events satisfying a specified condition. */\nexport interface EventRateMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"EventRate\";\n /** Event to observe as the rate denominator. */\n event: ObservedEventOutput;\n /** The event contributes to the rate numerator if it satisfies this condition. */\n rateCondition: string;\n}\n\n/** The definition of a UserRate metric definition. Calculates the percentage of users who encounter a start event and subsequently an end event. Users must encounter events in the specified order. */\nexport interface UserRateMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"UserRate\";\n /** The start event to observe as the rate denominator. */\n startEvent: ObservedEventOutput;\n /** The end event to observe, which is a condition for the rate numerator. */\n endEvent: ObservedEventOutput;\n}\n\n/** The definition of a Sum metric definition. Calculates the sum of a specified event property. Experiment analysis accounts for unequal traffic allocation. */\nexport interface SumMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"Sum\";\n /** The value to aggregate. */\n value: AggregatedValueOutput;\n}\n\n/** An event property value aggregated by a metric. */\nexport interface AggregatedValueOutput {\n /** The name of the event. */\n eventName: string;\n /** [Optional] A condition to filter events. */\n filter?: string;\n /** The key of the event property to aggregate. */\n eventProperty: string;\n}\n\n/** The definition of an Average metric definition. Calculates the average value of a specified event property. */\nexport interface AverageMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"Average\";\n /** The value to aggregate. */\n value: AggregatedValueOutput;\n}\n\n/** The definition of a Percentile metric definition. Calculates a specified percentile of an event property. */\nexport interface PercentileMetricDefinitionOutput extends ExperimentMetricDefinitionOutputParent {\n /** The type of metric. */\n type: \"Percentile\";\n /** The value to aggregate, including the event name and property to measure. */\n value: AggregatedValueOutput;\n /** The percentile to measure. */\n percentile: number;\n}\n\n/** The result of validating an experiment metric. */\nexport interface ExperimentMetricValidationResultOutput {\n /** Indicates whether the experiment metric is valid. */\n isValid: boolean;\n /** Diagnostic details from the validation process. */\n readonly diagnostics: Array<DiagnosticDetailOutput>;\n}\n\n/** Diagnostic details for validation errors. */\nexport interface DiagnosticDetailOutput {\n /** A human-readable error message. */\n readonly message: string;\n /**\n * The diagnostic error code.\n *\n * Possible values: \"FailedSchemaValidation\", \"InvalidEventCondition\", \"UnsupportedEventCondition\", \"InvalidExperimentMetricDefinition\"\n */\n readonly code: DiagnosticCodeOutput;\n}\n\n/** Paged collection of ExperimentMetric items */\nexport interface PagedExperimentMetricOutput {\n /** The ExperimentMetric items on this page */\n value: Array<ExperimentMetricOutput>;\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** The metric definition, which determines how the metric value is calculated from event data. */\nexport type ExperimentMetricDefinitionOutput =\n | ExperimentMetricDefinitionOutputParent\n | EventCountMetricDefinitionOutput\n | UserCountMetricDefinitionOutput\n | EventRateMetricDefinitionOutput\n | UserRateMetricDefinitionOutput\n | SumMetricDefinitionOutput\n | AverageMetricDefinitionOutput\n | PercentileMetricDefinitionOutput;\n/** Alias for LifecycleStageOutput */\nexport type LifecycleStageOutput = string;\n/** Alias for DesiredDirectionOutput */\nexport type DesiredDirectionOutput = string;\n/** Alias for DiagnosticCodeOutput */\nexport type DiagnosticCodeOutput = string;\n"]}
|
|
@@ -65,3 +65,4 @@ export type PaginateReturn<TResult> = TResult extends {
|
|
|
65
65
|
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
66
66
|
*/
|
|
67
67
|
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
68
|
+
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\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> = (pageLink: string) => 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"]}
|
|
@@ -0,0 +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 type { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type { ExperimentMetric } from \"./models.js\";\n\nexport interface GetMetricHeaders {\n /** The request should only proceed if an entity matches this string. */\n \"If-Match\"?: string;\n /** The request should only proceed if no entity matches this string. */\n \"If-None-Match\"?: string;\n /** The request should only proceed if the entity was not modified after this time. */\n \"If-Unmodified-Since\"?: string;\n /** The request should only proceed if the entity was modified after this time. */\n \"If-Modified-Since\"?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetMetricHeaderParam {\n headers?: RawHttpHeadersInput & GetMetricHeaders;\n}\n\nexport type GetMetricParameters = GetMetricHeaderParam & RequestParameters;\n\nexport interface CreateOrUpdateMetricHeaders {\n /** The request should only proceed if an entity matches this string. */\n \"If-Match\"?: string;\n /** The request should only proceed if no entity matches this string. */\n \"If-None-Match\"?: string;\n /** The request should only proceed if the entity was not modified after this time. */\n \"If-Unmodified-Since\"?: string;\n /** The request should only proceed if the entity was modified after this time. */\n \"If-Modified-Since\"?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The resource instance. */\nexport type ExperimentMetricResourceMergeAndPatch = Partial<ExperimentMetric>;\n\nexport interface CreateOrUpdateMetricBodyParam {\n /** The resource instance. */\n body: ExperimentMetricResourceMergeAndPatch;\n}\n\nexport interface CreateOrUpdateMetricHeaderParam {\n headers?: RawHttpHeadersInput & CreateOrUpdateMetricHeaders;\n}\n\nexport interface CreateOrUpdateMetricMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type CreateOrUpdateMetricParameters = CreateOrUpdateMetricHeaderParam &\n CreateOrUpdateMetricMediaTypesParam &\n CreateOrUpdateMetricBodyParam &\n RequestParameters;\n\nexport interface ValidateMetricHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ValidateMetricBodyParam {\n /** Experiment metric input to validate */\n body: ExperimentMetric;\n}\n\nexport interface ValidateMetricHeaderParam {\n headers?: RawHttpHeadersInput & ValidateMetricHeaders;\n}\n\nexport type ValidateMetricParameters = ValidateMetricHeaderParam &\n ValidateMetricBodyParam &\n RequestParameters;\n\nexport interface DeleteMetricHeaders {\n /** The request should only proceed if an entity matches this string. */\n \"If-Match\"?: string;\n /** The request should only proceed if no entity matches this string. */\n \"If-None-Match\"?: string;\n /** The request should only proceed if the entity was not modified after this time. */\n \"If-Unmodified-Since\"?: string;\n /** The request should only proceed if the entity was modified after this time. */\n \"If-Modified-Since\"?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteMetricHeaderParam {\n headers?: RawHttpHeadersInput & DeleteMetricHeaders;\n}\n\nexport type DeleteMetricParameters = DeleteMetricHeaderParam & RequestParameters;\n\nexport interface ListMetricsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListMetricsQueryParamProperties {\n /** The number of result items to return. */\n top?: number;\n /** The number of result items to skip. */\n skip?: number;\n /** The maximum number of result items per page. */\n maxpagesize?: number;\n}\n\nexport interface ListMetricsQueryParam {\n queryParameters?: ListMetricsQueryParamProperties;\n}\n\nexport interface ListMetricsHeaderParam {\n headers?: RawHttpHeadersInput & ListMetricsHeaders;\n}\n\nexport type ListMetricsParameters = ListMetricsQueryParam &\n ListMetricsHeaderParam &\n RequestParameters;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse, ErrorResponse } from \"@azure-rest/core-client\";\nimport type {\n ExperimentMetricOutput,\n ExperimentMetricValidationResultOutput,\n PagedExperimentMetricOutput,\n} from \"./outputModels.js\";\n\nexport interface GetMetric200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetMetric200Response extends HttpResponse {\n status: \"200\";\n body: ExperimentMetricOutput;\n headers: RawHttpHeaders & GetMetric200Headers;\n}\n\nexport interface GetMetricDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface GetMetricDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & GetMetricDefaultHeaders;\n}\n\nexport interface CreateOrUpdateMetric200Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface CreateOrUpdateMetric200Response extends HttpResponse {\n status: \"200\";\n body: ExperimentMetricOutput;\n headers: RawHttpHeaders & CreateOrUpdateMetric200Headers;\n}\n\nexport interface CreateOrUpdateMetric201Headers {\n /** The entity tag for the response. */\n etag?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface CreateOrUpdateMetric201Response extends HttpResponse {\n status: \"201\";\n body: ExperimentMetricOutput;\n headers: RawHttpHeaders & CreateOrUpdateMetric201Headers;\n}\n\nexport interface CreateOrUpdateMetricDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface CreateOrUpdateMetricDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & CreateOrUpdateMetricDefaultHeaders;\n}\n\nexport interface ValidateMetric200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ValidateMetric200Response extends HttpResponse {\n status: \"200\";\n body: ExperimentMetricValidationResultOutput;\n headers: RawHttpHeaders & ValidateMetric200Headers;\n}\n\nexport interface ValidateMetricDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ValidateMetricDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ValidateMetricDefaultHeaders;\n}\n\nexport interface DeleteMetric204Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteMetric204Response extends HttpResponse {\n status: \"204\";\n headers: RawHttpHeaders & DeleteMetric204Headers;\n}\n\nexport interface DeleteMetricDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface DeleteMetricDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & DeleteMetricDefaultHeaders;\n}\n\nexport interface ListMetrics200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ListMetrics200Response extends HttpResponse {\n status: \"200\";\n body: PagedExperimentMetricOutput;\n headers: RawHttpHeaders & ListMetrics200Headers;\n}\n\nexport interface ListMetricsDefaultHeaders {\n /** String error code indicating what went wrong. */\n \"x-ms-error-code\"?: string;\n}\n\nexport interface ListMetricsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponse;\n headers: RawHttpHeaders & ListMetricsDefaultHeaders;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-rest/onlineexperimentation",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250822.1",
|
|
4
4
|
"description": "Azure Online Experimentation Service",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"autoPublish": false,
|
|
10
10
|
"tshy": {
|
|
11
|
+
"project": "../../../tsconfig.src.build.json",
|
|
11
12
|
"exports": {
|
|
12
13
|
"./package.json": "./package.json",
|
|
13
14
|
".": "./src/index.ts"
|
|
@@ -65,43 +66,18 @@
|
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"dotenv": "^16.0.0",
|
|
68
|
-
"@types/node": "^20.
|
|
69
|
-
"eslint": "^9.
|
|
70
|
-
"typescript": "~5.8.
|
|
71
|
-
"@azure/identity": "
|
|
72
|
-
"@vitest/browser": "^3.
|
|
73
|
-
"@vitest/coverage-istanbul": "^3.
|
|
74
|
-
"playwright": "^1.
|
|
75
|
-
"vitest": "^3.
|
|
76
|
-
"@azure-tools/test-credential": "^2.
|
|
77
|
-
"@azure
|
|
78
|
-
"@azure/
|
|
79
|
-
"@azure/eslint-plugin-azure-sdk": "
|
|
80
|
-
},
|
|
81
|
-
"scripts": {
|
|
82
|
-
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
83
|
-
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
84
|
-
"pack": "npm pack 2>&1",
|
|
85
|
-
"lint": "eslint package.json src test",
|
|
86
|
-
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
|
|
87
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
88
|
-
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
89
|
-
"unit-test:node": "dev-tool run test:vitest",
|
|
90
|
-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
91
|
-
"integration-test:browser": "echo skipped",
|
|
92
|
-
"integration-test:node": "echo skipped",
|
|
93
|
-
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
|
|
94
|
-
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
95
|
-
"execute:samples": "dev-tool samples run samples-dev",
|
|
96
|
-
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
97
|
-
"generate:client": "echo skipped",
|
|
98
|
-
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
99
|
-
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
100
|
-
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
101
|
-
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
102
|
-
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
103
|
-
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run unit-test:browser && npm run integration-test",
|
|
104
|
-
"update-snippets": "dev-tool run update-snippets"
|
|
69
|
+
"@types/node": "^20.19.0",
|
|
70
|
+
"eslint": "^9.33.0",
|
|
71
|
+
"typescript": "~5.8.3",
|
|
72
|
+
"@azure/identity": "4.11.1",
|
|
73
|
+
"@vitest/browser": "^3.2.3",
|
|
74
|
+
"@vitest/coverage-istanbul": "^3.2.3",
|
|
75
|
+
"playwright": "^1.50.1",
|
|
76
|
+
"vitest": "^3.2.3",
|
|
77
|
+
"@azure-tools/test-credential": "^2.1.1",
|
|
78
|
+
"@azure/dev-tool": "^1.0.0",
|
|
79
|
+
"@azure-tools/test-recorder": "^4.1.0",
|
|
80
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
105
81
|
},
|
|
106
82
|
"//sampleConfiguration": {
|
|
107
83
|
"productName": "Azure Online Experimentation REST",
|
|
@@ -134,5 +110,30 @@
|
|
|
134
110
|
},
|
|
135
111
|
"main": "./dist/commonjs/index.js",
|
|
136
112
|
"types": "./dist/commonjs/index.d.ts",
|
|
137
|
-
"module": "./dist/esm/index.js"
|
|
138
|
-
|
|
113
|
+
"module": "./dist/esm/index.js",
|
|
114
|
+
"scripts": {
|
|
115
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
116
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
117
|
+
"pack": "pnpm pack 2>&1",
|
|
118
|
+
"lint": "eslint package.json src test",
|
|
119
|
+
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
|
|
120
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
121
|
+
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
122
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
123
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
124
|
+
"integration-test:browser": "echo skipped",
|
|
125
|
+
"integration-test:node": "echo skipped",
|
|
126
|
+
"build:samples": "tsc -p tsconfig.samples.json",
|
|
127
|
+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
128
|
+
"execute:samples": "dev-tool samples run samples-dev",
|
|
129
|
+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
130
|
+
"generate:client": "echo skipped",
|
|
131
|
+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
132
|
+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
133
|
+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
134
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
135
|
+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
136
|
+
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run unit-test:browser && npm run integration-test",
|
|
137
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
138
|
+
}
|
|
139
|
+
}
|