@azure/cosmos 3.16.1-alpha.20220526.2 → 3.16.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/CHANGELOG.md CHANGED
@@ -1,14 +1,9 @@
1
1
  # Release History
2
2
 
3
- ## 3.16.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
3
+ ## 3.16.1 (2022-05-31)
8
4
 
9
5
  ### Bugs Fixed
10
-
11
- ### Other Changes
6
+ - Fix [#22003](https://github.com/Azure/azure-sdk-for-js/issues/22003) missing interface error. [#22015](https://github.com/Azure/azure-sdk-for-js/pull/22015)
12
7
 
13
8
  ## 3.16.0 (2022-05-23)
14
9
 
@@ -1270,7 +1270,6 @@ export declare enum DataType {
1270
1270
  /** Represents a multi-polygon data type. */
1271
1271
  MultiPolygon = "MultiPolygon"
1272
1272
  }
1273
- /* Excluded from this release type: DedicatedGatewayRequestOptions */
1274
1273
  export declare const DEFAULT_PARTITION_KEY_PATH: "/_partitionKey";
1275
1274
  export declare type DeleteOperation = OperationBase & {
1276
1275
  operationType: typeof BulkOperationType.Delete;
@@ -1311,7 +1310,7 @@ export declare function extractPartitionKey(document: unknown, partitionKeyDefin
1311
1310
  /**
1312
1311
  * The feed options and query methods.
1313
1312
  */
1314
- export declare interface FeedOptions extends SharedOptions, DedicatedGatewayRequestOptions {
1313
+ export declare interface FeedOptions extends SharedOptions {
1315
1314
  /** Opaque token for continuing the enumeration. Default: undefined
1316
1315
  * @deprecated Use continuationToken instead.
1317
1316
  */
@@ -2494,7 +2493,7 @@ export { RequestInfo_2 as RequestInfo };
2494
2493
  /**
2495
2494
  * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=
2496
2495
  */
2497
- export declare interface RequestOptions extends SharedOptions, DedicatedGatewayRequestOptions {
2496
+ export declare interface RequestOptions extends SharedOptions {
2498
2497
  /** Conditions Associated with the request. */
2499
2498
  accessCondition?: {
2500
2499
  /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */
@@ -1313,8 +1313,6 @@ export declare class Conflicts {
1313
1313
  MultiPolygon = "MultiPolygon"
1314
1314
  }
1315
1315
 
1316
- /* Excluded from this release type: DedicatedGatewayRequestOptions */
1317
-
1318
1316
  export declare const DEFAULT_PARTITION_KEY_PATH: "/_partitionKey";
1319
1317
 
1320
1318
  export declare type DeleteOperation = OperationBase & {
@@ -1362,7 +1360,7 @@ export declare class Conflicts {
1362
1360
  /**
1363
1361
  * The feed options and query methods.
1364
1362
  */
1365
- export declare interface FeedOptions extends SharedOptions, DedicatedGatewayRequestOptions {
1363
+ export declare interface FeedOptions extends SharedOptions {
1366
1364
  /** Opaque token for continuing the enumeration. Default: undefined
1367
1365
  * @deprecated Use continuationToken instead.
1368
1366
  */
@@ -2608,7 +2606,7 @@ export declare class Conflicts {
2608
2606
  /**
2609
2607
  * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=
2610
2608
  */
2611
- export declare interface RequestOptions extends SharedOptions, DedicatedGatewayRequestOptions {
2609
+ export declare interface RequestOptions extends SharedOptions {
2612
2610
  /** Conditions Associated with the request. */
2613
2611
  accessCondition?: {
2614
2612
  /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */
@@ -2880,6 +2878,7 @@ export declare class Conflicts {
2880
2878
  * ```
2881
2879
  */
2882
2880
  abortSignal?: AbortSignal_2;
2881
+ /* Excluded from this release type: maxIntegratedCacheStalenessInMs */
2883
2882
  }
2884
2883
 
2885
2884
  export declare interface SpatialIndex {
@@ -1,9 +1,8 @@
1
- import { DedicatedGatewayRequestOptions } from "..";
2
1
  import { SharedOptions } from "./SharedOptions";
3
2
  /**
4
3
  * The feed options and query methods.
5
4
  */
6
- export interface FeedOptions extends SharedOptions, DedicatedGatewayRequestOptions {
5
+ export interface FeedOptions extends SharedOptions {
7
6
  /** Opaque token for continuing the enumeration. Default: undefined
8
7
  * @deprecated Use continuationToken instead.
9
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FeedOptions.d.ts","sourceRoot":"","sources":["../../../src/request/FeedOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,IAAI,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,8BAA8B;IAChF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;OAMG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,8CAA8C;IAC9C,eAAe,CAAC,EAAE;QAChB,oEAAoE;QACpE,IAAI,EAAE,MAAM,CAAC;QACb,6FAA6F;QAC7F,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB"}
1
+ {"version":3,"file":"FeedOptions.d.ts","sourceRoot":"","sources":["../../../src/request/FeedOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;OAMG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,8CAA8C;IAC9C,eAAe,CAAC,EAAE;QAChB,oEAAoE;QACpE,IAAI,EAAE,MAAM,CAAC;QACb,6FAA6F;QAC7F,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeedOptions.js","sourceRoot":"","sources":["../../../src/request/FeedOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { DedicatedGatewayRequestOptions } from \"..\";\nimport { SharedOptions } from \"./SharedOptions\";\n\n/**\n * The feed options and query methods.\n */\nexport interface FeedOptions extends SharedOptions, DedicatedGatewayRequestOptions {\n /** Opaque token for continuing the enumeration. Default: undefined\n * @deprecated Use continuationToken instead.\n */\n continuation?: string;\n /** Opaque token for continuing the enumeration. Default: undefined */\n continuationToken?: string;\n /**\n * Limits the size of the continuation token in the response. Default: undefined\n *\n * Continuation Tokens contain optional data that can be removed from the serialization before writing it out to a header.\n * By default we are capping this to 1kb to avoid long headers (Node.js has a global header size limit).\n * A user may set this field to allow for longer headers, which can help the backend optimize query execution.\"\n */\n continuationTokenLimitInKB?: number;\n /**\n * Allow scan on the queries which couldn't be served as indexing was opted out on the requested paths. Default: false\n *\n * In general, it is best to avoid using this setting. Scans are relatively expensive and take a long time to serve.\n */\n enableScanInQuery?: boolean;\n /**\n * The maximum number of concurrent operations that run client side during parallel query execution in the\n * Azure Cosmos DB database service. Negative values make the system automatically decides the number of\n * concurrent operations to run. Default: 0 (no parallelism)\n */\n maxDegreeOfParallelism?: number;\n /**\n * Max number of items to be returned in the enumeration operation. Default: undefined (server will defined payload)\n *\n * Expirimenting with this value can usually result in the biggest performance changes to the query.\n *\n * The smaller the item count, the faster the first result will be delivered (for non-aggregates). For larger amounts,\n * it will take longer to serve the request, but you'll usually get better throughput for large queries (i.e. if you need 1000 items\n * before you can do any other actions, set `maxItemCount` to 1000. If you can start doing work after the first 100, set `maxItemCount` to 100.)\n */\n maxItemCount?: number;\n /**\n * Note: consider using changeFeed instead.\n *\n * Indicates a change feed request. Must be set to \"Incremental feed\", or omitted otherwise. Default: false\n */\n useIncrementalFeed?: boolean;\n /** Conditions Associated with the request. */\n accessCondition?: {\n /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */\n type: string;\n /** Conditional HTTP method header value (the _etag field from the last version you read). */\n condition: string;\n };\n /**\n * Enable returning query metrics in response headers. Default: false\n *\n * Used for debugging slow or expensive queries. Also increases response size and if you're using a low max header size in Node.js,\n * you can run into issues faster.\n */\n populateQueryMetrics?: boolean;\n /**\n * Enable buffering additional items during queries. Default: false\n *\n * This will buffer an additional page at a time (multiplied by maxDegreeOfParallelism) from the server in the background.\n * This improves latency by fetching pages before they are needed by the client. If you're draining all of the results from the\n * server, like `.fetchAll`, you should usually enable this. If you're only fetching one page at a time via continuation token,\n * you should avoid this. If you're draining more than one page, but not the entire result set, it may help improve latency, but\n * it will increase the total amount of RU/s use to serve the entire query (as some pages will be fetched more than once).\n */\n bufferItems?: boolean;\n /**\n * This setting forces the query to use a query plan. Default: false\n *\n * Note: this will disable continuation token support, even for single partition queries.\n *\n * For queries like aggregates and most cross partition queries, this happens anyway.\n * However, since the library doesn't know what type of query it is until we get back the first response,\n * some optimization can't happen until later.\n *\n * If this setting is enabled, it will force query plan for the query, which will save some network requests\n * and ensure parallelism can happen. Useful for when you know you're doing cross-partition or aggregate queries.\n */\n forceQueryPlan?: boolean;\n /** Limits the query to a specific partition key. Default: undefined\n *\n * Scoping a query to a single partition can be accomplished two ways:\n *\n * `container.items.query('SELECT * from c', { partitionKey: \"foo\" }).toArray()`\n * `container.items.query('SELECT * from c WHERE c.yourPartitionKey = \"foo\"').toArray()`\n *\n * The former is useful when the query body is out of your control\n * but you still want to restrict it to a single partition. Example: an end user specified query.\n */\n partitionKey?: any;\n}\n"]}
1
+ {"version":3,"file":"FeedOptions.js","sourceRoot":"","sources":["../../../src/request/FeedOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { SharedOptions } from \"./SharedOptions\";\n\n/**\n * The feed options and query methods.\n */\nexport interface FeedOptions extends SharedOptions {\n /** Opaque token for continuing the enumeration. Default: undefined\n * @deprecated Use continuationToken instead.\n */\n continuation?: string;\n /** Opaque token for continuing the enumeration. Default: undefined */\n continuationToken?: string;\n /**\n * Limits the size of the continuation token in the response. Default: undefined\n *\n * Continuation Tokens contain optional data that can be removed from the serialization before writing it out to a header.\n * By default we are capping this to 1kb to avoid long headers (Node.js has a global header size limit).\n * A user may set this field to allow for longer headers, which can help the backend optimize query execution.\"\n */\n continuationTokenLimitInKB?: number;\n /**\n * Allow scan on the queries which couldn't be served as indexing was opted out on the requested paths. Default: false\n *\n * In general, it is best to avoid using this setting. Scans are relatively expensive and take a long time to serve.\n */\n enableScanInQuery?: boolean;\n /**\n * The maximum number of concurrent operations that run client side during parallel query execution in the\n * Azure Cosmos DB database service. Negative values make the system automatically decides the number of\n * concurrent operations to run. Default: 0 (no parallelism)\n */\n maxDegreeOfParallelism?: number;\n /**\n * Max number of items to be returned in the enumeration operation. Default: undefined (server will defined payload)\n *\n * Expirimenting with this value can usually result in the biggest performance changes to the query.\n *\n * The smaller the item count, the faster the first result will be delivered (for non-aggregates). For larger amounts,\n * it will take longer to serve the request, but you'll usually get better throughput for large queries (i.e. if you need 1000 items\n * before you can do any other actions, set `maxItemCount` to 1000. If you can start doing work after the first 100, set `maxItemCount` to 100.)\n */\n maxItemCount?: number;\n /**\n * Note: consider using changeFeed instead.\n *\n * Indicates a change feed request. Must be set to \"Incremental feed\", or omitted otherwise. Default: false\n */\n useIncrementalFeed?: boolean;\n /** Conditions Associated with the request. */\n accessCondition?: {\n /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */\n type: string;\n /** Conditional HTTP method header value (the _etag field from the last version you read). */\n condition: string;\n };\n /**\n * Enable returning query metrics in response headers. Default: false\n *\n * Used for debugging slow or expensive queries. Also increases response size and if you're using a low max header size in Node.js,\n * you can run into issues faster.\n */\n populateQueryMetrics?: boolean;\n /**\n * Enable buffering additional items during queries. Default: false\n *\n * This will buffer an additional page at a time (multiplied by maxDegreeOfParallelism) from the server in the background.\n * This improves latency by fetching pages before they are needed by the client. If you're draining all of the results from the\n * server, like `.fetchAll`, you should usually enable this. If you're only fetching one page at a time via continuation token,\n * you should avoid this. If you're draining more than one page, but not the entire result set, it may help improve latency, but\n * it will increase the total amount of RU/s use to serve the entire query (as some pages will be fetched more than once).\n */\n bufferItems?: boolean;\n /**\n * This setting forces the query to use a query plan. Default: false\n *\n * Note: this will disable continuation token support, even for single partition queries.\n *\n * For queries like aggregates and most cross partition queries, this happens anyway.\n * However, since the library doesn't know what type of query it is until we get back the first response,\n * some optimization can't happen until later.\n *\n * If this setting is enabled, it will force query plan for the query, which will save some network requests\n * and ensure parallelism can happen. Useful for when you know you're doing cross-partition or aggregate queries.\n */\n forceQueryPlan?: boolean;\n /** Limits the query to a specific partition key. Default: undefined\n *\n * Scoping a query to a single partition can be accomplished two ways:\n *\n * `container.items.query('SELECT * from c', { partitionKey: \"foo\" }).toArray()`\n * `container.items.query('SELECT * from c WHERE c.yourPartitionKey = \"foo\"').toArray()`\n *\n * The former is useful when the query body is out of your control\n * but you still want to restrict it to a single partition. Example: an end user specified query.\n */\n partitionKey?: any;\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { DedicatedGatewayRequestOptions, SharedOptions } from "..";
1
+ import { SharedOptions } from "..";
2
2
  /**
3
3
  * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=
4
4
  */
5
- export interface RequestOptions extends SharedOptions, DedicatedGatewayRequestOptions {
5
+ export interface RequestOptions extends SharedOptions {
6
6
  /** Conditions Associated with the request. */
7
7
  accessCondition?: {
8
8
  /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */
@@ -1 +1 @@
1
- {"version":3,"file":"RequestOptions.d.ts","sourceRoot":"","sources":["../../../src/request/RequestOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,8BAA8B;IACnF,8CAA8C;IAC9C,eAAe,CAAC,EAAE;QAChB,oEAAoE;QACpE,IAAI,EAAE,MAAM,CAAC;QACb,6FAA6F;QAC7F,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvC,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtC,4HAA4H;IAC5H,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC"}
1
+ {"version":3,"file":"RequestOptions.d.ts","sourceRoot":"","sources":["../../../src/request/RequestOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD,8CAA8C;IAC9C,eAAe,CAAC,EAAE;QAChB,oEAAoE;QACpE,IAAI,EAAE,MAAM,CAAC;QACb,6FAA6F;QAC7F,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvC,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtC,4HAA4H;IAC5H,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestOptions.js","sourceRoot":"","sources":["../../../src/request/RequestOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { DedicatedGatewayRequestOptions, SharedOptions } from \"..\";\n\n/**\n * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=\n */\nexport interface RequestOptions extends SharedOptions, DedicatedGatewayRequestOptions {\n /** Conditions Associated with the request. */\n accessCondition?: {\n /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */\n type: string;\n /** Conditional HTTP method header value (the _etag field from the last version you read). */\n condition: string;\n };\n /** Consistency level required by the client. */\n consistencyLevel?: string;\n /**\n * DisableRUPerMinuteUsage is used to enable/disable Request Units(RUs)/minute capacity\n * to serve the request if regular provisioned RUs/second is exhausted.\n */\n disableRUPerMinuteUsage?: boolean;\n /** Enables or disables logging in JavaScript stored procedures. */\n enableScriptLogging?: boolean;\n /** Specifies indexing directives (index, do not index .. etc). */\n indexingDirective?: string;\n /** The offer throughput provisioned for a container in measurement of Requests-per-Unit. */\n offerThroughput?: number;\n /**\n * Offer type when creating document containers.\n *\n * This option is only valid when creating a document container.\n */\n offerType?: string;\n /** Enables/disables getting document container quota related stats for document container read requests. */\n populateQuotaInfo?: boolean;\n /** Indicates what is the post trigger to be invoked after the operation. */\n postTriggerInclude?: string | string[];\n /** Indicates what is the pre trigger to be invoked before the operation. */\n preTriggerInclude?: string | string[];\n /** Expiry time (in seconds) for resource token associated with permission (applicable only for requests on permissions). */\n resourceTokenExpirySeconds?: number;\n /** (Advanced use case) The url to connect to. */\n urlConnection?: string;\n /** Disable automatic id generation (will cause creates to fail if id isn't on the definition) */\n disableAutomaticIdGeneration?: boolean;\n}\n"]}
1
+ {"version":3,"file":"RequestOptions.js","sourceRoot":"","sources":["../../../src/request/RequestOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { SharedOptions } from \"..\";\n\n/**\n * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=\n */\nexport interface RequestOptions extends SharedOptions {\n /** Conditions Associated with the request. */\n accessCondition?: {\n /** Conditional HTTP method header type (IfMatch or IfNoneMatch). */\n type: string;\n /** Conditional HTTP method header value (the _etag field from the last version you read). */\n condition: string;\n };\n /** Consistency level required by the client. */\n consistencyLevel?: string;\n /**\n * DisableRUPerMinuteUsage is used to enable/disable Request Units(RUs)/minute capacity\n * to serve the request if regular provisioned RUs/second is exhausted.\n */\n disableRUPerMinuteUsage?: boolean;\n /** Enables or disables logging in JavaScript stored procedures. */\n enableScriptLogging?: boolean;\n /** Specifies indexing directives (index, do not index .. etc). */\n indexingDirective?: string;\n /** The offer throughput provisioned for a container in measurement of Requests-per-Unit. */\n offerThroughput?: number;\n /**\n * Offer type when creating document containers.\n *\n * This option is only valid when creating a document container.\n */\n offerType?: string;\n /** Enables/disables getting document container quota related stats for document container read requests. */\n populateQuotaInfo?: boolean;\n /** Indicates what is the post trigger to be invoked after the operation. */\n postTriggerInclude?: string | string[];\n /** Indicates what is the pre trigger to be invoked before the operation. */\n preTriggerInclude?: string | string[];\n /** Expiry time (in seconds) for resource token associated with permission (applicable only for requests on permissions). */\n resourceTokenExpirySeconds?: number;\n /** (Advanced use case) The url to connect to. */\n urlConnection?: string;\n /** Disable automatic id generation (will cause creates to fail if id isn't on the definition) */\n disableAutomaticIdGeneration?: boolean;\n}\n"]}
@@ -19,5 +19,18 @@ export interface SharedOptions {
19
19
  * ```
20
20
  */
21
21
  abortSignal?: AbortSignal;
22
+ /**
23
+ * **(Beta - There may be breaking changes in this property in future releases)**
24
+ * Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link
25
+ * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL}, responses from the
26
+ * integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness. When the
27
+ * consistency level is not set, this property is ignored.
28
+ *
29
+ * <p>Default value is null</p>
30
+ *
31
+ * <p>Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.</p>
32
+ * @beta
33
+ */
34
+ maxIntegratedCacheStalenessInMs?: number;
22
35
  }
23
36
  //# sourceMappingURL=SharedOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SharedOptions.d.ts","sourceRoot":"","sources":["../../../src/request/SharedOptions.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
1
+ {"version":3,"file":"SharedOptions.d.ts","sourceRoot":"","sources":["../../../src/request/SharedOptions.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;;;;;;;OAWG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SharedOptions.js","sourceRoot":"","sources":["../../../src/request/SharedOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/// <reference lib=\"dom\" />\nimport { CosmosHeaders } from \"../index\";\nimport { AbortSignal } from \"node-abort-controller\";\n\n/**\n * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=\n */\nexport interface SharedOptions {\n /** Enables/disables getting document container quota related stats for document container read requests. */\n sessionToken?: string;\n /** (Advanced use case) Initial headers to start with when sending requests to Cosmos */\n initialHeaders?: CosmosHeaders;\n /**\n * abortSignal to pass to all underlying network requests created by this method call. See https://developer.mozilla.org/en-US/docs/Web/API/AbortController\n * @example Cancel a read request\n * ```typescript\n * const controller = new AbortController()\n * const {result: item} = await items.query('SELECT * from c', { abortSignal: controller.signal});\n * controller.abort()\n * ```\n */\n abortSignal?: AbortSignal;\n}\n"]}
1
+ {"version":3,"file":"SharedOptions.js","sourceRoot":"","sources":["../../../src/request/SharedOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/// <reference lib=\"dom\" />\nimport { CosmosHeaders } from \"../index\";\nimport { AbortSignal } from \"node-abort-controller\";\n\n/**\n * Options that can be specified for a requested issued to the Azure Cosmos DB servers.=\n */\nexport interface SharedOptions {\n /** Enables/disables getting document container quota related stats for document container read requests. */\n sessionToken?: string;\n /** (Advanced use case) Initial headers to start with when sending requests to Cosmos */\n initialHeaders?: CosmosHeaders;\n /**\n * abortSignal to pass to all underlying network requests created by this method call. See https://developer.mozilla.org/en-US/docs/Web/API/AbortController\n * @example Cancel a read request\n * ```typescript\n * const controller = new AbortController()\n * const {result: item} = await items.query('SELECT * from c', { abortSignal: controller.signal});\n * controller.abort()\n * ```\n */\n abortSignal?: AbortSignal;\n /**\n * **(Beta - There may be breaking changes in this property in future releases)**\n * Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link\n * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL}, responses from the\n * integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness. When the\n * consistency level is not set, this property is ignored.\n *\n * <p>Default value is null</p>\n *\n * <p>Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.</p>\n * @beta\n */\n maxIntegratedCacheStalenessInMs?: number;\n}\n"]}
@@ -7,5 +7,4 @@ export { SharedOptions } from "./SharedOptions";
7
7
  export { StatusCode, SubStatusCode } from "./StatusCodes";
8
8
  export { FeedResponse } from "./FeedResponse";
9
9
  export { RequestContext } from "./RequestContext";
10
- export { DedicatedGatewayRequestOptions } from "./DedicatedGatewayRequestOptions";
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,SAAS,EACT,6BAA6B,EAC7B,SAAS,EACT,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,SAAS,EACT,6BAA6B,EAC7B,SAAS,EACT,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport {\n ErrorResponse,\n ErrorBody,\n PartitionedQueryExecutionInfo,\n QueryInfo,\n QueryRange,\n AggregateType,\n GroupByExpressions,\n GroupByAliasToAggregateType,\n} from \"./ErrorResponse\";\nexport { FeedOptions } from \"./FeedOptions\";\nexport { RequestOptions } from \"./RequestOptions\";\nexport { Response } from \"./Response\";\nexport { ResourceResponse } from \"./ResourceResponse\";\nexport { SharedOptions } from \"./SharedOptions\";\nexport { StatusCode, SubStatusCode } from \"./StatusCodes\";\nexport { FeedResponse } from \"./FeedResponse\";\nexport { RequestContext } from \"./RequestContext\";\nexport { DedicatedGatewayRequestOptions } from \"./DedicatedGatewayRequestOptions\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport {\n ErrorResponse,\n ErrorBody,\n PartitionedQueryExecutionInfo,\n QueryInfo,\n QueryRange,\n AggregateType,\n GroupByExpressions,\n GroupByAliasToAggregateType,\n} from \"./ErrorResponse\";\nexport { FeedOptions } from \"./FeedOptions\";\nexport { RequestOptions } from \"./RequestOptions\";\nexport { Response } from \"./Response\";\nexport { ResourceResponse } from \"./ResourceResponse\";\nexport { SharedOptions } from \"./SharedOptions\";\nexport { StatusCode, SubStatusCode } from \"./StatusCodes\";\nexport { FeedResponse } from \"./FeedResponse\";\nexport { RequestContext } from \"./RequestContext\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/cosmos",
3
- "version": "3.16.1-alpha.20220526.2",
3
+ "version": "3.16.1",
4
4
  "description": "Microsoft Azure Cosmos DB Service Node.js SDK for SQL API",
5
5
  "sdk-type": "client",
6
6
  "keywords": [
@@ -104,8 +104,8 @@
104
104
  "uuid": "^8.3.0"
105
105
  },
106
106
  "devDependencies": {
107
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
108
- "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
107
+ "@azure/dev-tool": "^1.0.0",
108
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0",
109
109
  "@azure/identity": "^2.0.1",
110
110
  "@azure/logger": "^1.0.0",
111
111
  "@microsoft/api-extractor": "7.18.11",
@@ -1,17 +0,0 @@
1
- /**
2
- * @beta Dedicated Gateway Request Options *Private feature*
3
- */
4
- export interface DedicatedGatewayRequestOptions {
5
- /**
6
- * Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link
7
- * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL}, responses from the
8
- * integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness. When the
9
- * consistency level is not set, this property is ignored.
10
- *
11
- * <p>Default value is null</p>
12
- *
13
- * <p>Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.</p>
14
- */
15
- maxIntegratedCacheStalenessInMs?: number;
16
- }
17
- //# sourceMappingURL=DedicatedGatewayRequestOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DedicatedGatewayRequestOptions.d.ts","sourceRoot":"","sources":["../../../src/request/DedicatedGatewayRequestOptions.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;;;;;;OASG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=DedicatedGatewayRequestOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DedicatedGatewayRequestOptions.js","sourceRoot":"","sources":["../../../src/request/DedicatedGatewayRequestOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * @beta Dedicated Gateway Request Options *Private feature*\n */\nexport interface DedicatedGatewayRequestOptions {\n /**\n * Sets the staleness value associated with the request in the Azure CosmosDB service. For requests where the {@link\n * com.azure.cosmos.ConsistencyLevel} is {@link com.azure.cosmos.ConsistencyLevel#EVENTUAL}, responses from the\n * integrated cache are guaranteed to be no staler than value indicated by this maxIntegratedCacheStaleness. When the\n * consistency level is not set, this property is ignored.\n *\n * <p>Default value is null</p>\n *\n * <p>Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.</p>\n */\n maxIntegratedCacheStalenessInMs?: number;\n}\n"]}