@vtex/api 6.47.0 → 6.48.1-beta
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/gen/manifest.schema +0 -3
- package/lib/{clients/apps → HttpClient}/AppClient.d.ts +3 -3
- package/lib/{clients/apps → HttpClient}/AppClient.js +5 -10
- package/lib/{clients/apps → HttpClient}/AppGraphQLClient.d.ts +3 -3
- package/lib/{clients/apps → HttpClient}/AppGraphQLClient.js +5 -10
- package/lib/{clients/external → HttpClient}/ExternalClient.d.ts +3 -3
- package/lib/{clients/external → HttpClient}/ExternalClient.js +2 -9
- package/lib/HttpClient/GraphQLClient.d.ts +1 -2
- package/lib/HttpClient/GraphQLClient.js +1 -4
- package/lib/HttpClient/HttpClient.d.ts +5 -6
- package/lib/HttpClient/HttpClient.js +21 -63
- package/lib/{clients → HttpClient}/IOClient.d.ts +4 -4
- package/lib/HttpClient/IOClient.js +14 -0
- package/lib/{clients → HttpClient}/IOGraphQLClient.d.ts +4 -4
- package/lib/{clients → HttpClient}/IOGraphQLClient.js +2 -2
- package/lib/{clients/infra → HttpClient}/InfraClient.d.ts +3 -3
- package/lib/{clients/infra → HttpClient}/InfraClient.js +4 -9
- package/lib/{clients/janus → HttpClient}/JanusClient.d.ts +3 -3
- package/lib/{clients/janus → HttpClient}/JanusClient.js +3 -7
- package/lib/HttpClient/factories/index.d.ts +8 -0
- package/lib/HttpClient/factories/index.js +31 -0
- package/lib/HttpClient/index.d.ts +7 -1
- package/lib/HttpClient/index.js +7 -1
- package/lib/HttpClient/middlewares/cache.d.ts +2 -8
- package/lib/HttpClient/middlewares/cache.js +31 -120
- package/lib/HttpClient/middlewares/cancellationToken.d.ts +1 -1
- package/lib/HttpClient/middlewares/cancellationToken.js +1 -2
- package/lib/HttpClient/middlewares/memoization.js +1 -8
- package/lib/HttpClient/middlewares/metrics.js +31 -12
- package/lib/HttpClient/middlewares/recorder.d.ts +1 -1
- package/lib/HttpClient/middlewares/recorder.js +13 -16
- package/lib/HttpClient/middlewares/request.d.ts +10 -0
- package/lib/HttpClient/middlewares/request.js +87 -0
- package/lib/HttpClient/typings.d.ts +9 -43
- package/lib/IODataSource.d.ts +27 -0
- package/lib/IODataSource.js +46 -0
- package/lib/caches/LRUCache.js +1 -5
- package/lib/caches/LRUDiskCache.js +1 -5
- package/lib/clients/Apps.d.ts +84 -0
- package/lib/clients/Apps.js +326 -0
- package/lib/clients/Assets.d.ts +21 -0
- package/lib/clients/{infra/Assets.js → Assets.js} +19 -74
- package/lib/clients/Billing.d.ts +11 -0
- package/lib/clients/{apps/Billing.js → Billing.js} +3 -8
- package/lib/clients/BillingMetrics.d.ts +12 -0
- package/lib/clients/BillingMetrics.js +10 -0
- package/lib/clients/{apps/Builder.d.ts → Builder.d.ts} +11 -12
- package/lib/clients/{apps/Builder.js → Builder.js} +22 -49
- package/lib/clients/Events.d.ts +6 -0
- package/lib/clients/Events.js +19 -0
- package/lib/clients/Housekeeper.d.ts +11 -0
- package/lib/clients/Housekeeper.js +24 -0
- package/lib/clients/ID.d.ts +22 -0
- package/lib/clients/ID.js +48 -0
- package/lib/clients/IOClients.d.ts +24 -29
- package/lib/clients/IOClients.js +26 -36
- package/lib/clients/LicenseManager.d.ts +6 -0
- package/lib/clients/{janus/LicenseManager.js → LicenseManager.js} +8 -23
- package/lib/clients/Logger.d.ts +27 -0
- package/lib/clients/Logger.js +32 -0
- package/lib/clients/Messages.d.ts +18 -0
- package/lib/clients/Messages.js +20 -0
- package/lib/clients/MessagesGraphQL.d.ts +63 -0
- package/lib/clients/MessagesGraphQL.js +50 -0
- package/lib/clients/Metadata.d.ts +25 -0
- package/lib/clients/Metadata.js +53 -0
- package/lib/clients/Registry.d.ts +61 -0
- package/lib/clients/{infra/Registry.js → Registry.js} +33 -93
- package/lib/clients/Router.d.ts +33 -0
- package/lib/clients/Router.js +50 -0
- package/lib/clients/{janus/Segment.d.ts → Segment.d.ts} +11 -7
- package/lib/clients/Segment.js +69 -0
- package/lib/clients/{janus/Session.d.ts → Session.d.ts} +4 -4
- package/lib/clients/{janus/Session.js → Session.js} +13 -24
- package/lib/clients/{apps/Settings.d.ts → Settings.d.ts} +4 -5
- package/lib/clients/{apps/Settings.js → Settings.js} +20 -14
- package/lib/clients/Sphinx.d.ts +12 -0
- package/lib/clients/Sphinx.js +19 -0
- package/lib/clients/{janus/Tenant.d.ts → Tenant.d.ts} +7 -6
- package/lib/clients/Tenant.js +13 -0
- package/lib/clients/VBase.d.ts +57 -0
- package/lib/clients/VBase.js +116 -0
- package/lib/clients/Workspaces.d.ts +17 -0
- package/lib/clients/Workspaces.js +38 -0
- package/lib/clients/index.d.ts +21 -9
- package/lib/clients/index.js +21 -12
- package/lib/constants.d.ts +1 -49
- package/lib/constants.js +1 -54
- package/lib/errors/ResolverError.d.ts +1 -1
- package/lib/errors/ResolverError.js +2 -2
- package/lib/errors/ResolverWarning.d.ts +1 -1
- package/lib/errors/ResolverWarning.js +2 -2
- package/lib/index.d.ts +7 -9
- package/lib/index.js +6 -8
- package/lib/metrics/MetricsAccumulator.d.ts +18 -1
- package/lib/metrics/MetricsAccumulator.js +22 -38
- package/lib/responses.d.ts +44 -3
- package/lib/service/Runtime.d.ts +18 -0
- package/lib/service/Runtime.js +57 -0
- package/lib/service/{worker/runtime/Service.d.ts → Service.d.ts} +5 -5
- package/lib/service/{worker/runtime/Service.js → Service.js} +1 -2
- package/lib/service/events/index.d.ts +3 -0
- package/lib/service/events/index.js +21 -0
- package/lib/service/graphql/index.d.ts +7 -0
- package/lib/service/graphql/index.js +33 -0
- package/lib/service/graphql/middlewares/error.js +107 -0
- package/lib/service/graphql/middlewares/formatters.d.ts +2 -0
- package/lib/service/graphql/middlewares/formatters.js +64 -0
- package/lib/service/graphql/middlewares/query.d.ts +2 -0
- package/lib/service/graphql/middlewares/query.js +32 -0
- package/lib/service/graphql/middlewares/response.js +36 -0
- package/lib/service/graphql/middlewares/run.d.ts +4 -0
- package/lib/service/graphql/middlewares/run.js +55 -0
- package/lib/service/graphql/middlewares/schema.d.ts +2 -0
- package/lib/service/graphql/middlewares/schema.js +8 -0
- package/lib/service/graphql/middlewares/timings.d.ts +2 -0
- package/lib/service/graphql/middlewares/timings.js +10 -0
- package/lib/service/graphql/middlewares/upload.d.ts +7 -0
- package/lib/service/graphql/schema/index.d.ts +3 -0
- package/lib/service/graphql/schema/index.js +66 -0
- package/lib/service/graphql/schema/messagesLoader.d.ts +4 -0
- package/lib/service/graphql/schema/messagesLoader.js +41 -0
- package/lib/service/graphql/schema/messagesLoaderV2.d.ts +5 -0
- package/lib/service/graphql/schema/messagesLoaderV2.js +44 -0
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Auth.d.ts +0 -1
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Auth.js +5 -11
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Sanitize.d.ts +0 -1
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Sanitize.js +0 -6
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/SmartCacheDirective.d.ts +0 -1
- package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/SmartCacheDirective.js +3 -8
- package/lib/service/{worker/runtime/graphql/schema/schemaDirectives/TranslateTo.d.ts → graphql/schema/schemaDirectives/Translatable.d.ts} +1 -2
- package/lib/service/graphql/schema/schemaDirectives/Translatable.js +54 -0
- package/lib/service/graphql/schema/schemaDirectives/TranslatableV2.d.ts +13 -0
- package/lib/service/graphql/schema/schemaDirectives/TranslatableV2.js +67 -0
- package/lib/service/graphql/schema/schemaDirectives/index.d.ts +13 -0
- package/lib/service/graphql/schema/schemaDirectives/index.js +17 -0
- package/lib/service/graphql/schema/typeDefs/index.d.ts +16 -0
- package/lib/service/graphql/schema/typeDefs/index.js +21 -0
- package/lib/service/graphql/schema/typeDefs/ioMessage.d.ts +8 -0
- package/lib/service/graphql/schema/typeDefs/ioMessage.js +33 -0
- package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/sanitizedString.js +1 -5
- package/lib/service/graphql/typings.d.ts +21 -0
- package/lib/service/graphql/utils/cacheControl.d.ts +6 -0
- package/lib/service/graphql/utils/cacheControl.js +38 -0
- package/lib/service/graphql/utils/maxAgeEnum.d.ts +6 -0
- package/lib/service/graphql/utils/maxAgeEnum.js +17 -0
- package/lib/service/http/index.d.ts +3 -0
- package/lib/service/http/index.js +18 -0
- package/lib/service/http/middlewares/authTokens.d.ts +3 -0
- package/lib/service/http/middlewares/cancellationToken.d.ts +3 -0
- package/lib/service/{worker/runtime/http → http}/middlewares/cancellationToken.js +1 -2
- package/lib/service/http/middlewares/clients.d.ts +4 -0
- package/lib/service/http/middlewares/error.d.ts +3 -0
- package/lib/service/{worker/runtime/http → http}/middlewares/error.js +10 -19
- package/lib/service/{worker/runtime/http → http}/middlewares/requestStats.d.ts +3 -3
- package/lib/service/http/middlewares/setCookie.d.ts +3 -0
- package/lib/service/http/middlewares/timings.d.ts +3 -0
- package/lib/service/{worker/runtime/http → http}/middlewares/timings.js +8 -21
- package/lib/service/http/middlewares/vary.d.ts +3 -0
- package/lib/service/{worker/runtime/http → http}/middlewares/vary.js +3 -3
- package/lib/service/logger/index.d.ts +28 -2
- package/lib/service/logger/index.js +68 -5
- package/lib/service/method.d.ts +9 -0
- package/lib/service/{worker/runtime/typings.d.ts → typings.d.ts} +36 -70
- package/lib/service/utils/compose.d.ts +4 -0
- package/lib/service/{worker/runtime/utils → utils}/compose.js +2 -2
- package/lib/utils/MineWinsConflictsResolver.d.ts +4 -5
- package/lib/utils/MineWinsConflictsResolver.js +17 -23
- package/lib/utils/MineWinsConflictsResolver.test.d.ts +1 -0
- package/lib/utils/MineWinsConflictsResolver.test.js +134 -0
- package/lib/utils/app.d.ts +1 -3
- package/lib/utils/app.js +1 -3
- package/lib/utils/appsStaleIfError.d.ts +1 -1
- package/lib/utils/appsStaleIfError.js +2 -2
- package/lib/utils/billingOptions.d.ts +3 -36
- package/lib/utils/billingOptions.js +3 -7
- package/lib/utils/binding.d.ts +3 -3
- package/lib/utils/cancel.d.ts +2 -2
- package/lib/utils/cancel.js +1 -2
- package/lib/utils/log.d.ts +3 -1
- package/lib/utils/log.js +2 -2
- package/lib/utils/message.js +1 -4
- package/lib/utils/tenant.d.ts +3 -3
- package/lib/utils/time.d.ts +2 -4
- package/lib/utils/time.js +2 -9
- package/lib/utils/unhandled.d.ts +1 -0
- package/lib/{service/worker/listeners.js → utils/unhandled.js} +15 -9
- package/package.json +2 -2
- package/CHANGELOG.md +0 -1846
- package/lib/HttpClient/agents.d.ts +0 -3
- package/lib/HttpClient/agents.js +0 -24
- package/lib/HttpClient/middlewares/request/HttpAgentSingleton.d.ts +0 -11
- package/lib/HttpClient/middlewares/request/HttpAgentSingleton.js +0 -30
- package/lib/HttpClient/middlewares/request/index.d.ts +0 -18
- package/lib/HttpClient/middlewares/request/index.js +0 -84
- package/lib/HttpClient/middlewares/request/setupAxios/index.d.ts +0 -1
- package/lib/HttpClient/middlewares/request/setupAxios/index.js +0 -20
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/exponentialBackoff.d.ts +0 -2
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/exponentialBackoff.js +0 -53
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/index.d.ts +0 -2
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/index.js +0 -7
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/index.d.ts +0 -8
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/index.js +0 -53
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/spanSetup.d.ts +0 -4
- package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/spanSetup.js +0 -29
- package/lib/HttpClient/middlewares/tracing.d.ts +0 -15
- package/lib/HttpClient/middlewares/tracing.js +0 -56
- package/lib/clients/IOClient.js +0 -19
- package/lib/clients/apps/Billing.d.ts +0 -12
- package/lib/clients/apps/MessagesGraphQL.d.ts +0 -61
- package/lib/clients/apps/MessagesGraphQL.js +0 -121
- package/lib/clients/apps/catalogGraphQL/brand.d.ts +0 -13
- package/lib/clients/apps/catalogGraphQL/brand.js +0 -18
- package/lib/clients/apps/catalogGraphQL/category.d.ts +0 -11
- package/lib/clients/apps/catalogGraphQL/category.js +0 -16
- package/lib/clients/apps/catalogGraphQL/index.d.ts +0 -22
- package/lib/clients/apps/catalogGraphQL/index.js +0 -88
- package/lib/clients/apps/catalogGraphQL/product.d.ts +0 -25
- package/lib/clients/apps/catalogGraphQL/product.js +0 -30
- package/lib/clients/apps/catalogGraphQL/sku.d.ts +0 -26
- package/lib/clients/apps/catalogGraphQL/sku.js +0 -30
- package/lib/clients/apps/index.d.ts +0 -7
- package/lib/clients/apps/index.js +0 -12
- package/lib/clients/external/ID.d.ts +0 -23
- package/lib/clients/external/ID.js +0 -60
- package/lib/clients/external/Masterdata.d.ts +0 -94
- package/lib/clients/external/Masterdata.js +0 -224
- package/lib/clients/external/PaymentProvider.d.ts +0 -31
- package/lib/clients/external/PaymentProvider.js +0 -42
- package/lib/clients/external/index.d.ts +0 -4
- package/lib/clients/external/index.js +0 -9
- package/lib/clients/infra/Apps.d.ts +0 -88
- package/lib/clients/infra/Apps.js +0 -508
- package/lib/clients/infra/Assets.d.ts +0 -34
- package/lib/clients/infra/BillingMetrics.d.ts +0 -13
- package/lib/clients/infra/BillingMetrics.js +0 -15
- package/lib/clients/infra/Events.d.ts +0 -12
- package/lib/clients/infra/Events.js +0 -33
- package/lib/clients/infra/Housekeeper.d.ts +0 -10
- package/lib/clients/infra/Housekeeper.js +0 -30
- package/lib/clients/infra/Metadata.d.ts +0 -26
- package/lib/clients/infra/Metadata.js +0 -83
- package/lib/clients/infra/Registry.d.ts +0 -59
- package/lib/clients/infra/Router.d.ts +0 -34
- package/lib/clients/infra/Router.js +0 -81
- package/lib/clients/infra/Sphinx.d.ts +0 -13
- package/lib/clients/infra/Sphinx.js +0 -29
- package/lib/clients/infra/VBase.d.ts +0 -60
- package/lib/clients/infra/VBase.js +0 -196
- package/lib/clients/infra/Workspaces.d.ts +0 -18
- package/lib/clients/infra/Workspaces.js +0 -65
- package/lib/clients/infra/index.d.ts +0 -12
- package/lib/clients/infra/index.js +0 -17
- package/lib/clients/janus/LicenseManager.d.ts +0 -7
- package/lib/clients/janus/Segment.js +0 -88
- package/lib/clients/janus/Tenant.js +0 -28
- package/lib/clients/janus/index.d.ts +0 -5
- package/lib/clients/janus/index.js +0 -10
- package/lib/service/index.d.ts +0 -2
- package/lib/service/index.js +0 -30
- package/lib/service/loaders.d.ts +0 -8
- package/lib/service/loaders.js +0 -54
- package/lib/service/logger/console.d.ts +0 -10
- package/lib/service/logger/console.js +0 -36
- package/lib/service/logger/logger.d.ts +0 -29
- package/lib/service/logger/logger.js +0 -61
- package/lib/service/logger/metricsLogger.d.ts +0 -40
- package/lib/service/logger/metricsLogger.js +0 -149
- package/lib/service/master.d.ts +0 -2
- package/lib/service/master.js +0 -87
- package/lib/service/metrics/requestMetricsMiddleware.d.ts +0 -2
- package/lib/service/metrics/requestMetricsMiddleware.js +0 -44
- package/lib/service/tracing/TracerSingleton.d.ts +0 -7
- package/lib/service/tracing/TracerSingleton.js +0 -48
- package/lib/service/tracing/metrics/MetricNames.d.ts +0 -60
- package/lib/service/tracing/metrics/MetricNames.js +0 -44
- package/lib/service/tracing/metrics/instruments.d.ts +0 -9
- package/lib/service/tracing/metrics/instruments.js +0 -11
- package/lib/service/tracing/metrics/measurers/EventLoopLagMeasurer.d.ts +0 -9
- package/lib/service/tracing/metrics/measurers/EventLoopLagMeasurer.js +0 -25
- package/lib/service/tracing/tracingMiddlewares.d.ts +0 -5
- package/lib/service/tracing/tracingMiddlewares.js +0 -107
- package/lib/service/worker/index.d.ts +0 -11
- package/lib/service/worker/index.js +0 -195
- package/lib/service/worker/listeners.d.ts +0 -3
- package/lib/service/worker/runtime/builtIn/handlers.d.ts +0 -4
- package/lib/service/worker/runtime/builtIn/handlers.js +0 -30
- package/lib/service/worker/runtime/builtIn/middlewares.d.ts +0 -4
- package/lib/service/worker/runtime/builtIn/middlewares.js +0 -40
- package/lib/service/worker/runtime/events/index.d.ts +0 -4
- package/lib/service/worker/runtime/events/index.js +0 -46
- package/lib/service/worker/runtime/events/middlewares/body.d.ts +0 -3
- package/lib/service/worker/runtime/events/middlewares/body.js +0 -22
- package/lib/service/worker/runtime/events/middlewares/context.d.ts +0 -3
- package/lib/service/worker/runtime/events/middlewares/context.js +0 -22
- package/lib/service/worker/runtime/events/router.d.ts +0 -2
- package/lib/service/worker/runtime/events/router.js +0 -27
- package/lib/service/worker/runtime/graphql/index.d.ts +0 -6
- package/lib/service/worker/runtime/graphql/index.js +0 -27
- package/lib/service/worker/runtime/graphql/middlewares/context.d.ts +0 -2
- package/lib/service/worker/runtime/graphql/middlewares/context.js +0 -16
- package/lib/service/worker/runtime/graphql/middlewares/error.js +0 -93
- package/lib/service/worker/runtime/graphql/middlewares/query.d.ts +0 -2
- package/lib/service/worker/runtime/graphql/middlewares/query.js +0 -52
- package/lib/service/worker/runtime/graphql/middlewares/response.js +0 -38
- package/lib/service/worker/runtime/graphql/middlewares/run.d.ts +0 -2
- package/lib/service/worker/runtime/graphql/middlewares/run.js +0 -19
- package/lib/service/worker/runtime/graphql/middlewares/updateSchema.d.ts +0 -4
- package/lib/service/worker/runtime/graphql/middlewares/updateSchema.js +0 -28
- package/lib/service/worker/runtime/graphql/middlewares/upload.d.ts +0 -4
- package/lib/service/worker/runtime/graphql/schema/index.d.ts +0 -7
- package/lib/service/worker/runtime/graphql/schema/index.js +0 -31
- package/lib/service/worker/runtime/graphql/schema/messagesLoaderV2.d.ts +0 -6
- package/lib/service/worker/runtime/graphql/schema/messagesLoaderV2.js +0 -79
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/CacheControl.d.ts +0 -7
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/CacheControl.js +0 -37
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.d.ts +0 -11
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.js +0 -61
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Metric.d.ts +0 -7
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Metric.js +0 -40
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Settings.d.ts +0 -6
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Settings.js +0 -34
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.d.ts +0 -7
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.js +0 -39
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslateTo.js +0 -33
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/index.d.ts +0 -22
- package/lib/service/worker/runtime/graphql/schema/schemaDirectives/index.js +0 -36
- package/lib/service/worker/runtime/graphql/schema/typeDefs/index.d.ts +0 -7
- package/lib/service/worker/runtime/graphql/schema/typeDefs/index.js +0 -12
- package/lib/service/worker/runtime/graphql/typings.d.ts +0 -31
- package/lib/service/worker/runtime/graphql/utils/cacheControl.d.ts +0 -1
- package/lib/service/worker/runtime/graphql/utils/cacheControl.js +0 -32
- package/lib/service/worker/runtime/graphql/utils/error.d.ts +0 -1
- package/lib/service/worker/runtime/graphql/utils/error.js +0 -76
- package/lib/service/worker/runtime/graphql/utils/translations.d.ts +0 -14
- package/lib/service/worker/runtime/graphql/utils/translations.js +0 -38
- package/lib/service/worker/runtime/http/index.d.ts +0 -5
- package/lib/service/worker/runtime/http/index.js +0 -58
- package/lib/service/worker/runtime/http/middlewares/authTokens.d.ts +0 -3
- package/lib/service/worker/runtime/http/middlewares/cancellationToken.d.ts +0 -3
- package/lib/service/worker/runtime/http/middlewares/clients.d.ts +0 -4
- package/lib/service/worker/runtime/http/middlewares/context.d.ts +0 -4
- package/lib/service/worker/runtime/http/middlewares/context.js +0 -36
- package/lib/service/worker/runtime/http/middlewares/error.d.ts +0 -2
- package/lib/service/worker/runtime/http/middlewares/rateLimit.d.ts +0 -6
- package/lib/service/worker/runtime/http/middlewares/rateLimit.js +0 -42
- package/lib/service/worker/runtime/http/middlewares/setCookie.d.ts +0 -3
- package/lib/service/worker/runtime/http/middlewares/settings.d.ts +0 -9
- package/lib/service/worker/runtime/http/middlewares/settings.js +0 -44
- package/lib/service/worker/runtime/http/middlewares/timings.d.ts +0 -3
- package/lib/service/worker/runtime/http/middlewares/vary.d.ts +0 -3
- package/lib/service/worker/runtime/http/router.d.ts +0 -2
- package/lib/service/worker/runtime/http/router.js +0 -23
- package/lib/service/worker/runtime/http/routes.d.ts +0 -19
- package/lib/service/worker/runtime/http/routes.js +0 -12
- package/lib/service/worker/runtime/method.d.ts +0 -9
- package/lib/service/worker/runtime/statusTrack.d.ts +0 -14
- package/lib/service/worker/runtime/statusTrack.js +0 -37
- package/lib/service/worker/runtime/utils/compose.d.ts +0 -5
- package/lib/service/worker/runtime/utils/context.d.ts +0 -2
- package/lib/service/worker/runtime/utils/context.js +0 -40
- package/lib/service/worker/runtime/utils/diff.d.ts +0 -12
- package/lib/service/worker/runtime/utils/diff.js +0 -21
- package/lib/service/worker/runtime/utils/recorder.d.ts +0 -8
- package/lib/service/worker/runtime/utils/recorder.js +0 -37
- package/lib/service/worker/runtime/utils/tokenBucket.d.ts +0 -2
- package/lib/service/worker/runtime/utils/tokenBucket.js +0 -16
- package/lib/tracing/LogEvents.d.ts +0 -31
- package/lib/tracing/LogEvents.js +0 -3
- package/lib/tracing/LogFields.d.ts +0 -66
- package/lib/tracing/LogFields.js +0 -3
- package/lib/tracing/Tags.d.ts +0 -81
- package/lib/tracing/Tags.js +0 -7
- package/lib/tracing/UserLandTracer.d.ts +0 -27
- package/lib/tracing/UserLandTracer.js +0 -56
- package/lib/tracing/errorReporting/ErrorReport.d.ts +0 -31
- package/lib/tracing/errorReporting/ErrorReport.js +0 -70
- package/lib/tracing/index.d.ts +0 -9
- package/lib/tracing/index.js +0 -19
- package/lib/tracing/spanReference/SpanReferenceTypes.d.ts +0 -4
- package/lib/tracing/spanReference/SpanReferenceTypes.js +0 -7
- package/lib/tracing/spanReference/createSpanReference.d.ts +0 -3
- package/lib/tracing/spanReference/createSpanReference.js +0 -8
- package/lib/tracing/utils.d.ts +0 -13
- package/lib/tracing/utils.js +0 -40
- package/lib/utils/conflicts.mock.d.ts +0 -17
- package/lib/utils/conflicts.mock.js +0 -27
- /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/error.d.ts +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/response.d.ts +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/upload.js +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/ioUpload.d.ts +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/ioUpload.js +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/sanitizedString.d.ts +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/typings.js +0 -0
- /package/lib/service/{worker/runtime/utils/toArray.d.ts → graphql/utils/array.d.ts} +0 -0
- /package/lib/service/{worker/runtime/utils/toArray.js → graphql/utils/array.js} +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/utils/pathname.d.ts +0 -0
- /package/lib/service/{worker/runtime/graphql → graphql}/utils/pathname.js +0 -0
- /package/lib/service/{worker/runtime/http → http}/middlewares/authTokens.js +0 -0
- /package/lib/service/{worker/runtime/http → http}/middlewares/clients.js +0 -0
- /package/lib/service/{worker/runtime/http → http}/middlewares/requestStats.js +0 -0
- /package/lib/service/{worker/runtime/http → http}/middlewares/setCookie.js +0 -0
- /package/lib/service/{worker/runtime/method.js → method.js} +0 -0
- /package/lib/service/{worker/runtime/typings.js → typings.js} +0 -0
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const __1 = require("../..");
|
|
4
|
-
const HttpClient_1 = require("../../HttpClient");
|
|
5
|
-
const ExternalClient_1 = require("./ExternalClient");
|
|
6
|
-
const routes = {
|
|
7
|
-
document: (dataEntity, id) => `${dataEntity}/documents/${id}`,
|
|
8
|
-
documents: (dataEntity) => `${dataEntity}/documents`,
|
|
9
|
-
publicSchema: (dataEntity, schema) => `${dataEntity}/schemas/${schema}/public`,
|
|
10
|
-
schema: (dataEntity, schema) => `${dataEntity}/schemas/${schema}`,
|
|
11
|
-
scroll: (dataEntity) => `${dataEntity}/scroll`,
|
|
12
|
-
search: (dataEntity) => `${dataEntity}/search`,
|
|
13
|
-
};
|
|
14
|
-
class MasterData extends ExternalClient_1.ExternalClient {
|
|
15
|
-
constructor(ctx, options) {
|
|
16
|
-
super(`http://api.vtex.com/api/dataentities`, ctx, {
|
|
17
|
-
...options,
|
|
18
|
-
headers: {
|
|
19
|
-
Accept: 'application/json',
|
|
20
|
-
VtexIdclientAutCookie: ctx.authToken,
|
|
21
|
-
'x-vtex-api-appService': ctx.userAgent,
|
|
22
|
-
...options === null || options === void 0 ? void 0 : options.headers,
|
|
23
|
-
},
|
|
24
|
-
params: {
|
|
25
|
-
an: ctx.account,
|
|
26
|
-
...options === null || options === void 0 ? void 0 : options.params,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
getSchema({ dataEntity, schema }, tracingConfig) {
|
|
31
|
-
const metric = 'masterdata-getSchema';
|
|
32
|
-
return this.http.get(routes.schema(dataEntity, schema), {
|
|
33
|
-
metric,
|
|
34
|
-
tracing: {
|
|
35
|
-
requestSpanNameSuffix: metric,
|
|
36
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
createOrUpdateSchema({ dataEntity, schemaName, schemaBody }, tracingConfig) {
|
|
41
|
-
const metric = 'masterdata-createOrUpdateSchema';
|
|
42
|
-
return this.http.put(routes.schema(dataEntity, schemaName), schemaBody, {
|
|
43
|
-
metric,
|
|
44
|
-
tracing: {
|
|
45
|
-
requestSpanNameSuffix: metric,
|
|
46
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
getPublicSchema({ dataEntity, schema }, tracingConfig) {
|
|
51
|
-
const metric = 'masterdata-getPublicSchema';
|
|
52
|
-
return this.http.get(routes.publicSchema(dataEntity, schema), {
|
|
53
|
-
metric,
|
|
54
|
-
tracing: {
|
|
55
|
-
requestSpanNameSuffix: metric,
|
|
56
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
getDocument({ dataEntity, id, fields }, tracingConfig) {
|
|
61
|
-
const metric = 'masterdata-getDocument';
|
|
62
|
-
return this.http.get(routes.document(dataEntity, id), {
|
|
63
|
-
metric,
|
|
64
|
-
params: {
|
|
65
|
-
_fields: generateFieldsArg(fields),
|
|
66
|
-
},
|
|
67
|
-
tracing: {
|
|
68
|
-
requestSpanNameSuffix: metric,
|
|
69
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
createDocument({ dataEntity, fields, schema }, tracingConfig) {
|
|
74
|
-
const metric = 'masterdata-createDocument';
|
|
75
|
-
return this.http.post(routes.documents(dataEntity), fields, {
|
|
76
|
-
metric,
|
|
77
|
-
params: {
|
|
78
|
-
_schema: schema,
|
|
79
|
-
},
|
|
80
|
-
tracing: {
|
|
81
|
-
requestSpanNameSuffix: metric,
|
|
82
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
createOrUpdateEntireDocument({ dataEntity, fields, id, schema }, tracingConfig) {
|
|
87
|
-
const metric = 'masterdata-createOrUpdateEntireDocument';
|
|
88
|
-
return this.http.put(routes.documents(dataEntity), { id, ...fields }, {
|
|
89
|
-
metric,
|
|
90
|
-
params: {
|
|
91
|
-
_schema: schema,
|
|
92
|
-
},
|
|
93
|
-
tracing: {
|
|
94
|
-
requestSpanNameSuffix: metric,
|
|
95
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
createOrUpdatePartialDocument({ dataEntity, fields, id, schema }, tracingConfig) {
|
|
100
|
-
const metric = 'masterdata-createOrUpdatePartialDocument';
|
|
101
|
-
return this.http.patch(routes.documents(dataEntity), { id, ...fields }, {
|
|
102
|
-
metric,
|
|
103
|
-
params: {
|
|
104
|
-
_schema: schema,
|
|
105
|
-
},
|
|
106
|
-
tracing: {
|
|
107
|
-
requestSpanNameSuffix: metric,
|
|
108
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
updateEntireDocument({ dataEntity, id, fields, schema }, tracingConfig) {
|
|
113
|
-
const metric = 'masterdata-updateEntireDocument';
|
|
114
|
-
return this.http.put(routes.document(dataEntity, id), fields, {
|
|
115
|
-
metric,
|
|
116
|
-
params: {
|
|
117
|
-
_schema: schema,
|
|
118
|
-
},
|
|
119
|
-
tracing: {
|
|
120
|
-
requestSpanNameSuffix: metric,
|
|
121
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
122
|
-
},
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
updatePartialDocument({ dataEntity, id, fields, schema }, tracingConfig) {
|
|
126
|
-
const metric = 'masterdata-updatePartialDocument';
|
|
127
|
-
return this.http.patch(routes.document(dataEntity, id), fields, {
|
|
128
|
-
metric,
|
|
129
|
-
params: {
|
|
130
|
-
_schema: schema,
|
|
131
|
-
},
|
|
132
|
-
tracing: {
|
|
133
|
-
requestSpanNameSuffix: metric,
|
|
134
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
135
|
-
},
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
searchDocuments({ dataEntity, fields, where, pagination, schema, sort }, tracingConfig) {
|
|
139
|
-
const metric = 'masterdata-searchDocuments';
|
|
140
|
-
return this.http.get(routes.search(dataEntity), {
|
|
141
|
-
cacheable: HttpClient_1.CacheType.None,
|
|
142
|
-
headers: paginationArgsToHeaders(pagination),
|
|
143
|
-
metric,
|
|
144
|
-
params: {
|
|
145
|
-
_fields: generateFieldsArg(fields),
|
|
146
|
-
_schema: schema,
|
|
147
|
-
_sort: sort,
|
|
148
|
-
_where: where,
|
|
149
|
-
},
|
|
150
|
-
tracing: {
|
|
151
|
-
requestSpanNameSuffix: metric,
|
|
152
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
153
|
-
},
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
async searchDocumentsWithPaginationInfo({ dataEntity, fields, where, pagination, schema, sort }, tracingConfig) {
|
|
157
|
-
const metric = 'masterdata-searchDocumentsWithPagination';
|
|
158
|
-
const result = await this.http.getRaw(routes.search(dataEntity), {
|
|
159
|
-
cacheable: HttpClient_1.CacheType.None,
|
|
160
|
-
headers: paginationArgsToHeaders(pagination),
|
|
161
|
-
metric,
|
|
162
|
-
params: {
|
|
163
|
-
_fields: generateFieldsArg(fields),
|
|
164
|
-
_schema: schema,
|
|
165
|
-
_sort: sort,
|
|
166
|
-
_where: where,
|
|
167
|
-
},
|
|
168
|
-
tracing: {
|
|
169
|
-
requestSpanNameSuffix: metric,
|
|
170
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
const headers = result.headers;
|
|
174
|
-
const restContentRange = headers['rest-content-range'];
|
|
175
|
-
const total = Number(restContentRange.split('/')[1]);
|
|
176
|
-
const paginationInfo = { ...pagination, total };
|
|
177
|
-
return { data: result.data, pagination: paginationInfo };
|
|
178
|
-
}
|
|
179
|
-
scrollDocuments({ dataEntity, fields, where, mdToken, schema, size, sort }, tracingConfig) {
|
|
180
|
-
const metric = 'masterdata-scrollDocuments';
|
|
181
|
-
return this.http
|
|
182
|
-
.getRaw(routes.scroll(dataEntity), {
|
|
183
|
-
cacheable: HttpClient_1.CacheType.None,
|
|
184
|
-
metric,
|
|
185
|
-
params: {
|
|
186
|
-
_fields: generateFieldsArg(fields),
|
|
187
|
-
_schema: schema,
|
|
188
|
-
_size: size,
|
|
189
|
-
_sort: sort,
|
|
190
|
-
_token: mdToken,
|
|
191
|
-
_where: where,
|
|
192
|
-
},
|
|
193
|
-
tracing: {
|
|
194
|
-
requestSpanNameSuffix: metric,
|
|
195
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
196
|
-
},
|
|
197
|
-
})
|
|
198
|
-
.then(({ headers: { 'x-vtex-md-token': resToken }, data }) => ({ mdToken: resToken, data }));
|
|
199
|
-
}
|
|
200
|
-
deleteDocument({ dataEntity, id }, tracingConfig) {
|
|
201
|
-
const metric = 'masterdata-deleteDocument';
|
|
202
|
-
return this.http.delete(routes.document(dataEntity, id), {
|
|
203
|
-
metric,
|
|
204
|
-
tracing: {
|
|
205
|
-
requestSpanNameSuffix: metric,
|
|
206
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
207
|
-
},
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
exports.MasterData = MasterData;
|
|
212
|
-
function paginationArgsToHeaders({ page, pageSize }) {
|
|
213
|
-
if (page < 1) {
|
|
214
|
-
throw new __1.UserInputError('Smallest page value is 1');
|
|
215
|
-
}
|
|
216
|
-
const startIndex = (page - 1) * pageSize;
|
|
217
|
-
const endIndex = startIndex + pageSize;
|
|
218
|
-
return {
|
|
219
|
-
'REST-Range': `resources=${startIndex}-${endIndex}`,
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function generateFieldsArg(fields) {
|
|
223
|
-
return fields.join(',');
|
|
224
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { InstanceOptions, IOContext, Maybe } from '../..';
|
|
2
|
-
import { RequestTracingConfig } from '../../HttpClient';
|
|
3
|
-
import { ExternalClient } from './ExternalClient';
|
|
4
|
-
export declare class PaymentProvider extends ExternalClient {
|
|
5
|
-
protected context: IOContext;
|
|
6
|
-
constructor(context: IOContext, options?: InstanceOptions);
|
|
7
|
-
callback: (transactionId: string, paymentId: string, callback: AuthorizationCallback, tracingConfig?: RequestTracingConfig | undefined) => Promise<unknown>;
|
|
8
|
-
inbound: <TRequest, TResponse>(transactionId: string, paymentId: string, action: string, payload: TRequest, tracingConfig?: RequestTracingConfig | undefined) => Promise<TResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface AuthorizationCallback {
|
|
11
|
-
paymentId: string;
|
|
12
|
-
status: string;
|
|
13
|
-
tid: string;
|
|
14
|
-
authorizationId?: Maybe<string>;
|
|
15
|
-
nsu?: Maybe<string>;
|
|
16
|
-
acquirer: string;
|
|
17
|
-
paymentUrl?: Maybe<string>;
|
|
18
|
-
paymentAppData?: Maybe<{
|
|
19
|
-
appName: string;
|
|
20
|
-
payload: string;
|
|
21
|
-
}>;
|
|
22
|
-
identificationNumber?: Maybe<string>;
|
|
23
|
-
identificationNumberFormatted?: Maybe<string>;
|
|
24
|
-
barCodeImageType?: Maybe<string>;
|
|
25
|
-
barCodeImageNumber?: Maybe<string>;
|
|
26
|
-
code?: Maybe<string>;
|
|
27
|
-
message?: Maybe<string>;
|
|
28
|
-
delayToAutoSettle?: Maybe<number>;
|
|
29
|
-
delayToAutoSettleAfterAntifraud?: Maybe<number>;
|
|
30
|
-
delayToCancel?: Maybe<number>;
|
|
31
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ExternalClient_1 = require("./ExternalClient");
|
|
4
|
-
const routes = {
|
|
5
|
-
callback: (transactionId, paymentId) => `${routes.payment(transactionId, paymentId)}/notification`,
|
|
6
|
-
inbound: (transactionId, paymentId, action) => `${routes.payment(transactionId, paymentId)}/inbound-request/${action}`,
|
|
7
|
-
payment: (transactionId, paymentId) => `/transactions/${transactionId}/payments/${paymentId}`,
|
|
8
|
-
};
|
|
9
|
-
class PaymentProvider extends ExternalClient_1.ExternalClient {
|
|
10
|
-
constructor(context, options) {
|
|
11
|
-
var _a;
|
|
12
|
-
super(`http://${context.account}.vtexpayments.com.br/payment-provider`, context, {
|
|
13
|
-
...(options !== null && options !== void 0 ? options : {}),
|
|
14
|
-
headers: {
|
|
15
|
-
...((_a = options === null || options === void 0 ? void 0 : options.headers) !== null && _a !== void 0 ? _a : {}),
|
|
16
|
-
'X-Vtex-Use-Https': 'true',
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
this.context = context;
|
|
20
|
-
this.callback = (transactionId, paymentId, callback, tracingConfig) => {
|
|
21
|
-
const metric = 'gateway-callback';
|
|
22
|
-
return this.http.post(routes.callback(transactionId, paymentId), callback, {
|
|
23
|
-
metric,
|
|
24
|
-
tracing: {
|
|
25
|
-
requestSpanNameSuffix: metric,
|
|
26
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
this.inbound = (transactionId, paymentId, action, payload, tracingConfig) => {
|
|
31
|
-
const metric = 'gateway-inbound-request';
|
|
32
|
-
return this.http.post(routes.inbound(transactionId, paymentId, action), payload, {
|
|
33
|
-
metric,
|
|
34
|
-
tracing: {
|
|
35
|
-
requestSpanNameSuffix: metric,
|
|
36
|
-
...tracingConfig === null || tracingConfig === void 0 ? void 0 : tracingConfig.tracing,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.PaymentProvider = PaymentProvider;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function __export(m) {
|
|
3
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
-
}
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
__export(require("./ExternalClient"));
|
|
7
|
-
__export(require("./ID"));
|
|
8
|
-
__export(require("./PaymentProvider"));
|
|
9
|
-
__export(require("./Masterdata"));
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { IncomingMessage } from 'http';
|
|
3
|
-
import { Readable, Writable } from 'stream';
|
|
4
|
-
import { ZlibOptions } from 'zlib';
|
|
5
|
-
import { InstanceOptions, RequestTracingConfig } from '../../HttpClient';
|
|
6
|
-
import { AppBundleLinked, AppFilesList, AppManifest } from '../../responses';
|
|
7
|
-
import { IOContext } from '../../service/worker/runtime/typings';
|
|
8
|
-
import { InfraClient } from './InfraClient';
|
|
9
|
-
export declare class Apps extends InfraClient {
|
|
10
|
-
private _routes;
|
|
11
|
-
private diskCache;
|
|
12
|
-
private memoryCache;
|
|
13
|
-
private get routes();
|
|
14
|
-
constructor(context: IOContext, options?: InstanceOptions);
|
|
15
|
-
installApp: (descriptor: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<void> | Promise<AppInstallResponse>;
|
|
16
|
-
uninstallApp: (app: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<import("../..").IOResponse<void>>;
|
|
17
|
-
acknowledgeApp: (app: string, service: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<void>;
|
|
18
|
-
link: (app: string, files: Change[], { zlib }?: ZipOptions, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppBundleLinked>;
|
|
19
|
-
patch: (app: string, changes: Change[], { zlib }?: ZipOptions, tracingConfig?: RequestTracingConfig | undefined) => Promise<void>;
|
|
20
|
-
unlink: (app: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<import("../..").IOResponse<void>>;
|
|
21
|
-
unlinkAll: (tracingConfig?: RequestTracingConfig | undefined) => Promise<import("../..").IOResponse<void>>;
|
|
22
|
-
saveAppSettings: (app: string, settings: any, tracingConfig?: RequestTracingConfig | undefined) => Promise<void>;
|
|
23
|
-
listApps: ({ oldVersion, since, service }?: ListAppsOptions, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppsList>;
|
|
24
|
-
listAppFiles: (app: string, { prefix, nextMarker }?: ListFilesOptions, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppFilesList>;
|
|
25
|
-
listLinks: (tracingConfig?: RequestTracingConfig | undefined) => Promise<string[]>;
|
|
26
|
-
getAppFile: (app: string, path: string, staleIfError?: boolean | undefined, tracingConfig?: RequestTracingConfig | undefined) => Promise<{
|
|
27
|
-
data: Buffer;
|
|
28
|
-
headers: any;
|
|
29
|
-
}>;
|
|
30
|
-
getAppJSON: <T extends object | null>(app: string, path: string, nullIfNotFound?: boolean | undefined, tracingConfig?: RequestTracingConfig | undefined) => Promise<T>;
|
|
31
|
-
getFileFromApps: <T extends object | null>(app: string, path: string, nullIfNotFound?: boolean | undefined, tracingConfig?: RequestTracingConfig | undefined) => Promise<T>;
|
|
32
|
-
getAppFileStream: (app: string, path: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<IncomingMessage>;
|
|
33
|
-
getApp: (app: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppManifest>;
|
|
34
|
-
getAppSettings: (app: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<any>;
|
|
35
|
-
getAllAppsSettings: (listAppsOptions?: ListAppsOptions, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppsSettings>;
|
|
36
|
-
getAppBundle: (app: string, bundlePath: string, generatePackageJson: boolean, tracingConfig?: RequestTracingConfig | undefined) => Promise<Readable>;
|
|
37
|
-
unpackAppBundle: (app: string, bundlePath: string, unpackPath: string, generatePackageJson: boolean, tracingConfig?: RequestTracingConfig | undefined) => Promise<Writable>;
|
|
38
|
-
getAppsMetaInfos: (filter?: string | undefined, staleWhileRevalidate?: boolean, tracingConfig?: RequestTracingConfig | undefined) => Promise<AppMetaInfo[]>;
|
|
39
|
-
getDependencies: (filter?: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<Record<string, string[]>>;
|
|
40
|
-
updateDependencies: (tracingConfig?: RequestTracingConfig | undefined) => Promise<Record<string, string[]>>;
|
|
41
|
-
updateDependency: (name: string, version: string, registry: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<void>;
|
|
42
|
-
resolveDependencies: (apps: string[], registries: string[], filter?: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<any>;
|
|
43
|
-
resolveDependenciesWithManifest: (manifest: AppManifest, filter?: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<Record<string, string[]>>;
|
|
44
|
-
private installRuntime;
|
|
45
|
-
}
|
|
46
|
-
interface ZipOptions {
|
|
47
|
-
zlib?: ZlibOptions;
|
|
48
|
-
}
|
|
49
|
-
export interface AppMetaInfo {
|
|
50
|
-
id: string;
|
|
51
|
-
settingsSchema?: Record<string, any>;
|
|
52
|
-
_resolvedDependencies: Record<string, string>;
|
|
53
|
-
_isRoot: boolean;
|
|
54
|
-
_buildFeatures: Record<string, string[]>;
|
|
55
|
-
}
|
|
56
|
-
export interface WorkspaceMetaInfo {
|
|
57
|
-
apps: AppMetaInfo[];
|
|
58
|
-
}
|
|
59
|
-
export interface AppsListItem {
|
|
60
|
-
app: string;
|
|
61
|
-
id: string;
|
|
62
|
-
location: string;
|
|
63
|
-
}
|
|
64
|
-
export interface AppsList {
|
|
65
|
-
data: AppsListItem[];
|
|
66
|
-
}
|
|
67
|
-
export interface Change {
|
|
68
|
-
path: string;
|
|
69
|
-
content: string | Readable | Buffer;
|
|
70
|
-
}
|
|
71
|
-
export interface ListAppsOptions {
|
|
72
|
-
oldVersion?: string;
|
|
73
|
-
context?: string[];
|
|
74
|
-
since?: string;
|
|
75
|
-
service?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface ListFilesOptions {
|
|
78
|
-
prefix?: string;
|
|
79
|
-
context?: string[];
|
|
80
|
-
nextMarker?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface AppsSettings {
|
|
83
|
-
[app: string]: any;
|
|
84
|
-
}
|
|
85
|
-
export interface AppInstallResponse {
|
|
86
|
-
message: string;
|
|
87
|
-
}
|
|
88
|
-
export {};
|