@wopee-io/wopee.pw 4.4.0
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/.commit.hbs +71 -0
- package/.commitlintrc.json +3 -0
- package/.eslintignore +2 -0
- package/.eslintrc +21 -0
- package/.github/actions/npm_clean_install/action.yaml +35 -0
- package/.github/workflows/ci_cd.yaml +146 -0
- package/.prettierignore +3 -0
- package/.prettierrc +12 -0
- package/README.md +3 -0
- package/build/core/domain/configuration/config.interface.d.ts +7 -0
- package/build/core/domain/configuration/config.interface.js +3 -0
- package/build/core/domain/configuration/config.interface.js.map +1 -0
- package/build/core/domain/configuration/index.d.ts +2 -0
- package/build/core/domain/configuration/index.js +3 -0
- package/build/core/domain/configuration/index.js.map +1 -0
- package/build/core/domain/index.d.ts +2 -0
- package/build/core/domain/index.js +19 -0
- package/build/core/domain/index.js.map +1 -0
- package/build/core/domain/valueObjects/index.d.ts +2 -0
- package/build/core/domain/valueObjects/index.js +3 -0
- package/build/core/domain/valueObjects/index.js.map +1 -0
- package/build/core/domain/valueObjects/track.interface.d.ts +13 -0
- package/build/core/domain/valueObjects/track.interface.js +3 -0
- package/build/core/domain/valueObjects/track.interface.js.map +1 -0
- package/build/core/index.d.ts +3 -0
- package/build/core/index.js +20 -0
- package/build/core/index.js.map +1 -0
- package/build/core/ports/configPort/configDefaults.d.ts +2 -0
- package/build/core/ports/configPort/configDefaults.js +20 -0
- package/build/core/ports/configPort/configDefaults.js.map +1 -0
- package/build/core/ports/configPort/configPort.d.ts +6 -0
- package/build/core/ports/configPort/configPort.js +12 -0
- package/build/core/ports/configPort/configPort.js.map +1 -0
- package/build/core/ports/configPort/index.d.ts +2 -0
- package/build/core/ports/configPort/index.js +6 -0
- package/build/core/ports/configPort/index.js.map +1 -0
- package/build/core/ports/index.d.ts +1 -0
- package/build/core/ports/index.js +18 -0
- package/build/core/ports/index.js.map +1 -0
- package/build/core/services/index.d.ts +1 -0
- package/build/core/services/index.js +18 -0
- package/build/core/services/index.js.map +1 -0
- package/build/core/services/wopeeService/index.d.ts +2 -0
- package/build/core/services/wopeeService/index.js +6 -0
- package/build/core/services/wopeeService/index.js.map +1 -0
- package/build/core/services/wopeeService/wopee.d.ts +19 -0
- package/build/core/services/wopeeService/wopee.js +163 -0
- package/build/core/services/wopeeService/wopee.js.map +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +20 -0
- package/build/index.js.map +1 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.d.ts +6 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js +28 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js.map +1 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.d.ts +2 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.js +6 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.js.map +1 -0
- package/build/infrastructure/adapters/index.d.ts +1 -0
- package/build/infrastructure/adapters/index.js +18 -0
- package/build/infrastructure/adapters/index.js.map +1 -0
- package/build/infrastructure/index.d.ts +1 -0
- package/build/infrastructure/index.js +18 -0
- package/build/infrastructure/index.js.map +1 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +18 -0
- package/build/shared/index.js.map +1 -0
- package/build/shared/metadata/index.d.ts +2 -0
- package/build/shared/metadata/index.js +6 -0
- package/build/shared/metadata/index.js.map +1 -0
- package/build/shared/metadata/versionMetadata.d.ts +1 -0
- package/build/shared/metadata/versionMetadata.js +21 -0
- package/build/shared/metadata/versionMetadata.js.map +1 -0
- package/docs/configuration.md +21 -0
- package/docs/minimal.md +26 -0
- package/jest.config.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
- package/node_modules/@autonomous-testing/sdk/.commitlintrc.json +3 -0
- package/node_modules/@autonomous-testing/sdk/.eslintignore +2 -0
- package/node_modules/@autonomous-testing/sdk/.eslintrc +21 -0
- package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +35 -0
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +149 -0
- package/node_modules/@autonomous-testing/sdk/.prettierignore +3 -0
- package/node_modules/@autonomous-testing/sdk/.prettierrc +12 -0
- package/node_modules/@autonomous-testing/sdk/README.md +57 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +2 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +18 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/index.js +22 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.js +85 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +36 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.js +49 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +31 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.js +34 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +22 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +15 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +32 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +22 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +39 -0
- package/node_modules/@autonomous-testing/sdk/package.json +50 -0
- package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +943 -0
- package/node_modules/axios/LICENSE +19 -0
- package/node_modules/axios/README.md +991 -0
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2595 -0
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -0
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +254 -0
- package/node_modules/axios/index.js +1 -0
- package/node_modules/axios/lib/adapters/README.md +37 -0
- package/node_modules/axios/lib/adapters/http.js +424 -0
- package/node_modules/axios/lib/adapters/xhr.js +222 -0
- package/node_modules/axios/lib/axios.js +64 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +119 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +160 -0
- package/node_modules/axios/lib/core/AxiosError.js +86 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +54 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +20 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +87 -0
- package/node_modules/axios/lib/core/mergeConfig.js +100 -0
- package/node_modules/axios/lib/core/settle.js +25 -0
- package/node_modules/axios/lib/core/transformData.js +22 -0
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +146 -0
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/data.js +3 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/bind.js +11 -0
- package/node_modules/axios/lib/helpers/buildURL.js +70 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- package/node_modules/axios/lib/helpers/cookies.js +53 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +13 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/spread.js +27 -0
- package/node_modules/axios/lib/helpers/toFormData.js +72 -0
- package/node_modules/axios/lib/helpers/validator.js +86 -0
- package/node_modules/axios/lib/utils.js +470 -0
- package/node_modules/axios/package.json +87 -0
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +155 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +672 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md.bak +358 -0
- package/node_modules/form-data/Readme.md +358 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/form-data/lib/form_data.js +501 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +68 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +2876 -0
- package/node_modules/zod/index.d.ts +2 -0
- package/node_modules/zod/lib/ZodError.d.ts +164 -0
- package/node_modules/zod/lib/ZodError.js +137 -0
- package/node_modules/zod/lib/__tests__/Mocker.d.ts +17 -0
- package/node_modules/zod/lib/__tests__/Mocker.js +57 -0
- package/node_modules/zod/lib/benchmarks/datetime.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/datetime.js +54 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +79 -0
- package/node_modules/zod/lib/benchmarks/index.d.ts +1 -0
- package/node_modules/zod/lib/benchmarks/index.js +59 -0
- package/node_modules/zod/lib/benchmarks/ipv4.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/ipv4.js +54 -0
- package/node_modules/zod/lib/benchmarks/object.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/object.js +70 -0
- package/node_modules/zod/lib/benchmarks/primitives.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/primitives.js +170 -0
- package/node_modules/zod/lib/benchmarks/realworld.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/realworld.js +56 -0
- package/node_modules/zod/lib/benchmarks/string.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/string.js +55 -0
- package/node_modules/zod/lib/benchmarks/union.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/union.js +79 -0
- package/node_modules/zod/lib/errors.d.ts +5 -0
- package/node_modules/zod/lib/errors.js +17 -0
- package/node_modules/zod/lib/external.d.ts +6 -0
- package/node_modules/zod/lib/external.js +18 -0
- package/node_modules/zod/lib/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/enumUtil.js +2 -0
- package/node_modules/zod/lib/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/lib/helpers/errorUtil.js +8 -0
- package/node_modules/zod/lib/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/lib/helpers/parseUtil.js +125 -0
- package/node_modules/zod/lib/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/partialUtil.js +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.js +2 -0
- package/node_modules/zod/lib/helpers/util.d.ts +82 -0
- package/node_modules/zod/lib/helpers/util.js +142 -0
- package/node_modules/zod/lib/index.d.ts +4 -0
- package/node_modules/zod/lib/index.js +29 -0
- package/node_modules/zod/lib/index.mjs +4236 -0
- package/node_modules/zod/lib/index.umd.js +4351 -0
- package/node_modules/zod/lib/locales/en.d.ts +3 -0
- package/node_modules/zod/lib/locales/en.js +129 -0
- package/node_modules/zod/lib/types.d.ts +1127 -0
- package/node_modules/zod/lib/types.js +3677 -0
- package/node_modules/zod/package.json +119 -0
- package/package.json +57 -0
- package/release.config.mjs +55 -0
package/.commit.hbs
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{{#if scope}}
|
|
2
|
+
**{{scope}}:**
|
|
3
|
+
{{~/if}}
|
|
4
|
+
{{#if subject}}
|
|
5
|
+
{{~subject}}
|
|
6
|
+
{{~else}}
|
|
7
|
+
{{~header}}
|
|
8
|
+
{{~/if}}
|
|
9
|
+
|
|
10
|
+
{{~! commit link }}
|
|
11
|
+
{{#if @root.linkReferences~}}
|
|
12
|
+
([{{shortHash}}](
|
|
13
|
+
{{~#if @root.repository}}
|
|
14
|
+
{{~#if @root.host}}
|
|
15
|
+
{{~@root.host}}/
|
|
16
|
+
{{~/if}}
|
|
17
|
+
{{~#if @root.owner}}
|
|
18
|
+
{{~@root.owner}}/
|
|
19
|
+
{{~/if}}
|
|
20
|
+
{{~@root.repository}}
|
|
21
|
+
{{~else}}
|
|
22
|
+
{{~@root.repoUrl}}
|
|
23
|
+
{{~/if}}/
|
|
24
|
+
{{~@root.commit}}/{{hash}}))
|
|
25
|
+
{{~else}}
|
|
26
|
+
{{~shortHash}}
|
|
27
|
+
{{~/if}}
|
|
28
|
+
|
|
29
|
+
{{~! commit references }}
|
|
30
|
+
{{~#if references~}}
|
|
31
|
+
, closes
|
|
32
|
+
{{~#each references}}
|
|
33
|
+
{{#if @root.linkReferences~}}
|
|
34
|
+
[
|
|
35
|
+
{{~#if this.owner}}
|
|
36
|
+
{{~this.owner}}/
|
|
37
|
+
{{~/if}}
|
|
38
|
+
{{~this.repository}}#{{this.issue}}](
|
|
39
|
+
{{~#if @root.repository}}
|
|
40
|
+
{{~#if @root.host}}
|
|
41
|
+
{{~@root.host}}/
|
|
42
|
+
{{~/if}}
|
|
43
|
+
{{~#if this.repository}}
|
|
44
|
+
{{~#if this.owner}}
|
|
45
|
+
{{~this.owner}}/
|
|
46
|
+
{{~/if}}
|
|
47
|
+
{{~this.repository}}
|
|
48
|
+
{{~else}}
|
|
49
|
+
{{~#if @root.owner}}
|
|
50
|
+
{{~@root.owner}}/
|
|
51
|
+
{{~/if}}
|
|
52
|
+
{{~@root.repository}}
|
|
53
|
+
{{~/if}}
|
|
54
|
+
{{~else}}
|
|
55
|
+
{{~@root.repoUrl}}
|
|
56
|
+
{{~/if}}/
|
|
57
|
+
{{~@root.issue}}/{{this.issue}})
|
|
58
|
+
{{~else}}
|
|
59
|
+
{{~#if this.owner}}
|
|
60
|
+
{{~this.owner}}/
|
|
61
|
+
{{~/if}}
|
|
62
|
+
{{~this.repository}}#{{this.issue}}
|
|
63
|
+
{{~/if}}{{/each}}
|
|
64
|
+
{{~/if}}
|
|
65
|
+
|
|
66
|
+
{{~#if body}}
|
|
67
|
+
{{#raw}}{{/raw}}
|
|
68
|
+
{{body}}
|
|
69
|
+
{{~/if}}
|
|
70
|
+
|
|
71
|
+
{{#raw}}{{/raw}}
|
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"parserOptions": {
|
|
4
|
+
"project": "tsconfig.json",
|
|
5
|
+
"sourceType": "module"
|
|
6
|
+
},
|
|
7
|
+
"plugins": ["@typescript-eslint/eslint-plugin"],
|
|
8
|
+
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
|
9
|
+
"root": true,
|
|
10
|
+
"env": {
|
|
11
|
+
"node": true
|
|
12
|
+
},
|
|
13
|
+
"rules": {
|
|
14
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
15
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
16
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
17
|
+
"@typescript-eslint/interface-name-prefix": "off",
|
|
18
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
19
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Clean install Node.js dependencies
|
|
2
|
+
description: Install Node.js and all dependencies.
|
|
3
|
+
|
|
4
|
+
inputs:
|
|
5
|
+
nodejs-version:
|
|
6
|
+
description: 'Node.js version.'
|
|
7
|
+
required: false
|
|
8
|
+
default: '21'
|
|
9
|
+
npm-token:
|
|
10
|
+
description: 'Token for @autonomous-testing:=https://npm.pkg.github.com.'
|
|
11
|
+
required: true
|
|
12
|
+
|
|
13
|
+
runs:
|
|
14
|
+
using: 'composite'
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Setup node
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: ${{inputs.nodejs-version}}
|
|
21
|
+
|
|
22
|
+
- name: Cache
|
|
23
|
+
id: cache
|
|
24
|
+
uses: actions/cache@v4
|
|
25
|
+
with:
|
|
26
|
+
path: node_modules
|
|
27
|
+
key: nodejs-${{inputs.nodejs-version}}-${{hashFiles('package-lock.json')}}
|
|
28
|
+
restore-keys: nodejs-${{inputs.nodejs-version}}-
|
|
29
|
+
|
|
30
|
+
- name: Npm clean install
|
|
31
|
+
if: steps.cache.outputs.cache-hit != 'true'
|
|
32
|
+
shell: bash
|
|
33
|
+
env:
|
|
34
|
+
NPM_TOKEN: ${{inputs.npm-token}}
|
|
35
|
+
run: npm clean-install
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
name: ci-cd
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- 'dev'
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- 'dev'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
npm-clean-install:
|
|
13
|
+
runs-on: builder
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Check-out
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 1
|
|
20
|
+
|
|
21
|
+
- name: Install
|
|
22
|
+
uses: ./.github/actions/npm_clean_install
|
|
23
|
+
with:
|
|
24
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
25
|
+
|
|
26
|
+
static-check:
|
|
27
|
+
needs: [npm-clean-install]
|
|
28
|
+
if: github.event_name == 'pull_request'
|
|
29
|
+
runs-on: builder
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- name: Check-out
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
with:
|
|
35
|
+
fetch-depth: 0
|
|
36
|
+
|
|
37
|
+
- name: Install
|
|
38
|
+
uses: ./.github/actions/npm_clean_install
|
|
39
|
+
with:
|
|
40
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
41
|
+
|
|
42
|
+
- name: Commitlint
|
|
43
|
+
if: ${{ always() }}
|
|
44
|
+
shell: bash
|
|
45
|
+
run: |
|
|
46
|
+
npx commitlint \
|
|
47
|
+
--from ${{ github.event.pull_request.base.sha }} \
|
|
48
|
+
--to ${{ github.event.pull_request.head.sha }} \
|
|
49
|
+
--verbose
|
|
50
|
+
|
|
51
|
+
- name: Eslint
|
|
52
|
+
if: ${{ always() }}
|
|
53
|
+
shell: bash
|
|
54
|
+
run: make eslint
|
|
55
|
+
|
|
56
|
+
- name: Prettier
|
|
57
|
+
if: ${{ always() }}
|
|
58
|
+
shell: bash
|
|
59
|
+
run: make prettier.check
|
|
60
|
+
|
|
61
|
+
before-build-test:
|
|
62
|
+
needs: [npm-clean-install]
|
|
63
|
+
runs-on: builder
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- name: Check-out
|
|
67
|
+
uses: actions/checkout@v4
|
|
68
|
+
with:
|
|
69
|
+
fetch-depth: 1
|
|
70
|
+
|
|
71
|
+
- name: Install
|
|
72
|
+
uses: ./.github/actions/npm_clean_install
|
|
73
|
+
with:
|
|
74
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
75
|
+
|
|
76
|
+
- name: Unit tests
|
|
77
|
+
shell: bash
|
|
78
|
+
run: echo no-test
|
|
79
|
+
|
|
80
|
+
build:
|
|
81
|
+
needs: [npm-clean-install]
|
|
82
|
+
runs-on: builder
|
|
83
|
+
|
|
84
|
+
steps:
|
|
85
|
+
- name: Check-out
|
|
86
|
+
uses: actions/checkout@v4
|
|
87
|
+
with:
|
|
88
|
+
fetch-depth: 1
|
|
89
|
+
|
|
90
|
+
- name: Install
|
|
91
|
+
uses: ./.github/actions/npm_clean_install
|
|
92
|
+
with:
|
|
93
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
94
|
+
|
|
95
|
+
- name: Build
|
|
96
|
+
run: make build
|
|
97
|
+
|
|
98
|
+
after-build-test:
|
|
99
|
+
needs: [build]
|
|
100
|
+
runs-on: builder
|
|
101
|
+
|
|
102
|
+
steps:
|
|
103
|
+
- name: Check-out
|
|
104
|
+
uses: actions/checkout@v4
|
|
105
|
+
with:
|
|
106
|
+
fetch-depth: 1
|
|
107
|
+
|
|
108
|
+
- name: Install
|
|
109
|
+
uses: ./.github/actions/npm_clean_install
|
|
110
|
+
with:
|
|
111
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
112
|
+
|
|
113
|
+
- name: E2E test
|
|
114
|
+
env:
|
|
115
|
+
WOPEE_API_KEY: ${{secrets.WOPEE_API_KEY}}
|
|
116
|
+
WOPEE_API_URL: ${{vars.WOPEE_API_URL}}
|
|
117
|
+
WOPEE_BRANCH_NAME: master
|
|
118
|
+
WOPEE_CUSTOM_TAGS: custom-tag
|
|
119
|
+
WOPEE_ENABLE_SOFT_ASSERT: true
|
|
120
|
+
WOPEE_PIXEL_TO_PIXEL_DIFF_TOLERANCE: 0.1
|
|
121
|
+
WOPEE_PROJECT_UUID: ${{vars.WOPEE_PROJECT_UUID}}
|
|
122
|
+
WOPEE_SCREENSHOT_VALIDATION_ENABLED: true
|
|
123
|
+
run: make after.build.test
|
|
124
|
+
|
|
125
|
+
release:
|
|
126
|
+
needs: [before-build-test, after-build-test]
|
|
127
|
+
if: github.event_name == 'push'
|
|
128
|
+
runs-on: builder
|
|
129
|
+
|
|
130
|
+
steps:
|
|
131
|
+
- name: Check-out
|
|
132
|
+
uses: actions/checkout@v4
|
|
133
|
+
with:
|
|
134
|
+
fetch-depth: 1
|
|
135
|
+
|
|
136
|
+
- name: Install
|
|
137
|
+
uses: ./.github/actions/npm_clean_install
|
|
138
|
+
with:
|
|
139
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
140
|
+
|
|
141
|
+
- name: Release
|
|
142
|
+
shell: bash
|
|
143
|
+
env:
|
|
144
|
+
GH_TOKEN: ${{secrets.CI_CD}}
|
|
145
|
+
NPM_TOKEN: ${{secrets.CI_CD}}
|
|
146
|
+
run: make release
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"arrowParens": "always",
|
|
3
|
+
"importOrder": [],
|
|
4
|
+
"importOrderSeparation": true,
|
|
5
|
+
"importOrderSortSpecifiers": true,
|
|
6
|
+
"printWidth": 120,
|
|
7
|
+
"endOfLine": "auto",
|
|
8
|
+
"singleQuote": true,
|
|
9
|
+
"tabWidth": 2,
|
|
10
|
+
"trailingComma": "all",
|
|
11
|
+
"plugins": ["@trivago/prettier-plugin-sort-imports"]
|
|
12
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ApolloAdapterConfig } from '@autonomous-testing/sdk';
|
|
2
|
+
export interface ScreenshotValidationOptions extends ApolloAdapterConfig {
|
|
3
|
+
screenshotValidationEnabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface WopeeOptions {
|
|
6
|
+
screenshotValidation?: ScreenshotValidationOptions;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.interface.js","sourceRoot":"","sources":["../../../../lib/core/domain/configuration/config.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { ApolloAdapterConfig } from '@autonomous-testing/sdk';\n\nexport interface ScreenshotValidationOptions extends ApolloAdapterConfig {\n /*\n If true, screenshotValidation is enabled.\n */\n screenshotValidationEnabled?: boolean;\n}\n\nexport interface WopeeOptions {\n screenshotValidation?: ScreenshotValidationOptions;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/core/domain/configuration/index.ts"],"names":[],"mappings":"","sourcesContent":["import { ScreenshotValidationOptions, WopeeOptions } from './config.interface.js';\n\nexport { ScreenshotValidationOptions, WopeeOptions };\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./configuration/index.js"), exports);
|
|
18
|
+
__exportStar(require("./valueObjects/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/core/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC","sourcesContent":["export * from './configuration/index.js';\nexport * from './valueObjects/index.js';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/core/domain/valueObjects/index.ts"],"names":[],"mappings":"","sourcesContent":["import {\n TrackElementOptions,\n TrackFullPageOptions,\n TrackImageOptions,\n TrackViewportOptions,\n} from './track.interface.js';\n\nexport { TrackElementOptions, TrackFullPageOptions, TrackImageOptions, TrackViewportOptions };\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CreateIntegrationStepPayload } from '@autonomous-testing/sdk';
|
|
2
|
+
import { Locator, Page } from '@playwright/test';
|
|
3
|
+
export interface TrackElementOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {
|
|
4
|
+
locator: Locator;
|
|
5
|
+
}
|
|
6
|
+
export interface TrackFullPageOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {
|
|
7
|
+
page: Page;
|
|
8
|
+
}
|
|
9
|
+
export interface TrackImageOptions extends CreateIntegrationStepPayload {
|
|
10
|
+
}
|
|
11
|
+
export interface TrackViewportOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {
|
|
12
|
+
page: Page;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.interface.js","sourceRoot":"","sources":["../../../../lib/core/domain/valueObjects/track.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { CreateIntegrationStepPayload } from '@autonomous-testing/sdk';\nimport { Locator, Page } from '@playwright/test';\n\nexport interface TrackElementOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {\n locator: Locator;\n}\n\nexport interface TrackFullPageOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {\n page: Page;\n}\n\nexport interface TrackImageOptions extends CreateIntegrationStepPayload {}\n\nexport interface TrackViewportOptions extends Omit<CreateIntegrationStepPayload, 'imageBase64'> {\n page: Page;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./services/index.js"), exports);
|
|
18
|
+
__exportStar(require("./domain/index.js"), exports);
|
|
19
|
+
__exportStar(require("./ports/index.js"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,mDAAiC","sourcesContent":["export * from './services/index.js';\nexport * from './domain/index.js';\nexport * from './ports/index.js';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.setWopeeOptionsDefaults = void 0;
|
|
7
|
+
const cloneDeep_js_1 = __importDefault(require("lodash/cloneDeep.js"));
|
|
8
|
+
const merge_js_1 = __importDefault(require("lodash/merge.js"));
|
|
9
|
+
const DEFAULT_SCREENSHOT_VALIDATION_OPTIONS = {
|
|
10
|
+
screenshotValidationEnabled: true,
|
|
11
|
+
};
|
|
12
|
+
function setScreenshotValidationOptionsDefaults(options) {
|
|
13
|
+
return (0, merge_js_1.default)((0, cloneDeep_js_1.default)(DEFAULT_SCREENSHOT_VALIDATION_OPTIONS), options);
|
|
14
|
+
}
|
|
15
|
+
function setWopeeOptionsDefaults(options) {
|
|
16
|
+
const screenshotValidationOptions = setScreenshotValidationOptionsDefaults(options === null || options === void 0 ? void 0 : options.screenshotValidation);
|
|
17
|
+
return { screenshotValidation: screenshotValidationOptions };
|
|
18
|
+
}
|
|
19
|
+
exports.setWopeeOptionsDefaults = setWopeeOptionsDefaults;
|
|
20
|
+
//# sourceMappingURL=configDefaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configDefaults.js","sourceRoot":"","sources":["../../../../lib/core/ports/configPort/configDefaults.ts"],"names":[],"mappings":";;;;;;AACA,uEAA4C;AAC5C,+DAAoC;AAEpC,MAAM,qCAAqC,GAAyC;IAClF,2BAA2B,EAAE,IAAI;CAClC,CAAC;AAEF,SAAS,sCAAsC,CAAC,OAAqC;IACnF,OAAO,IAAA,kBAAK,EAAC,IAAA,sBAAS,EAAC,qCAAqC,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,uBAAuB,CAAC,OAAsB;IAC5D,MAAM,2BAA2B,GAAG,sCAAsC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAC,CAAC;IAC1G,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,CAAC;AAC/D,CAAC;AAHD,0DAGC","sourcesContent":["import { ScreenshotValidationOptions, WopeeOptions } from '../../domain/configuration/config.interface';\nimport cloneDeep from 'lodash/cloneDeep.js';\nimport merge from 'lodash/merge.js';\n\nconst DEFAULT_SCREENSHOT_VALIDATION_OPTIONS: Partial<ScreenshotValidationOptions> = {\n screenshotValidationEnabled: true,\n};\n\nfunction setScreenshotValidationOptionsDefaults(options?: ScreenshotValidationOptions): ScreenshotValidationOptions {\n return merge(cloneDeep(DEFAULT_SCREENSHOT_VALIDATION_OPTIONS), options);\n}\n\nexport function setWopeeOptionsDefaults(options?: WopeeOptions): WopeeOptions {\n const screenshotValidationOptions = setScreenshotValidationOptionsDefaults(options?.screenshotValidation);\n return { screenshotValidation: screenshotValidationOptions };\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigPort = void 0;
|
|
4
|
+
const configDefaults_js_1 = require("./configDefaults.js");
|
|
5
|
+
class ConfigPort {
|
|
6
|
+
loadConfig() {
|
|
7
|
+
this._config = (0, configDefaults_js_1.setWopeeOptionsDefaults)(this._loadConfig());
|
|
8
|
+
return this._config;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ConfigPort = ConfigPort;
|
|
12
|
+
//# sourceMappingURL=configPort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configPort.js","sourceRoot":"","sources":["../../../../lib/core/ports/configPort/configPort.ts"],"names":[],"mappings":";;;AACA,2DAA8D;AAE9D,MAAsB,UAAU;IAK9B,UAAU;QACR,IAAI,CAAC,OAAO,GAAG,IAAA,2CAAuB,EAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AATD,gCASC","sourcesContent":["import { WopeeOptions } from '../../domain/configuration/config.interface.js';\nimport { setWopeeOptionsDefaults } from './configDefaults.js';\n\nexport abstract class ConfigPort {\n private _config: WopeeOptions;\n\n abstract _loadConfig(): WopeeOptions;\n\n loadConfig(): WopeeOptions {\n this._config = setWopeeOptionsDefaults(this._loadConfig());\n return this._config;\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigPort = void 0;
|
|
4
|
+
const configPort_js_1 = require("./configPort.js");
|
|
5
|
+
Object.defineProperty(exports, "ConfigPort", { enumerable: true, get: function () { return configPort_js_1.ConfigPort; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/core/ports/configPort/index.ts"],"names":[],"mappings":";;;AAAA,mDAA6C;AAEpC,2FAFA,0BAAU,OAEA","sourcesContent":["import { ConfigPort } from './configPort.js';\n\nexport { ConfigPort };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './configPort/index.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./configPort/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/core/ports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC","sourcesContent":["export * from './configPort/index.js';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './wopeeService/index.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./wopeeService/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/core/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC","sourcesContent":["export * from './wopeeService/index.js';\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wopee = void 0;
|
|
4
|
+
const wopee_js_1 = require("./wopee.js");
|
|
5
|
+
Object.defineProperty(exports, "Wopee", { enumerable: true, get: function () { return wopee_js_1.Wopee; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/core/services/wopeeService/index.ts"],"names":[],"mappings":";;;AAAA,yCAAmC;AAE1B,sFAFA,gBAAK,OAEA","sourcesContent":["import { Wopee } from './wopee.js';\n\nexport { Wopee };\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TrackElementOptions, TrackFullPageOptions, TrackImageOptions, TrackViewportOptions } from '../../domain/valueObjects/track.interface.js';
|
|
2
|
+
import { IntegrationStep } from '@autonomous-testing/sdk';
|
|
3
|
+
export declare class Wopee {
|
|
4
|
+
private _config;
|
|
5
|
+
private _screenshotValidation;
|
|
6
|
+
constructor();
|
|
7
|
+
private _createApolloTrackAdapter;
|
|
8
|
+
startSuite(suiteName: string): Promise<void>;
|
|
9
|
+
startScenario(scenarioName: string): Promise<void>;
|
|
10
|
+
stopScenario(): Promise<void>;
|
|
11
|
+
_trackImage(trackImageOptions: TrackImageOptions): Promise<IntegrationStep>;
|
|
12
|
+
trackImage(trackImageOptions: TrackImageOptions): Promise<IntegrationStep>;
|
|
13
|
+
_trackFullPage(trackFullPageOptions: TrackFullPageOptions): Promise<IntegrationStep>;
|
|
14
|
+
trackFullPage(trackFullPageOptions: TrackFullPageOptions): Promise<IntegrationStep>;
|
|
15
|
+
_trackElement(trackElementOptions: TrackElementOptions): Promise<IntegrationStep>;
|
|
16
|
+
trackElement(trackElementOptions: TrackElementOptions): Promise<IntegrationStep>;
|
|
17
|
+
_trackViewport(trackViewportOptions: TrackViewportOptions): Promise<IntegrationStep>;
|
|
18
|
+
trackViewport(trackViewportOptions: TrackViewportOptions): Promise<IntegrationStep>;
|
|
19
|
+
}
|