@ahoo-wang/wow-client 9.5.0 → 9.6.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.
@@ -1 +1 @@
1
- {"version":3,"file":"commandHeaders.cjs","names":["WowHeaders","require_headers","CommandHeaders"],"sources":["../../../src/client/command/commandHeaders.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WowHeaders } from '../../error/headers.js';\n\n/**\n * Command Header Constants\n *\n * The HTTP headers a Wow command route reads. Each value is a string literal\n * type, so `CommandRequestHeaders` can type the value of every header by its\n * name. {@link commandHeaders} and {@link waitStrategy} build them from typed\n * options.\n *\n * Mirrors `CommandComponent.Header` in\n * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/aggregate/command/CommandComponent.kt`.\n *\n * @example\n * ```typescript\n * const headers: CommandRequestHeaders = {\n * [CommandHeaders.TENANT_ID]: 'tenant-123',\n * [CommandHeaders.WAIT_STAGE]: CommandStage.SNAPSHOT,\n * };\n * ```\n */\nexport const CommandHeaders = Object.freeze({\n /** Prefix of the command headers */\n COMMAND_HEADERS_PREFIX: 'Command-',\n\n /** Tenant of the command, when the route has no tenant path segment */\n TENANT_ID: 'Command-Tenant-Id',\n\n /** Owner of the command, when the route has no owner path segment */\n OWNER_ID: 'Command-Owner-Id',\n\n /**\n * Space identifier header, `Wow-Space-Id`\n * Used to send the command into a space. The server reads it only for an\n * aggregate declared `@AggregateRoute(spaced = true)`; any other aggregate\n * ignores it and keeps the default space.\n *\n * The server shares this header with queries, so it has the `Wow-` prefix\n * rather than `Command-`; it is the same value as {@link WowHeaders.SPACE_ID}.\n */\n SPACE_ID: WowHeaders.SPACE_ID,\n\n /** Aggregate the command targets, when the route has no id path segment */\n AGGREGATE_ID: 'Command-Aggregate-Id',\n\n /** The aggregate version the command expects; a mismatch is a conflict */\n AGGREGATE_VERSION: 'Command-Aggregate-Version',\n\n /** Prefix of the wait headers */\n WAIT_PREFIX: 'Command-Wait-',\n\n /** How long the server waits for the wait stage, in milliseconds */\n WAIT_TIME_OUT: 'Command-Wait-Timeout',\n\n /** The stage to wait for; the server waits for `PROCESSED` when absent */\n WAIT_STAGE: 'Command-Wait-Stage',\n\n /** The bounded context whose processing the wait stage refers to */\n WAIT_CONTEXT: 'Command-Wait-Context',\n\n /** The processor whose processing the wait stage refers to */\n WAIT_PROCESSOR: 'Command-Wait-Processor',\n\n /** The function whose processing the wait stage refers to */\n WAIT_FUNCTION: 'Command-Wait-Function',\n\n /** Prefix of the wait-chain tail headers */\n WAIT_TAIL_PREFIX: 'Command-Wait-Tail-',\n\n /** The stage the command a saga sends must reach; only with `SAGA_HANDLED` */\n WAIT_TAIL_STAGE: 'Command-Wait-Tail-Stage',\n\n /** The bounded context of the wait-chain tail */\n WAIT_TAIL_CONTEXT: 'Command-Wait-Tail-Context',\n\n /** The processor of the wait-chain tail */\n WAIT_TAIL_PROCESSOR: 'Command-Wait-Tail-Processor',\n\n /** The function of the wait-chain tail */\n WAIT_TAIL_FUNCTION: 'Command-Wait-Tail-Function',\n\n /** Idempotency key of the command; a repeated one is refused */\n REQUEST_ID: 'Command-Request-Id',\n\n /** Whether the server may process the command locally, `true` or `false` */\n LOCAL_FIRST: 'Command-Local-First',\n\n /** Bounded context of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_CONTEXT: 'Command-Aggregate-Context',\n\n /** Name of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_NAME: 'Command-Aggregate-Name',\n\n /** Fully qualified command type, for the `/wow/command/send` route */\n COMMAND_TYPE: 'Command-Type',\n\n /** Prefix of the custom headers the server copies into the command header */\n COMMAND_HEADER_X_PREFIX: 'Command-Header-',\n} as const);\n"],"mappings":"2CAkCA,IAAaE,EAAiB,OAAO,OAAO,CAE1C,uBAAwB,WAGxB,UAAW,oBAGX,SAAU,mBAWV,SAAUF,EAAAA,WAAW,SAGrB,aAAc,uBAGd,kBAAmB,4BAGnB,YAAa,gBAGb,cAAe,uBAGf,WAAY,qBAGZ,aAAc,uBAGd,eAAgB,yBAGhB,cAAe,wBAGf,iBAAkB,qBAGlB,gBAAiB,0BAGjB,kBAAmB,4BAGnB,oBAAqB,8BAGrB,mBAAoB,6BAGpB,WAAY,qBAGZ,YAAa,sBAGb,0BAA2B,4BAG3B,uBAAwB,yBAGxB,aAAc,eAGd,wBAAyB,iBAC3B,CAAU"}
1
+ {"version":3,"file":"commandHeaders.cjs","names":["WowHeaders","require_headers","CommandHeaders"],"sources":["../../../src/client/command/commandHeaders.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WowHeaders } from '../../error/headers.js';\n\n/**\n * Command Header Constants\n *\n * The HTTP headers a Wow command route reads. Each value is a string literal\n * type, so `CommandRequestHeaders` can type the value of every header by its\n * name. {@link commandHeaders} and {@link waitStrategy} build them from typed\n * options.\n *\n * Mirrors `CommandHeaders` in\n * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/CommandHeaders.kt`.\n *\n * @example\n * ```typescript\n * const headers: CommandRequestHeaders = {\n * [CommandHeaders.TENANT_ID]: 'tenant-123',\n * [CommandHeaders.WAIT_STAGE]: CommandStage.SNAPSHOT,\n * };\n * ```\n */\nexport const CommandHeaders = Object.freeze({\n /** Prefix of the command headers */\n COMMAND_HEADERS_PREFIX: 'Command-',\n\n /** Tenant of the command, when the route has no tenant path segment */\n TENANT_ID: 'Command-Tenant-Id',\n\n /** Owner of the command, when the route has no owner path segment */\n OWNER_ID: 'Command-Owner-Id',\n\n /**\n * Space identifier header, `Wow-Space-Id`\n * Used to send the command into a space. The server reads it only for an\n * aggregate declared `@AggregateRoute(spaced = true)`; any other aggregate\n * ignores it and keeps the default space.\n *\n * The server shares this header with queries, so it has the `Wow-` prefix\n * rather than `Command-`; it is the same value as {@link WowHeaders.SPACE_ID}.\n */\n SPACE_ID: WowHeaders.SPACE_ID,\n\n /** Aggregate the command targets, when the route has no id path segment */\n AGGREGATE_ID: 'Command-Aggregate-Id',\n\n /** The aggregate version the command expects; a mismatch is a conflict */\n AGGREGATE_VERSION: 'Command-Aggregate-Version',\n\n /** Prefix of the wait headers */\n WAIT_PREFIX: 'Command-Wait-',\n\n /** How long the server waits for the wait stage, in milliseconds */\n WAIT_TIME_OUT: 'Command-Wait-Timeout',\n\n /** The stage to wait for; the server waits for `PROCESSED` when absent */\n WAIT_STAGE: 'Command-Wait-Stage',\n\n /** The bounded context whose processing the wait stage refers to */\n WAIT_CONTEXT: 'Command-Wait-Context',\n\n /** The processor whose processing the wait stage refers to */\n WAIT_PROCESSOR: 'Command-Wait-Processor',\n\n /** The function whose processing the wait stage refers to */\n WAIT_FUNCTION: 'Command-Wait-Function',\n\n /** Prefix of the wait-chain tail headers */\n WAIT_TAIL_PREFIX: 'Command-Wait-Tail-',\n\n /** The stage the command a saga sends must reach; only with `SAGA_HANDLED` */\n WAIT_TAIL_STAGE: 'Command-Wait-Tail-Stage',\n\n /** The bounded context of the wait-chain tail */\n WAIT_TAIL_CONTEXT: 'Command-Wait-Tail-Context',\n\n /** The processor of the wait-chain tail */\n WAIT_TAIL_PROCESSOR: 'Command-Wait-Tail-Processor',\n\n /** The function of the wait-chain tail */\n WAIT_TAIL_FUNCTION: 'Command-Wait-Tail-Function',\n\n /** Idempotency key of the command; a repeated one is refused */\n REQUEST_ID: 'Command-Request-Id',\n\n /** Whether the server may process the command locally, `true` or `false` */\n LOCAL_FIRST: 'Command-Local-First',\n\n /** Bounded context of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_CONTEXT: 'Command-Aggregate-Context',\n\n /** Name of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_NAME: 'Command-Aggregate-Name',\n\n /** Fully qualified command type, for the `/wow/command/send` route */\n COMMAND_TYPE: 'Command-Type',\n\n /** Prefix of the custom headers the server copies into the command header */\n COMMAND_HEADER_X_PREFIX: 'Command-Header-',\n} as const);\n"],"mappings":"2CAkCA,IAAaE,EAAiB,OAAO,OAAO,CAE1C,uBAAwB,WAGxB,UAAW,oBAGX,SAAU,mBAWV,SAAUF,EAAAA,WAAW,SAGrB,aAAc,uBAGd,kBAAmB,4BAGnB,YAAa,gBAGb,cAAe,uBAGf,WAAY,qBAGZ,aAAc,uBAGd,eAAgB,yBAGhB,cAAe,wBAGf,iBAAkB,qBAGlB,gBAAiB,0BAGjB,kBAAmB,4BAGnB,oBAAqB,8BAGrB,mBAAoB,6BAGpB,WAAY,qBAGZ,YAAa,sBAGb,0BAA2B,4BAG3B,uBAAwB,yBAGxB,aAAc,eAGd,wBAAyB,iBAC3B,CAAU"}
@@ -6,8 +6,8 @@
6
6
  * name. {@link commandHeaders} and {@link waitStrategy} build them from typed
