@wopee-io/wopee.wdio 5.2.5 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/build/domain/model/config.interface.d.ts +15 -60
- package/build/domain/model/config.interface.d.ts.map +1 -1
- package/build/domain/service/wopeeService.d.ts.map +1 -1
- package/build/domain/service/wopeeService.js +2 -0
- package/build/domain/service/wopeeService.js.map +1 -1
- package/build/utils/versionMetadata.d.ts.map +1 -1
- package/build/utils/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +1 -7
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +1 -23
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +1 -5
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +1 -7
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +3 -11
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +1 -7
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.d.ts +3 -11
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.js +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssertPayload.interface.d.ts +1 -9
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +9 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +30 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +15 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +17 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.d.ts +36 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.js +63 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +41 -224
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +16 -8
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.d.ts +52 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/retry.js +122 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +3 -7
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +5 -10
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +2 -1
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +10 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +8 -0
- package/node_modules/@autonomous-testing/sdk/package.json +2 -2
- package/node_modules/debug/README.md +1 -1
- package/node_modules/debug/package.json +8 -4
- package/node_modules/debug/src/browser.js +2 -1
- package/node_modules/debug/src/common.js +57 -39
- package/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/follow-redirects/index.js +11 -6
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/ms/index.js +1 -1
- package/node_modules/ms/license.md +1 -1
- package/node_modules/ms/package.json +5 -4
- package/node_modules/ms/readme.md +1 -2
- package/node_modules/zod/README.md +34 -24
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +22 -3
- package/node_modules/zod/index.d.cts +3 -4
- package/node_modules/zod/index.d.ts +3 -4
- package/node_modules/zod/index.js +7 -4
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +44 -15
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -4
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +23 -13
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
- package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
- package/node_modules/zod/src/v3/types.ts +8 -6
- package/node_modules/zod/src/v4/classic/checks.ts +3 -0
- package/node_modules/zod/src/v4/classic/compat.ts +30 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +61 -39
- package/node_modules/zod/src/v4/classic/external.ts +18 -11
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +57 -2
- package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +442 -161
- package/node_modules/zod/src/v4/core/checks.ts +134 -151
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +146 -50
- package/node_modules/zod/src/v4/core/doc.ts +18 -10
- package/node_modules/zod/src/v4/core/errors.ts +221 -102
- package/node_modules/zod/src/v4/core/index.ts +5 -1
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +252 -37
- package/node_modules/zod/src/v4/core/regexes.ts +112 -30
- package/node_modules/zod/src/v4/core/registries.ts +19 -10
- package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
- package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
- package/node_modules/zod/src/v4/core/util.ts +675 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +22 -27
- package/node_modules/zod/src/v4/locales/az.ts +22 -27
- package/node_modules/zod/src/v4/locales/be.ts +31 -27
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +22 -28
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +26 -45
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +24 -27
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +38 -29
- package/node_modules/zod/src/v4/locales/eo.ts +25 -27
- package/node_modules/zod/src/v4/locales/es.ts +53 -33
- package/node_modules/zod/src/v4/locales/fa.ts +24 -27
- package/node_modules/zod/src/v4/locales/fi.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
- package/node_modules/zod/src/v4/locales/fr.ts +58 -43
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +208 -80
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +24 -28
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +22 -27
- package/node_modules/zod/src/v4/locales/index.ts +24 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +24 -28
- package/node_modules/zod/src/v4/locales/ja.ts +24 -27
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +3 -122
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +22 -27
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +24 -28
- package/node_modules/zod/src/v4/locales/ms.ts +23 -27
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +37 -37
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +26 -29
- package/node_modules/zod/src/v4/locales/ota.ts +25 -28
- package/node_modules/zod/src/v4/locales/pl.ts +24 -27
- package/node_modules/zod/src/v4/locales/ps.ts +24 -26
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +107 -71
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +31 -27
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +24 -27
- package/node_modules/zod/src/v4/locales/sv.ts +26 -29
- package/node_modules/zod/src/v4/locales/ta.ts +25 -27
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +25 -27
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +22 -27
- package/node_modules/zod/src/v4/locales/ua.ts +3 -122
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +25 -27
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +24 -27
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
- package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +15 -3
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/iso.ts +8 -4
- package/node_modules/zod/src/v4/mini/parse.ts +16 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
- package/node_modules/zod/src/v4-mini/index.ts +3 -1
- package/node_modules/zod/v3/ZodError.cjs +42 -13
- package/node_modules/zod/v3/ZodError.d.cts +6 -6
- package/node_modules/zod/v3/ZodError.d.ts +6 -6
- package/node_modules/zod/v3/ZodError.js +23 -13
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/locales/en.cjs +1 -0
- package/node_modules/zod/v3/locales/en.d.cts +1 -1
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +28 -5
- package/node_modules/zod/v3/types.d.cts +4 -1
- package/node_modules/zod/v3/types.d.ts +4 -1
- package/node_modules/zod/v3/types.js +9 -5
- package/node_modules/zod/v4/classic/checks.cjs +22 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +24 -1
- package/node_modules/zod/v4/classic/compat.d.cts +13 -11
- package/node_modules/zod/v4/classic/compat.d.ts +13 -11
- package/node_modules/zod/v4/classic/compat.js +4 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +63 -28
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +45 -29
- package/node_modules/zod/v4/classic/external.cjs +55 -28
- package/node_modules/zod/v4/classic/external.d.cts +8 -2
- package/node_modules/zod/v4/classic/external.d.ts +8 -2
- package/node_modules/zod/v4/classic/external.js +7 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -1
- package/node_modules/zod/v4/classic/parse.d.cts +21 -0
- package/node_modules/zod/v4/classic/parse.d.ts +21 -0
- package/node_modules/zod/v4/classic/parse.js +10 -0
- package/node_modules/zod/v4/classic/schemas.cjs +805 -238
- package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
- package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
- package/node_modules/zod/v4/classic/schemas.js +766 -237
- package/node_modules/zod/v4/core/api.cjs +284 -54
- package/node_modules/zod/v4/core/api.d.cts +133 -82
- package/node_modules/zod/v4/core/api.d.ts +133 -82
- package/node_modules/zod/v4/core/api.js +255 -54
- package/node_modules/zod/v4/core/checks.cjs +100 -130
- package/node_modules/zod/v4/core/checks.d.cts +32 -16
- package/node_modules/zod/v4/core/checks.d.ts +32 -16
- package/node_modules/zod/v4/core/checks.js +80 -129
- package/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1866 -0
- package/node_modules/zod/v4/core/core.cjs +120 -20
- package/node_modules/zod/v4/core/core.d.cts +40 -7
- package/node_modules/zod/v4/core/core.d.ts +40 -7
- package/node_modules/zod/v4/core/core.js +101 -21
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +4 -2
- package/node_modules/zod/v4/core/doc.d.ts +4 -2
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +151 -60
- package/node_modules/zod/v4/core/errors.d.cts +41 -24
- package/node_modules/zod/v4/core/errors.d.ts +41 -24
- package/node_modules/zod/v4/core/errors.js +132 -60
- package/node_modules/zod/v4/core/index.cjs +28 -2
- package/node_modules/zod/v4/core/index.d.cts +5 -1
- package/node_modules/zod/v4/core/index.d.ts +5 -1
- package/node_modules/zod/v4/core/index.js +5 -1
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
- package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +183 -37
- package/node_modules/zod/v4/core/parse.d.cts +34 -7
- package/node_modules/zod/v4/core/parse.d.ts +34 -7
- package/node_modules/zod/v4/core/parse.js +154 -36
- package/node_modules/zod/v4/core/regexes.cjs +137 -31
- package/node_modules/zod/v4/core/regexes.d.cts +30 -2
- package/node_modules/zod/v4/core/regexes.d.ts +30 -2
- package/node_modules/zod/v4/core/regexes.js +90 -29
- package/node_modules/zod/v4/core/registries.cjs +26 -7
- package/node_modules/zod/v4/core/registries.d.cts +2 -2
- package/node_modules/zod/v4/core/registries.d.ts +2 -2
- package/node_modules/zod/v4/core/registries.js +9 -9
- package/node_modules/zod/v4/core/schemas.cjs +1373 -422
- package/node_modules/zod/v4/core/schemas.d.cts +276 -42
- package/node_modules/zod/v4/core/schemas.d.ts +276 -42
- package/node_modules/zod/v4/core/schemas.js +1341 -422
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
- package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
- package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
- package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
- package/node_modules/zod/v4/core/to-json-schema.js +602 -800
- package/node_modules/zod/v4/core/util.cjs +580 -155
- package/node_modules/zod/v4/core/util.d.cts +98 -1
- package/node_modules/zod/v4/core/util.d.ts +98 -1
- package/node_modules/zod/v4/core/util.js +536 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +20 -24
- package/node_modules/zod/v4/locales/ar.d.cts +2 -1
- package/node_modules/zod/v4/locales/ar.js +19 -24
- package/node_modules/zod/v4/locales/az.cjs +20 -24
- package/node_modules/zod/v4/locales/az.d.cts +2 -1
- package/node_modules/zod/v4/locales/az.js +19 -24
- package/node_modules/zod/v4/locales/be.cjs +29 -24
- package/node_modules/zod/v4/locales/be.d.cts +2 -1
- package/node_modules/zod/v4/locales/be.js +28 -24
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +20 -25
- package/node_modules/zod/v4/locales/ca.d.cts +2 -1
- package/node_modules/zod/v4/locales/ca.js +19 -25
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +24 -42
- package/node_modules/zod/v4/locales/cs.d.cts +2 -1
- package/node_modules/zod/v4/locales/cs.js +23 -42
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +22 -24
- package/node_modules/zod/v4/locales/de.d.cts +2 -1
- package/node_modules/zod/v4/locales/de.js +21 -24
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +35 -28
- package/node_modules/zod/v4/locales/en.d.cts +2 -2
- package/node_modules/zod/v4/locales/en.d.ts +0 -1
- package/node_modules/zod/v4/locales/en.js +34 -26
- package/node_modules/zod/v4/locales/eo.cjs +23 -26
- package/node_modules/zod/v4/locales/eo.d.cts +2 -2
- package/node_modules/zod/v4/locales/eo.d.ts +0 -1
- package/node_modules/zod/v4/locales/eo.js +22 -24
- package/node_modules/zod/v4/locales/es.cjs +51 -31
- package/node_modules/zod/v4/locales/es.d.cts +2 -1
- package/node_modules/zod/v4/locales/es.js +50 -31
- package/node_modules/zod/v4/locales/fa.cjs +22 -24
- package/node_modules/zod/v4/locales/fa.d.cts +2 -1
- package/node_modules/zod/v4/locales/fa.js +21 -24
- package/node_modules/zod/v4/locales/fi.cjs +20 -24
- package/node_modules/zod/v4/locales/fi.d.cts +2 -1
- package/node_modules/zod/v4/locales/fi.js +19 -24
- package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
- package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr-CA.js +19 -24
- package/node_modules/zod/v4/locales/fr.cjs +53 -39
- package/node_modules/zod/v4/locales/fr.d.cts +2 -1
- package/node_modules/zod/v4/locales/fr.js +52 -39
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +183 -78
- package/node_modules/zod/v4/locales/he.d.cts +2 -1
- package/node_modules/zod/v4/locales/he.js +182 -78
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +22 -25
- package/node_modules/zod/v4/locales/hu.d.cts +2 -1
- package/node_modules/zod/v4/locales/hu.js +21 -25
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +20 -24
- package/node_modules/zod/v4/locales/id.d.cts +2 -1
- package/node_modules/zod/v4/locales/id.js +19 -24
- package/node_modules/zod/v4/locales/index.cjs +69 -1
- package/node_modules/zod/v4/locales/index.d.cts +24 -0
- package/node_modules/zod/v4/locales/index.d.ts +24 -0
- package/node_modules/zod/v4/locales/index.js +24 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +22 -25
- package/node_modules/zod/v4/locales/it.d.cts +2 -1
- package/node_modules/zod/v4/locales/it.js +21 -25
- package/node_modules/zod/v4/locales/ja.cjs +22 -24
- package/node_modules/zod/v4/locales/ja.d.cts +2 -1
- package/node_modules/zod/v4/locales/ja.js +21 -24
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +6 -137
- package/node_modules/zod/v4/locales/kh.d.cts +2 -1
- package/node_modules/zod/v4/locales/kh.d.ts +1 -0
- package/node_modules/zod/v4/locales/kh.js +3 -115
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +20 -24
- package/node_modules/zod/v4/locales/ko.d.cts +2 -1
- package/node_modules/zod/v4/locales/ko.js +19 -24
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +22 -25
- package/node_modules/zod/v4/locales/mk.d.cts +2 -1
- package/node_modules/zod/v4/locales/mk.js +21 -25
- package/node_modules/zod/v4/locales/ms.cjs +21 -24
- package/node_modules/zod/v4/locales/ms.d.cts +2 -1
- package/node_modules/zod/v4/locales/ms.js +20 -24
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +31 -32
- package/node_modules/zod/v4/locales/nl.d.cts +2 -1
- package/node_modules/zod/v4/locales/nl.js +30 -32
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +24 -26
- package/node_modules/zod/v4/locales/no.d.cts +2 -1
- package/node_modules/zod/v4/locales/no.js +23 -26
- package/node_modules/zod/v4/locales/ota.cjs +23 -25
- package/node_modules/zod/v4/locales/ota.d.cts +2 -1
- package/node_modules/zod/v4/locales/ota.js +22 -25
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +22 -24
- package/node_modules/zod/v4/locales/pl.d.cts +2 -1
- package/node_modules/zod/v4/locales/pl.js +21 -24
- package/node_modules/zod/v4/locales/ps.cjs +22 -24
- package/node_modules/zod/v4/locales/ps.d.cts +2 -1
- package/node_modules/zod/v4/locales/ps.js +21 -24
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +95 -68
- package/node_modules/zod/v4/locales/pt.d.cts +2 -1
- package/node_modules/zod/v4/locales/pt.js +94 -68
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +29 -24
- package/node_modules/zod/v4/locales/ru.d.cts +2 -1
- package/node_modules/zod/v4/locales/ru.js +28 -24
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +22 -24
- package/node_modules/zod/v4/locales/sl.d.cts +2 -1
- package/node_modules/zod/v4/locales/sl.js +21 -24
- package/node_modules/zod/v4/locales/sv.cjs +24 -26
- package/node_modules/zod/v4/locales/sv.d.cts +2 -1
- package/node_modules/zod/v4/locales/sv.js +23 -26
- package/node_modules/zod/v4/locales/ta.cjs +23 -24
- package/node_modules/zod/v4/locales/ta.d.cts +2 -1
- package/node_modules/zod/v4/locales/ta.js +22 -24
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +23 -24
- package/node_modules/zod/v4/locales/th.d.cts +2 -1
- package/node_modules/zod/v4/locales/th.js +22 -24
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +20 -26
- package/node_modules/zod/v4/locales/tr.d.cts +2 -2
- package/node_modules/zod/v4/locales/tr.d.ts +0 -1
- package/node_modules/zod/v4/locales/tr.js +19 -24
- package/node_modules/zod/v4/locales/ua.cjs +6 -137
- package/node_modules/zod/v4/locales/ua.d.cts +2 -1
- package/node_modules/zod/v4/locales/ua.d.ts +1 -0
- package/node_modules/zod/v4/locales/ua.js +3 -115
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +23 -24
- package/node_modules/zod/v4/locales/ur.d.cts +2 -1
- package/node_modules/zod/v4/locales/ur.js +22 -24
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +22 -24
- package/node_modules/zod/v4/locales/vi.d.cts +2 -1
- package/node_modules/zod/v4/locales/vi.js +21 -24
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
- package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-CN.js +22 -24
- package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
- package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
- package/node_modules/zod/v4/locales/zh-TW.js +19 -24
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +24 -0
- package/node_modules/zod/v4/mini/coerce.js +5 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +36 -3
- package/node_modules/zod/v4/mini/external.d.cts +7 -2
- package/node_modules/zod/v4/mini/external.d.ts +7 -2
- package/node_modules/zod/v4/mini/external.js +4 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +27 -4
- package/node_modules/zod/v4/mini/iso.js +8 -4
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +30 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +390 -82
- package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
- package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
- package/node_modules/zod/v4/mini/schemas.js +329 -59
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +35 -1
- package/node_modules/zod/v4-mini/index.d.cts +3 -1
- package/node_modules/zod/v4-mini/index.d.ts +3 -1
- package/node_modules/zod/v4-mini/index.js +3 -1
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +23 -16
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/CHANGELOG.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/LICENSE +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/MIGRATION_GUIDE.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/browser/axios.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/node/axios.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.cts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/adapters.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/fetch.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/http.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/xhr.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CancelToken.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CanceledError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/isCancel.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/Axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/InterceptorManager.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/buildFullPath.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/dispatchRequest.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/mergeConfig.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/methodList.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/setFormDataHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/settle.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/transformData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/transitional.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/data.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosTransformStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosURLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/Http2Sessions.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/HttpStatusCode.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/ZlibHeaderTransformStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/bind.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/buildURL.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/callbackify.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/combineURLs.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/composeSignals.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/cookies.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/deprecatedMethod.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/estimateDataURLDecodedBytes.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToJSON.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/fromDataURI.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAbsoluteURL.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAxiosError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isURLSameOrigin.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/normalizeURLForProtocolCheck.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/null.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseProtocol.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/progressEventReducer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/readBlob.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/resolveConfig.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/sanitizeHeaderValue.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/shouldBypassProxy.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/speedometer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/spread.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/throttle.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toFormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toURLEncodedForm.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/trackStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/validator.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/Blob.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/URLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/common/utils.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/Buffer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/URLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/utils.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/index.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/promisify.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/CHANGELOG.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/License +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/browser.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/form_data.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/populate.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/package.json +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/README.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/db.json +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/index.js +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/LICENSE +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/package.json +0 -0
package/README.md
CHANGED
|
@@ -5,12 +5,26 @@ Catch visual regressions in your [WebdriverIO](https://webdriver.io/) tests with
|
|
|
5
5
|
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
6
6
|
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
7
7
|
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
- Node.js 20 or newer
|
|
11
|
+
- WebdriverIO 8 or 9, installed in your project
|
|
12
|
+
|
|
13
|
+
`webdriverio` is a peer dependency, so the plugin uses the exact version your test
|
|
14
|
+
suite already runs rather than pulling a second copy of it.
|
|
15
|
+
|
|
8
16
|
## Installation
|
|
9
17
|
|
|
10
18
|
```bash
|
|
11
19
|
npm install @wopee-io/wopee.wdio
|
|
12
20
|
```
|
|
13
21
|
|
|
22
|
+
If your project does not already depend on WebdriverIO directly:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @wopee-io/wopee.wdio webdriverio
|
|
26
|
+
```
|
|
27
|
+
|
|
14
28
|
## Quick Start
|
|
15
29
|
|
|
16
30
|
Add the Wopee service to your WebdriverIO config:
|
|
@@ -2,85 +2,40 @@ import { LocalSaveScreenshotAdapterOptions } from '../../adapter/driven/localSav
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const ScreenshotValidationOptionsSchema: z.ZodObject<{
|
|
4
4
|
apiKey: z.ZodString;
|
|
5
|
-
apiUrl: z.ZodDefault<z.
|
|
5
|
+
apiUrl: z.ZodDefault<z.ZodURL>;
|
|
6
6
|
branchName: z.ZodDefault<z.ZodString>;
|
|
7
7
|
browser: z.ZodOptional<z.ZodString>;
|
|
8
8
|
comment: z.ZodOptional<z.ZodString>;
|
|
9
9
|
customTags: z.ZodOptional<z.ZodString>;
|
|
10
10
|
device: z.ZodOptional<z.ZodString>;
|
|
11
|
-
enableSoftAssert: z.ZodDefault<z.
|
|
11
|
+
enableSoftAssert: z.ZodDefault<z.ZodSchema<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
12
|
+
maxRetries: z.ZodDefault<z.ZodSchema<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
|
|
12
13
|
os: z.ZodOptional<z.ZodString>;
|
|
13
|
-
pixelToPixelDiffTolerance: z.ZodOptional<z.
|
|
14
|
+
pixelToPixelDiffTolerance: z.ZodOptional<z.ZodSchema<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
|
|
14
15
|
projectUuid: z.ZodString;
|
|
16
|
+
requestTimeoutMs: z.ZodDefault<z.ZodSchema<number, unknown, z.core.$ZodTypeInternals<number, unknown>>>;
|
|
15
17
|
viewport: z.ZodOptional<z.ZodString>;
|
|
16
18
|
baselineBranchName: z.ZodOptional<z.ZodString>;
|
|
17
19
|
suiteUuid: z.ZodOptional<z.ZodString>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
browser?: string;
|
|
22
|
-
comment?: string;
|
|
23
|
-
customTags?: string;
|
|
24
|
-
pixelToPixelDiffTolerance?: number;
|
|
25
|
-
viewport?: string;
|
|
26
|
-
baselineBranchName?: string;
|
|
27
|
-
apiKey?: string;
|
|
28
|
-
apiUrl?: string;
|
|
29
|
-
branchName?: string;
|
|
30
|
-
device?: string;
|
|
31
|
-
enableSoftAssert?: boolean;
|
|
32
|
-
os?: string;
|
|
33
|
-
projectUuid?: string;
|
|
34
|
-
suiteUuid?: string;
|
|
35
|
-
screenshotValidationEnabled?: boolean;
|
|
36
|
-
}, {
|
|
37
|
-
browser?: string;
|
|
38
|
-
comment?: string;
|
|
39
|
-
customTags?: string;
|
|
40
|
-
pixelToPixelDiffTolerance?: number;
|
|
41
|
-
viewport?: string;
|
|
42
|
-
baselineBranchName?: string;
|
|
43
|
-
apiKey?: string;
|
|
44
|
-
apiUrl?: string;
|
|
45
|
-
branchName?: string;
|
|
46
|
-
device?: string;
|
|
47
|
-
enableSoftAssert?: boolean;
|
|
48
|
-
os?: string;
|
|
49
|
-
projectUuid?: string;
|
|
50
|
-
suiteUuid?: string;
|
|
51
|
-
screenshotValidationEnabled?: boolean;
|
|
52
|
-
}>;
|
|
20
|
+
screenshotValidationEnabled: z.ZodDefault<z.ZodSchema<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
53
22
|
export type ScreenshotValidationOptions = z.infer<typeof ScreenshotValidationOptionsSchema>;
|
|
54
23
|
export declare const GeneralWopeeServiceOptionsSchema: z.ZodObject<{
|
|
55
|
-
isLandscape: z.ZodDefault<z.
|
|
56
|
-
},
|
|
57
|
-
isLandscape?: boolean;
|
|
58
|
-
}, {
|
|
59
|
-
isLandscape?: boolean;
|
|
60
|
-
}>;
|
|
24
|
+
isLandscape: z.ZodDefault<z.ZodSchema<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
61
26
|
export type GeneralWopeeServiceOptions = z.infer<typeof GeneralWopeeServiceOptionsSchema>;
|
|
62
27
|
export declare const ImageProcessingOptionsSchema: z.ZodObject<{
|
|
63
28
|
maskColor: z.ZodDefault<z.ZodString>;
|
|
64
|
-
mode: z.ZodDefault<z.ZodEnum<
|
|
29
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
30
|
+
masking: "masking";
|
|
31
|
+
cropping: "cropping";
|
|
32
|
+
none: "none";
|
|
33
|
+
}>>;
|
|
65
34
|
xLeft: z.ZodDefault<z.ZodNumber>;
|
|
66
35
|
xRight: z.ZodDefault<z.ZodNumber>;
|
|
67
36
|
yBottom: z.ZodDefault<z.ZodNumber>;
|
|
68
37
|
yTop: z.ZodDefault<z.ZodNumber>;
|
|
69
|
-
},
|
|
70
|
-
maskColor?: string;
|
|
71
|
-
mode?: "none" | "masking" | "cropping";
|
|
72
|
-
xLeft?: number;
|
|
73
|
-
xRight?: number;
|
|
74
|
-
yBottom?: number;
|
|
75
|
-
yTop?: number;
|
|
76
|
-
}, {
|
|
77
|
-
maskColor?: string;
|
|
78
|
-
mode?: "none" | "masking" | "cropping";
|
|
79
|
-
xLeft?: number;
|
|
80
|
-
xRight?: number;
|
|
81
|
-
yBottom?: number;
|
|
82
|
-
yTop?: number;
|
|
83
|
-
}>;
|
|
38
|
+
}, z.core.$strip>;
|
|
84
39
|
export type ImageProcessingOptions = z.infer<typeof ImageProcessingOptionsSchema>;
|
|
85
40
|
export interface WopeeServiceOptions {
|
|
86
41
|
imageProcessing?: ImageProcessingOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.interface.d.ts","sourceRoot":"","sources":["../../../lib/domain/model/config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAE9H,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"config.interface.d.ts","sourceRoot":"","sources":["../../../lib/domain/model/config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAE9H,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;iBAE5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,gCAAgC;;iBAE3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;IACrD,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wopeeService.d.ts","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EACL,aAAa,EAKb,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAA6B;IAC5C,oBAAoB,EAAE,aAAa,CAAC;IACpC,gBAAgB,EAAE,uBAAuB,CAAC;gBAE9B,OAAO,EAAE,mBAAmB;IAUxC,IAAI,MAAM,IAAI,mBAAmB,CAEhC;IAED;;;OAGG;IACH,OAAO,CAAC,yBAAyB;
|
|
1
|
+
{"version":3,"file":"wopeeService.d.ts","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EACL,aAAa,EAKb,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAA6B;IAC5C,oBAAoB,EAAE,aAAa,CAAC;IACpC,gBAAgB,EAAE,uBAAuB,CAAC;gBAE9B,OAAO,EAAE,mBAAmB;IAUxC,IAAI,MAAM,IAAI,mBAAmB,CAEhC;IAED;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IA2BjC;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMlD;;OAEG;IACG,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxD;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnC;;;;;;OAMG;IACG,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC;CASlE"}
|
|
@@ -35,6 +35,8 @@ export class WopeeService {
|
|
|
35
35
|
viewport: this._config.screenshotValidation?.viewport,
|
|
36
36
|
customTags: this._config.screenshotValidation?.customTags,
|
|
37
37
|
baselineBranchName: this._config.screenshotValidation?.baselineBranchName,
|
|
38
|
+
maxRetries: this._config.screenshotValidation.maxRetries,
|
|
39
|
+
requestTimeoutMs: this._config.screenshotValidation.requestTimeoutMs,
|
|
38
40
|
};
|
|
39
41
|
const logger = new WdioLoggerAdapter();
|
|
40
42
|
const apolloAdapterOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wopeeService.js","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,4GAA4G,CAAC;AAClK,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAEzG,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAKL,kCAAkC,EAElC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,OAAO,YAAY;IACf,OAAO,GAAwB,IAAI,CAAC;IAC5C,oBAAoB,CAAgB;IACpC,gBAAgB,CAA0B;IAE1C,YAAY,OAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAoC,EAAE,CAAC;QAEnE,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAC/D,CAAC;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;OAGG;IACK,yBAAyB;QAC/B,MAAM,mBAAmB,GAAwB;YAC/C,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;YACzD,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,gBAAgB;YACrE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW;YAC1D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM;YACjD,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE;YACzC,yBAAyB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,yBAAyB;YACtF,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ;YACrD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;YACzD,kBAAkB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"wopeeService.js","sourceRoot":"","sources":["../../../lib/domain/service/wopeeService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,4GAA4G,CAAC;AAClK,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAEzG,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAKL,kCAAkC,EAElC,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,OAAO,YAAY;IACf,OAAO,GAAwB,IAAI,CAAC;IAC5C,oBAAoB,CAAgB;IACpC,gBAAgB,CAA0B;IAE1C,YAAY,OAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,gBAAgB,GAAG,IAAI,oCAAoC,EAAE,CAAC;QAEnE,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAC/D,CAAC;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;OAGG;IACK,yBAAyB;QAC/B,MAAM,mBAAmB,GAAwB;YAC/C,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;YACzD,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,gBAAgB;YACrE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW;YAC1D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO;YACnD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,MAAM;YACjD,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE;YACzC,yBAAyB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,yBAAyB;YACtF,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ;YACrD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU;YACzD,kBAAkB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,kBAAkB;YACzE,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,UAAU;YACxD,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,gBAAgB;SACrE,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAyB;YACjD,mBAAmB,EAAE,mBAAmB;YACxC,aAAa,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE;SAC1C,CAAC;QACF,OAAO,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,SAAiB;QAChC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,YAAoB;QACtC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QAChB,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,CAAC;QAC5D,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,YAA0B;QACpC,IAAI,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;YAClE,MAAM,OAAO,GAAiC,kCAAkC,CAAC,KAAK,CAAC;gBACrF,GAAG,YAAY;aAChB,CAAC,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import { TrackOptions } from '../../core/domain/valueObjects/track.interface.js';\nimport { ClientSideOperationPort } from '../../core/ports/clientSideOperationPort.js';\nimport { DesktopBrowserClientOperationAdapter } from '../../infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js';\nimport { WdioLoggerAdapter } from '../../infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js';\nimport { WopeeServiceOptions } from '../model/config.interface.js';\nimport { loadConfig } from './configurationService.js';\nimport {\n ApolloAdapter,\n ApolloAdapterConfig,\n ApolloAdapterOptions,\n CreateIntegrationStepPayload,\n CreateIntegrationStepPayloadSchema,\n IntegrationStep,\n createApolloTrackAdapter,\n} from '@autonomous-testing/sdk';\n\nexport class WopeeService {\n private _config: WopeeServiceOptions = null;\n screenshotValidation: ApolloAdapter;\n clientSideScript: ClientSideOperationPort;\n\n constructor(options: WopeeServiceOptions) {\n this._config = loadConfig(options);\n\n this.clientSideScript = new DesktopBrowserClientOperationAdapter();\n\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n this.screenshotValidation = this._createApolloTrackAdapter();\n }\n }\n\n get config(): WopeeServiceOptions {\n return this._config;\n }\n\n /**\n * Creates an ApolloTrackAdapter for tracking and validating screenshots.\n * @returns {ApolloTrackAdapter} The initialized tracking adapter.\n */\n private _createApolloTrackAdapter(): ApolloAdapter {\n const apolloAdapterConfig: ApolloAdapterConfig = {\n apiKey: this._config.screenshotValidation.apiKey,\n apiUrl: this._config.screenshotValidation.apiUrl,\n branchName: this._config.screenshotValidation?.branchName,\n enableSoftAssert: this._config.screenshotValidation?.enableSoftAssert,\n projectUuid: this._config.screenshotValidation.projectUuid,\n browser: this._config.screenshotValidation?.browser,\n comment: this._config.screenshotValidation?.comment,\n device: this._config.screenshotValidation?.device,\n os: this._config.screenshotValidation?.os,\n pixelToPixelDiffTolerance: this._config.screenshotValidation.pixelToPixelDiffTolerance,\n viewport: this._config.screenshotValidation?.viewport,\n customTags: this._config.screenshotValidation?.customTags,\n baselineBranchName: this._config.screenshotValidation?.baselineBranchName,\n maxRetries: this._config.screenshotValidation.maxRetries,\n requestTimeoutMs: this._config.screenshotValidation.requestTimeoutMs,\n };\n\n const logger = new WdioLoggerAdapter();\n const apolloAdapterOptions: ApolloAdapterOptions = {\n apolloAdapterConfig: apolloAdapterConfig,\n loggerOptions: { loggerInstance: logger },\n };\n return createApolloTrackAdapter(apolloAdapterOptions);\n }\n\n /**\n * Starts the screenshot validation process, create/connect to Suite.\n */\n async startSuite(suiteName: string): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.createIntegrationSuite({ suiteName });\n }\n }\n\n /**\n * Starts the screenshot validation process, create/connect to Scenario.\n */\n async startScenario(scenarioName: string): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.createIntegrationScenario({ scenarioName });\n }\n }\n\n /**\n * Stops the scenario.\n */\n async stopScenario(): Promise<void> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n await this.screenshotValidation.stopIntegrationScenario();\n }\n }\n\n /**\n * Submits a specific image for tracking and validation.\n * @param name The name identifier for the image.\n * @param imageBase64 The image content in Base64 format.\n * @param trackImageOptions Optional additional parameters for image tracking.\n * @returns {IntegrationStep} The result of the tracking operation.\n */\n async track(trackOptions: TrackOptions): Promise<IntegrationStep> {\n if (this._config.screenshotValidation.screenshotValidationEnabled) {\n const payload: CreateIntegrationStepPayload = CreateIntegrationStepPayloadSchema.parse({\n ...trackOptions,\n });\n return await this.screenshotValidation.createIntegrationStep(payload);\n }\n return null;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionMetadata.d.ts","sourceRoot":"","sources":["../../lib/utils/versionMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"versionMetadata.d.ts","sourceRoot":"","sources":["../../lib/utils/versionMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,IAmB5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,8 +6,8 @@ import { execSync } from 'child_process';
|
|
|
6
6
|
* @param logger - WebdriverIO Logger instance for logging.
|
|
7
7
|
*/
|
|
8
8
|
const logVersionMetadata = (logger) => {
|
|
9
|
-
let hash = "
|
|
10
|
-
let version = "
|
|
9
|
+
let hash = "61f3f7ae3f09739e4b4fd596019472e036ca9774"
|
|
10
|
+
let version = "6.0.1"
|
|
11
11
|
// If version is not "__LOCAL__," get it from npm package
|
|
12
12
|
if (version === '__LOCAL__') {
|
|
13
13
|
version = process.env['npm_package_version'] || '__LOCAL__';
|
|
@@ -2,13 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const CreateIntegrationScenarioPayloadSchema: z.ZodObject<{
|
|
3
3
|
suiteName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
scenarioName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
},
|
|
6
|
-
suiteName?: string | null | undefined;
|
|
7
|
-
scenarioName?: string | null | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
suiteName?: string | null | undefined;
|
|
10
|
-
scenarioName?: string | null | undefined;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
type CreateIntegrationScenarioPayload = z.infer<typeof CreateIntegrationScenarioPayloadSchema>;
|
|
13
7
|
export { CreateIntegrationScenarioPayload, CreateIntegrationScenarioPayloadSchema };
|
|
14
8
|
//# sourceMappingURL=createIntegrationScenarioPayload.interface.d.ts.map
|
|
@@ -10,29 +10,7 @@ declare const CreateIntegrationStepPayloadSchema: z.ZodObject<{
|
|
|
10
10
|
viewport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
pageContentBase64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
baselineBranchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
},
|
|
14
|
-
imageBase64: string;
|
|
15
|
-
stepName: string;
|
|
16
|
-
suiteName?: string | null | undefined;
|
|
17
|
-
scenarioName?: string | null | undefined;
|
|
18
|
-
comment?: string | null | undefined;
|
|
19
|
-
customTags?: string | null | undefined;
|
|
20
|
-
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
21
|
-
viewport?: string | null | undefined;
|
|
22
|
-
pageContentBase64?: string | null | undefined;
|
|
23
|
-
baselineBranchName?: string | null | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
imageBase64: string;
|
|
26
|
-
stepName: string;
|
|
27
|
-
suiteName?: string | null | undefined;
|
|
28
|
-
scenarioName?: string | null | undefined;
|
|
29
|
-
comment?: string | null | undefined;
|
|
30
|
-
customTags?: string | null | undefined;
|
|
31
|
-
pixelToPixelDiffTolerance?: number | null | undefined;
|
|
32
|
-
viewport?: string | null | undefined;
|
|
33
|
-
pageContentBase64?: string | null | undefined;
|
|
34
|
-
baselineBranchName?: string | null | undefined;
|
|
35
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
36
14
|
type CreateIntegrationStepPayload = z.infer<typeof CreateIntegrationStepPayloadSchema>;
|
|
37
15
|
export { CreateIntegrationStepPayload, CreateIntegrationStepPayloadSchema };
|
|
38
16
|
//# sourceMappingURL=createIntegrationStepPayload.interface.d.ts.map
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const CreateIntegrationSuitePayloadSchema: z.ZodObject<{
|
|
3
3
|
suiteName: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
suiteName: string;
|
|
6
|
-
}, {
|
|
7
|
-
suiteName: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
type CreateIntegrationSuitePayload = z.infer<typeof CreateIntegrationSuitePayloadSchema>;
|
|
10
6
|
export { CreateIntegrationSuitePayload, CreateIntegrationSuitePayloadSchema };
|
|
11
7
|
//# sourceMappingURL=createIntegrationSuitePayload.interface.d.ts.map
|
|
@@ -2,13 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const IntegrationScenarioSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
name: string;
|
|
7
|
-
uuid: string;
|
|
8
|
-
}, {
|
|
9
|
-
name: string;
|
|
10
|
-
uuid: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
type IntegrationScenario = z.infer<typeof IntegrationScenarioSchema>;
|
|
13
7
|
export { IntegrationScenario, IntegrationScenarioSchema };
|
|
14
8
|
//# sourceMappingURL=integrationScenario.interface.d.ts.map
|
|
@@ -5,20 +5,12 @@ declare enum ValidationStatus {
|
|
|
5
5
|
OK = "ok",
|
|
6
6
|
UNRESOLVED = "unresolved"
|
|
7
7
|
}
|
|
8
|
-
declare const ValidationStatusSchema: z.
|
|
8
|
+
declare const ValidationStatusSchema: z.ZodEnum<typeof ValidationStatus>;
|
|
9
9
|
declare const IntegrationStepSchema: z.ZodObject<{
|
|
10
10
|
stepName: z.ZodString;
|
|
11
11
|
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
status: z.ZodOptional<z.ZodNullable<z.
|
|
13
|
-
},
|
|
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
|
-
}>;
|
|
12
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ValidationStatus>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
22
14
|
type IntegrationStep = z.infer<typeof IntegrationStepSchema>;
|
|
23
15
|
export { ValidationStatus, IntegrationStep, ValidationStatusSchema, IntegrationStepSchema };
|
|
24
16
|
//# sourceMappingURL=integrationStep.interface.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js
CHANGED
|
@@ -9,7 +9,7 @@ var ValidationStatus;
|
|
|
9
9
|
ValidationStatus["OK"] = "ok";
|
|
10
10
|
ValidationStatus["UNRESOLVED"] = "unresolved";
|
|
11
11
|
})(ValidationStatus || (exports.ValidationStatus = ValidationStatus = {}));
|
|
12
|
-
const ValidationStatusSchema = zod_1.z.
|
|
12
|
+
const ValidationStatusSchema = zod_1.z.enum(ValidationStatus);
|
|
13
13
|
exports.ValidationStatusSchema = ValidationStatusSchema;
|
|
14
14
|
const IntegrationStepSchema = zod_1.z.object({
|
|
15
15
|
stepName: zod_1.z.string(),
|
|
@@ -2,13 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
declare const IntegrationSuiteSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
name: string;
|
|
7
|
-
uuid: string;
|
|
8
|
-
}, {
|
|
9
|
-
name: string;
|
|
10
|
-
uuid: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
type IntegrationSuite = z.infer<typeof IntegrationSuiteSchema>;
|
|
13
7
|
export { IntegrationSuite, IntegrationSuiteSchema };
|
|
14
8
|
//# sourceMappingURL=integrationSuite.interface.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.d.ts
CHANGED
|
@@ -3,20 +3,12 @@ declare enum VisualAssertStatus {
|
|
|
3
3
|
passed = "passed",
|
|
4
4
|
failed = "failed"
|
|
5
5
|
}
|
|
6
|
-
declare const VisualAssertStatusSchema: z.
|
|
6
|
+
declare const VisualAssertStatusSchema: z.ZodEnum<typeof VisualAssertStatus>;
|
|
7
7
|
declare const VisualAssertSchema: z.ZodObject<{
|
|
8
|
-
status: z.
|
|
8
|
+
status: z.ZodEnum<typeof VisualAssertStatus>;
|
|
9
9
|
confidence: z.ZodNumber;
|
|
10
10
|
message: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
message: string;
|
|
13
|
-
status: VisualAssertStatus;
|
|
14
|
-
confidence: number;
|
|
15
|
-
}, {
|
|
16
|
-
message: string;
|
|
17
|
-
status: VisualAssertStatus;
|
|
18
|
-
confidence: number;
|
|
19
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
20
12
|
type VisualAssert = z.infer<typeof VisualAssertSchema>;
|
|
21
13
|
export { VisualAssertStatus, VisualAssertStatusSchema, VisualAssert, VisualAssertSchema };
|
|
22
14
|
//# sourceMappingURL=visualAssert.interface.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/visualAssert.interface.js
CHANGED
|
@@ -7,7 +7,7 @@ var VisualAssertStatus;
|
|
|
7
7
|
VisualAssertStatus["passed"] = "passed";
|
|
8
8
|
VisualAssertStatus["failed"] = "failed";
|
|
9
9
|
})(VisualAssertStatus || (exports.VisualAssertStatus = VisualAssertStatus = {}));
|
|
10
|
-
const VisualAssertStatusSchema = zod_1.z.
|
|
10
|
+
const VisualAssertStatusSchema = zod_1.z.enum(VisualAssertStatus);
|
|
11
11
|
exports.VisualAssertStatusSchema = VisualAssertStatusSchema;
|
|
12
12
|
const VisualAssertSchema = zod_1.z.object({
|
|
13
13
|
status: VisualAssertStatusSchema,
|
|
@@ -3,15 +3,7 @@ declare const VisualAssertPayloadSchema: z.ZodObject<{
|
|
|
3
3
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
prompt: z.ZodString;
|
|
5
5
|
imageBase64: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
prompt: string;
|
|
8
|
-
imageBase64: string;
|
|
9
|
-
context?: string | null | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
prompt: string;
|
|
12
|
-
imageBase64: string;
|
|
13
|
-
context?: string | null | undefined;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
type VisualAssertPayload = z.infer<typeof VisualAssertPayloadSchema>;
|
|
16
8
|
export { VisualAssertPayload, VisualAssertPayloadSchema };
|
|
17
9
|
//# sourceMappingURL=visualAssertPayload.interface.d.ts.map
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { ApiPort, CreateIntegrationScenarioPayload, CreateIntegrationStepPayload, CreateIntegrationSuitePayload, IntegrationScenario, IntegrationStep, IntegrationSuite, LoggerPort, VisualAssert, VisualAssertPayload } from '../../../core';
|
|
2
|
-
import {
|
|
2
|
+
import { ApolloAdapterConfigInput } from './interface';
|
|
3
3
|
declare class ApolloAdapter extends ApiPort {
|
|
4
4
|
private _config;
|
|
5
5
|
private _logger;
|
|
6
6
|
private _scenario;
|
|
7
7
|
private _suite;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Takes the config as a caller may actually hand it in and parses it here,
|
|
10
|
+
* rather than demanding the fully-defaulted shape. Every option with a
|
|
11
|
+
* `.default()` is required on `ApolloAdapterConfig`, so accepting that type
|
|
12
|
+
* would mean each new defaulted option breaks the compile of anyone
|
|
13
|
+
* constructing an adapter directly — `wopee.pw` among them.
|
|
14
|
+
*/
|
|
15
|
+
constructor(config: ApolloAdapterConfigInput, logger: LoggerPort);
|
|
9
16
|
private _post;
|
|
10
17
|
get suite(): IntegrationSuite;
|
|
11
18
|
get scenario(): IntegrationScenario;
|
package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js
CHANGED
|
@@ -7,26 +7,53 @@ exports.ApolloAdapter = void 0;
|
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
8
|
const shared_1 = require("../../../shared");
|
|
9
9
|
const axios_config_1 = require("./axios-config");
|
|
10
|
+
const deadline_1 = require("./deadline");
|
|
10
11
|
const errors_1 = require("./errors");
|
|
11
12
|
const factories_1 = require("./factories");
|
|
12
13
|
const interface_1 = require("./interface");
|
|
13
14
|
const mutations_1 = require("./mutations");
|
|
15
|
+
const retry_1 = require("./retry");
|
|
14
16
|
const axios_1 = __importDefault(require("axios"));
|
|
15
17
|
class ApolloAdapter extends core_1.ApiPort {
|
|
16
18
|
_config;
|
|
17
19
|
_logger;
|
|
18
20
|
_scenario = null;
|
|
19
21
|
_suite = null;
|
|
22
|
+
/**
|
|
23
|
+
* Takes the config as a caller may actually hand it in and parses it here,
|
|
24
|
+
* rather than demanding the fully-defaulted shape. Every option with a
|
|
25
|
+
* `.default()` is required on `ApolloAdapterConfig`, so accepting that type
|
|
26
|
+
* would mean each new defaulted option breaks the compile of anyone
|
|
27
|
+
* constructing an adapter directly — `wopee.pw` among them.
|
|
28
|
+
*/
|
|
20
29
|
constructor(config, logger) {
|
|
21
30
|
super();
|
|
31
|
+
const parsed = interface_1.ApolloAdapterConfigSchema.safeParse(config);
|
|
32
|
+
if (!parsed.success) {
|
|
33
|
+
throw (0, errors_1.toConfigError)(parsed.error);
|
|
34
|
+
}
|
|
22
35
|
this._logger = logger;
|
|
23
|
-
this._config =
|
|
36
|
+
this._config = parsed.data;
|
|
24
37
|
}
|
|
25
38
|
async _post(query, variables) {
|
|
26
39
|
const apiUrl = this._config.apiUrl;
|
|
40
|
+
// The same key under two names. `api_key` is what the api has always read; corporate
|
|
41
|
+
// gateways in front of tenant apis strip header names with an underscore (nginx
|
|
42
|
+
// `underscores_in_headers off` and the like) — measured 2026-10-01 behind a bank's load
|
|
43
|
+
// balancer, where every call arrived keyless and was refused as if the key were wrong.
|
|
44
|
+
// `x-api-key` is the alias the api reads since v5.216.2; an older api ignores it.
|
|
45
|
+
const headers = { api_key: this._config.apiKey, 'x-api-key': this._config.apiKey };
|
|
46
|
+
const timeoutMs = this._config.requestTimeoutMs;
|
|
47
|
+
const requestConfig = (0, axios_config_1.buildAxiosConfig)(apiUrl, headers, timeoutMs);
|
|
48
|
+
const maxRetries = this._config.maxRetries;
|
|
27
49
|
try {
|
|
28
|
-
|
|
29
|
-
|
|
50
|
+
return await (0, retry_1.withRetry)(() => (0, deadline_1.withDeadline)(timeoutMs, (signal) => axios_1.default.post(apiUrl, { query, variables }, { ...requestConfig, signal })), {
|
|
51
|
+
maxRetries,
|
|
52
|
+
onRetry: ({ attempt, maxRetries: budget, delayMs, error }) => {
|
|
53
|
+
this._logger.warning(`Wopee API call to ${apiUrl} failed with ${(0, retry_1.describeFailure)(error)}; ` +
|
|
54
|
+
`retrying in ${delayMs}ms (retry ${attempt} of ${budget}).`);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
30
57
|
}
|
|
31
58
|
catch (error) {
|
|
32
59
|
throw (0, errors_1.toApiRequestError)(error, { apiUrl, projectUuid: this._config.projectUuid });
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import 'dotenv/config';
|
|
3
|
+
/**
|
|
4
|
+
* Three minutes. Tracking calls carry a screenshot plus the step's tool-call
|
|
5
|
+
* JSON, which on a slow or traffic-inspected customer link genuinely needs a
|
|
6
|
+
* minute or more, so anything tighter would abort healthy uploads. The point is
|
|
7
|
+
* that the SDK now has *a* ceiling: axios defaults to none, so a connection
|
|
8
|
+
* that stalls with no gateway in front of it used to hang a test run forever.
|
|
9
|
+
*
|
|
10
|
+
* The value is used twice, for two different mechanisms. As `config.timeout` it
|
|
11
|
+
* is a socket *inactivity* ceiling — axios implements it as `req.setTimeout` —
|
|
12
|
+
* which catches a connection that has gone quiet but never fires on an upload
|
|
13
|
+
* that keeps trickling. `withDeadline` in ./deadline.ts applies the same number
|
|
14
|
+
* as an actual wall-clock deadline; see that file for why both are needed.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DEFAULT_REQUEST_TIMEOUT_MS = 180000;
|
|
3
17
|
export type ProxyDecision = {
|
|
4
18
|
proxyUrl: string | null;
|
|
5
19
|
noProxy: string;
|
|
@@ -12,5 +26,5 @@ export type ProxyDecision = {
|
|
|
12
26
|
bypassedByNoProxy: boolean;
|
|
13
27
|
};
|
|
14
28
|
export declare function getProxyDecision(url: string): ProxyDecision;
|
|
15
|
-
export declare function buildAxiosConfig(url: string, headers: Record<string, string
|
|
29
|
+
export declare function buildAxiosConfig(url: string, headers: Record<string, string>, timeoutMs: number): AxiosRequestConfig;
|
|
16
30
|
//# sourceMappingURL=axios-config.d.ts.map
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_REQUEST_TIMEOUT_MS = void 0;
|
|
3
4
|
exports.getProxyDecision = getProxyDecision;
|
|
4
5
|
exports.buildAxiosConfig = buildAxiosConfig;
|
|
5
6
|
require("dotenv/config");
|
|
6
7
|
const http_proxy_agent_1 = require("http-proxy-agent");
|
|
7
8
|
const https_proxy_agent_1 = require("https-proxy-agent");
|
|
8
9
|
const proxy_from_env_1 = require("proxy-from-env");
|
|
10
|
+
/**
|
|
11
|
+
* Three minutes. Tracking calls carry a screenshot plus the step's tool-call
|
|
12
|
+
* JSON, which on a slow or traffic-inspected customer link genuinely needs a
|
|
13
|
+
* minute or more, so anything tighter would abort healthy uploads. The point is
|
|
14
|
+
* that the SDK now has *a* ceiling: axios defaults to none, so a connection
|
|
15
|
+
* that stalls with no gateway in front of it used to hang a test run forever.
|
|
16
|
+
*
|
|
17
|
+
* The value is used twice, for two different mechanisms. As `config.timeout` it
|
|
18
|
+
* is a socket *inactivity* ceiling — axios implements it as `req.setTimeout` —
|
|
19
|
+
* which catches a connection that has gone quiet but never fires on an upload
|
|
20
|
+
* that keeps trickling. `withDeadline` in ./deadline.ts applies the same number
|
|
21
|
+
* as an actual wall-clock deadline; see that file for why both are needed.
|
|
22
|
+
*/
|
|
23
|
+
exports.DEFAULT_REQUEST_TIMEOUT_MS = 180_000;
|
|
9
24
|
function isIpv4(value) {
|
|
10
25
|
const parts = value.split('.');
|
|
11
26
|
if (parts.length !== 4)
|
|
@@ -101,10 +116,11 @@ function getProxyDecision(url) {
|
|
|
101
116
|
return { proxyUrl: null, noProxy, bypassedByNoProxy: false };
|
|
102
117
|
}
|
|
103
118
|
}
|
|
104
|
-
function buildAxiosConfig(url, headers) {
|
|
119
|
+
function buildAxiosConfig(url, headers, timeoutMs) {
|
|
105
120
|
const config = {
|
|
106
121
|
headers,
|
|
107
122
|
proxy: false,
|
|
123
|
+
timeout: timeoutMs,
|
|
108
124
|
};
|
|
109
125
|
const { proxyUrl } = getProxyDecision(url);
|
|
110
126
|
if (!proxyUrl) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A wall-clock ceiling that actually holds.
|
|
3
|
+
*
|
|
4
|
+
* axios's own `config.timeout` is a socket *inactivity* timeout — the node
|
|
5
|
+
* adapter implements it as `req.setTimeout`, which only fires when nothing has
|
|
6
|
+
* moved on the socket for that long. A multi-megabyte tracking upload that
|
|
7
|
+
* keeps trickling bytes over a slow, traffic-inspected link therefore never
|
|
8
|
+
* trips it, however long it takes overall. Worse, it is not reliably enforced
|
|
9
|
+
* at all once a custom proxy agent is attached, which `buildAxiosConfig` does
|
|
10
|
+
* whenever HTTPS_PROXY is set.
|
|
11
|
+
*
|
|
12
|
+
* So the two mechanisms are kept side by side, deliberately: axios's timeout
|
|
13
|
+
* fails fast on a connection that has genuinely gone quiet, and this deadline
|
|
14
|
+
* is the backstop that bounds the attempt no matter what the socket is doing.
|
|
15
|
+
*/
|
|
16
|
+
export declare class DeadlineExceededError extends Error {
|
|
17
|
+
readonly timeoutMs: number;
|
|
18
|
+
constructor(timeoutMs: number);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Runs `operation` under a wall-clock deadline, handing it an `AbortSignal` to
|
|
22
|
+
* pass to the underlying request.
|
|
23
|
+
*
|
|
24
|
+
* A non-finite or non-positive `timeoutMs` means "no deadline" and the operation
|
|
25
|
+
* runs with no signal at all. That is both the escape hatch — symmetric with
|
|
26
|
+
* `maxRetries: 0` — and a guard: `setTimeout(fn, NaN)` fires immediately, which
|
|
27
|
+
* would abort every request the moment it started.
|
|
28
|
+
*
|
|
29
|
+
* When the deadline is what killed the operation, the rejection is replaced with
|
|
30
|
+
* a `DeadlineExceededError`. Letting axios's own `CanceledError` through instead
|
|
31
|
+
* would surface as the bare message "canceled", and its `ERR_CANCELED` code is
|
|
32
|
+
* specifically treated as *not* retryable — an abort is normally a caller's
|
|
33
|
+
* decision — so our own deadline would silently become a non-retryable failure.
|
|
34
|
+
*/
|
|
35
|
+
export declare function withDeadline<T>(timeoutMs: number, operation: (signal?: AbortSignal) => Promise<T>): Promise<T>;
|
|
36
|
+
//# sourceMappingURL=deadline.d.ts.map
|
package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/deadline.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A wall-clock ceiling that actually holds.
|
|
4
|
+
*
|
|
5
|
+
* axios's own `config.timeout` is a socket *inactivity* timeout — the node
|
|
6
|
+
* adapter implements it as `req.setTimeout`, which only fires when nothing has
|
|
7
|
+
* moved on the socket for that long. A multi-megabyte tracking upload that
|
|
8
|
+
* keeps trickling bytes over a slow, traffic-inspected link therefore never
|
|
9
|
+
* trips it, however long it takes overall. Worse, it is not reliably enforced
|
|
10
|
+
* at all once a custom proxy agent is attached, which `buildAxiosConfig` does
|
|
11
|
+
* whenever HTTPS_PROXY is set.
|
|
12
|
+
*
|
|
13
|
+
* So the two mechanisms are kept side by side, deliberately: axios's timeout
|
|
14
|
+
* fails fast on a connection that has genuinely gone quiet, and this deadline
|
|
15
|
+
* is the backstop that bounds the attempt no matter what the socket is doing.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DeadlineExceededError = void 0;
|
|
19
|
+
exports.withDeadline = withDeadline;
|
|
20
|
+
class DeadlineExceededError extends Error {
|
|
21
|
+
timeoutMs;
|
|
22
|
+
constructor(timeoutMs) {
|
|
23
|
+
super(`deadline of ${timeoutMs}ms exceeded`);
|
|
24
|
+
this.timeoutMs = timeoutMs;
|
|
25
|
+
this.name = 'DeadlineExceededError';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.DeadlineExceededError = DeadlineExceededError;
|
|
29
|
+
/**
|
|
30
|
+
* Runs `operation` under a wall-clock deadline, handing it an `AbortSignal` to
|
|
31
|
+
* pass to the underlying request.
|
|
32
|
+
*
|
|
33
|
+
* A non-finite or non-positive `timeoutMs` means "no deadline" and the operation
|
|
34
|
+
* runs with no signal at all. That is both the escape hatch — symmetric with
|
|
35
|
+
* `maxRetries: 0` — and a guard: `setTimeout(fn, NaN)` fires immediately, which
|
|
36
|
+
* would abort every request the moment it started.
|
|
37
|
+
*
|
|
38
|
+
* When the deadline is what killed the operation, the rejection is replaced with
|
|
39
|
+
* a `DeadlineExceededError`. Letting axios's own `CanceledError` through instead
|
|
40
|
+
* would surface as the bare message "canceled", and its `ERR_CANCELED` code is
|
|
41
|
+
* specifically treated as *not* retryable — an abort is normally a caller's
|
|
42
|
+
* decision — so our own deadline would silently become a non-retryable failure.
|
|
43
|
+
*/
|
|
44
|
+
async function withDeadline(timeoutMs, operation) {
|
|
45
|
+
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
|
|
46
|
+
return operation();
|
|
47
|
+
}
|
|
48
|
+
const controller = new AbortController();
|
|
49
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
50
|
+
try {
|
|
51
|
+
return await operation(controller.signal);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (controller.signal.aborted) {
|
|
55
|
+
throw new DeadlineExceededError(timeoutMs);
|
|
56
|
+
}
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
clearTimeout(timer);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=deadline.js.map
|