@n1k1t/mock-server 0.1.0 → 0.1.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/.vscode/settings.json +3 -0
- package/README.md +55 -28
- package/bin/index.ts +31 -0
- package/lib/bin/index.d.ts +2 -0
- package/lib/bin/index.d.ts.map +1 -0
- package/lib/{src/cli.js → bin/index.js} +13 -15
- package/lib/bin/index.js.map +1 -0
- package/lib/package.json +2 -2
- package/lib/src/client/errors/connection.error.js +1 -1
- package/lib/src/client/errors/connection.error.js.map +1 -1
- package/lib/src/client/errors/validation.error.d.ts.map +1 -1
- package/lib/src/client/index.d.ts +3 -7
- package/lib/src/client/index.d.ts.map +1 -1
- package/lib/src/client/index.js +3 -41
- package/lib/src/client/index.js.map +1 -1
- package/lib/src/client/methods/expectations.create.method.d.ts +6 -0
- package/lib/src/client/methods/expectations.create.method.d.ts.map +1 -0
- package/lib/src/client/methods/expectations.create.method.js +29 -0
- package/lib/src/client/methods/expectations.create.method.js.map +1 -0
- package/lib/src/client/methods/expectations.delete.method.d.ts +6 -0
- package/lib/src/client/methods/expectations.delete.method.d.ts.map +1 -0
- package/lib/src/client/methods/expectations.delete.method.js +26 -0
- package/lib/src/client/methods/expectations.delete.method.js.map +1 -0
- package/lib/src/client/methods/expectations.update.method.d.ts +8 -0
- package/lib/src/client/methods/expectations.update.method.d.ts.map +1 -0
- package/lib/src/client/methods/expectations.update.method.js +44 -0
- package/lib/src/client/methods/expectations.update.method.js.map +1 -0
- package/lib/src/client/methods/index.d.ts +4 -1
- package/lib/src/client/methods/index.d.ts.map +1 -1
- package/lib/src/client/methods/index.js +11 -14
- package/lib/src/client/methods/index.js.map +1 -1
- package/lib/src/client/methods/ping.method.d.ts +4 -0
- package/lib/src/client/methods/ping.method.d.ts.map +1 -0
- package/lib/src/client/methods/ping.method.js +22 -0
- package/lib/src/client/methods/ping.method.js.map +1 -0
- package/lib/src/client/models/index.d.ts +2 -0
- package/lib/src/client/models/index.d.ts.map +1 -0
- package/lib/src/client/models/index.js +18 -0
- package/lib/src/client/models/index.js.map +1 -0
- package/lib/src/client/models/method.d.ts +17 -0
- package/lib/src/client/models/method.d.ts.map +1 -0
- package/lib/src/client/models/method.js +25 -0
- package/lib/src/client/models/method.js.map +1 -0
- package/lib/src/client/onsite.d.ts +6 -0
- package/lib/src/client/onsite.d.ts.map +1 -0
- package/lib/src/client/onsite.js +42 -0
- package/lib/src/client/onsite.js.map +1 -0
- package/lib/src/client/remote.d.ts +8 -0
- package/lib/src/client/remote.d.ts.map +1 -0
- package/lib/src/client/remote.js +51 -0
- package/lib/src/client/remote.js.map +1 -0
- package/lib/src/client/types.d.ts +17 -1
- package/lib/src/client/types.d.ts.map +1 -1
- package/lib/src/client/utils.d.ts +4 -3
- package/lib/src/client/utils.d.ts.map +1 -1
- package/lib/src/client/utils.js +23 -3
- package/lib/src/client/utils.js.map +1 -1
- package/lib/src/config/index.d.ts +9 -6
- package/lib/src/config/index.d.ts.map +1 -1
- package/lib/src/config/index.js +8 -7
- package/lib/src/config/index.js.map +1 -1
- package/lib/src/{server/expectations → expectations}/__utils__/index.d.ts +1 -1
- package/lib/src/expectations/__utils__/index.d.ts.map +1 -0
- package/lib/src/expectations/__utils__/index.js.map +1 -0
- package/lib/src/expectations/errors/index.d.ts.map +1 -0
- package/lib/src/expectations/errors/index.js.map +1 -0
- package/lib/src/expectations/index.d.ts.map +1 -0
- package/lib/src/expectations/index.js.map +1 -0
- package/lib/src/{server/expectations → expectations}/model.d.ts +4 -2
- package/lib/src/expectations/model.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/model.js +1 -1
- package/lib/src/expectations/model.js.map +1 -0
- package/lib/src/expectations/operators/and.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/and.operator.js.map +1 -0
- package/lib/src/expectations/operators/and.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/and.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/exec.operator.d.ts +3 -0
- package/lib/src/expectations/operators/exec.operator.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/exec.operator.js +9 -1
- package/lib/src/expectations/operators/exec.operator.js.map +1 -0
- package/lib/src/expectations/operators/exec.operator.spec.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/exec.operator.spec.js +2 -2
- package/lib/src/expectations/operators/exec.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/has.operator.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/has.operator.js +1 -1
- package/lib/src/expectations/operators/has.operator.js.map +1 -0
- package/lib/src/expectations/operators/has.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/has.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/if.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/if.operator.js.map +1 -0
- package/lib/src/expectations/operators/if.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/if.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/index.d.ts.map +1 -0
- package/lib/src/expectations/operators/index.js.map +1 -0
- package/lib/src/expectations/operators/merge.operator.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/merge.operator.js +1 -1
- package/lib/src/expectations/operators/merge.operator.js.map +1 -0
- package/lib/src/expectations/operators/merge.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/merge.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/not.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/not.operator.js.map +1 -0
- package/lib/src/expectations/operators/not.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/not.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/or.operator.d.ts.map +1 -0
- package/lib/src/expectations/operators/or.operator.js.map +1 -0
- package/lib/src/expectations/operators/or.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/or.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/remove.operator.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/remove.operator.js +1 -1
- package/lib/src/expectations/operators/remove.operator.js.map +1 -0
- package/lib/src/expectations/operators/remove.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/remove.operator.spec.js.map +1 -0
- package/lib/src/expectations/operators/set.operator.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/set.operator.js +1 -1
- package/lib/src/expectations/operators/set.operator.js.map +1 -0
- package/lib/src/expectations/operators/set.operator.spec.d.ts.map +1 -0
- package/lib/src/expectations/operators/set.operator.spec.js.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/utils.d.ts +1 -1
- package/lib/src/expectations/operators/utils.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/operators/utils.js +1 -1
- package/lib/src/expectations/operators/utils.js.map +1 -0
- package/lib/src/expectations/storage.d.ts.map +1 -0
- package/lib/src/expectations/storage.js.map +1 -0
- package/lib/src/{server/expectations → expectations}/types.d.ts +7 -3
- package/lib/src/expectations/types.d.ts.map +1 -0
- package/lib/src/expectations/types.js.map +1 -0
- package/lib/src/{server/expectations → expectations}/utils.d.ts +3 -3
- package/lib/src/expectations/utils.d.ts.map +1 -0
- package/lib/src/expectations/utils.js.map +1 -0
- package/lib/src/expectations/utils.spec.d.ts.map +1 -0
- package/lib/src/expectations/utils.spec.js.map +1 -0
- package/lib/src/{server/expectations → expectations}/validation-schemas.d.ts +1 -11
- package/lib/src/expectations/validation-schemas.d.ts.map +1 -0
- package/lib/src/{server/expectations → expectations}/validation-schemas.js +2 -2
- package/lib/src/expectations/validation-schemas.js.map +1 -0
- package/lib/src/server/endpoints/config.get.endpoint.d.ts +2 -2
- package/lib/src/server/endpoints/config.get.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/config.get.endpoint.js +4 -5
- package/lib/src/server/endpoints/config.get.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.create.endpoint.d.ts +4 -4
- package/lib/src/server/endpoints/expectations.create.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.create.endpoint.js +5 -9
- package/lib/src/server/endpoints/expectations.create.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.delete.endpoint.d.ts +7 -7
- package/lib/src/server/endpoints/expectations.delete.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.delete.endpoint.js +4 -7
- package/lib/src/server/endpoints/expectations.delete.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts +3 -3
- package/lib/src/server/endpoints/expectations.get-list.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.get-list.endpoint.js +3 -3
- package/lib/src/server/endpoints/expectations.get-list.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/expectations.update.endpoint.d.ts +4 -4
- package/lib/src/server/endpoints/expectations.update.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/expectations.update.endpoint.js +7 -20
- package/lib/src/server/endpoints/expectations.update.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/history-records.get-list.endpoint.d.ts +3 -3
- package/lib/src/server/endpoints/history-records.get-list.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/history-records.get-list.endpoint.js +3 -5
- package/lib/src/server/endpoints/history-records.get-list.endpoint.js.map +1 -1
- package/lib/src/server/endpoints/index.d.ts +1 -2
- package/lib/src/server/endpoints/index.d.ts.map +1 -1
- package/lib/src/server/endpoints/index.js +3 -5
- package/lib/src/server/endpoints/index.js.map +1 -1
- package/lib/src/server/endpoints/ping.endpoint.d.ts +1 -1
- package/lib/src/server/endpoints/ping.endpoint.d.ts.map +1 -1
- package/lib/src/server/endpoints/ping.endpoint.js +2 -2
- package/lib/src/server/endpoints/ping.endpoint.js.map +1 -1
- package/lib/src/server/history/model.d.ts +1 -1
- package/lib/src/server/history/model.d.ts.map +1 -1
- package/lib/src/server/history/storage.d.ts +1 -1
- package/lib/src/server/history/storage.d.ts.map +1 -1
- package/lib/src/server/history/storage.js +5 -2
- package/lib/src/server/history/storage.js.map +1 -1
- package/lib/src/server/index.d.ts +10 -2
- package/lib/src/server/index.d.ts.map +1 -1
- package/lib/src/server/index.js +29 -21
- package/lib/src/server/index.js.map +1 -1
- package/lib/src/server/middlewares/add-history.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/add-history.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/add-history.middleware.js +4 -4
- package/lib/src/server/middlewares/add-history.middleware.js.map +1 -1
- package/lib/src/server/middlewares/destroy-request.midleware.d.ts +2 -2
- package/lib/src/server/middlewares/destroy-request.midleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/destroy-request.midleware.js +3 -3
- package/lib/src/server/middlewares/destroy-request.midleware.js.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.js +2 -2
- package/lib/src/server/middlewares/handle-expectation-delay.middleware.js.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.js +5 -5
- package/lib/src/server/middlewares/handle-expectation-forward.middleware.js.map +1 -1
- package/lib/src/server/middlewares/internal-route.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/internal-route.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/internal-route.middleware.js +2 -2
- package/lib/src/server/middlewares/internal-route.middleware.js.map +1 -1
- package/lib/src/server/middlewares/reply.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/reply.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/reply.middleware.js +3 -3
- package/lib/src/server/middlewares/reply.middleware.js.map +1 -1
- package/lib/src/server/middlewares/resolve-public.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/resolve-public.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/resolve-public.middleware.js +9 -10
- package/lib/src/server/middlewares/resolve-public.middleware.js.map +1 -1
- package/lib/src/server/middlewares/validate-expectation-request.middleware.d.ts +2 -2
- package/lib/src/server/middlewares/validate-expectation-request.middleware.d.ts.map +1 -1
- package/lib/src/server/middlewares/validate-expectation-request.middleware.js +6 -6
- package/lib/src/server/middlewares/validate-expectation-request.middleware.js.map +1 -1
- package/lib/src/server/{endpoints/model.d.ts → models/endpoint.d.ts} +3 -3
- package/lib/src/server/models/endpoint.d.ts.map +1 -0
- package/lib/src/server/{endpoints/model.js → models/endpoint.js} +1 -1
- package/lib/src/server/models/endpoint.js.map +1 -0
- package/lib/src/server/models/index.d.ts +2 -0
- package/lib/src/server/models/index.d.ts.map +1 -1
- package/lib/src/server/models/index.js +2 -0
- package/lib/src/server/models/index.js.map +1 -1
- package/lib/src/server/{middlewares/model.d.ts → models/middleware.d.ts} +2 -2
- package/lib/src/server/models/middleware.d.ts.map +1 -0
- package/lib/src/server/{middlewares/model.js → models/middleware.js} +1 -1
- package/lib/src/server/models/middleware.js.map +1 -0
- package/lib/src/server/models/reply-service/index.js.map +1 -1
- package/lib/src/server/models/request-context/index.d.ts +5 -6
- package/lib/src/server/models/request-context/index.d.ts.map +1 -1
- package/lib/src/server/models/request-context/types.d.ts +2 -2
- package/lib/src/server/models/request-context/types.d.ts.map +1 -1
- package/lib/src/server/models/request-context/utils.d.ts +1 -1
- package/lib/src/server/models/request-context/utils.d.ts.map +1 -1
- package/lib/src/server/models/request-context/utils.js.map +1 -1
- package/lib/src/server/models/server-context.d.ts +26 -0
- package/lib/src/server/models/server-context.d.ts.map +1 -0
- package/lib/src/server/models/server-context.js +33 -0
- package/lib/src/server/models/server-context.js.map +1 -0
- package/lib/src/server/proxy.d.ts +0 -1
- package/lib/src/server/proxy.d.ts.map +1 -1
- package/lib/src/server/router.d.ts +2 -3
- package/lib/src/server/router.d.ts.map +1 -1
- package/lib/src/server/router.js.map +1 -1
- package/lib/src/server/types.d.ts +2 -2
- package/lib/src/server/types.d.ts.map +1 -1
- package/lib/src/server/web-socket-exchange/index.d.ts +2 -2
- package/lib/src/server/web-socket-exchange/index.d.ts.map +1 -1
- package/lib/src/server/web-socket-exchange/index.js.map +1 -1
- package/lib/src/server/web-socket-exchange/types.d.ts +1 -1
- package/lib/src/server/web-socket-exchange/types.d.ts.map +1 -1
- package/lib/src/types.d.ts +0 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/utils/common.d.ts +4 -0
- package/lib/src/utils/common.d.ts.map +1 -0
- package/lib/src/utils/common.js +18 -0
- package/lib/src/utils/common.js.map +1 -0
- package/lib/src/utils/index.d.ts +3 -28
- package/lib/src/utils/index.d.ts.map +1 -1
- package/lib/src/utils/index.js +16 -46
- package/lib/src/utils/index.js.map +1 -1
- package/lib/src/utils/json.d.ts +26 -0
- package/lib/src/utils/json.d.ts.map +1 -0
- package/lib/src/utils/json.js +36 -0
- package/lib/src/utils/json.js.map +1 -0
- package/lib/src/{server/utils/index.d.ts → utils/validation.d.ts} +1 -1
- package/lib/src/utils/validation.d.ts.map +1 -0
- package/lib/src/{server/utils/index.js → utils/validation.js} +1 -1
- package/lib/src/{server/utils/index.js.map → utils/validation.js.map} +1 -1
- package/lib/test/index.js +48 -13
- package/lib/test/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/lib/src/cli.d.ts +0 -2
- package/lib/src/cli.d.ts.map +0 -1
- package/lib/src/cli.js.map +0 -1
- package/lib/src/client/methods/expectations/create.method.d.ts +0 -6
- package/lib/src/client/methods/expectations/create.method.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/create.method.js +0 -13
- package/lib/src/client/methods/expectations/create.method.js.map +0 -1
- package/lib/src/client/methods/expectations/delete-all.method.d.ts +0 -3
- package/lib/src/client/methods/expectations/delete-all.method.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/delete-all.method.js +0 -11
- package/lib/src/client/methods/expectations/delete-all.method.js.map +0 -1
- package/lib/src/client/methods/expectations/delete.method.d.ts +0 -4
- package/lib/src/client/methods/expectations/delete.method.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/delete.method.js +0 -12
- package/lib/src/client/methods/expectations/delete.method.js.map +0 -1
- package/lib/src/client/methods/expectations/index.d.ts +0 -5
- package/lib/src/client/methods/expectations/index.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/index.js +0 -15
- package/lib/src/client/methods/expectations/index.js.map +0 -1
- package/lib/src/client/methods/expectations/types.d.ts +0 -18
- package/lib/src/client/methods/expectations/types.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/types.js +0 -3
- package/lib/src/client/methods/expectations/types.js.map +0 -1
- package/lib/src/client/methods/expectations/update.method.d.ts +0 -8
- package/lib/src/client/methods/expectations/update.method.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/update.method.js +0 -16
- package/lib/src/client/methods/expectations/update.method.js.map +0 -1
- package/lib/src/client/methods/expectations/utils.d.ts +0 -3
- package/lib/src/client/methods/expectations/utils.d.ts.map +0 -1
- package/lib/src/client/methods/expectations/utils.js +0 -26
- package/lib/src/client/methods/expectations/utils.js.map +0 -1
- package/lib/src/server/endpoints/expectations.delete-all.endpoint.d.ts +0 -11
- package/lib/src/server/endpoints/expectations.delete-all.endpoint.d.ts.map +0 -1
- package/lib/src/server/endpoints/expectations.delete-all.endpoint.js +0 -11
- package/lib/src/server/endpoints/expectations.delete-all.endpoint.js.map +0 -1
- package/lib/src/server/endpoints/model.d.ts.map +0 -1
- package/lib/src/server/endpoints/model.js.map +0 -1
- package/lib/src/server/expectations/__utils__/index.d.ts.map +0 -1
- package/lib/src/server/expectations/__utils__/index.js.map +0 -1
- package/lib/src/server/expectations/errors/index.d.ts.map +0 -1
- package/lib/src/server/expectations/errors/index.js.map +0 -1
- package/lib/src/server/expectations/index.d.ts.map +0 -1
- package/lib/src/server/expectations/index.js.map +0 -1
- package/lib/src/server/expectations/model.d.ts.map +0 -1
- package/lib/src/server/expectations/model.js.map +0 -1
- package/lib/src/server/expectations/operators/and.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/and.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/and.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/and.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/exec.operator.d.ts +0 -9
- package/lib/src/server/expectations/operators/exec.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/exec.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/exec.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/exec.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/has.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/has.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/has.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/has.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/if.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/if.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/if.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/if.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/index.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/index.js.map +0 -1
- package/lib/src/server/expectations/operators/merge.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/merge.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/merge.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/merge.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/not.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/not.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/not.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/not.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/or.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/or.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/or.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/or.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/remove.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/remove.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/remove.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/remove.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/set.operator.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/set.operator.js.map +0 -1
- package/lib/src/server/expectations/operators/set.operator.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/set.operator.spec.js.map +0 -1
- package/lib/src/server/expectations/operators/utils.d.ts.map +0 -1
- package/lib/src/server/expectations/operators/utils.js.map +0 -1
- package/lib/src/server/expectations/storage.d.ts.map +0 -1
- package/lib/src/server/expectations/storage.js.map +0 -1
- package/lib/src/server/expectations/types.d.ts.map +0 -1
- package/lib/src/server/expectations/types.js.map +0 -1
- package/lib/src/server/expectations/utils.d.ts.map +0 -1
- package/lib/src/server/expectations/utils.js.map +0 -1
- package/lib/src/server/expectations/utils.spec.d.ts.map +0 -1
- package/lib/src/server/expectations/utils.spec.js.map +0 -1
- package/lib/src/server/expectations/validation-schemas.d.ts.map +0 -1
- package/lib/src/server/expectations/validation-schemas.js.map +0 -1
- package/lib/src/server/middlewares/model.d.ts.map +0 -1
- package/lib/src/server/middlewares/model.js.map +0 -1
- package/lib/src/server/models/server-context/index.d.ts +0 -14
- package/lib/src/server/models/server-context/index.d.ts.map +0 -1
- package/lib/src/server/models/server-context/index.js +0 -20
- package/lib/src/server/models/server-context/index.js.map +0 -1
- package/lib/src/server/utils/index.d.ts.map +0 -1
- /package/lib/src/{server/expectations → expectations}/__utils__/index.js +0 -0
- /package/lib/src/{server/expectations → expectations}/errors/index.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/errors/index.js +0 -0
- /package/lib/src/{server/expectations → expectations}/index.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/index.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/and.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/and.operator.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/and.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/and.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/exec.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/has.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/has.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/has.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/if.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/if.operator.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/if.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/if.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/index.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/index.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/merge.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/merge.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/merge.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/not.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/not.operator.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/not.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/not.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/or.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/or.operator.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/or.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/or.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/remove.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/remove.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/remove.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/set.operator.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/set.operator.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/operators/set.operator.spec.js +0 -0
- /package/lib/src/{server/expectations → expectations}/storage.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/storage.js +0 -0
- /package/lib/src/{server/expectations → expectations}/types.js +0 -0
- /package/lib/src/{server/expectations → expectations}/utils.js +0 -0
- /package/lib/src/{server/expectations → expectations}/utils.spec.d.ts +0 -0
- /package/lib/src/{server/expectations → expectations}/utils.spec.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not.operator.spec.js","sourceRoot":"","sources":["../../../../src/expectations/operators/not.operator.spec.ts"],"names":[],"mappings":";;;;;AAAA,2CAAuD;AACvD,oCAA0D;AAE1D,kEAAsC;AAEtC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,MAAM,GAAmC;YAC7C,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE;SACtD,CAAC;QAEF,MAAM,CACJ,IAAA,sBAAQ,EAAC,YAAY,EAAE,MAAM,EAAE,IAAA,kCAAuB,GAAE,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CACnH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or.operator.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/or.operator.ts"],"names":[],"mappings":";AAEA,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or.operator.js","sourceRoot":"","sources":["../../../../src/expectations/operators/or.operator.ts"],"names":[],"mappings":";;AAAA,mCAA0D;AAE1D,kBAAe,IAAA,uCAA+B,EAC5C,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,CACjD,MAAM,CAAC,MAAM,IAAI,IAAI,KAAK,YAAY;IACpC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC,CAAC,IAAI,KAAK,cAAc;QACzB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACxE,CAAC,CAAC,IAAI,CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or.operator.spec.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/or.operator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or.operator.spec.js","sourceRoot":"","sources":["../../../../src/expectations/operators/or.operator.spec.ts"],"names":[],"mappings":";;;;;AAAA,2CAAuD;AACvD,oCAA0D;AAE1D,gEAAqC;AAErC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC5D,MAAM,MAAM,GAAmC;gBAC7C,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;aAC1D,CAAC;YAEF,MAAM,CACJ,IAAA,qBAAQ,EAAC,YAAY,EAAE,MAAM,EA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gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACzD,MAAM,CAAO,OAAO,CAAC,KAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.operator.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/remove.operator.ts"],"names":[],"mappings":";AAKA,wBAsBG"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const lodash_1 = __importDefault(require("lodash"));
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
|
-
const utils_2 = require("
|
|
8
|
+
const utils_2 = require("../../utils");
|
|
9
9
|
exports.default = (0, utils_1.buildExpectationOperatorHandler)((mode, schema, context) => {
|
|
10
10
|
if (mode !== 'manipulation' || !schema.$location) {
|
|
11
11
|
return true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.operator.js","sourceRoot":"","sources":["../../../../src/expectations/operators/remove.operator.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,mCAAwF;AACxF,uCAAoD;AAEpD,kBAAe,IAAA,uCAA+B,EAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAClF,IAAI,IAAI,KAAK,cAAc,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,oCAA4B,EAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,IAAI,OAAO,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,gBAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,IAAA,6BAAqB,EAAC,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;aACnE,OAAO,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,gBAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;QAElF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.operator.spec.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/remove.operator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.operator.spec.js","sourceRoot":"","sources":["../../../../src/expectations/operators/remove.operator.spec.ts"],"names":[],"mappings":";;;;;AAAA,2CAAuD;AACvD,oCAA0D;AAE1D,wEAAyC;AAEzC,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,MAAM,GAAmC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;QACtE,MAAM,CAAC,IAAA,yBAAQ,EAAC,cAAc,EAAE,MAAM,EAAO,EAAE,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1H,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,IA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1C,MAAM,MAAM,GAAmC;YAC7C,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,kBAAkB;SAC9B,CAAC;QAEF,MAAM,CAAC,IAAA,yBAAQ,EAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;QACxH,MAAM,CAAO,OAAO,CAAC,IAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAC;QACvD,MAAM,CAAO,OAAO,CAAC,IAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAC;IACzD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.operator.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/set.operator.ts"],"names":[],"mappings":";AAKA,wBAmCG"}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const lodash_1 = __importDefault(require("lodash"));
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
|
-
const utils_2 = require("
|
|
8
|
+
const utils_2 = require("../../utils");
|
|
9
9
|
exports.default = (0, utils_1.buildExpectationOperatorHandler)((mode, schema, context) => {
|
|
10
10
|
if (mode !== 'manipulation' || !schema.$location || schema.$value === undefined) {
|
|
11
11
|
return true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.operator.js","sourceRoot":"","sources":["../../../../src/expectations/operators/set.operator.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,mCAAwF;AACxF,uCAAoD;AAEpD,kBAAe,IAAA,uCAA+B,EAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAC/E,I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AC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC;IACvB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.operator.spec.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/set.operator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.operator.spec.js","sourceRoot":"","sources":["../../../../src/expectations/operators/set.operator.spec.ts"],"names":[],"mappings":";;;;;AAAA,2CAAuD;AACvD,oCAA0D;AAE1D,kEAAsC;AAEtC,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,MAAM,GAAmC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;QACtE,MAAM,CAAC,IAAA,sBAAQ,EAAC,cAAc,EAAE,MAAM,EAAO,EAAE,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1H,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,IAAA,sBAAQ,EAAC,cAAc,EAAE,EAAE,EAAO,EAAE,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACtH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,OAAO,GAAG,IAAA,kCAAuB,GAAE,CAAA;QACzC,MAAM,MAAM,GAAmC;YAC7C,SAAS,EAAE,YAAY;YACvB,MAAM,EAAE,GAAG;SACZ,CAAC;QAEF,MAAM,CAAC,IAAA,sBAAQ,EAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,EAAE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AG,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,OAAO,GAAG,IAAA,kCAAuB,GAAE,CAAA;QACzC,MAAM,MAAM,GAAmC;YAC7C,SAAS,EAAE,OAAO;YAClB,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;SACvB,CAAC;QAEF,MAAM,CAAC,IAAA,sBAAQ,EAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,EAAE,sCAA8B,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;QACxH,MAAM,CAAO,OAAO,CAAC,KAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IRequestPlainContext, IResponsePlainContext } from '../../models';
|
|
1
|
+
import type { IRequestPlainContext, IResponsePlainContext } from '../../server/models';
|
|
2
2
|
import { TExpectationOperatorLocation, TExpectationOperatorHandler, TExpectationOperator } from '../types';
|
|
3
3
|
type TBasePayloadSegment = {
|
|
4
4
|
parent: object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/expectations/operators/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAElB,KAAK,mBAAmB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3D,KAAK,eAAe,GAChB,CAAC,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GACzD,CAAC,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,GACzD,CAAC,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE9D,eAAO,MAAM,+BAA+B,GAAI,CAAC,SAAS,oBAAoB,WACnE,2BAA2B,CAAC,CAAC,CAAC,mCAC7B,CAAC;AAEb,eAAO,MAAM,4BAA4B,aAC7B,4BAA4B,WAC7B,oBAAoB,GAAG,qBAAqB,KACpD,eAAe,GAAG,IAiEpB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractContextPayloadSegment = exports.buildExpectationOperatorHandler = void 0;
|
|
4
|
-
const utils_1 = require("
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
5
|
const buildExpectationOperatorHandler = (handler) => handler;
|
|
6
6
|
exports.buildExpectationOperatorHandler = buildExpectationOperatorHandler;
|
|
7
7
|
const extractContextPayloadSegment = (location, context) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/expectations/operators/utils.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAc5B,MAAM,+BAA+B,GAAG,CAC7C,OAAuC,EACvC,EAAE,CAAC,OAAO,CAAC;AAFA,QAAA,+BAA+B,mCAE/B;AAEN,MAAM,4BAA4B,GAAG,CAC1C,QAAsC,EACtC,OAAqD,EAC7B,EAAE;IAC1B,QAAO,QAAQ,EAAE,CAAC;QAChB,KAAK,SAAS,CAAC,CAAC,OAAO,IAAA,YAAI,EAAkB;YAC3C,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf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AAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;SACnE,CAAA;IACH,CAAC;CACF;AAtCD,kDAsCC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type _ from 'lodash';
|
|
2
|
+
import type { IRequestPlainContext, IResponsePlainContext } from '../server/models';
|
|
2
3
|
export type TExpectationType = ConvertTupleToUnion<typeof LExpectationType>;
|
|
3
4
|
export declare const LExpectationType: readonly ["HTTP"];
|
|
4
5
|
export type TExpectationForwardProtocol = ConvertTupleToUnion<typeof LExpectationForwardProtocol>;
|
|
@@ -59,7 +60,7 @@ export interface IExpectationTargetionalSchema<TLocation extends TExpectationOpe
|
|
|
59
60
|
}
|
|
60
61
|
export interface IExpectationSchemaConfiguration {
|
|
61
62
|
operator: TExpectationOperator;
|
|
62
|
-
|
|
63
|
+
context: TExpectationContext;
|
|
63
64
|
targetionalValidationOperator: TExpectationTargetionalValidationOperator;
|
|
64
65
|
targetionalManipulationOperator: TExpectationTargetionalManipulationOperator;
|
|
65
66
|
validationLocation: TExpectationOperatorLocation;
|
|
@@ -77,7 +78,10 @@ export interface IExpectationSchema<T extends IExpectationSchemaConfiguration =
|
|
|
77
78
|
$not?: Pick<IExpectationSchema<T>, T['operator']>;
|
|
78
79
|
$and?: Pick<IExpectationSchema<T>, T['operator']>[];
|
|
79
80
|
$or?: Pick<IExpectationSchema<T>, T['operator']>[];
|
|
80
|
-
$exec?:
|
|
81
|
+
$exec?: string | TFunction<unknown, [{
|
|
82
|
+
_: typeof _;
|
|
83
|
+
context: T['context'];
|
|
84
|
+
}]>;
|
|
81
85
|
}
|
|
82
86
|
export type BuildExpectaionSchema<TConfiguration extends Partial<IExpectationSchemaConfiguration>, U extends IExpectationSchemaConfiguration = IExpectationSchemaConfiguration & TConfiguration> = Pick<IExpectationSchema<U>, U['operator']>;
|
|
83
87
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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AAU,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;AAG3G,QAAA,+BAA+B,GAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAGhF,QAAA,4BAA4B,GAAU,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAG7E,QAAA,8BAA8B,GAAU,CAAC,GAAG,oCAA4B,EAAE,MAAM,CAAC,CAAC;AAU9F,CAAC;AAKD,CAAC;AAsDD,CAAC;AAWD,CAAC;AAmCD,CAAC"}
|
|
@@ -5,8 +5,8 @@ export declare const introspectExpectationSchema: <T extends object = IExpectati
|
|
|
5
5
|
$else?: Pick<IExpectationSchema<import("./types").IExpectationSchemaConfiguration>, TExpectationOperator> | undefined;
|
|
6
6
|
}, K extends keyof T = keyof T>(schema: T, handler: (key: K, schema: T) => unknown) => void;
|
|
7
7
|
export declare const extractMetaAdditionalFromExpectationSchema: (schema: IExpectationSchema) => {
|
|
8
|
-
requestPaths?: string[]
|
|
9
|
-
requestMethods?: string[]
|
|
10
|
-
responseStatuses?: number[]
|
|
8
|
+
requestPaths?: string[];
|
|
9
|
+
requestMethods?: string[];
|
|
10
|
+
responseStatuses?: number[];
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/expectations/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAElB,qCAAqC,EACrC,oBAAoB,EAKrB,MAAM,SAAS,CAAC;AAMjB,eAAO,MAAM,8BAA8B,EAAE,SAAS,CAAC,OAAO,EAAE,qCAAqC,CA2BlG,CAAA;AAEH,eAAO,MAAM,2BAA2B,GACtC,CAAC,SAAS,MAAM;;;GAChB,CAAC,SAAS,M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C,EAAE,UAAU;mBACxB,OAAO,CAAC,GAAG,CAAC,EAAE,eAAe;mBAC7B,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO;mBACrB,OAAO,CAAC,GAAG,CAAC,EAAE,YAAY;mBAC1B,EAAE,CAAC;YAER,QAAO,OAAO,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC;gBAC/B,KAAK,QAAQ;oBAAE,CAAC;wBACd,GAAG,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAC,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;wBAChG,MAAM;oBACR,CAAC;oBAAA,CAAC;gBACF,KAAK,MAAM,CAAC,CAAC,CAAC;oBACZ,GAAG,CAAC,YAAY,GAAG,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAC,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC5F,MAAM;gBACR,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAA;AA/BY,QAAA,0CAA0C,8CA+BtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.spec.d.ts","sourceRoot":"","sources":["../../../src/expectations/utils.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.spec.js","sourceRoot":"","sources":["../../../src/expectations/utils.spec.ts"],"names":[],"mappings":";;AAAA,0CAAsD;AAEtD,mCAAyD;AAEzD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,OAAO,GAAG,IAAA,kCAAuB,GAAE,CAAA;QACzC,MAAM,MAAM,GAAuB;YACjC,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE;wBACJ,SAAS,EAAE,YAAY;wBACvB,MAAM,EAAE,GAAG;qBACZ;iBACF;gBACD;oBACE,IAAI,EAAE;wBACJ,SAAS,EAAE,OAAO;wBAClB,KAAK,EAAE,SAAS;wBAChB,MAAM,EAAE,IAAI;qBACb;iBACF;aACF;SACF,CAAC;QAEF,MAAM,CAAC,IAAA,sCAA8B,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACrF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,OAAO,GAAG,IAAA,kCAAuB,GAAE,CAAA;QACzC,MAAM,MAAM,GAAuB;YACjC,GAAG,EAAE;gBACH,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE;4BACJ,SAAS,EAAE,YAAY;4BACvB,MAAM,EAAE,GAAG;yBACZ;qBACF;oBACD;wBACE,IAAI,EAAE;4BACJ,SAAS,EAAE,OAAO;4BAClB,KAAK,EAAE,SAAS;4BAChB,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF;gBAED,KAAK,EAAE;oBACL,IAAI,EAAE;wBACJ,SAAS,EAAE,OAAO;wBAClB,KAAK,EAAE,SAAS;wBAChB,MAAM,EAAE,IAAI;qBACb;iBACF;aACF;SACF,CAAC;QAEF,IAAA,sCAA8B,EAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAChE,MAAM,CAAO,OAAO,CAAC,KAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
|
@@ -10,15 +10,5 @@ export declare const ExpectationTargetionalValidationSchema: import("@n1k1t/type
|
|
|
10
10
|
$minimatch: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
11
11
|
$minimatchAnyOf: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const ExpectationValidationSchema: import("@n1k1t/typebox").TRecursive<
|
|
14
|
-
$if: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
15
|
-
$not: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
16
|
-
$and: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
17
|
-
$or: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
18
|
-
$has: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
19
|
-
$set: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
20
|
-
$remove: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
21
|
-
$merge: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
22
|
-
$exec: import("@n1k1t/typebox").TOptional<TSchema>;
|
|
23
|
-
}>>;
|
|
13
|
+
export declare const ExpectationValidationSchema: import("@n1k1t/typebox").TRecursive<TSchema>;
|
|
24
14
|
//# sourceMappingURL=validation-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-schemas.d.ts","sourceRoot":"","sources":["../../../src/expectations/validation-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAQ,MAAM,gBAAgB,CAAC;AAiB/C,eAAO,MAAM,sCAAsC;;;;;;;;;;EAiBlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,8CA4BtC,CAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExpectationValidationSchema = exports.ExpectationTargetionalValidationSchema = void 0;
|
|
4
4
|
const typebox_1 = require("@n1k1t/typebox");
|
|
5
|
-
const utils_1 = require("
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("./types");
|
|
7
7
|
exports.ExpectationTargetionalValidationSchema = typebox_1.Type.Partial(typebox_1.Type.Object((0, utils_1.cast)({
|
|
8
8
|
$jsonPath: typebox_1.Type.String(),
|
|
@@ -31,6 +31,6 @@ exports.ExpectationValidationSchema = typebox_1.Type.Recursive((This) => typebox
|
|
|
31
31
|
$set: typebox_1.Type.Ref(exports.ExpectationTargetionalValidationSchema),
|
|
32
32
|
$merge: typebox_1.Type.Ref(exports.ExpectationTargetionalValidationSchema),
|
|
33
33
|
$remove: typebox_1.Type.Ref(exports.ExpectationTargetionalValidationSchema),
|
|
34
|
-
$exec: typebox_1.Type.String(),
|
|
34
|
+
$exec: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Function([typebox_1.Type.Any()], typebox_1.Type.Any())]),
|
|
35
35
|
})), { $id: 'ExpectationSchema' }));
|
|
36
36
|
//# sourceMappingURL=validation-schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-schemas.js","sourceRoot":"","sources":["../../../src/expectations/validation-schemas.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAE/C,oCAAgC;AAChC,mCAKiB;AASJ,QAAA,sCAAsC,GAAG,cAAI,CAAC,OAAO,CAChE,cAAI,CAAC,MAAM,CAAC,IAAA,YAAI,EAA0C;IACxD,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE;IAEpB,SAAS,EAAE,cAAI,CAAC,KAAK,CAAC,oCAA4B,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAEvF,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IAE1C,OAAO,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACxB,YAAY,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,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C5E,CAAC,CAAC,EACH,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAC7B,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Endpoint } from '
|
|
1
|
+
import { Endpoint } from '../models';
|
|
2
2
|
export interface IGetConfigResponsePayload {
|
|
3
3
|
historyRecordsLimit: number;
|
|
4
4
|
}
|
|
@@ -12,7 +12,7 @@ declare const _default: Endpoint<IGetConfigResponsePayload, import("../models").
|
|
|
12
12
|
readonly path: "config:get";
|
|
13
13
|
};
|
|
14
14
|
} & {
|
|
15
|
-
handler: ({ reply }: import("../models").RequestContext<import("../models").IHttpRequestIncommingContext, IGetConfigResponsePayload>) => Promise<void>;
|
|
15
|
+
handler: ({ reply, config }: import("../models").RequestContext<import("../models").IHttpRequestIncommingContext, IGetConfigResponsePayload>) => Promise<void>;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
18
18
|
//# sourceMappingURL=config.get.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.get.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/config.get.endpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.get.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/config.get.endpoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,yBAAyB;IACxC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;;;;;;;;;;;;;AAED,wBAQI"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
exports.default = model_1.Endpoint
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
6
5
|
.build()
|
|
7
6
|
.bindToHttp({ method: 'GET', path: '/_mock/config' })
|
|
8
7
|
.bindToWebSocket({ path: 'config:get' })
|
|
9
|
-
.assignHandler(async ({ reply }) => reply.ok({
|
|
10
|
-
historyRecordsLimit:
|
|
8
|
+
.assignHandler(async ({ reply, config }) => reply.ok({
|
|
9
|
+
historyRecordsLimit: config.server.historyRecordsLimit,
|
|
11
10
|
}));
|
|
12
11
|
//# sourceMappingURL=config.get.endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.get.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/config.get.endpoint.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"config.get.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/config.get.endpoint.ts"],"names":[],"mappings":";;AACA,sCAAqC;AAMrC,kBAAe,iBAAQ;KACpB,KAAK,EAA6B;KAClC,UAAU,CAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;KAC3D,eAAe,CAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;KAC9C,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACzC,KAAK,CAAC,EAAE,CAAC;IACP,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB;CACvD,CAAC,CACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Endpoint } from '
|
|
1
|
+
import { Expectation } from '../../expectations';
|
|
2
|
+
import { Endpoint } from '../models';
|
|
3
3
|
type TBody = Pick<Expectation, 'delay' | 'destroy' | 'forward' | 'request' | 'response'> & Partial<Pick<Expectation, 'name' | 'isEnabled' | 'type'>>;
|
|
4
4
|
declare const _default: Endpoint<{
|
|
5
5
|
id: string;
|
|
@@ -11,11 +11,11 @@ declare const _default: Endpoint<{
|
|
|
11
11
|
readonly path: "/_mock/expectations";
|
|
12
12
|
};
|
|
13
13
|
} & {
|
|
14
|
-
handler: ({ reply, body,
|
|
14
|
+
handler: ({ reply, body, client }: import("../models").RequestContext<{
|
|
15
15
|
body: TBody;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
|
-
}>) => void
|
|
18
|
+
}>) => Promise<void>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
21
21
|
//# sourceMappingURL=expectations.create.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.create.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.create.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"expectations.create.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.create.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,KAAK,KAAK,GACN,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC,GAC3E,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC;;QAG/C,MAAM;;UAAY,KAAK;;;;;;;;cAAL,KAAK;;YAAvB,MAAM;;;AADrB,wBAMK"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
exports.default =
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
5
5
|
.build()
|
|
6
6
|
.bindToHttp({ method: 'POST', path: '/_mock/expectations' })
|
|
7
|
-
.assignHandler(({ reply, body,
|
|
8
|
-
const result =
|
|
9
|
-
|
|
10
|
-
return reply.validationError(result.reasons);
|
|
11
|
-
}
|
|
12
|
-
webSocketExchange?.publish('expectation:added', result.expectation);
|
|
13
|
-
reply.ok({ id: result.expectation.id });
|
|
7
|
+
.assignHandler(async ({ reply, body, client }) => {
|
|
8
|
+
const result = await client.createExpectation(body);
|
|
9
|
+
reply.ok({ id: result.id });
|
|
14
10
|
});
|
|
15
11
|
//# sourceMappingURL=expectations.create.endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.create.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.create.endpoint.ts"],"names":[],"mappings":";;AACA,
|
|
1
|
+
{"version":3,"file":"expectations.create.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.create.endpoint.ts"],"names":[],"mappings":";;AACA,sCAAqC;AAMrC,kBAAe,iBAAQ;KACpB,KAAK,EAAmC;KACxC,UAAU,CAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;KAClE,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACpD,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Endpoint } from '
|
|
1
|
+
import { Endpoint } from '../models';
|
|
2
2
|
declare const _default: Endpoint<null, {
|
|
3
|
-
body: {
|
|
4
|
-
|
|
3
|
+
body: void | {
|
|
4
|
+
ids?: string[];
|
|
5
5
|
};
|
|
6
6
|
}> & {
|
|
7
7
|
http: {
|
|
@@ -9,11 +9,11 @@ declare const _default: Endpoint<null, {
|
|
|
9
9
|
readonly path: "/_mock/expectations";
|
|
10
10
|
};
|
|
11
11
|
} & {
|
|
12
|
-
handler: ({ reply, body,
|
|
13
|
-
body: {
|
|
14
|
-
|
|
12
|
+
handler: ({ reply, body, client }: import("../models").RequestContext<{
|
|
13
|
+
body: void | {
|
|
14
|
+
ids?: string[];
|
|
15
15
|
};
|
|
16
|
-
}, null>) => void
|
|
16
|
+
}, null>) => Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
19
|
//# sourceMappingURL=expectations.delete.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.delete.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.delete.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"expectations.delete.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.delete.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;;UAGd,IAAI,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE;;;;;;;;cAAzB,IAAI,GAAG;YAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;SAAE;;;AADhD,wBAMK"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
exports.default =
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
5
5
|
.build()
|
|
6
6
|
.bindToHttp({ method: 'DELETE', path: '/_mock/expectations' })
|
|
7
|
-
.assignHandler(({ reply, body,
|
|
8
|
-
|
|
9
|
-
return reply.notFound();
|
|
10
|
-
}
|
|
11
|
-
expectationsStorage.delete(body.id);
|
|
7
|
+
.assignHandler(async ({ reply, body, client }) => {
|
|
8
|
+
await client.deleteExpectations(body);
|
|
12
9
|
reply.ok(null);
|
|
13
10
|
});
|
|
14
11
|
//# sourceMappingURL=expectations.delete.endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.delete.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.delete.endpoint.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"expectations.delete.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.delete.endpoint.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AAErC,kBAAe,iBAAQ;KACpB,KAAK,EAA6C;KAClD,UAAU,CAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;KACpE,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/C,MAAM,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Endpoint } from '
|
|
1
|
+
import { Expectation } from '../../expectations';
|
|
2
|
+
import { Endpoint } from '../models';
|
|
3
3
|
declare const _default: Endpoint<Expectation[], import("../models").IHttpRequestIncommingContext> & {
|
|
4
4
|
http: {
|
|
5
5
|
readonly method: "GET";
|
|
@@ -10,7 +10,7 @@ declare const _default: Endpoint<Expectation[], import("../models").IHttpRequest
|
|
|
10
10
|
readonly path: "expectations:get";
|
|
11
11
|
};
|
|
12
12
|
} & {
|
|
13
|
-
handler: ({ reply,
|
|
13
|
+
handler: ({ reply, storage }: import("../models").RequestContext<import("../models").IHttpRequestIncommingContext, Expectation[]>) => void;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=expectations.get-list.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.get-list.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.get-list.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"expectations.get-list.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.get-list.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;AAErC,wBAIuF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
exports.default =
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
5
5
|
.build()
|
|
6
6
|
.bindToHttp({ method: 'GET', path: '/_mock/expectations' })
|
|
7
7
|
.bindToWebSocket({ path: 'expectations:get' })
|
|
8
|
-
.assignHandler(({ reply,
|
|
8
|
+
.assignHandler(({ reply, storage }) => reply.ok([...storage.expectations.values()]));
|
|
9
9
|
//# sourceMappingURL=expectations.get-list.endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.get-list.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.get-list.endpoint.ts"],"names":[],"mappings":";;AACA,
|
|
1
|
+
{"version":3,"file":"expectations.get-list.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.get-list.endpoint.ts"],"names":[],"mappings":";;AACA,sCAAqC;AAErC,kBAAe,iBAAQ;KACpB,KAAK,EAAiB;KACtB,UAAU,CAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;KACjE,eAAe,CAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;KACpD,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Expectation } from '
|
|
2
|
-
import { Endpoint } from '
|
|
1
|
+
import { Expectation } from '../../expectations';
|
|
2
|
+
import { Endpoint } from '../models';
|
|
3
3
|
type TBody = Partial<Pick<Expectation, 'delay' | 'destroy' | 'forward' | 'request' | 'response' | 'isEnabled'>>;
|
|
4
4
|
declare const _default: Endpoint<Expectation, {
|
|
5
5
|
body: {
|
|
@@ -16,12 +16,12 @@ declare const _default: Endpoint<Expectation, {
|
|
|
16
16
|
readonly path: "expectations:update";
|
|
17
17
|
};
|
|
18
18
|
} & {
|
|
19
|
-
handler: ({ reply, body,
|
|
19
|
+
handler: ({ reply, body, client }: import("../models").RequestContext<{
|
|
20
20
|
body: {
|
|
21
21
|
id: string;
|
|
22
22
|
set: TBody;
|
|
23
23
|
};
|
|
24
|
-
}, Expectation>) => void
|
|
24
|
+
}, Expectation>) => Promise<void>;
|
|
25
25
|
};
|
|
26
26
|
export default _default;
|
|
27
27
|
//# sourceMappingURL=expectations.update.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.update.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.update.endpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expectations.update.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.update.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,KAAK,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC;;UAGlF;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,KAAK,CAAA;KAAE;;;;;;;;;;;;cAA1B;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,KAAK,CAAA;SAAE;;;AADxD,wBAUK"}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const model_1 = require("./model");
|
|
9
|
-
exports.default = model_1.Endpoint
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
10
5
|
.build()
|
|
11
6
|
.bindToHttp({ method: 'PUT', path: '/_mock/expectations' })
|
|
12
7
|
.bindToWebSocket({ path: 'expectations:update' })
|
|
13
|
-
.assignHandler(({ reply, body,
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const updatedExpectation = expectations_1.Expectation.build(expectation.type, (0, deepmerge_1.default)(expectation, body.set ?? {}));
|
|
19
|
-
const errors = updatedExpectation.validate();
|
|
20
|
-
if (errors.length) {
|
|
21
|
-
return reply.validationError(errors);
|
|
22
|
-
}
|
|
23
|
-
expectationsStorage.set(body.id, updatedExpectation);
|
|
24
|
-
webSocketExchange?.publish('expectation:updated', updatedExpectation);
|
|
25
|
-
reply.ok(updatedExpectation);
|
|
8
|
+
.assignHandler(async ({ reply, body, client }) => {
|
|
9
|
+
const result = await client.updateExpectation(body);
|
|
10
|
+
result
|
|
11
|
+
? reply.ok(result)
|
|
12
|
+
: reply.notFound();
|
|
26
13
|
});
|
|
27
14
|
//# sourceMappingURL=expectations.update.endpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expectations.update.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.update.endpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expectations.update.endpoint.js","sourceRoot":"","sources":["../../../../src/server/endpoints/expectations.update.endpoint.ts"],"names":[],"mappings":";;AACA,sCAAqC;AAIrC,kBAAe,iBAAQ;KACpB,KAAK,EAAqD;KAC1D,UAAU,CAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;KACjE,eAAe,CAAQ,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;KACvD,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;IAC/C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEpD,MAAM;QACJ,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC;QAClB,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Endpoint } from '
|
|
1
|
+
import { HistoryRecord } from '../history';
|
|
2
|
+
import { Endpoint } from '../models';
|
|
3
3
|
declare const _default: Endpoint<HistoryRecord[], import("../models").IHttpRequestIncommingContext> & {
|
|
4
4
|
http: {
|
|
5
5
|
readonly method: "GET";
|
|
@@ -10,7 +10,7 @@ declare const _default: Endpoint<HistoryRecord[], import("../models").IHttpReque
|
|
|
10
10
|
readonly path: "history:get";
|
|
11
11
|
};
|
|
12
12
|
} & {
|
|
13
|
-
handler: ({ reply,
|
|
13
|
+
handler: ({ reply, storage }: import("../models").RequestContext<import("../models").IHttpRequestIncommingContext, HistoryRecord[]>) => void;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=history-records.get-list.endpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-records.get-list.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/history-records.get-list.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"history-records.get-list.endpoint.d.ts","sourceRoot":"","sources":["../../../../src/server/endpoints/history-records.get-list.endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;AAErC,wBAMI"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
exports.default =
|
|
3
|
+
const models_1 = require("../models");
|
|
4
|
+
exports.default = models_1.Endpoint
|
|
5
5
|
.build()
|
|
6
6
|
.bindToHttp({ method: 'GET', path: '/_mock/history' })
|
|
7
7
|
.bindToWebSocket({ path: 'history:get' })
|
|
8
|
-
.assignHandler(({ reply,
|
|
9
|
-
.sort((a, b) => a.meta.requestedAt - b.meta.requestedAt)
|
|
10
|
-
.reverse()));
|
|
8
|
+
.assignHandler(({ reply, storage }) => reply.ok([...storage.history.values()].sort((a, b) => b.meta.requestedAt - a.meta.requestedAt)));
|
|
11
9
|
//# sourceMappingURL=history-records.get-list.endpoint.js.map
|