7
7
  * options.
8
8
  *
9
- * Mirrors `CommandComponent.Header` in
10
- * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/aggregate/command/CommandComponent.kt`.
9
+ * Mirrors `CommandHeaders` in
10
+ * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/CommandHeaders.kt`.
11
11
  *
12
12
  * @example
13
13
  * ```typescript
@@ -6,8 +6,8 @@
6
6
  * name. {@link commandHeaders} and {@link waitStrategy} build them from typed
7
7
  * options.
8
8
  *
9
- * Mirrors `CommandComponent.Header` in
10
- * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/aggregate/command/CommandComponent.kt`.
9
+ * Mirrors `CommandHeaders` in
10
+ * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/CommandHeaders.kt`.
11
11
  *
12
12
  * @example
13
13
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"commandHeaders.es.js","names":["CommandHeaders","WowHeaders"],"sources":["../../../src/client/command/commandHeaders.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WowHeaders } from '../../error/headers.js';\n\n/**\n * Command Header Constants\n *\n * The HTTP headers a Wow command route reads. Each value is a string literal\n * type, so `CommandRequestHeaders` can type the value of every header by its\n * name. {@link commandHeaders} and {@link waitStrategy} build them from typed\n * options.\n *\n * Mirrors `CommandComponent.Header` in\n * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/aggregate/command/CommandComponent.kt`.\n *\n * @example\n * ```typescript\n * const headers: CommandRequestHeaders = {\n * [CommandHeaders.TENANT_ID]: 'tenant-123',\n * [CommandHeaders.WAIT_STAGE]: CommandStage.SNAPSHOT,\n * };\n * ```\n */\nexport const CommandHeaders = Object.freeze({\n /** Prefix of the command headers */\n COMMAND_HEADERS_PREFIX: 'Command-',\n\n /** Tenant of the command, when the route has no tenant path segment */\n TENANT_ID: 'Command-Tenant-Id',\n\n /** Owner of the command, when the route has no owner path segment */\n OWNER_ID: 'Command-Owner-Id',\n\n /**\n * Space identifier header, `Wow-Space-Id`\n * Used to send the command into a space. The server reads it only for an\n * aggregate declared `@AggregateRoute(spaced = true)`; any other aggregate\n * ignores it and keeps the default space.\n *\n * The server shares this header with queries, so it has the `Wow-` prefix\n * rather than `Command-`; it is the same value as {@link WowHeaders.SPACE_ID}.\n */\n SPACE_ID: WowHeaders.SPACE_ID,\n\n /** Aggregate the command targets, when the route has no id path segment */\n AGGREGATE_ID: 'Command-Aggregate-Id',\n\n /** The aggregate version the command expects; a mismatch is a conflict */\n AGGREGATE_VERSION: 'Command-Aggregate-Version',\n\n /** Prefix of the wait headers */\n WAIT_PREFIX: 'Command-Wait-',\n\n /** How long the server waits for the wait stage, in milliseconds */\n WAIT_TIME_OUT: 'Command-Wait-Timeout',\n\n /** The stage to wait for; the server waits for `PROCESSED` when absent */\n WAIT_STAGE: 'Command-Wait-Stage',\n\n /** The bounded context whose processing the wait stage refers to */\n WAIT_CONTEXT: 'Command-Wait-Context',\n\n /** The processor whose processing the wait stage refers to */\n WAIT_PROCESSOR: 'Command-Wait-Processor',\n\n /** The function whose processing the wait stage refers to */\n WAIT_FUNCTION: 'Command-Wait-Function',\n\n /** Prefix of the wait-chain tail headers */\n WAIT_TAIL_PREFIX: 'Command-Wait-Tail-',\n\n /** The stage the command a saga sends must reach; only with `SAGA_HANDLED` */\n WAIT_TAIL_STAGE: 'Command-Wait-Tail-Stage',\n\n /** The bounded context of the wait-chain tail */\n WAIT_TAIL_CONTEXT: 'Command-Wait-Tail-Context',\n\n /** The processor of the wait-chain tail */\n WAIT_TAIL_PROCESSOR: 'Command-Wait-Tail-Processor',\n\n /** The function of the wait-chain tail */\n WAIT_TAIL_FUNCTION: 'Command-Wait-Tail-Function',\n\n /** Idempotency key of the command; a repeated one is refused */\n REQUEST_ID: 'Command-Request-Id',\n\n /** Whether the server may process the command locally, `true` or `false` */\n LOCAL_FIRST: 'Command-Local-First',\n\n /** Bounded context of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_CONTEXT: 'Command-Aggregate-Context',\n\n /** Name of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_NAME: 'Command-Aggregate-Name',\n\n /** Fully qualified command type, for the `/wow/command/send` route */\n COMMAND_TYPE: 'Command-Type',\n\n /** Prefix of the custom headers the server copies into the command header */\n COMMAND_HEADER_X_PREFIX: 'Command-Header-',\n} as const);\n"],"mappings":";;AAkCA,IAAaA,IAAiB,OAAO,OAAO;CAE1C,wBAAwB;CAGxB,WAAW;CAGX,UAAU;CAWV,UAAUC,EAAW;CAGrB,cAAc;CAGd,mBAAmB;CAGnB,aAAa;CAGb,eAAe;CAGf,YAAY;CAGZ,cAAc;CAGd,gBAAgB;CAGhB,eAAe;CAGf,kBAAkB;CAGlB,iBAAiB;CAGjB,mBAAmB;CAGnB,qBAAqB;CAGrB,oBAAoB;CAGpB,YAAY;CAGZ,aAAa;CAGb,2BAA2B;CAG3B,wBAAwB;CAGxB,cAAc;CAGd,yBAAyB;AAC3B,CAAU"}
1
+ {"version":3,"file":"commandHeaders.es.js","names":["CommandHeaders","WowHeaders"],"sources":["../../../src/client/command/commandHeaders.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WowHeaders } from '../../error/headers.js';\n\n/**\n * Command Header Constants\n *\n * The HTTP headers a Wow command route reads. Each value is a string literal\n * type, so `CommandRequestHeaders` can type the value of every header by its\n * name. {@link commandHeaders} and {@link waitStrategy} build them from typed\n * options.\n *\n * Mirrors `CommandHeaders` in\n * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/CommandHeaders.kt`.\n *\n * @example\n * ```typescript\n * const headers: CommandRequestHeaders = {\n * [CommandHeaders.TENANT_ID]: 'tenant-123',\n * [CommandHeaders.WAIT_STAGE]: CommandStage.SNAPSHOT,\n * };\n * ```\n */\nexport const CommandHeaders = Object.freeze({\n /** Prefix of the command headers */\n COMMAND_HEADERS_PREFIX: 'Command-',\n\n /** Tenant of the command, when the route has no tenant path segment */\n TENANT_ID: 'Command-Tenant-Id',\n\n /** Owner of the command, when the route has no owner path segment */\n OWNER_ID: 'Command-Owner-Id',\n\n /**\n * Space identifier header, `Wow-Space-Id`\n * Used to send the command into a space. The server reads it only for an\n * aggregate declared `@AggregateRoute(spaced = true)`; any other aggregate\n * ignores it and keeps the default space.\n *\n * The server shares this header with queries, so it has the `Wow-` prefix\n * rather than `Command-`; it is the same value as {@link WowHeaders.SPACE_ID}.\n */\n SPACE_ID: WowHeaders.SPACE_ID,\n\n /** Aggregate the command targets, when the route has no id path segment */\n AGGREGATE_ID: 'Command-Aggregate-Id',\n\n /** The aggregate version the command expects; a mismatch is a conflict */\n AGGREGATE_VERSION: 'Command-Aggregate-Version',\n\n /** Prefix of the wait headers */\n WAIT_PREFIX: 'Command-Wait-',\n\n /** How long the server waits for the wait stage, in milliseconds */\n WAIT_TIME_OUT: 'Command-Wait-Timeout',\n\n /** The stage to wait for; the server waits for `PROCESSED` when absent */\n WAIT_STAGE: 'Command-Wait-Stage',\n\n /** The bounded context whose processing the wait stage refers to */\n WAIT_CONTEXT: 'Command-Wait-Context',\n\n /** The processor whose processing the wait stage refers to */\n WAIT_PROCESSOR: 'Command-Wait-Processor',\n\n /** The function whose processing the wait stage refers to */\n WAIT_FUNCTION: 'Command-Wait-Function',\n\n /** Prefix of the wait-chain tail headers */\n WAIT_TAIL_PREFIX: 'Command-Wait-Tail-',\n\n /** The stage the command a saga sends must reach; only with `SAGA_HANDLED` */\n WAIT_TAIL_STAGE: 'Command-Wait-Tail-Stage',\n\n /** The bounded context of the wait-chain tail */\n WAIT_TAIL_CONTEXT: 'Command-Wait-Tail-Context',\n\n /** The processor of the wait-chain tail */\n WAIT_TAIL_PROCESSOR: 'Command-Wait-Tail-Processor',\n\n /** The function of the wait-chain tail */\n WAIT_TAIL_FUNCTION: 'Command-Wait-Tail-Function',\n\n /** Idempotency key of the command; a repeated one is refused */\n REQUEST_ID: 'Command-Request-Id',\n\n /** Whether the server may process the command locally, `true` or `false` */\n LOCAL_FIRST: 'Command-Local-First',\n\n /** Bounded context of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_CONTEXT: 'Command-Aggregate-Context',\n\n /** Name of the aggregate, for the `/wow/command/send` route */\n COMMAND_AGGREGATE_NAME: 'Command-Aggregate-Name',\n\n /** Fully qualified command type, for the `/wow/command/send` route */\n COMMAND_TYPE: 'Command-Type',\n\n /** Prefix of the custom headers the server copies into the command header */\n COMMAND_HEADER_X_PREFIX: 'Command-Header-',\n} as const);\n"],"mappings":";;AAkCA,IAAaA,IAAiB,OAAO,OAAO;CAE1C,wBAAwB;CAGxB,WAAW;CAGX,UAAU;CAWV,UAAUC,EAAW;CAGrB,cAAc;CAGd,mBAAmB;CAGnB,aAAa;CAGb,eAAe;CAGf,YAAY;CAGZ,cAAc;CAGd,gBAAgB;CAGhB,eAAe;CAGf,kBAAkB;CAGlB,iBAAiB;CAGjB,mBAAmB;CAGnB,qBAAqB;CAGrB,oBAAoB;CAGpB,YAAY;CAGZ,aAAa;CAGb,2BAA2B;CAG3B,wBAAwB;CAGxB,cAAc;CAGd,yBAAyB;AAC3B,CAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"headers.cjs","names":["WowHeaders"],"sources":["../../src/error/headers.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * HTTP headers the Wow server shares across commands and queries.\n *\n * Mirrors `CommonComponent.Header` in\n * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/CommonComponent.kt`.\n * These headers carry the `Wow-` prefix, not the `Command-` prefix of\n * {@link CommandHeaders}. Each value is a string literal type, so a header\n * object keyed by it is checked like one keyed by the literal.\n *\n * @example\n * ```typescript\n * // Send a command into a space\n * await commandClient.send({\n * method: HttpMethod.POST,\n * headers: { [WowHeaders.SPACE_ID]: 'store-1' },\n * body: { ... },\n * });\n * ```\n */\nexport const WowHeaders = Object.freeze({\n /**\n * Prefix of the headers shared across commands and queries\n */\n WOW_HEADERS_PREFIX: 'Wow-',\n\n /**\n * Space identifier request header.\n *\n * On a command route it sets the command's space; on a query route it adds\n * a space filter. It is routing data, not proof that the caller may use\n * that space. The server ignores a blank value.\n */\n SPACE_ID: 'Wow-Space-Id',\n\n /**\n * Error code response header, `Ok` when the request succeeded. A failed\n * request carries the `errorCode` of its `ErrorInfo` body here too.\n */\n ERROR_CODE: 'Wow-Error-Code',\n} as const);\n"],"mappings":"AAgCA,IAAaA,EAAa,OAAO,OAAO,CAItC,mBAAoB,OASpB,SAAU,eAMV,WAAY,gBACd,CAAU"}
1
+ {"version":3,"file":"headers.cjs","names":["WowHeaders"],"sources":["../../src/error/headers.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * HTTP headers the Wow server shares across commands and queries.\n *\n * Mirrors `WowHeaders` in\n * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/WowHeaders.kt`.\n * These headers carry the `Wow-` prefix, not the `Command-` prefix of\n * {@link CommandHeaders}. Each value is a string literal type, so a header\n * object keyed by it is checked like one keyed by the literal.\n *\n * @example\n * ```typescript\n * // Send a command into a space\n * await commandClient.send({\n * method: HttpMethod.POST,\n * headers: { [WowHeaders.SPACE_ID]: 'store-1' },\n * body: { ... },\n * });\n * ```\n */\nexport const WowHeaders = Object.freeze({\n /**\n * Prefix of the headers shared across commands and queries\n */\n WOW_HEADERS_PREFIX: 'Wow-',\n\n /**\n * Space identifier request header.\n *\n * On a command route it sets the command's space; on a query route it adds\n * a space filter. It is routing data, not proof that the caller may use\n * that space. The server ignores a blank value.\n */\n SPACE_ID: 'Wow-Space-Id',\n\n /**\n * Error code response header, `Ok` when the request succeeded. A failed\n * request carries the `errorCode` of its `ErrorInfo` body here too.\n */\n ERROR_CODE: 'Wow-Error-Code',\n} as const);\n"],"mappings":"AAgCA,IAAaA,EAAa,OAAO,OAAO,CAItC,mBAAoB,OASpB,SAAU,eAMV,WAAY,gBACd,CAAU"}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * HTTP headers the Wow server shares across commands and queries.
3
3
  *
4
- * Mirrors `CommonComponent.Header` in
5
- * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/CommonComponent.kt`.
4
+ * Mirrors `WowHeaders` in
5
+ * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/WowHeaders.kt`.
6
6
  * These headers carry the `Wow-` prefix, not the `Command-` prefix of
7
7
  * {@link CommandHeaders}. Each value is a string literal type, so a header
8
8
  * object keyed by it is checked like one keyed by the literal.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * HTTP headers the Wow server shares across commands and queries.
3
3
  *
4
- * Mirrors `CommonComponent.Header` in
5
- * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/CommonComponent.kt`.
4
+ * Mirrors `WowHeaders` in
5
+ * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/WowHeaders.kt`.
6
6
  * These headers carry the `Wow-` prefix, not the `Command-` prefix of
7
7
  * {@link CommandHeaders}. Each value is a string literal type, so a header
8
8
  * object keyed by it is checked like one keyed by the literal.
@@ -1 +1 @@
1
- {"version":3,"file":"headers.es.js","names":["WowHeaders"],"sources":["../../src/error/headers.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * HTTP headers the Wow server shares across commands and queries.\n *\n * Mirrors `CommonComponent.Header` in\n * `wow-openapi/src/main/kotlin/me/ahoo/wow/openapi/CommonComponent.kt`.\n * These headers carry the `Wow-` prefix, not the `Command-` prefix of\n * {@link CommandHeaders}. Each value is a string literal type, so a header\n * object keyed by it is checked like one keyed by the literal.\n *\n * @example\n * ```typescript\n * // Send a command into a space\n * await commandClient.send({\n * method: HttpMethod.POST,\n * headers: { [WowHeaders.SPACE_ID]: 'store-1' },\n * body: { ... },\n * });\n * ```\n */\nexport const WowHeaders = Object.freeze({\n /**\n * Prefix of the headers shared across commands and queries\n */\n WOW_HEADERS_PREFIX: 'Wow-',\n\n /**\n * Space identifier request header.\n *\n * On a command route it sets the command's space; on a query route it adds\n * a space filter. It is routing data, not proof that the caller may use\n * that space. The server ignores a blank value.\n */\n SPACE_ID: 'Wow-Space-Id',\n\n /**\n * Error code response header, `Ok` when the request succeeded. A failed\n * request carries the `errorCode` of its `ErrorInfo` body here too.\n */\n ERROR_CODE: 'Wow-Error-Code',\n} as const);\n"],"mappings":";AAgCA,IAAaA,IAAa,OAAO,OAAO;CAItC,oBAAoB;CASpB,UAAU;CAMV,YAAY;AACd,CAAU"}
1
+ {"version":3,"file":"headers.es.js","names":["WowHeaders"],"sources":["../../src/error/headers.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * HTTP headers the Wow server shares across commands and queries.\n *\n * Mirrors `WowHeaders` in\n * `wow-rest-contract/src/main/kotlin/me/ahoo/wow/rest/WowHeaders.kt`.\n * These headers carry the `Wow-` prefix, not the `Command-` prefix of\n * {@link CommandHeaders}. Each value is a string literal type, so a header\n * object keyed by it is checked like one keyed by the literal.\n *\n * @example\n * ```typescript\n * // Send a command into a space\n * await commandClient.send({\n * method: HttpMethod.POST,\n * headers: { [WowHeaders.SPACE_ID]: 'store-1' },\n * body: { ... },\n * });\n * ```\n */\nexport const WowHeaders = Object.freeze({\n /**\n * Prefix of the headers shared across commands and queries\n */\n WOW_HEADERS_PREFIX: 'Wow-',\n\n /**\n * Space identifier request header.\n *\n * On a command route it sets the command's space; on a query route it adds\n * a space filter. It is routing data, not proof that the caller may use\n * that space. The server ignores a blank value.\n */\n SPACE_ID: 'Wow-Space-Id',\n\n /**\n * Error code response header, `Ok` when the request succeeded. A failed\n * request carries the `errorCode` of its `ErrorInfo` body here too.\n */\n ERROR_CODE: 'Wow-Error-Code',\n} as const);\n"],"mappings":";AAgCA,IAAaA,IAAa,OAAO,OAAO;CAItC,oBAAoB;CASpB,UAAU;CAMV,YAAY;AACd,CAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahoo-wang/wow-client",
3
- "version": "9.5.0",
3
+ "version": "9.6.1",
4
4
  "description": "TypeScript client for Wow (https://github.com/Ahoo-Wang/Wow): commands, snapshot and event-stream queries, and the query DSL, built on Fetcher.",
5
5
  "keywords": [
6
6
  "wow",