@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
|
@@ -0,0 +1,149 @@
|
|
|
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: Prepare .env
|
|
77
|
+
shell: bash
|
|
78
|
+
run: |
|
|
79
|
+
echo ${{ secrets.INT_TESTS_API_KEY }} >> .env
|
|
80
|
+
echo ${{ secrets.INT_TESTS_API_URL }} >> .env
|
|
81
|
+
echo ${{ secrets.INT_TESTS_BRANCH_NAME }} >> .env
|
|
82
|
+
echo ${{ secrets.INT_TESTS_PROJECT_UUID }} >> .env
|
|
83
|
+
|
|
84
|
+
- name: Unit tests
|
|
85
|
+
shell: bash
|
|
86
|
+
run: make test.unit
|
|
87
|
+
|
|
88
|
+
- name: Int tests
|
|
89
|
+
shell: bash
|
|
90
|
+
run: make test.int
|
|
91
|
+
|
|
92
|
+
build:
|
|
93
|
+
needs: [npm-clean-install]
|
|
94
|
+
runs-on: builder
|
|
95
|
+
|
|
96
|
+
steps:
|
|
97
|
+
- name: Check-out
|
|
98
|
+
uses: actions/checkout@v4
|
|
99
|
+
with:
|
|
100
|
+
fetch-depth: 1
|
|
101
|
+
|
|
102
|
+
- name: Install
|
|
103
|
+
uses: ./.github/actions/npm_clean_install
|
|
104
|
+
with:
|
|
105
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
106
|
+
|
|
107
|
+
- name: Build
|
|
108
|
+
run: make build
|
|
109
|
+
|
|
110
|
+
after-build-test:
|
|
111
|
+
needs: [build]
|
|
112
|
+
runs-on: builder
|
|
113
|
+
|
|
114
|
+
steps:
|
|
115
|
+
- name: Check-out
|
|
116
|
+
uses: actions/checkout@v4
|
|
117
|
+
with:
|
|
118
|
+
fetch-depth: 1
|
|
119
|
+
|
|
120
|
+
- name: Install
|
|
121
|
+
uses: ./.github/actions/npm_clean_install
|
|
122
|
+
with:
|
|
123
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
124
|
+
|
|
125
|
+
- name: E2E test
|
|
126
|
+
run: echo no-test
|
|
127
|
+
|
|
128
|
+
release:
|
|
129
|
+
needs: [before-build-test, after-build-test]
|
|
130
|
+
if: github.event_name == 'push'
|
|
131
|
+
runs-on: builder
|
|
132
|
+
|
|
133
|
+
steps:
|
|
134
|
+
- name: Check-out
|
|
135
|
+
uses: actions/checkout@v4
|
|
136
|
+
with:
|
|
137
|
+
fetch-depth: 1
|
|
138
|
+
|
|
139
|
+
- name: Install
|
|
140
|
+
uses: ./.github/actions/npm_clean_install
|
|
141
|
+
with:
|
|
142
|
+
npm-token: ${{ secrets.CI_CD }}
|
|
143
|
+
|
|
144
|
+
- name: Release
|
|
145
|
+
shell: bash
|
|
146
|
+
env:
|
|
147
|
+
GH_TOKEN: ${{secrets.CI_CD}}
|
|
148
|
+
NPM_TOKEN: ${{secrets.CI_CD}}
|
|
149
|
+
run: make release
|
|
@@ -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": 4,
|
|
10
|
+
"trailingComma": "all",
|
|
11
|
+
"plugins": ["@trivago/prettier-plugin-sort-imports"]
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Wopee SDK
|
|
2
|
+
|
|
3
|
+
## Codebase structure
|
|
4
|
+
|
|
5
|
+
The codebase is loosely following ports/adapters (hexagonal) architecture principles, i.e., split inmplementation details and business logic whenever possible.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
lib/
|
|
9
|
+
├── core/
|
|
10
|
+
│ ├── domain/
|
|
11
|
+
│ │ └── valueObjects/
|
|
12
|
+
│ └── ports/
|
|
13
|
+
├── infrastructure/
|
|
14
|
+
│ ├── adapters/
|
|
15
|
+
│ │ ├── apolloTrackAdapter/
|
|
16
|
+
│ │ ├── consoleLogger/
|
|
17
|
+
│ │ └── noLogger/
|
|
18
|
+
│ └── services/
|
|
19
|
+
│ ├── apolloTrackAdapterService/
|
|
20
|
+
│ └── loggerService/
|
|
21
|
+
└── shared/
|
|
22
|
+
├── metadata/
|
|
23
|
+
└── utils
|
|
24
|
+
└── zodHelper
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Driven Ports
|
|
28
|
+
|
|
29
|
+
- **LoggerPort**: A generalized logging interface for various frameworks and packages, supporting uniform logging across the repository.
|
|
30
|
+
|
|
31
|
+
- **ImageTrackerPort**: A unified interface for image tracking operations, supporting seamless integration with different storage mechanisms.
|
|
32
|
+
|
|
33
|
+
## Adapters
|
|
34
|
+
|
|
35
|
+
- **ApolloTrackAdapter**: Implements `ImageTrackerPort`, providing integration with Wopee API.
|
|
36
|
+
|
|
37
|
+
- **ConsoleLogger**: Implements `LoggerPort`, providing simple logging to the console output.
|
|
38
|
+
|
|
39
|
+
- **NoLogger**: Implements `LoggerPort`, providing option to completely disable logging.
|
|
40
|
+
|
|
41
|
+
### Services
|
|
42
|
+
|
|
43
|
+
#### ApolloTrackAdapterService
|
|
44
|
+
|
|
45
|
+
Streamlise the creation of ApolloTrackerAdapter.
|
|
46
|
+
|
|
47
|
+
#### LoggerService
|
|
48
|
+
|
|
49
|
+
Streamlise the craetion of adapters implementing LoggerPort.
|
|
50
|
+
|
|
51
|
+
## Shared
|
|
52
|
+
|
|
53
|
+
### utils
|
|
54
|
+
|
|
55
|
+
#### ZodHelper
|
|
56
|
+
|
|
57
|
+
Implementing common wrappers around zod.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationScenarioPayloadSchema: z.ZodObject<{
|
|
3
|
+
suiteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
scenarioName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
suiteName?: string | null | undefined;
|
|
7
|
+
scenarioName?: string | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
suiteName?: string | null | undefined;
|
|
10
|
+
scenarioName?: string | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type CreateIntegrationScenarioPayload = z.infer<typeof CreateIntegrationScenarioPayloadSchema>;
|
|
13
|
+
export { CreateIntegrationScenarioPayload, CreateIntegrationScenarioPayloadSchema };
|
|
14
|
+
//# sourceMappingURL=createIntegrationScenarioPayload.interface.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationScenarioPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationScenarioPayloadSchema = zod_1.z.object({
|
|
6
|
+
suiteName: zod_1.z.string().nullable().optional(),
|
|
7
|
+
scenarioName: zod_1.z.string().nullable().optional(),
|
|
8
|
+
});
|
|
9
|
+
exports.CreateIntegrationScenarioPayloadSchema = CreateIntegrationScenarioPayloadSchema;
|
|
10
|
+
//# sourceMappingURL=createIntegrationScenarioPayload.interface.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationStepPayloadSchema: z.ZodObject<{
|
|
3
|
+
imageBase64: z.ZodString;
|
|
4
|
+
stepName: z.ZodString;
|
|
5
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
customTags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
scenarioName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
suiteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
viewport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
imageBase64: string;
|
|
13
|
+
stepName: string;
|
|
14
|
+
suiteName?: string | null | undefined;
|
|
15
|
+
scenarioName?: string | null | undefined;
|
|
16
|
+
comment?: string | null | undefined;
|
|
17
|
+
customTags?: string | null | undefined;
|
|
18
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
19
|
+
viewport?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
imageBase64: string;
|
|
22
|
+
stepName: string;
|
|
23
|
+
suiteName?: string | null | undefined;
|
|
24
|
+
scenarioName?: string | null | undefined;
|
|
25
|
+
comment?: string | null | undefined;
|
|
26
|
+
customTags?: string | null | undefined;
|
|
27
|
+
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
28
|
+
viewport?: string | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
type CreateIntegrationStepPayload = z.infer<typeof CreateIntegrationStepPayloadSchema>;
|
|
31
|
+
export { CreateIntegrationStepPayload, CreateIntegrationStepPayloadSchema };
|
|
32
|
+
//# sourceMappingURL=createIntegrationStepPayload.interface.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationStepPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationStepPayloadSchema = zod_1.z.object({
|
|
6
|
+
imageBase64: zod_1.z.string(),
|
|
7
|
+
stepName: zod_1.z.string(),
|
|
8
|
+
comment: zod_1.z.string().nullable().optional(),
|
|
9
|
+
customTags: zod_1.z.string().nullable().optional(),
|
|
10
|
+
pixelToPixelDiffTolerance: zod_1.z.number().nullable().optional(),
|
|
11
|
+
scenarioName: zod_1.z.string().nullable().optional(),
|
|
12
|
+
suiteName: zod_1.z.string().nullable().optional(),
|
|
13
|
+
viewport: zod_1.z.string().nullable().optional(),
|
|
14
|
+
});
|
|
15
|
+
exports.CreateIntegrationStepPayloadSchema = CreateIntegrationStepPayloadSchema;
|
|
16
|
+
//# sourceMappingURL=createIntegrationStepPayload.interface.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const CreateIntegrationSuitePayloadSchema: z.ZodObject<{
|
|
3
|
+
suiteName: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
suiteName: string;
|
|
6
|
+
}, {
|
|
7
|
+
suiteName: string;
|
|
8
|
+
}>;
|
|
9
|
+
type CreateIntegrationSuitePayload = z.infer<typeof CreateIntegrationSuitePayloadSchema>;
|
|
10
|
+
export { CreateIntegrationSuitePayload, CreateIntegrationSuitePayloadSchema };
|
|
11
|
+
//# sourceMappingURL=createIntegrationSuitePayload.interface.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateIntegrationSuitePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CreateIntegrationSuitePayloadSchema = zod_1.z.object({
|
|
6
|
+
suiteName: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
exports.CreateIntegrationSuitePayloadSchema = CreateIntegrationSuitePayloadSchema;
|
|
9
|
+
//# sourceMappingURL=createIntegrationSuitePayload.interface.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreateIntegrationScenarioPayload } from './createIntegrationScenarioPayload.interface';
|
|
2
|
+
import { CreateIntegrationScenarioPayloadSchema } from './createIntegrationScenarioPayload.interface';
|
|
3
|
+
import { CreateIntegrationStepPayload } from './createIntegrationStepPayload.interface';
|
|
4
|
+
import { CreateIntegrationStepPayloadSchema } from './createIntegrationStepPayload.interface';
|
|
5
|
+
import { CreateIntegrationSuitePayload } from './createIntegrationSuitePayload.interface';
|
|
6
|
+
import { CreateIntegrationSuitePayloadSchema } from './createIntegrationSuitePayload.interface';
|
|
7
|
+
import { IntegrationScenario } from './integrationScenario.interface';
|
|
8
|
+
import { IntegrationScenarioSchema } from './integrationScenario.interface';
|
|
9
|
+
import { IntegrationStep } from './integrationStep.interface';
|
|
10
|
+
import { IntegrationStepSchema } from './integrationStep.interface';
|
|
11
|
+
import { IntegrationSuite } from './integrationSuite.interface';
|
|
12
|
+
import { IntegrationSuiteSchema } from './integrationSuite.interface';
|
|
13
|
+
export { CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationScenarioPayloadSchema, CreateIntegrationStepPayloadSchema, CreateIntegrationSuitePayloadSchema, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationScenarioSchema, IntegrationStepSchema, IntegrationSuiteSchema, IntegrationSuite, };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationSuiteSchema = exports.IntegrationStepSchema = exports.IntegrationScenarioSchema = exports.CreateIntegrationSuitePayloadSchema = exports.CreateIntegrationStepPayloadSchema = exports.CreateIntegrationScenarioPayloadSchema = void 0;
|
|
4
|
+
const createIntegrationScenarioPayload_interface_1 = require("./createIntegrationScenarioPayload.interface");
|
|
5
|
+
Object.defineProperty(exports, "CreateIntegrationScenarioPayloadSchema", { enumerable: true, get: function () { return createIntegrationScenarioPayload_interface_1.CreateIntegrationScenarioPayloadSchema; } });
|
|
6
|
+
const createIntegrationStepPayload_interface_1 = require("./createIntegrationStepPayload.interface");
|
|
7
|
+
Object.defineProperty(exports, "CreateIntegrationStepPayloadSchema", { enumerable: true, get: function () { return createIntegrationStepPayload_interface_1.CreateIntegrationStepPayloadSchema; } });
|
|
8
|
+
const createIntegrationSuitePayload_interface_1 = require("./createIntegrationSuitePayload.interface");
|
|
9
|
+
Object.defineProperty(exports, "CreateIntegrationSuitePayloadSchema", { enumerable: true, get: function () { return createIntegrationSuitePayload_interface_1.CreateIntegrationSuitePayloadSchema; } });
|
|
10
|
+
const integrationScenario_interface_1 = require("./integrationScenario.interface");
|
|
11
|
+
Object.defineProperty(exports, "IntegrationScenarioSchema", { enumerable: true, get: function () { return integrationScenario_interface_1.IntegrationScenarioSchema; } });
|
|
12
|
+
const integrationStep_interface_1 = require("./integrationStep.interface");
|
|
13
|
+
Object.defineProperty(exports, "IntegrationStepSchema", { enumerable: true, get: function () { return integrationStep_interface_1.IntegrationStepSchema; } });
|
|
14
|
+
const integrationSuite_interface_1 = require("./integrationSuite.interface");
|
|
15
|
+
Object.defineProperty(exports, "IntegrationSuiteSchema", { enumerable: true, get: function () { return integrationSuite_interface_1.IntegrationSuiteSchema; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const IntegrationScenarioSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
uuid: string;
|
|
11
|
+
}>;
|
|
12
|
+
type IntegrationScenario = z.infer<typeof IntegrationScenarioSchema>;
|
|
13
|
+
export { IntegrationScenario, IntegrationScenarioSchema };
|
|
14
|
+
//# sourceMappingURL=integrationScenario.interface.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationScenarioSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const IntegrationScenarioSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports.IntegrationScenarioSchema = IntegrationScenarioSchema;
|
|
10
|
+
//# sourceMappingURL=integrationScenario.interface.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare enum ValidationStatus {
|
|
3
|
+
AUTO_APPROVED = "autoApproved",
|
|
4
|
+
NEW = "new",
|
|
5
|
+
OK = "ok",
|
|
6
|
+
UNRESOLVED = "unresolved"
|
|
7
|
+
}
|
|
8
|
+
declare const ValidationStatusSchema: z.ZodNativeEnum<typeof ValidationStatus>;
|
|
9
|
+
declare const IntegrationStepSchema: z.ZodObject<{
|
|
10
|
+
stepName: z.ZodString;
|
|
11
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof ValidationStatus>>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
stepName: string;
|
|
15
|
+
status?: ValidationStatus | null | undefined;
|
|
16
|
+
imageUrl?: string | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
stepName: string;
|
|
19
|
+
status?: ValidationStatus | null | undefined;
|
|
20
|
+
imageUrl?: string | null | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
type IntegrationStep = z.infer<typeof IntegrationStepSchema>;
|
|
23
|
+
export { ValidationStatus, IntegrationStep, ValidationStatusSchema, IntegrationStepSchema };
|
|
24
|
+
//# sourceMappingURL=integrationStep.interface.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationStepSchema = exports.ValidationStatusSchema = exports.ValidationStatus = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var ValidationStatus;
|
|
6
|
+
(function (ValidationStatus) {
|
|
7
|
+
ValidationStatus["AUTO_APPROVED"] = "autoApproved";
|
|
8
|
+
ValidationStatus["NEW"] = "new";
|
|
9
|
+
ValidationStatus["OK"] = "ok";
|
|
10
|
+
ValidationStatus["UNRESOLVED"] = "unresolved";
|
|
11
|
+
})(ValidationStatus || (exports.ValidationStatus = ValidationStatus = {}));
|
|
12
|
+
const ValidationStatusSchema = zod_1.z.nativeEnum(ValidationStatus);
|
|
13
|
+
exports.ValidationStatusSchema = ValidationStatusSchema;
|
|
14
|
+
const IntegrationStepSchema = zod_1.z.object({
|
|
15
|
+
stepName: zod_1.z.string(),
|
|
16
|
+
imageUrl: zod_1.z.string().nullable().optional(),
|
|
17
|
+
status: ValidationStatusSchema.nullable().optional(),
|
|
18
|
+
});
|
|
19
|
+
exports.IntegrationStepSchema = IntegrationStepSchema;
|
|
20
|
+
//# sourceMappingURL=integrationStep.interface.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const IntegrationSuiteSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
uuid: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
uuid: string;
|
|
11
|
+
}>;
|
|
12
|
+
type IntegrationSuite = z.infer<typeof IntegrationSuiteSchema>;
|
|
13
|
+
export { IntegrationSuite, IntegrationSuiteSchema };
|
|
14
|
+
//# sourceMappingURL=integrationSuite.interface.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationSuiteSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const IntegrationSuiteSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports.IntegrationSuiteSchema = IntegrationSuiteSchema;
|
|
10
|
+
//# sourceMappingURL=integrationSuite.interface.js.map
|
|
@@ -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("./entities"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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("./ports/index"), exports);
|
|
18
|
+
__exportStar(require("./domain/index"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite } from '../domain/entities';
|
|
2
|
+
export declare abstract class ApiPort {
|
|
3
|
+
/** ApiPort is an abstract base class providing a template for integration management.
|
|
4
|
+
* This class includes methods for starting and stopping integration suites and scenarios,
|
|
5
|
+
* as well as creating integration steps. The specific implementations of these methods
|
|
6
|
+
* need to be provided by subclasses.
|
|
7
|
+
*/
|
|
8
|
+
abstract get suite(): IntegrationSuite;
|
|
9
|
+
abstract get scenario(): IntegrationScenario;
|
|
10
|
+
abstract createIntegrationSuite(payload: CreateIntegrationSuitePayload): Promise<IntegrationSuite>;
|
|
11
|
+
abstract stopIntegrationSuite(): Promise<void>;
|
|
12
|
+
abstract createIntegrationScenario(payload: CreateIntegrationScenarioPayload): Promise<IntegrationScenario>;
|
|
13
|
+
abstract stopIntegrationScenario(): Promise<void>;
|
|
14
|
+
abstract createIntegrationStep(payload: CreateIntegrationStepPayload): Promise<IntegrationStep>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoggerPort = exports.ApiPort = void 0;
|
|
4
|
+
const api_1 = require("./api");
|
|
5
|
+
Object.defineProperty(exports, "ApiPort", { enumerable: true, get: function () { return api_1.ApiPort; } });
|
|
6
|
+
const logger_1 = require("./logger");
|
|
7
|
+
Object.defineProperty(exports, "LoggerPort", { enumerable: true, get: function () { return logger_1.LoggerPort; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
require("process/browser");
|
|
18
|
+
// needed for LS compatibility
|
|
19
|
+
__exportStar(require("./shared"), exports);
|
|
20
|
+
__exportStar(require("./core"), exports);
|
|
21
|
+
__exportStar(require("./infrastructure"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiPort, CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite, LoggerPort } from '../../../core';
|
|
2
|
+
import { ApolloAdapterConfig } from './interface';
|
|
3
|
+
declare class ApolloAdapter extends ApiPort {
|
|
4
|
+
private _config;
|
|
5
|
+
private _logger;
|
|
6
|
+
private _scenario;
|
|
7
|
+
private _suite;
|
|
8
|
+
constructor(config: ApolloAdapterConfig, logger: LoggerPort);
|
|
9
|
+
private _post;
|
|
10
|
+
get suite(): IntegrationSuite;
|
|
11
|
+
get scenario(): IntegrationScenario;
|
|
12
|
+
createIntegrationSuite(payload: CreateIntegrationSuitePayload): Promise<IntegrationSuite>;
|
|
13
|
+
stopIntegrationSuite(): Promise<void>;
|
|
14
|
+
createIntegrationScenario(payload: CreateIntegrationScenarioPayload): Promise<IntegrationScenario>;
|
|
15
|
+
stopIntegrationScenario(): Promise<void>;
|
|
16
|
+
createIntegrationStep(payload: CreateIntegrationStepPayload): Promise<IntegrationStep>;
|
|
17
|
+
}
|
|
18
|
+
export { ApolloAdapter };
|
|
19
|
+
//# sourceMappingURL=adapter.d.ts.map
|