@ductape/sdk 0.0.4-v51 → 0.0.4-v53
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 +1 -1
- package/dist/agents/agent-context.d.ts +98 -0
- package/dist/agents/agent-context.js +588 -0
- package/dist/agents/agent-context.js.map +1 -0
- package/dist/agents/agent-executor.d.ts +180 -0
- package/dist/agents/agent-executor.js +715 -0
- package/dist/agents/agent-executor.js.map +1 -0
- package/dist/agents/agents.service.d.ts +304 -0
- package/dist/agents/agents.service.js +1244 -0
- package/dist/agents/agents.service.js.map +1 -0
- package/dist/agents/index.d.ts +55 -0
- package/dist/agents/index.js +110 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/memory-manager.d.ts +182 -0
- package/dist/agents/memory-manager.js +383 -0
- package/dist/agents/memory-manager.js.map +1 -0
- package/dist/agents/tool-registry.d.ts +141 -0
- package/dist/agents/tool-registry.js +355 -0
- package/dist/agents/tool-registry.js.map +1 -0
- package/dist/agents/types/agents.types.d.ts +1225 -0
- package/dist/agents/types/agents.types.js +12 -0
- package/dist/agents/types/agents.types.js.map +1 -0
- package/dist/agents/types/index.d.ts +6 -0
- package/dist/agents/types/index.js +23 -0
- package/dist/agents/types/index.js.map +1 -0
- package/dist/agents/vector-store-adapter.d.ts +108 -0
- package/dist/agents/vector-store-adapter.js +213 -0
- package/dist/agents/vector-store-adapter.js.map +1 -0
- package/dist/api/services/appApi.service.js +4 -5
- package/dist/api/services/appApi.service.js.map +1 -1
- package/dist/api/services/processorApi.service.d.ts +322 -0
- package/dist/api/services/processorApi.service.js +252 -0
- package/dist/api/services/processorApi.service.js.map +1 -1
- package/dist/api/services/productsApi.service.d.ts +69 -1
- package/dist/api/services/productsApi.service.js +67 -31
- package/dist/api/services/productsApi.service.js.map +1 -1
- package/dist/api/services/resilienceApi.service.d.ts +106 -0
- package/dist/api/services/resilienceApi.service.js +224 -0
- package/dist/api/services/resilienceApi.service.js.map +1 -0
- package/dist/api/services/secretsApi.service.d.ts +38 -0
- package/dist/api/services/secretsApi.service.js +96 -0
- package/dist/api/services/secretsApi.service.js.map +1 -0
- package/dist/api/services/userApi.service.js +0 -1
- package/dist/api/services/userApi.service.js.map +1 -1
- package/dist/api/services/workflowApi.service.d.ts +199 -0
- package/dist/api/services/workflowApi.service.js +183 -0
- package/dist/api/services/workflowApi.service.js.map +1 -0
- package/dist/api/services/workspaceApi.service.js +0 -1
- package/dist/api/services/workspaceApi.service.js.map +1 -1
- package/dist/api/urls.d.ts +57 -0
- package/dist/api/urls.js +68 -1
- package/dist/api/urls.js.map +1 -1
- package/dist/api/utils/cache.utils.js +4 -10
- package/dist/api/utils/cache.utils.js.map +1 -1
- package/dist/apps/services/app.service.d.ts +0 -10
- package/dist/apps/services/app.service.js +74 -30
- package/dist/apps/services/app.service.js.map +1 -1
- package/dist/apps/utils/auth-context-manager.d.ts +137 -0
- package/dist/apps/utils/auth-context-manager.js +248 -0
- package/dist/apps/utils/auth-context-manager.js.map +1 -0
- package/dist/apps/utils/credential-manager.d.ts +128 -0
- package/dist/apps/utils/credential-manager.js +199 -0
- package/dist/apps/utils/credential-manager.js.map +1 -0
- package/dist/apps/utils/index.d.ts +10 -0
- package/dist/apps/utils/index.js +54 -0
- package/dist/apps/utils/index.js.map +1 -0
- package/dist/apps/utils/input-helpers.d.ts +67 -0
- package/dist/apps/utils/input-helpers.js +185 -0
- package/dist/apps/utils/input-helpers.js.map +1 -0
- package/dist/apps/utils/input-resolver.d.ts +165 -0
- package/dist/apps/utils/input-resolver.js +477 -0
- package/dist/apps/utils/input-resolver.js.map +1 -0
- package/dist/apps/utils/oauth-manager.d.ts +196 -0
- package/dist/apps/utils/oauth-manager.js +405 -0
- package/dist/apps/utils/oauth-manager.js.map +1 -0
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.d.ts +2 -1
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js +15 -2
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.d.ts +2 -1
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.js +14 -2
- package/dist/apps/validators/joi-validators/update.appWebhook.validator.js.map +1 -1
- package/dist/bin.d.ts +26 -0
- package/dist/bin.js +28 -0
- package/dist/bin.js.map +1 -0
- package/dist/brokers/brokers.service.d.ts +257 -0
- package/dist/brokers/brokers.service.js +604 -0
- package/dist/brokers/brokers.service.js.map +1 -0
- package/dist/brokers/index.d.ts +46 -0
- package/dist/brokers/index.js +83 -0
- package/dist/brokers/index.js.map +1 -0
- package/dist/brokers/types/index.d.ts +288 -0
- package/dist/brokers/types/index.js +8 -0
- package/dist/brokers/types/index.js.map +1 -0
- package/dist/brokers/utils/broker.util.d.ts +33 -0
- package/dist/brokers/utils/broker.util.js +125 -0
- package/dist/brokers/utils/broker.util.js.map +1 -0
- package/dist/brokers/utils/providers/aws-sqs.service.d.ts +16 -0
- package/dist/brokers/utils/providers/aws-sqs.service.js +71 -0
- package/dist/brokers/utils/providers/aws-sqs.service.js.map +1 -0
- package/dist/brokers/utils/providers/google-pubsub.service.d.ts +16 -0
- package/dist/brokers/utils/providers/google-pubsub.service.js +43 -0
- package/dist/brokers/utils/providers/google-pubsub.service.js.map +1 -0
- package/dist/brokers/utils/providers/index.d.ts +6 -0
- package/dist/brokers/utils/providers/index.js +16 -0
- package/dist/brokers/utils/providers/index.js.map +1 -0
- package/dist/brokers/utils/providers/kafka.service.d.ts +16 -0
- package/dist/brokers/utils/providers/kafka.service.js +52 -0
- package/dist/brokers/utils/providers/kafka.service.js.map +1 -0
- package/dist/brokers/utils/providers/nats.service.d.ts +18 -0
- package/dist/brokers/utils/providers/nats.service.js +63 -0
- package/dist/brokers/utils/providers/nats.service.js.map +1 -0
- package/dist/brokers/utils/providers/rabbitmq.service.d.ts +14 -0
- package/dist/brokers/utils/providers/rabbitmq.service.js +67 -0
- package/dist/brokers/utils/providers/rabbitmq.service.js.map +1 -0
- package/dist/brokers/utils/providers/redis.service.d.ts +18 -0
- package/dist/brokers/utils/providers/redis.service.js +93 -0
- package/dist/brokers/utils/providers/redis.service.js.map +1 -0
- package/dist/cache/cache.manager.d.ts +159 -0
- package/dist/cache/cache.manager.js +265 -0
- package/dist/cache/cache.manager.js.map +1 -0
- package/dist/cache/cache.service.d.ts +186 -0
- package/dist/cache/cache.service.js +437 -0
- package/dist/cache/cache.service.js.map +1 -0
- package/dist/cache/index.d.ts +52 -0
- package/dist/cache/index.js +79 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/types/index.d.ts +106 -0
- package/dist/cache/types/index.js +6 -0
- package/dist/cache/types/index.js.map +1 -0
- package/dist/database/actions/action-manager.d.ts +170 -0
- package/dist/database/actions/action-manager.js +465 -0
- package/dist/database/actions/action-manager.js.map +1 -0
- package/dist/database/actions/index.d.ts +6 -0
- package/dist/database/actions/index.js +13 -0
- package/dist/database/actions/index.js.map +1 -0
- package/dist/database/adapters/adapter.factory.d.ts +62 -0
- package/dist/database/adapters/adapter.factory.js +97 -0
- package/dist/database/adapters/adapter.factory.js.map +1 -0
- package/dist/database/adapters/base.adapter.d.ts +307 -90
- package/dist/database/adapters/base.adapter.js +139 -20
- package/dist/database/adapters/base.adapter.js.map +1 -1
- package/dist/database/adapters/cassandra.adapter.d.ts +90 -0
- package/dist/database/adapters/cassandra.adapter.js +1019 -0
- package/dist/database/adapters/cassandra.adapter.js.map +1 -0
- package/dist/database/adapters/dynamodb.adapter.d.ts +94 -77
- package/dist/database/adapters/dynamodb.adapter.js +1162 -1305
- package/dist/database/adapters/dynamodb.adapter.js.map +1 -1
- package/dist/database/adapters/index.d.ts +11 -0
- package/dist/database/adapters/index.js +27 -0
- package/dist/database/adapters/index.js.map +1 -0
- package/dist/database/adapters/mariadb.adapter.d.ts +100 -0
- package/dist/database/adapters/mariadb.adapter.js +247 -0
- package/dist/database/adapters/mariadb.adapter.js.map +1 -0
- package/dist/database/adapters/mongodb.adapter.d.ts +105 -57
- package/dist/database/adapters/mongodb.adapter.js +941 -838
- package/dist/database/adapters/mongodb.adapter.js.map +1 -1
- package/dist/database/adapters/mysql.adapter.d.ts +76 -138
- package/dist/database/adapters/mysql.adapter.js +990 -1246
- package/dist/database/adapters/mysql.adapter.js.map +1 -1
- package/dist/database/adapters/postgresql.adapter.d.ts +75 -139
- package/dist/database/adapters/postgresql.adapter.js +1076 -1346
- package/dist/database/adapters/postgresql.adapter.js.map +1 -1
- package/dist/database/databases.service.d.ts +1374 -0
- package/dist/database/databases.service.js +2680 -0
- package/dist/database/databases.service.js.map +1 -0
- package/dist/database/index.d.ts +41 -13
- package/dist/database/index.js +97 -86
- package/dist/database/index.js.map +1 -1
- package/dist/database/migrations/index.d.ts +6 -0
- package/dist/database/migrations/index.js +12 -0
- package/dist/database/migrations/index.js.map +1 -0
- package/dist/database/migrations/migration-engine.d.ts +132 -0
- package/dist/database/migrations/migration-engine.js +1356 -0
- package/dist/database/migrations/migration-engine.js.map +1 -0
- package/dist/database/operators/aggregation-builder.d.ts +64 -0
- package/dist/database/operators/aggregation-builder.js +746 -0
- package/dist/database/operators/aggregation-builder.js.map +1 -0
- package/dist/database/operators/index.d.ts +7 -0
- package/dist/database/operators/index.js +15 -0
- package/dist/database/operators/index.js.map +1 -0
- package/dist/database/operators/query-builder.d.ts +55 -0
- package/dist/database/operators/query-builder.js +365 -0
- package/dist/database/operators/query-builder.js.map +1 -0
- package/dist/database/presave/decrypt.d.ts +25 -0
- package/dist/database/presave/decrypt.js +146 -0
- package/dist/database/presave/decrypt.js.map +1 -0
- package/dist/database/presave/index.d.ts +9 -0
- package/dist/database/presave/index.js +18 -0
- package/dist/database/presave/index.js.map +1 -0
- package/dist/database/presave/presave-processor.d.ts +148 -0
- package/dist/database/presave/presave-processor.js +702 -0
- package/dist/database/presave/presave-processor.js.map +1 -0
- package/dist/database/schema/index.d.ts +7 -0
- package/dist/database/schema/index.js +13 -0
- package/dist/database/schema/index.js.map +1 -0
- package/dist/database/schema/schema-manager.d.ts +258 -0
- package/dist/database/schema/schema-manager.js +637 -0
- package/dist/database/schema/schema-manager.js.map +1 -0
- package/dist/database/transactions/index.d.ts +6 -0
- package/dist/database/transactions/index.js +13 -0
- package/dist/database/transactions/index.js.map +1 -0
- package/dist/database/transactions/transaction-manager.d.ts +113 -0
- package/dist/database/transactions/transaction-manager.js +344 -0
- package/dist/database/transactions/transaction-manager.js.map +1 -0
- package/dist/database/triggers/index.d.ts +7 -0
- package/dist/database/triggers/index.js +14 -0
- package/dist/database/triggers/index.js.map +1 -0
- package/dist/database/triggers/trigger-processor.d.ts +239 -0
- package/dist/database/triggers/trigger-processor.js +1034 -0
- package/dist/database/triggers/trigger-processor.js.map +1 -0
- package/dist/database/types/action.interface.d.ts +148 -0
- package/dist/database/types/action.interface.js +6 -0
- package/dist/database/types/action.interface.js.map +1 -0
- package/dist/database/types/aggregation.interface.d.ts +179 -0
- package/dist/database/types/aggregation.interface.js +6 -0
- package/dist/database/types/aggregation.interface.js.map +1 -0
- package/dist/database/types/connection.interface.d.ts +137 -0
- package/dist/database/types/connection.interface.js +6 -0
- package/dist/database/types/connection.interface.js.map +1 -0
- package/dist/database/types/enums.d.ts +195 -0
- package/dist/database/types/enums.js +244 -0
- package/dist/database/types/enums.js.map +1 -0
- package/dist/database/types/index.d.ts +12 -10
- package/dist/database/types/index.js +26 -32
- package/dist/database/types/index.js.map +1 -1
- package/dist/database/types/migration.interface.d.ts +686 -0
- package/dist/database/types/migration.interface.js +9 -0
- package/dist/database/types/migration.interface.js.map +1 -0
- package/dist/database/types/presave.interface.d.ts +292 -0
- package/dist/database/types/presave.interface.js +60 -0
- package/dist/database/types/presave.interface.js.map +1 -0
- package/dist/database/types/query.interface.d.ts +199 -0
- package/dist/database/types/query.interface.js +6 -0
- package/dist/database/types/query.interface.js.map +1 -0
- package/dist/database/types/schema.interface.d.ts +398 -0
- package/dist/database/types/schema.interface.js +6 -0
- package/dist/database/types/schema.interface.js.map +1 -0
- package/dist/database/types/transaction.interface.d.ts +84 -0
- package/dist/database/types/transaction.interface.js +6 -0
- package/dist/database/types/transaction.interface.js.map +1 -0
- package/dist/database/types/trigger.interface.d.ts +612 -0
- package/dist/database/types/trigger.interface.js +121 -0
- package/dist/database/types/trigger.interface.js.map +1 -0
- package/dist/database/types/write.interface.d.ts +208 -0
- package/dist/database/types/write.interface.js +6 -0
- package/dist/database/types/write.interface.js.map +1 -0
- package/dist/database/utils/database-error.d.ts +96 -0
- package/dist/database/utils/database-error.js +221 -0
- package/dist/database/utils/database-error.js.map +1 -0
- package/dist/database/utils/index.d.ts +6 -0
- package/dist/database/utils/index.js +11 -0
- package/dist/database/utils/index.js.map +1 -0
- package/dist/graph/adapters/adapter.factory.d.ts +47 -0
- package/dist/graph/adapters/adapter.factory.js +77 -0
- package/dist/graph/adapters/adapter.factory.js.map +1 -0
- package/dist/graph/adapters/arangodb.adapter.d.ts +78 -72
- package/dist/graph/adapters/arangodb.adapter.js +1310 -1220
- package/dist/graph/adapters/arangodb.adapter.js.map +1 -1
- package/dist/graph/adapters/base.adapter.d.ts +135 -118
- package/dist/graph/adapters/base.adapter.js +46 -20
- package/dist/graph/adapters/base.adapter.js.map +1 -1
- package/dist/graph/adapters/index.d.ts +5 -4
- package/dist/graph/adapters/index.js +6 -8
- package/dist/graph/adapters/index.js.map +1 -1
- package/dist/graph/adapters/memgraph.adapter.d.ts +98 -73
- package/dist/graph/adapters/memgraph.adapter.js +1050 -1202
- package/dist/graph/adapters/memgraph.adapter.js.map +1 -1
- package/dist/graph/adapters/neo4j.adapter.d.ts +71 -78
- package/dist/graph/adapters/neo4j.adapter.js +912 -1605
- package/dist/graph/adapters/neo4j.adapter.js.map +1 -1
- package/dist/graph/adapters/neptune.adapter.d.ts +76 -81
- package/dist/graph/adapters/neptune.adapter.js +1095 -1228
- package/dist/graph/adapters/neptune.adapter.js.map +1 -1
- package/dist/graph/graphs.service.d.ts +524 -0
- package/dist/graph/graphs.service.js +1683 -0
- package/dist/graph/graphs.service.js.map +1 -0
- package/dist/graph/index.d.ts +54 -8
- package/dist/graph/index.js +67 -32
- package/dist/graph/index.js.map +1 -1
- package/dist/graph/transactions/index.d.ts +4 -0
- package/dist/graph/transactions/index.js +9 -0
- package/dist/graph/transactions/index.js.map +1 -0
- package/dist/graph/transactions/transaction-manager.d.ts +61 -0
- package/dist/graph/transactions/transaction-manager.js +126 -0
- package/dist/graph/transactions/transaction-manager.js.map +1 -0
- package/dist/graph/types/connection.interface.d.ts +141 -0
- package/dist/graph/types/connection.interface.js +9 -0
- package/dist/graph/types/connection.interface.js.map +1 -0
- package/dist/graph/types/enums.d.ts +101 -0
- package/dist/graph/types/enums.js +114 -0
- package/dist/graph/types/enums.js.map +1 -0
- package/dist/graph/types/index.d.ts +11 -9
- package/dist/graph/types/index.js +15 -30
- package/dist/graph/types/index.js.map +1 -1
- package/dist/graph/types/node.interface.d.ts +248 -0
- package/dist/graph/types/node.interface.js +9 -0
- package/dist/graph/types/node.interface.js.map +1 -0
- package/dist/graph/types/query.interface.d.ts +168 -0
- package/dist/graph/types/query.interface.js +9 -0
- package/dist/graph/types/query.interface.js.map +1 -0
- package/dist/graph/types/relationship.interface.d.ts +207 -0
- package/dist/graph/types/relationship.interface.js +9 -0
- package/dist/graph/types/relationship.interface.js.map +1 -0
- package/dist/graph/types/schema.interface.d.ts +295 -0
- package/dist/graph/types/schema.interface.js +9 -0
- package/dist/graph/types/schema.interface.js.map +1 -0
- package/dist/graph/types/transaction.interface.d.ts +55 -0
- package/dist/graph/types/transaction.interface.js +9 -0
- package/dist/graph/types/transaction.interface.js.map +1 -0
- package/dist/graph/types/traversal.interface.d.ts +181 -0
- package/dist/graph/types/traversal.interface.js +9 -0
- package/dist/graph/types/traversal.interface.js.map +1 -0
- package/dist/graph/utils/graph-error.d.ts +71 -0
- package/dist/graph/utils/graph-error.js +142 -0
- package/dist/graph/utils/graph-error.js.map +1 -0
- package/dist/graph/utils/index.d.ts +4 -0
- package/dist/graph/utils/index.js +9 -0
- package/dist/graph/utils/index.js.map +1 -0
- package/dist/index.d.ts +1905 -875
- package/dist/index.js +3063 -1282
- package/dist/index.js.map +1 -1
- package/dist/init.interface.d.ts +407 -0
- package/dist/init.interface.js +3 -0
- package/dist/init.interface.js.map +1 -0
- package/dist/jobs/index.d.ts +38 -0
- package/dist/jobs/index.js +50 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/jobs/jobs.service.d.ts +154 -0
- package/dist/jobs/jobs.service.js +491 -0
- package/dist/jobs/jobs.service.js.map +1 -0
- package/dist/jobs/jobs.state.d.ts +113 -0
- package/dist/jobs/jobs.state.js +447 -0
- package/dist/jobs/jobs.state.js.map +1 -0
- package/dist/jobs/types.d.ts +449 -0
- package/dist/jobs/types.js +74 -0
- package/dist/jobs/types.js.map +1 -0
- package/dist/logs/logs.types.d.ts +12 -2
- package/dist/logs/logs.types.js +5 -1
- package/dist/logs/logs.types.js.map +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +11 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/models.service.d.ts +137 -0
- package/dist/models/models.service.js +195 -0
- package/dist/models/models.service.js.map +1 -0
- package/dist/notifications/index.d.ts +13 -0
- package/dist/notifications/index.js +26 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/notifications.service.d.ts +252 -0
- package/dist/notifications/notifications.service.js +654 -0
- package/dist/notifications/notifications.service.js.map +1 -0
- package/dist/notifications/types/index.d.ts +4 -0
- package/dist/notifications/types/index.js +21 -0
- package/dist/notifications/types/index.js.map +1 -0
- package/dist/notifications/types/notifications.types.d.ts +400 -0
- package/dist/notifications/types/notifications.types.js +49 -0
- package/dist/notifications/types/notifications.types.js.map +1 -0
- package/dist/processor/services/messagebrokers/kafka.service.js +2 -0
- package/dist/processor/services/messagebrokers/kafka.service.js.map +1 -1
- package/dist/processor/services/messagebrokers/rabbitmq.service.d.ts +1 -9
- package/dist/processor/services/messagebrokers/rabbitmq.service.js +11 -40
- package/dist/processor/services/messagebrokers/rabbitmq.service.js.map +1 -1
- package/dist/processor/services/processor.service.d.ts +86 -70
- package/dist/processor/services/processor.service.js +1353 -1259
- package/dist/processor/services/processor.service.js.map +1 -1
- package/dist/processor/utils/processor.utils.js +5 -1
- package/dist/processor/utils/processor.utils.js.map +1 -1
- package/dist/products/services/products.service.d.ts +167 -25
- package/dist/products/services/products.service.js +1248 -412
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/products/validators/index.d.ts +6 -3
- package/dist/products/validators/index.js +14 -5
- package/dist/products/validators/index.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productAgent.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productAgent.validator.js +218 -0
- package/dist/products/validators/joi-validators/create.productAgent.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js +5 -0
- package/dist/products/validators/joi-validators/create.productDatabase.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.d.ts +4 -15
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js +109 -501
- package/dist/products/validators/joi-validators/create.productDatabaseAction.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productGraph.validator.js +14 -9
- package/dist/products/validators/joi-validators/create.productGraph.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js +0 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokerTopic.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js +87 -30
- package/dist/products/validators/joi-validators/create.productMessageBrokers.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productModel.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productModel.validator.js +132 -0
- package/dist/products/validators/joi-validators/create.productModel.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/create.productNotification.validator.js +135 -50
- package/dist/products/validators/joi-validators/create.productNotification.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productStorage.validator.js +77 -18
- package/dist/products/validators/joi-validators/create.productStorage.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productVector.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.productVector.validator.js +135 -0
- package/dist/products/validators/joi-validators/create.productVector.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js +5 -0
- package/dist/products/validators/joi-validators/update.productDatabase.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.d.ts +0 -6
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js +26 -28
- package/dist/products/validators/joi-validators/update.productDatabaseAction.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productGraph.validator.js +11 -12
- package/dist/products/validators/joi-validators/update.productGraph.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js +0 -1
- package/dist/products/validators/joi-validators/update.productMessageBrokerTopic.validator.js.map +1 -1
- package/dist/resilience/fallback.service.d.ts +88 -0
- package/dist/resilience/fallback.service.js +511 -0
- package/dist/resilience/fallback.service.js.map +1 -0
- package/dist/resilience/healthcheck.service.d.ts +106 -0
- package/dist/resilience/healthcheck.service.js +379 -0
- package/dist/resilience/healthcheck.service.js.map +1 -0
- package/dist/resilience/index.d.ts +104 -0
- package/dist/resilience/index.js +140 -0
- package/dist/resilience/index.js.map +1 -0
- package/dist/resilience/quota.service.d.ts +90 -0
- package/dist/resilience/quota.service.js +519 -0
- package/dist/resilience/quota.service.js.map +1 -0
- package/dist/resilience/resilience.service.d.ts +95 -0
- package/dist/resilience/resilience.service.js +525 -0
- package/dist/resilience/resilience.service.js.map +1 -0
- package/dist/resilience/types/index.d.ts +479 -0
- package/dist/resilience/types/index.js +26 -0
- package/dist/resilience/types/index.js.map +1 -0
- package/dist/secrets/index.d.ts +10 -0
- package/dist/secrets/index.js +33 -0
- package/dist/secrets/index.js.map +1 -0
- package/dist/secrets/secrets.resolver.d.ts +52 -0
- package/dist/secrets/secrets.resolver.js +233 -0
- package/dist/secrets/secrets.resolver.js.map +1 -0
- package/dist/secrets/secrets.service.d.ts +83 -0
- package/dist/secrets/secrets.service.js +159 -0
- package/dist/secrets/secrets.service.js.map +1 -0
- package/dist/secrets/secrets.types.d.ts +188 -0
- package/dist/secrets/secrets.types.js +87 -0
- package/dist/secrets/secrets.types.js.map +1 -0
- package/dist/sessions/index.d.ts +50 -0
- package/dist/sessions/index.js +93 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/sessions/sessions.helper.d.ts +68 -0
- package/dist/sessions/sessions.helper.js +116 -0
- package/dist/sessions/sessions.helper.js.map +1 -0
- package/dist/sessions/sessions.resolver.d.ts +150 -0
- package/dist/sessions/sessions.resolver.js +356 -0
- package/dist/sessions/sessions.resolver.js.map +1 -0
- package/dist/sessions/sessions.service.d.ts +170 -0
- package/dist/sessions/sessions.service.js +736 -0
- package/dist/sessions/sessions.service.js.map +1 -0
- package/dist/sessions/types/index.d.ts +290 -0
- package/dist/sessions/types/index.js +6 -0
- package/dist/sessions/types/index.js.map +1 -0
- package/dist/storage/index.d.ts +66 -0
- package/dist/storage/index.js +98 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/storage.service.d.ts +123 -0
- package/dist/storage/storage.service.js +478 -0
- package/dist/storage/storage.service.js.map +1 -0
- package/dist/storage/types/index.d.ts +207 -0
- package/dist/storage/types/index.js +6 -0
- package/dist/storage/types/index.js.map +1 -0
- package/dist/storage/utils/storage.util.d.ts +51 -0
- package/dist/storage/utils/storage.util.js +402 -0
- package/dist/storage/utils/storage.util.js.map +1 -0
- package/dist/test/index.d.ts +3 -0
- package/dist/test/index.js +13 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/test.appBuilder.d.ts +0 -1
- package/dist/test/test.appBuilder.js +0 -15
- package/dist/test/test.appBuilder.js.map +1 -1
- package/dist/test/test.database.js +140 -0
- package/dist/test/test.database.js.map +1 -0
- package/dist/test/test.health.d.ts +0 -1
- package/dist/test/test.health.js +0 -48
- package/dist/test/test.health.js.map +1 -1
- package/dist/test/test.import.d.ts +0 -1
- package/dist/test/test.import.js +0 -1506
- package/dist/test/test.import.js.map +1 -1
- package/dist/test/test.import.openapi.d.ts +0 -1
- package/dist/test/test.import.openapi.js +0 -75
- package/dist/test/test.import.openapi.js.map +1 -1
- package/dist/test/test.imports.d.ts +0 -1
- package/dist/test/test.imports.js +0 -76
- package/dist/test/test.imports.js.map +1 -1
- package/dist/test/test.logs.d.ts +0 -1
- package/dist/test/test.logs.js +0 -17
- package/dist/test/test.logs.js.map +1 -1
- package/dist/test/test.notifiers.d.ts +0 -1
- package/dist/test/test.notifiers.js +0 -84
- package/dist/test/test.notifiers.js.map +1 -1
- package/dist/test/test.processor.d.ts +0 -1
- package/dist/test/test.processor.js +0 -37
- package/dist/test/test.processor.js.map +1 -1
- package/dist/test/test.productBuilder.d.ts +0 -1
- package/dist/test/test.productBuilder.js +0 -660
- package/dist/test/test.productBuilder.js.map +1 -1
- package/dist/test/test.products.d.ts +0 -1
- package/dist/test/test.products.js +0 -48
- package/dist/test/test.products.js.map +1 -1
- package/dist/test/test.storage.js +332 -0
- package/dist/test/test.storage.js.map +1 -0
- package/dist/test/test.triggers.js +314 -0
- package/dist/test/test.triggers.js.map +1 -0
- package/dist/types/appBuilder.types.d.ts +1 -1
- package/dist/types/enums.d.ts +6 -1
- package/dist/types/enums.js +5 -0
- package/dist/types/enums.js.map +1 -1
- package/dist/types/processor.types.d.ts +197 -35
- package/dist/types/processor.types.js +9 -1
- package/dist/types/processor.types.js.map +1 -1
- package/dist/types/productsBuilder.types.d.ts +837 -75
- package/dist/types/productsBuilder.types.js +168 -62
- package/dist/types/productsBuilder.types.js.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +2 -49
- package/dist/utils/index.js.map +1 -1
- package/dist/vector/adapters/base.adapter.d.ts +152 -0
- package/dist/vector/adapters/base.adapter.js +137 -0
- package/dist/vector/adapters/base.adapter.js.map +1 -0
- package/dist/vector/adapters/index.d.ts +10 -0
- package/dist/vector/adapters/index.js +19 -0
- package/dist/vector/adapters/index.js.map +1 -0
- package/dist/vector/adapters/memory.adapter.d.ts +85 -0
- package/dist/vector/adapters/memory.adapter.js +505 -0
- package/dist/vector/adapters/memory.adapter.js.map +1 -0
- package/dist/vector/adapters/pinecone.adapter.d.ts +52 -0
- package/dist/vector/adapters/pinecone.adapter.js +400 -0
- package/dist/vector/adapters/pinecone.adapter.js.map +1 -0
- package/dist/vector/adapters/qdrant.adapter.d.ts +56 -0
- package/dist/vector/adapters/qdrant.adapter.js +392 -0
- package/dist/vector/adapters/qdrant.adapter.js.map +1 -0
- package/dist/vector/adapters/weaviate.adapter.d.ts +64 -0
- package/dist/vector/adapters/weaviate.adapter.js +478 -0
- package/dist/vector/adapters/weaviate.adapter.js.map +1 -0
- package/dist/vector/index.d.ts +47 -0
- package/dist/vector/index.js +72 -0
- package/dist/vector/index.js.map +1 -0
- package/dist/vector/types/connection.interface.d.ts +151 -0
- package/dist/vector/types/connection.interface.js +8 -0
- package/dist/vector/types/connection.interface.js.map +1 -0
- package/dist/vector/types/embedding.interface.d.ts +144 -0
- package/dist/vector/types/embedding.interface.js +8 -0
- package/dist/vector/types/embedding.interface.js.map +1 -0
- package/dist/vector/types/enums.d.ts +104 -0
- package/dist/vector/types/enums.js +113 -0
- package/dist/vector/types/enums.js.map +1 -0
- package/dist/vector/types/index.d.ts +9 -0
- package/dist/vector/types/index.js +16 -0
- package/dist/vector/types/index.js.map +1 -0
- package/dist/vector/types/vector.interface.d.ts +315 -0
- package/dist/vector/types/vector.interface.js +8 -0
- package/dist/vector/types/vector.interface.js.map +1 -0
- package/dist/vector/utils/index.d.ts +6 -0
- package/dist/vector/utils/index.js +11 -0
- package/dist/vector/utils/index.js.map +1 -0
- package/dist/vector/utils/vector-error.d.ts +69 -0
- package/dist/vector/utils/vector-error.js +117 -0
- package/dist/vector/utils/vector-error.js.map +1 -0
- package/dist/vector/vector-database.service.d.ts +405 -0
- package/dist/vector/vector-database.service.js +544 -0
- package/dist/vector/vector-database.service.js.map +1 -0
- package/dist/vector/vector.service.d.ts +245 -0
- package/dist/vector/vector.service.js +381 -0
- package/dist/vector/vector.service.js.map +1 -0
- package/dist/workflows/index.d.ts +30 -0
- package/dist/workflows/index.js +64 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/types/index.d.ts +6 -0
- package/dist/workflows/types/index.js +23 -0
- package/dist/workflows/types/index.js.map +1 -0
- package/dist/workflows/types/workflows.types.d.ts +1035 -0
- package/dist/workflows/types/workflows.types.js +13 -0
- package/dist/workflows/types/workflows.types.js.map +1 -0
- package/dist/workflows/workflow-builder.d.ts +70 -0
- package/dist/workflows/workflow-builder.js +338 -0
- package/dist/workflows/workflow-builder.js.map +1 -0
- package/dist/workflows/workflow-executor.d.ts +205 -0
- package/dist/workflows/workflow-executor.js +1186 -0
- package/dist/workflows/workflow-executor.js.map +1 -0
- package/dist/workflows/workflows.service.d.ts +398 -0
- package/dist/workflows/workflows.service.js +1595 -0
- package/dist/workflows/workflows.service.js.map +1 -0
- package/package.json +16 -13
- package/dist/actions/actions.repo.d.ts +0 -0
- package/dist/actions/actions.repo.js +0 -13
- package/dist/actions/actions.repo.js.map +0 -1
- package/dist/actions/actions.service.d.ts +0 -0
- package/dist/actions/actions.service.js +0 -24
- package/dist/actions/actions.service.js.map +0 -1
- package/dist/actions/utils/actions.util.read.d.ts +0 -0
- package/dist/actions/utils/actions.util.read.js +0 -427
- package/dist/actions/utils/actions.util.read.js.map +0 -1
- package/dist/api/services/integrationsApi.service.d.ts +0 -18
- package/dist/api/services/integrationsApi.service.js +0 -80
- package/dist/api/services/integrationsApi.service.js.map +0 -1
- package/dist/api/services/workspaceSecretsApi.service.d.ts +0 -75
- package/dist/api/services/workspaceSecretsApi.service.js +0 -62
- package/dist/api/services/workspaceSecretsApi.service.js.map +0 -1
- package/dist/appBuilder/services/app.service.d.ts +0 -111
- package/dist/appBuilder/services/app.service.js +0 -737
- package/dist/appBuilder/services/app.service.js.map +0 -1
- package/dist/appBuilder/services/appBuilder.service.d.ts +0 -111
- package/dist/appBuilder/services/appBuilder.service.js +0 -662
- package/dist/appBuilder/services/appBuilder.service.js.map +0 -1
- package/dist/appBuilder/utils/objects.utils.d.ts +0 -3
- package/dist/appBuilder/utils/objects.utils.js +0 -9
- package/dist/appBuilder/utils/objects.utils.js.map +0 -1
- package/dist/appBuilder/utils/string.utils.d.ts +0 -2
- package/dist/appBuilder/utils/string.utils.js +0 -57
- package/dist/appBuilder/utils/string.utils.js.map +0 -1
- package/dist/appBuilder/validators/index.d.ts +0 -19
- package/dist/appBuilder/validators/index.js +0 -40
- package/dist/appBuilder/validators/index.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.app.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/create.app.validator.js +0 -10
- package/dist/appBuilder/validators/joi-validators/create.app.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.js +0 -20
- package/dist/appBuilder/validators/joi-validators/create.appAction.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.d.ts +0 -7
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.js +0 -44
- package/dist/appBuilder/validators/joi-validators/create.appActionResponse.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.js +0 -31
- package/dist/appBuilder/validators/joi-validators/create.appAuth.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.js +0 -11
- package/dist/appBuilder/validators/joi-validators/create.appBody.validators.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.js +0 -12
- package/dist/appBuilder/validators/joi-validators/create.appConstants.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.js +0 -17
- package/dist/appBuilder/validators/joi-validators/create.appEnv.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.d.ts +0 -5
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.js +0 -30
- package/dist/appBuilder/validators/joi-validators/create.appEvent.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.js +0 -14
- package/dist/appBuilder/validators/joi-validators/create.appVariable.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/sample.validator.d.ts +0 -5
- package/dist/appBuilder/validators/joi-validators/sample.validator.js +0 -26
- package/dist/appBuilder/validators/joi-validators/sample.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.app.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.app.validator.js +0 -34
- package/dist/appBuilder/validators/joi-validators/update.app.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.js +0 -23
- package/dist/appBuilder/validators/joi-validators/update.appAction.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.js +0 -21
- package/dist/appBuilder/validators/joi-validators/update.appActionResponse.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.js +0 -19
- package/dist/appBuilder/validators/joi-validators/update.appAuth.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.js +0 -12
- package/dist/appBuilder/validators/joi-validators/update.appConstants.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.js +0 -17
- package/dist/appBuilder/validators/joi-validators/update.appEnv.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.js +0 -16
- package/dist/appBuilder/validators/joi-validators/update.appEvent.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.d.ts +0 -4
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.js +0 -14
- package/dist/appBuilder/validators/joi-validators/update.appVariables.validator.js.map +0 -1
- package/dist/appBuilder/validators/joi-validators/update.validation.entityData.validator.d.ts +0 -3
- package/dist/appBuilder/validators/joi-validators/update.validation.entityData.validator.js +0 -27
- package/dist/appBuilder/validators/joi-validators/update.validation.entityData.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/create.appEvent.validator.d.ts +0 -5
- package/dist/apps/validators/joi-validators/create.appEvent.validator.js +0 -30
- package/dist/apps/validators/joi-validators/create.appEvent.validator.js.map +0 -1
- package/dist/apps/validators/joi-validators/update.appEvent.validator.d.ts +0 -4
- package/dist/apps/validators/joi-validators/update.appEvent.validator.js +0 -16
- package/dist/apps/validators/joi-validators/update.appEvent.validator.js.map +0 -1
- package/dist/clients/integrations.client.d.ts +0 -2
- package/dist/clients/integrations.client.js +0 -26
- package/dist/clients/integrations.client.js.map +0 -1
- package/dist/database/database.service.d.ts +0 -232
- package/dist/database/database.service.js +0 -802
- package/dist/database/database.service.js.map +0 -1
- package/dist/database/types/aggregation.types.d.ts +0 -261
- package/dist/database/types/aggregation.types.js +0 -21
- package/dist/database/types/aggregation.types.js.map +0 -1
- package/dist/database/types/connection.types.d.ts +0 -132
- package/dist/database/types/connection.types.js +0 -6
- package/dist/database/types/connection.types.js.map +0 -1
- package/dist/database/types/database.types.d.ts +0 -175
- package/dist/database/types/database.types.js +0 -75
- package/dist/database/types/database.types.js.map +0 -1
- package/dist/database/types/index.types.d.ts +0 -220
- package/dist/database/types/index.types.js +0 -27
- package/dist/database/types/index.types.js.map +0 -1
- package/dist/database/types/migration.types.d.ts +0 -205
- package/dist/database/types/migration.types.js +0 -44
- package/dist/database/types/migration.types.js.map +0 -1
- package/dist/database/types/query.types.d.ts +0 -305
- package/dist/database/types/query.types.js +0 -57
- package/dist/database/types/query.types.js.map +0 -1
- package/dist/database/types/result.types.d.ts +0 -220
- package/dist/database/types/result.types.js +0 -6
- package/dist/database/types/result.types.js.map +0 -1
- package/dist/database/types/schema.types.d.ts +0 -190
- package/dist/database/types/schema.types.js +0 -69
- package/dist/database/types/schema.types.js.map +0 -1
- package/dist/database/utils/helpers.d.ts +0 -66
- package/dist/database/utils/helpers.js +0 -501
- package/dist/database/utils/helpers.js.map +0 -1
- package/dist/database/utils/migration.utils.d.ts +0 -151
- package/dist/database/utils/migration.utils.js +0 -476
- package/dist/database/utils/migration.utils.js.map +0 -1
- package/dist/database/utils/transaction.d.ts +0 -64
- package/dist/database/utils/transaction.js +0 -130
- package/dist/database/utils/transaction.js.map +0 -1
- package/dist/database/validators/connection.validator.d.ts +0 -20
- package/dist/database/validators/connection.validator.js +0 -267
- package/dist/database/validators/connection.validator.js.map +0 -1
- package/dist/database/validators/query.validator.d.ts +0 -31
- package/dist/database/validators/query.validator.js +0 -305
- package/dist/database/validators/query.validator.js.map +0 -1
- package/dist/database/validators/schema.validator.d.ts +0 -31
- package/dist/database/validators/schema.validator.js +0 -334
- package/dist/database/validators/schema.validator.js.map +0 -1
- package/dist/graph/graph.service.d.ts +0 -278
- package/dist/graph/graph.service.js +0 -687
- package/dist/graph/graph.service.js.map +0 -1
- package/dist/graph/types/connection.types.d.ts +0 -158
- package/dist/graph/types/connection.types.js +0 -43
- package/dist/graph/types/connection.types.js.map +0 -1
- package/dist/graph/types/graph.types.d.ts +0 -144
- package/dist/graph/types/graph.types.js +0 -84
- package/dist/graph/types/graph.types.js.map +0 -1
- package/dist/graph/types/node.types.d.ts +0 -193
- package/dist/graph/types/node.types.js +0 -49
- package/dist/graph/types/node.types.js.map +0 -1
- package/dist/graph/types/path.types.d.ts +0 -224
- package/dist/graph/types/path.types.js +0 -38
- package/dist/graph/types/path.types.js.map +0 -1
- package/dist/graph/types/query.types.d.ts +0 -247
- package/dist/graph/types/query.types.js +0 -23
- package/dist/graph/types/query.types.js.map +0 -1
- package/dist/graph/types/relationship.types.d.ts +0 -224
- package/dist/graph/types/relationship.types.js +0 -35
- package/dist/graph/types/relationship.types.js.map +0 -1
- package/dist/graph/types/result.types.d.ts +0 -237
- package/dist/graph/types/result.types.js +0 -7
- package/dist/graph/types/result.types.js.map +0 -1
- package/dist/graph/validators/index.d.ts +0 -81
- package/dist/graph/validators/index.js +0 -243
- package/dist/graph/validators/index.js.map +0 -1
- package/dist/integrationsBuilder/services/integration.service.d.ts +0 -138
- package/dist/integrationsBuilder/services/integration.service.js +0 -1148
- package/dist/integrationsBuilder/services/integration.service.js.map +0 -1
- package/dist/integrationsBuilder/services/integrationBuilder.service.d.ts +0 -130
- package/dist/integrationsBuilder/services/integrationBuilder.service.js +0 -1017
- package/dist/integrationsBuilder/services/integrationBuilder.service.js.map +0 -1
- package/dist/integrationsBuilder/utils/objects.utils.d.ts +0 -2
- package/dist/integrationsBuilder/utils/objects.utils.js +0 -48
- package/dist/integrationsBuilder/utils/objects.utils.js.map +0 -1
- package/dist/integrationsBuilder/utils/string.utils.d.ts +0 -1
- package/dist/integrationsBuilder/utils/string.utils.js +0 -9
- package/dist/integrationsBuilder/utils/string.utils.js.map +0 -1
- package/dist/integrationsBuilder/validators/index.d.ts +0 -18
- package/dist/integrationsBuilder/validators/index.js +0 -38
- package/dist/integrationsBuilder/validators/index.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.js +0 -10
- package/dist/integrationsBuilder/validators/joi-validators/create.integration.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.d.ts +0 -4
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.js +0 -26
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationApp.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationCache.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationDatabase.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.js +0 -10
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationEnv.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.js +0 -60
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFeature.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationFunction.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationJob.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/create.integrationNotification.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.js +0 -9
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationApp.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationCache.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationDatabase.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationEnv.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFeature.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationFunction.validator copy.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationJob.validator.js.map +0 -1
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.d.ts +0 -3
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.js +0 -8
- package/dist/integrationsBuilder/validators/joi-validators/update.integrationNotification.validator.js.map +0 -1
- package/dist/postman.d.ts +0 -1
- package/dist/postman.js +0 -21674
- package/dist/postman.js.map +0 -1
- package/dist/processor/utils/mongo.util.d.ts +0 -0
- package/dist/processor/utils/mongo.util.js +0 -152
- package/dist/processor/utils/mongo.util.js.map +0 -1
- package/dist/processor/utils/postgres.util.d.ts +0 -14
- package/dist/processor/utils/postgres.util.js +0 -83
- package/dist/processor/utils/postgres.util.js.map +0 -1
- package/dist/products/services/utils/crypt.utils.d.ts +0 -1
- package/dist/products/services/utils/crypt.utils.js +0 -17
- package/dist/products/services/utils/crypt.utils.js.map +0 -1
- package/dist/products/services/utils/functions.utils.d.ts +0 -13
- package/dist/products/services/utils/functions.utils.js +0 -289
- package/dist/products/services/utils/functions.utils.js.map +0 -1
- package/dist/products/services/utils/objects.utils.d.ts +0 -13
- package/dist/products/services/utils/objects.utils.js +0 -89
- package/dist/products/services/utils/objects.utils.js.map +0 -1
- package/dist/products/services/utils/string.utils.d.ts +0 -12
- package/dist/products/services/utils/string.utils.js +0 -168
- package/dist/products/services/utils/string.utils.js.map +0 -1
- package/dist/products/validators/joi-validators/create.product.validator.d.ts +0 -3
- package/dist/products/validators/joi-validators/create.product.validator.js +0 -10
- package/dist/products/validators/joi-validators/create.product.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/create.productGraphAction.validator.d.ts +0 -14
- package/dist/products/validators/joi-validators/create.productGraphAction.validator.js +0 -696
- package/dist/products/validators/joi-validators/create.productGraphAction.validator.js.map +0 -1
- package/dist/products/validators/joi-validators/update.productGraphAction.validator.d.ts +0 -7
- package/dist/products/validators/joi-validators/update.productGraphAction.validator.js +0 -72
- package/dist/products/validators/joi-validators/update.productGraphAction.validator.js.map +0 -1
- package/dist/test.appBuilder.js +0 -14
- package/dist/test.appBuilder.js.map +0 -1
- package/dist/test.import.d.ts +0 -0
- package/dist/test.import.js +0 -24
- package/dist/test.import.js.map +0 -1
- package/dist/test.imports.js +0 -28
- package/dist/test.imports.js.map +0 -1
- package/dist/test.integrationBuilder.js +0 -276
- package/dist/test.integrationBuilder.js.map +0 -1
- package/dist/test.processor.d.ts +0 -1
- package/dist/test.processor.js +0 -23
- package/dist/test.processor.js.map +0 -1
- package/dist/test.utils.d.ts +0 -1
- package/dist/test.utils.js +0 -25
- package/dist/test.utils.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/integrationsBuilder.types.d.ts +0 -276
- package/dist/types/integrationsBuilder.types.js +0 -51
- package/dist/types/integrationsBuilder.types.js.map +0 -1
- /package/dist/{test.appBuilder.d.ts → test/test.database.d.ts} +0 -0
- /package/dist/{test.imports.d.ts → test/test.storage.d.ts} +0 -0
- /package/dist/{test.integrationBuilder.d.ts → test/test.triggers.d.ts} +0 -0
package/dist/test/test.import.js
CHANGED
|
@@ -1,1507 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import Ductape from '.';
|
|
3
|
-
// import * as fs from 'fs';
|
|
4
|
-
// import { PostmanCollectionV21 } from './imports/imports.types';
|
|
5
|
-
// import { postman } from './postman';
|
|
6
|
-
// import * as path from 'path';
|
|
7
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
-
}) : function(o, v) {
|
|
21
|
-
o["default"] = v;
|
|
22
|
-
});
|
|
23
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
-
var ownKeys = function(o) {
|
|
25
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
-
var ar = [];
|
|
27
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
-
return ar;
|
|
29
|
-
};
|
|
30
|
-
return ownKeys(o);
|
|
31
|
-
};
|
|
32
|
-
return function (mod) {
|
|
33
|
-
if (mod && mod.__esModule) return mod;
|
|
34
|
-
var result = {};
|
|
35
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
-
__setModuleDefault(result, mod);
|
|
37
|
-
return result;
|
|
38
|
-
};
|
|
39
|
-
})();
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
const path = __importStar(require("path"));
|
|
45
|
-
const fs = __importStar(require("fs"));
|
|
46
|
-
const app_service_1 = __importDefault(require("../apps/services/app.service"));
|
|
47
|
-
const postmanV21_repo_1 = require("../imports/repos/postmanV21.repo");
|
|
48
|
-
const types_1 = require("../types");
|
|
49
|
-
const parsers_1 = require("../parsers");
|
|
50
|
-
// const user_id = '658251101a5f969713f004aa';
|
|
51
|
-
// const workspace_id = '658252ee6c3a3d2ddae5bd85';
|
|
52
|
-
// const private_key = '9e496f78-8f06-48dc-b7ab-d6979f164b67';
|
|
53
|
-
// const ductape = new Ductape({ user_id, workspace_id, private_key });
|
|
54
|
-
// console.log('JERMAINE!!!');
|
|
55
|
-
// const run = async () => {
|
|
56
|
-
// const importer = await ductape.getActionImporter();
|
|
57
|
-
// const file = path.resolve(path.join(__dirname, 'postman.json'));
|
|
58
|
-
// fs.readFile(file, async (err, data) => {
|
|
59
|
-
// if (err) {
|
|
60
|
-
// console.log('error is', err);
|
|
61
|
-
// throw err;
|
|
62
|
-
// }
|
|
63
|
-
// console.log('data is: ', data);
|
|
64
|
-
// await importer.importPostmanV21(data, true, '6744a73b68973dea32a716c3');
|
|
65
|
-
// });
|
|
66
|
-
// };
|
|
67
|
-
// run();
|
|
68
|
-
const run = async () => {
|
|
69
|
-
const body = [
|
|
70
|
-
{
|
|
71
|
-
name: 'customers',
|
|
72
|
-
item: [
|
|
73
|
-
{
|
|
74
|
-
name: 'list',
|
|
75
|
-
item: [
|
|
76
|
-
{
|
|
77
|
-
name: 'List of Customers',
|
|
78
|
-
request: {
|
|
79
|
-
auth: {
|
|
80
|
-
type: 'bearer',
|
|
81
|
-
bearer: [
|
|
82
|
-
{
|
|
83
|
-
key: 'token',
|
|
84
|
-
value: '{{bearerToken}}',
|
|
85
|
-
type: 'string',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
method: 'POST',
|
|
90
|
-
header: [
|
|
91
|
-
{
|
|
92
|
-
key: 'Content-Type',
|
|
93
|
-
value: 'application/x-www-form-urlencoded',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
key: 'Accept',
|
|
97
|
-
value: 'application/json; charset=utf-8',
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
body: {
|
|
101
|
-
mode: 'urlencoded',
|
|
102
|
-
urlencoded: [
|
|
103
|
-
{
|
|
104
|
-
key: 'page',
|
|
105
|
-
value: '<string>',
|
|
106
|
-
description: '(Required) Use can specify any page eg, 1',
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
key: 'limit',
|
|
110
|
-
value: '<string>',
|
|
111
|
-
description: '(Required) Use can specify the limit of data you want eg, 1',
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
115
|
-
url: {
|
|
116
|
-
raw: '{{baseUrl}}/customers/list',
|
|
117
|
-
host: ['{{baseUrl}}'],
|
|
118
|
-
path: ['customers', 'list'],
|
|
119
|
-
},
|
|
120
|
-
description: 'API endpoint to *List of Customers*\n> A successful request will return a *HTTP 200* status code',
|
|
121
|
-
},
|
|
122
|
-
response: [
|
|
123
|
-
{
|
|
124
|
-
name: 'OK',
|
|
125
|
-
originalRequest: {
|
|
126
|
-
method: 'POST',
|
|
127
|
-
header: [
|
|
128
|
-
{
|
|
129
|
-
key: 'Content-Type',
|
|
130
|
-
value: 'application/x-www-form-urlencoded',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
key: 'Accept',
|
|
134
|
-
value: 'application/json; charset=utf-8',
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
key: 'Authorization',
|
|
138
|
-
value: 'Bearer <token>',
|
|
139
|
-
description: 'Added as a part of security scheme: bearer',
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
body: {
|
|
143
|
-
mode: 'urlencoded',
|
|
144
|
-
urlencoded: [
|
|
145
|
-
{
|
|
146
|
-
key: 'page',
|
|
147
|
-
value: '<string>',
|
|
148
|
-
description: '(Required) Use can specify any page eg, 1',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
key: 'limit',
|
|
152
|
-
value: '<string>',
|
|
153
|
-
description: '(Required) Use can specify the limit of data you want eg, 1',
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
url: {
|
|
158
|
-
raw: '{{baseUrl}}/customers/list',
|
|
159
|
-
host: ['{{baseUrl}}'],
|
|
160
|
-
path: ['customers', 'list'],
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
status: 'OK',
|
|
164
|
-
code: 200,
|
|
165
|
-
_postman_previewlanguage: 'json',
|
|
166
|
-
header: [
|
|
167
|
-
{
|
|
168
|
-
key: 'Content-Type',
|
|
169
|
-
value: 'application/json; charset=utf-8',
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
key: 'Date',
|
|
173
|
-
value: '',
|
|
174
|
-
description: {
|
|
175
|
-
content: '',
|
|
176
|
-
type: 'text/plain',
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
key: 'Content-Length',
|
|
181
|
-
value: '',
|
|
182
|
-
description: {
|
|
183
|
-
content: '',
|
|
184
|
-
type: 'text/plain',
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
key: 'Connection',
|
|
189
|
-
value: '',
|
|
190
|
-
description: {
|
|
191
|
-
content: '',
|
|
192
|
-
type: 'text/plain',
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
key: 'Set-Cookie',
|
|
197
|
-
value: '',
|
|
198
|
-
description: {
|
|
199
|
-
content: '',
|
|
200
|
-
type: 'text/plain',
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
key: 'Server',
|
|
205
|
-
value: '',
|
|
206
|
-
description: {
|
|
207
|
-
content: '',
|
|
208
|
-
type: 'text/plain',
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
key: 'Content-Security-Policy',
|
|
213
|
-
value: '',
|
|
214
|
-
description: {
|
|
215
|
-
content: '',
|
|
216
|
-
type: 'text/plain',
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
key: 'X-DNS-Prefetch-Control',
|
|
221
|
-
value: '',
|
|
222
|
-
description: {
|
|
223
|
-
content: '',
|
|
224
|
-
type: 'text/plain',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
key: 'Expect-CT',
|
|
229
|
-
value: '',
|
|
230
|
-
description: {
|
|
231
|
-
content: '',
|
|
232
|
-
type: 'text/plain',
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
key: 'X-Frame-Options',
|
|
237
|
-
value: '',
|
|
238
|
-
description: {
|
|
239
|
-
content: '',
|
|
240
|
-
type: 'text/plain',
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
key: 'Strict-Transport-Security',
|
|
245
|
-
value: '',
|
|
246
|
-
description: {
|
|
247
|
-
content: '',
|
|
248
|
-
type: 'text/plain',
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
key: 'X-Download-Options',
|
|
253
|
-
value: '',
|
|
254
|
-
description: {
|
|
255
|
-
content: '',
|
|
256
|
-
type: 'text/plain',
|
|
257
|
-
},
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
key: 'X-Content-Type-Options',
|
|
261
|
-
value: '',
|
|
262
|
-
description: {
|
|
263
|
-
content: '',
|
|
264
|
-
type: 'text/plain',
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
key: 'X-Permitted-Cross-Domain-Policies',
|
|
269
|
-
value: '',
|
|
270
|
-
description: {
|
|
271
|
-
content: '',
|
|
272
|
-
type: 'text/plain',
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
key: 'Referrer-Policy',
|
|
277
|
-
value: '',
|
|
278
|
-
description: {
|
|
279
|
-
content: '',
|
|
280
|
-
type: 'text/plain',
|
|
281
|
-
},
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
key: 'X-XSS-Protection',
|
|
285
|
-
value: '',
|
|
286
|
-
description: {
|
|
287
|
-
content: '',
|
|
288
|
-
type: 'text/plain',
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
key: 'x-documentation-url',
|
|
293
|
-
value: '',
|
|
294
|
-
description: {
|
|
295
|
-
content: '',
|
|
296
|
-
type: 'text/plain',
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
key: 'Access-Control-Allow-Origin',
|
|
301
|
-
value: '',
|
|
302
|
-
description: {
|
|
303
|
-
content: '',
|
|
304
|
-
type: 'text/plain',
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
key: 'Access-Control-Allow-Methods',
|
|
309
|
-
value: '',
|
|
310
|
-
description: {
|
|
311
|
-
content: '',
|
|
312
|
-
type: 'text/plain',
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
key: 'Access-Control-Allow-Headers',
|
|
317
|
-
value: '',
|
|
318
|
-
description: {
|
|
319
|
-
content: '',
|
|
320
|
-
type: 'text/plain',
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
key: 'Access-Control-Allow-Credentials',
|
|
325
|
-
value: '',
|
|
326
|
-
description: {
|
|
327
|
-
content: '',
|
|
328
|
-
type: 'text/plain',
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
key: 'ETag',
|
|
333
|
-
value: '',
|
|
334
|
-
description: {
|
|
335
|
-
content: '',
|
|
336
|
-
type: 'text/plain',
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
],
|
|
340
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "customers": [\n {\n "_id": "<string>",\n "credentials": [\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n },\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n }\n ],\n "record": [\n "<string>",\n "<string>"\n ],\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "linkLater": [\n "<string>",\n "<string>"\n ],\n "debitLater": [\n "<string>",\n "<string>"\n ],\n "otherInfo": "<string>",\n "unconnected": "<boolean>",\n "manual": "<boolean>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>",\n "last_login": "<string>",\n "projects": [\n "<string>",\n "<string>"\n ],\n "identity": "<string>",\n "merged": "<boolean>",\n "merged_ids": [\n "<string>",\n "<string>"\n ],\n "current_project": "<string>",\n "options": {},\n "id": "<string>"\n },\n {\n "_id": "<string>",\n "credentials": [\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n },\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n }\n ],\n "record": [\n "<string>",\n "<string>"\n ],\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "linkLater": [\n "<string>",\n "<string>"\n ],\n "debitLater": [\n "<string>",\n "<string>"\n ],\n "otherInfo": "<string>",\n "unconnected": "<boolean>",\n "manual": "<boolean>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>",\n "last_login": "<string>",\n "projects": [\n "<string>",\n "<string>"\n ],\n "identity": "<string>",\n "merged": "<boolean>",\n "merged_ids": [\n "<string>",\n "<string>"\n ],\n "current_project": "<string>",\n "options": {},\n "id": "<string>"\n }\n ],\n "pagination": {\n "totalDocs": "<integer>",\n "limit": "<integer>",\n "hasPrevPage": "<boolean>",\n "hasNextPage": "<boolean>",\n "page": "<integer>",\n "totalPages": "<integer>",\n "pagingCounter": "<integer>",\n "prevPage": "<string>",\n "nextPage": "<string>"\n }\n }\n}',
|
|
341
|
-
},
|
|
342
|
-
],
|
|
343
|
-
},
|
|
344
|
-
],
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
name: 'find-customers-by',
|
|
348
|
-
item: [
|
|
349
|
-
{
|
|
350
|
-
name: 'Find Customers By',
|
|
351
|
-
request: {
|
|
352
|
-
auth: {
|
|
353
|
-
type: 'bearer',
|
|
354
|
-
bearer: [
|
|
355
|
-
{
|
|
356
|
-
key: 'token',
|
|
357
|
-
value: '{{bearerToken}}',
|
|
358
|
-
type: 'string',
|
|
359
|
-
},
|
|
360
|
-
],
|
|
361
|
-
},
|
|
362
|
-
method: 'POST',
|
|
363
|
-
header: [
|
|
364
|
-
{
|
|
365
|
-
key: 'Content-Type',
|
|
366
|
-
value: 'application/x-www-form-urlencoded',
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
key: 'Accept',
|
|
370
|
-
value: 'application/json; charset=utf-8',
|
|
371
|
-
},
|
|
372
|
-
],
|
|
373
|
-
body: {
|
|
374
|
-
mode: 'urlencoded',
|
|
375
|
-
urlencoded: [
|
|
376
|
-
{
|
|
377
|
-
key: 'key',
|
|
378
|
-
value: '<string>',
|
|
379
|
-
description: '(Required) You can specify the email of the customer as the key',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
key: 'value',
|
|
383
|
-
value: '<string>',
|
|
384
|
-
description: '(Required) Input the actual email of the client you want to find',
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
},
|
|
388
|
-
url: {
|
|
389
|
-
raw: '{{baseUrl}}/customers/find-customers-by',
|
|
390
|
-
host: ['{{baseUrl}}'],
|
|
391
|
-
path: ['customers', 'find-customers-by'],
|
|
392
|
-
},
|
|
393
|
-
description: 'API endpoint to *Find Customers* by model keys and values\n> A successful request will return a *HTTP 200* status code',
|
|
394
|
-
},
|
|
395
|
-
response: [
|
|
396
|
-
{
|
|
397
|
-
name: 'OK',
|
|
398
|
-
originalRequest: {
|
|
399
|
-
method: 'POST',
|
|
400
|
-
header: [
|
|
401
|
-
{
|
|
402
|
-
key: 'Content-Type',
|
|
403
|
-
value: 'application/x-www-form-urlencoded',
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
key: 'Accept',
|
|
407
|
-
value: 'application/json; charset=utf-8',
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
key: 'Authorization',
|
|
411
|
-
value: 'Bearer <token>',
|
|
412
|
-
description: 'Added as a part of security scheme: bearer',
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
body: {
|
|
416
|
-
mode: 'urlencoded',
|
|
417
|
-
urlencoded: [
|
|
418
|
-
{
|
|
419
|
-
key: 'key',
|
|
420
|
-
value: '<string>',
|
|
421
|
-
description: '(Required) You can specify the email of the customer as the key',
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
key: 'value',
|
|
425
|
-
value: '<string>',
|
|
426
|
-
description: '(Required) Input the actual email of the client you want to find',
|
|
427
|
-
},
|
|
428
|
-
],
|
|
429
|
-
},
|
|
430
|
-
url: {
|
|
431
|
-
raw: '{{baseUrl}}/customers/find-customers-by',
|
|
432
|
-
host: ['{{baseUrl}}'],
|
|
433
|
-
path: ['customers', 'find-customers-by'],
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
status: 'OK',
|
|
437
|
-
code: 200,
|
|
438
|
-
_postman_previewlanguage: 'json',
|
|
439
|
-
header: [
|
|
440
|
-
{
|
|
441
|
-
key: 'Content-Type',
|
|
442
|
-
value: 'application/json; charset=utf-8',
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
key: 'X-Powered-By',
|
|
446
|
-
value: '',
|
|
447
|
-
description: {
|
|
448
|
-
content: '',
|
|
449
|
-
type: 'text/plain',
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
key: 'Access-Control-Allow-Methods',
|
|
454
|
-
value: '',
|
|
455
|
-
description: {
|
|
456
|
-
content: '',
|
|
457
|
-
type: 'text/plain',
|
|
458
|
-
},
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
key: 'Access-Control-Allow-Headers',
|
|
462
|
-
value: '',
|
|
463
|
-
description: {
|
|
464
|
-
content: '',
|
|
465
|
-
type: 'text/plain',
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
key: 'Access-Control-Allow-Credentials',
|
|
470
|
-
value: '',
|
|
471
|
-
description: {
|
|
472
|
-
content: '',
|
|
473
|
-
type: 'text/plain',
|
|
474
|
-
},
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
key: 'Content-Length',
|
|
478
|
-
value: '',
|
|
479
|
-
description: {
|
|
480
|
-
content: '',
|
|
481
|
-
type: 'text/plain',
|
|
482
|
-
},
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
key: 'ETag',
|
|
486
|
-
value: '',
|
|
487
|
-
description: {
|
|
488
|
-
content: '',
|
|
489
|
-
type: 'text/plain',
|
|
490
|
-
},
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
key: 'Date',
|
|
494
|
-
value: '',
|
|
495
|
-
description: {
|
|
496
|
-
content: '',
|
|
497
|
-
type: 'text/plain',
|
|
498
|
-
},
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
key: 'Connection',
|
|
502
|
-
value: '',
|
|
503
|
-
description: {
|
|
504
|
-
content: '',
|
|
505
|
-
type: 'text/plain',
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
],
|
|
509
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "_id": "<string>",\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "last_login": "<string>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>"\n }\n}',
|
|
510
|
-
},
|
|
511
|
-
],
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
name: 'flag',
|
|
517
|
-
item: [
|
|
518
|
-
{
|
|
519
|
-
name: 'Flag Customer',
|
|
520
|
-
request: {
|
|
521
|
-
auth: {
|
|
522
|
-
type: 'bearer',
|
|
523
|
-
bearer: [
|
|
524
|
-
{
|
|
525
|
-
key: 'token',
|
|
526
|
-
value: '{{bearerToken}}',
|
|
527
|
-
type: 'string',
|
|
528
|
-
},
|
|
529
|
-
],
|
|
530
|
-
},
|
|
531
|
-
method: 'POST',
|
|
532
|
-
header: [
|
|
533
|
-
{
|
|
534
|
-
key: 'Content-Type',
|
|
535
|
-
value: 'application/x-www-form-urlencoded',
|
|
536
|
-
},
|
|
537
|
-
],
|
|
538
|
-
body: {
|
|
539
|
-
mode: 'urlencoded',
|
|
540
|
-
urlencoded: [
|
|
541
|
-
{
|
|
542
|
-
key: 'bank',
|
|
543
|
-
value: '<string>',
|
|
544
|
-
description: '(Required) The bank id',
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
key: 'customer',
|
|
548
|
-
value: '<string>',
|
|
549
|
-
description: '(Required) The customer id',
|
|
550
|
-
},
|
|
551
|
-
],
|
|
552
|
-
},
|
|
553
|
-
url: {
|
|
554
|
-
raw: '{{baseUrl}}/customers/flag',
|
|
555
|
-
host: ['{{baseUrl}}'],
|
|
556
|
-
path: ['customers', 'flag'],
|
|
557
|
-
},
|
|
558
|
-
description: 'API endpoint to *Flag Customer*\n> A successful request will return a *HTTP 200* status code',
|
|
559
|
-
},
|
|
560
|
-
response: [
|
|
561
|
-
{
|
|
562
|
-
name: 'Untitled Response',
|
|
563
|
-
originalRequest: {
|
|
564
|
-
method: 'POST',
|
|
565
|
-
header: [
|
|
566
|
-
{
|
|
567
|
-
key: 'Content-Type',
|
|
568
|
-
value: 'application/x-www-form-urlencoded',
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
key: 'Authorization',
|
|
572
|
-
value: 'Bearer <token>',
|
|
573
|
-
description: 'Added as a part of security scheme: bearer',
|
|
574
|
-
},
|
|
575
|
-
],
|
|
576
|
-
body: {
|
|
577
|
-
mode: 'urlencoded',
|
|
578
|
-
urlencoded: [
|
|
579
|
-
{
|
|
580
|
-
key: 'bank',
|
|
581
|
-
value: '<string>',
|
|
582
|
-
description: '(Required) The bank id',
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
key: 'customer',
|
|
586
|
-
value: '<string>',
|
|
587
|
-
description: '(Required) The customer id',
|
|
588
|
-
},
|
|
589
|
-
],
|
|
590
|
-
},
|
|
591
|
-
url: {
|
|
592
|
-
raw: '{{baseUrl}}/customers/flag',
|
|
593
|
-
host: ['{{baseUrl}}'],
|
|
594
|
-
path: ['customers', 'flag'],
|
|
595
|
-
},
|
|
596
|
-
},
|
|
597
|
-
status: 'OK',
|
|
598
|
-
code: 200,
|
|
599
|
-
_postman_previewlanguage: 'text',
|
|
600
|
-
body: '',
|
|
601
|
-
},
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
name: 'unflag',
|
|
608
|
-
item: [
|
|
609
|
-
{
|
|
610
|
-
name: 'UnFlag Customer',
|
|
611
|
-
request: {
|
|
612
|
-
auth: {
|
|
613
|
-
type: 'bearer',
|
|
614
|
-
bearer: [
|
|
615
|
-
{
|
|
616
|
-
key: 'token',
|
|
617
|
-
value: '{{bearerToken}}',
|
|
618
|
-
type: 'string',
|
|
619
|
-
},
|
|
620
|
-
],
|
|
621
|
-
},
|
|
622
|
-
method: 'POST',
|
|
623
|
-
header: [
|
|
624
|
-
{
|
|
625
|
-
key: 'Content-Type',
|
|
626
|
-
value: 'application/json',
|
|
627
|
-
},
|
|
628
|
-
],
|
|
629
|
-
body: {
|
|
630
|
-
mode: 'raw',
|
|
631
|
-
raw: '{\n "bank": "<string>",\n "customer": "<string>",\n "unflag": "<boolean>"\n}',
|
|
632
|
-
options: {
|
|
633
|
-
raw: {
|
|
634
|
-
headerFamily: 'json',
|
|
635
|
-
language: 'json',
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
},
|
|
639
|
-
url: {
|
|
640
|
-
raw: '{{baseUrl}}/customers/unflag',
|
|
641
|
-
host: ['{{baseUrl}}'],
|
|
642
|
-
path: ['customers', 'unflag'],
|
|
643
|
-
},
|
|
644
|
-
description: 'API endpoint to *UnFlag Customer*\n> A successful request will return a *HTTP 200* status code',
|
|
645
|
-
},
|
|
646
|
-
response: [
|
|
647
|
-
{
|
|
648
|
-
name: 'Untitled Response',
|
|
649
|
-
originalRequest: {
|
|
650
|
-
method: 'POST',
|
|
651
|
-
header: [
|
|
652
|
-
{
|
|
653
|
-
key: 'Content-Type',
|
|
654
|
-
value: 'application/json',
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
key: 'Authorization',
|
|
658
|
-
value: 'Bearer <token>',
|
|
659
|
-
description: 'Added as a part of security scheme: bearer',
|
|
660
|
-
},
|
|
661
|
-
],
|
|
662
|
-
body: {
|
|
663
|
-
mode: 'raw',
|
|
664
|
-
raw: '{\n "bank": "<string>",\n "customer": "<string>",\n "unflag": "<boolean>"\n}',
|
|
665
|
-
options: {
|
|
666
|
-
raw: {
|
|
667
|
-
headerFamily: 'json',
|
|
668
|
-
language: 'json',
|
|
669
|
-
},
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
url: {
|
|
673
|
-
raw: '{{baseUrl}}/customers/unflag',
|
|
674
|
-
host: ['{{baseUrl}}'],
|
|
675
|
-
path: ['customers', 'unflag'],
|
|
676
|
-
},
|
|
677
|
-
},
|
|
678
|
-
status: 'OK',
|
|
679
|
-
code: 200,
|
|
680
|
-
_postman_previewlanguage: 'text',
|
|
681
|
-
body: '',
|
|
682
|
-
},
|
|
683
|
-
],
|
|
684
|
-
},
|
|
685
|
-
],
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
name: 'remove',
|
|
689
|
-
item: [
|
|
690
|
-
{
|
|
691
|
-
name: 'Remove Customer',
|
|
692
|
-
request: {
|
|
693
|
-
method: 'POST',
|
|
694
|
-
header: [
|
|
695
|
-
{
|
|
696
|
-
key: 'Content-Type',
|
|
697
|
-
value: 'application/json',
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
key: 'Accept',
|
|
701
|
-
value: 'application/json; charset=utf-8',
|
|
702
|
-
},
|
|
703
|
-
],
|
|
704
|
-
body: {
|
|
705
|
-
mode: 'raw',
|
|
706
|
-
raw: '{\n "customer": "<string>"\n}',
|
|
707
|
-
options: {
|
|
708
|
-
raw: {
|
|
709
|
-
headerFamily: 'json',
|
|
710
|
-
language: 'json',
|
|
711
|
-
},
|
|
712
|
-
},
|
|
713
|
-
},
|
|
714
|
-
url: {
|
|
715
|
-
raw: '{{baseUrl}}/customers/remove',
|
|
716
|
-
host: ['{{baseUrl}}'],
|
|
717
|
-
path: ['customers', 'remove'],
|
|
718
|
-
},
|
|
719
|
-
description: 'API endpoint to remove a customer.',
|
|
720
|
-
},
|
|
721
|
-
response: [
|
|
722
|
-
{
|
|
723
|
-
name: 'OK',
|
|
724
|
-
originalRequest: {
|
|
725
|
-
method: 'POST',
|
|
726
|
-
header: [
|
|
727
|
-
{
|
|
728
|
-
key: 'Content-Type',
|
|
729
|
-
value: 'application/json',
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
key: 'Accept',
|
|
733
|
-
value: 'application/json; charset=utf-8',
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
key: 'Authorization',
|
|
737
|
-
value: 'Bearer <token>',
|
|
738
|
-
description: 'Added as a part of security scheme: bearer',
|
|
739
|
-
},
|
|
740
|
-
],
|
|
741
|
-
body: {
|
|
742
|
-
mode: 'raw',
|
|
743
|
-
raw: '{\n "customer": "<string>"\n}',
|
|
744
|
-
options: {
|
|
745
|
-
raw: {
|
|
746
|
-
headerFamily: 'json',
|
|
747
|
-
language: 'json',
|
|
748
|
-
},
|
|
749
|
-
},
|
|
750
|
-
},
|
|
751
|
-
url: {
|
|
752
|
-
raw: '{{baseUrl}}/customers/remove',
|
|
753
|
-
host: ['{{baseUrl}}'],
|
|
754
|
-
path: ['customers', 'remove'],
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
|
-
status: 'OK',
|
|
758
|
-
code: 200,
|
|
759
|
-
_postman_previewlanguage: 'json',
|
|
760
|
-
header: [
|
|
761
|
-
{
|
|
762
|
-
key: 'Content-Type',
|
|
763
|
-
value: 'application/json; charset=utf-8',
|
|
764
|
-
},
|
|
765
|
-
],
|
|
766
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "success": "<boolean>",\n "msg": "<string>"\n }\n}',
|
|
767
|
-
},
|
|
768
|
-
],
|
|
769
|
-
},
|
|
770
|
-
],
|
|
771
|
-
},
|
|
772
|
-
],
|
|
773
|
-
},
|
|
774
|
-
];
|
|
775
|
-
const appBuilder = new app_service_1.default({
|
|
776
|
-
workspace_id: '1',
|
|
777
|
-
user_id: '1',
|
|
778
|
-
token: '1',
|
|
779
|
-
public_key: '1',
|
|
780
|
-
env_type: types_1.EnvType.PRODUCTION,
|
|
781
|
-
});
|
|
782
|
-
/*console.log(await PostmanV21Repo.fetchParsedResponses(body as unknown as PostmanResponseV21[], appBuilder))*/
|
|
783
|
-
const item = {
|
|
784
|
-
name: 'customers',
|
|
785
|
-
item: [
|
|
786
|
-
{
|
|
787
|
-
name: 'list',
|
|
788
|
-
item: [
|
|
789
|
-
{
|
|
790
|
-
name: 'List of Customers',
|
|
791
|
-
request: {
|
|
792
|
-
auth: {
|
|
793
|
-
type: 'bearer',
|
|
794
|
-
bearer: [
|
|
795
|
-
{
|
|
796
|
-
key: 'token',
|
|
797
|
-
value: '{{bearerToken}}',
|
|
798
|
-
type: 'string',
|
|
799
|
-
},
|
|
800
|
-
],
|
|
801
|
-
},
|
|
802
|
-
method: 'POST',
|
|
803
|
-
header: [
|
|
804
|
-
{
|
|
805
|
-
key: 'Content-Type',
|
|
806
|
-
value: 'application/x-www-form-urlencoded',
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
key: 'Accept',
|
|
810
|
-
value: 'application/json; charset=utf-8',
|
|
811
|
-
},
|
|
812
|
-
],
|
|
813
|
-
body: {
|
|
814
|
-
mode: 'urlencoded',
|
|
815
|
-
urlencoded: [
|
|
816
|
-
{
|
|
817
|
-
key: 'page',
|
|
818
|
-
value: '<string>',
|
|
819
|
-
description: '(Required) Use can specify any page eg, 1',
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
key: 'limit',
|
|
823
|
-
value: '<string>',
|
|
824
|
-
description: '(Required) Use can specify the limit of data you want eg, 1',
|
|
825
|
-
},
|
|
826
|
-
],
|
|
827
|
-
},
|
|
828
|
-
url: {
|
|
829
|
-
raw: '{{baseUrl}}/customers/list',
|
|
830
|
-
host: ['{{baseUrl}}'],
|
|
831
|
-
path: ['customers', 'list'],
|
|
832
|
-
},
|
|
833
|
-
description: 'API endpoint to *List of Customers*\n> A successful request will return a *HTTP 200* status code',
|
|
834
|
-
},
|
|
835
|
-
response: [
|
|
836
|
-
{
|
|
837
|
-
name: 'OK',
|
|
838
|
-
originalRequest: {
|
|
839
|
-
method: 'POST',
|
|
840
|
-
header: [
|
|
841
|
-
{
|
|
842
|
-
key: 'Content-Type',
|
|
843
|
-
value: 'application/x-www-form-urlencoded',
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
key: 'Accept',
|
|
847
|
-
value: 'application/json; charset=utf-8',
|
|
848
|
-
},
|
|
849
|
-
{
|
|
850
|
-
key: 'Authorization',
|
|
851
|
-
value: 'Bearer <token>',
|
|
852
|
-
description: 'Added as a part of security scheme: bearer',
|
|
853
|
-
},
|
|
854
|
-
],
|
|
855
|
-
body: {
|
|
856
|
-
mode: 'urlencoded',
|
|
857
|
-
urlencoded: [
|
|
858
|
-
{
|
|
859
|
-
key: 'page',
|
|
860
|
-
value: '<string>',
|
|
861
|
-
description: '(Required) Use can specify any page eg, 1',
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
key: 'limit',
|
|
865
|
-
value: '<string>',
|
|
866
|
-
description: '(Required) Use can specify the limit of data you want eg, 1',
|
|
867
|
-
},
|
|
868
|
-
],
|
|
869
|
-
},
|
|
870
|
-
url: {
|
|
871
|
-
raw: '{{baseUrl}}/customers/list',
|
|
872
|
-
host: ['{{baseUrl}}'],
|
|
873
|
-
path: ['customers', 'list'],
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
status: 'OK',
|
|
877
|
-
code: 200,
|
|
878
|
-
_postman_previewlanguage: 'json',
|
|
879
|
-
header: [
|
|
880
|
-
{
|
|
881
|
-
key: 'Content-Type',
|
|
882
|
-
value: 'application/json; charset=utf-8',
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
key: 'Date',
|
|
886
|
-
value: '',
|
|
887
|
-
description: {
|
|
888
|
-
content: '',
|
|
889
|
-
type: 'text/plain',
|
|
890
|
-
},
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
key: 'Content-Length',
|
|
894
|
-
value: '',
|
|
895
|
-
description: {
|
|
896
|
-
content: '',
|
|
897
|
-
type: 'text/plain',
|
|
898
|
-
},
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
key: 'Connection',
|
|
902
|
-
value: '',
|
|
903
|
-
description: {
|
|
904
|
-
content: '',
|
|
905
|
-
type: 'text/plain',
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
key: 'Set-Cookie',
|
|
910
|
-
value: '',
|
|
911
|
-
description: {
|
|
912
|
-
content: '',
|
|
913
|
-
type: 'text/plain',
|
|
914
|
-
},
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
key: 'Server',
|
|
918
|
-
value: '',
|
|
919
|
-
description: {
|
|
920
|
-
content: '',
|
|
921
|
-
type: 'text/plain',
|
|
922
|
-
},
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
key: 'Content-Security-Policy',
|
|
926
|
-
value: '',
|
|
927
|
-
description: {
|
|
928
|
-
content: '',
|
|
929
|
-
type: 'text/plain',
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
key: 'X-DNS-Prefetch-Control',
|
|
934
|
-
value: '',
|
|
935
|
-
description: {
|
|
936
|
-
content: '',
|
|
937
|
-
type: 'text/plain',
|
|
938
|
-
},
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
key: 'Expect-CT',
|
|
942
|
-
value: '',
|
|
943
|
-
description: {
|
|
944
|
-
content: '',
|
|
945
|
-
type: 'text/plain',
|
|
946
|
-
},
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
key: 'X-Frame-Options',
|
|
950
|
-
value: '',
|
|
951
|
-
description: {
|
|
952
|
-
content: '',
|
|
953
|
-
type: 'text/plain',
|
|
954
|
-
},
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
key: 'Strict-Transport-Security',
|
|
958
|
-
value: '',
|
|
959
|
-
description: {
|
|
960
|
-
content: '',
|
|
961
|
-
type: 'text/plain',
|
|
962
|
-
},
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
key: 'X-Download-Options',
|
|
966
|
-
value: '',
|
|
967
|
-
description: {
|
|
968
|
-
content: '',
|
|
969
|
-
type: 'text/plain',
|
|
970
|
-
},
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
key: 'X-Content-Type-Options',
|
|
974
|
-
value: '',
|
|
975
|
-
description: {
|
|
976
|
-
content: '',
|
|
977
|
-
type: 'text/plain',
|
|
978
|
-
},
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
key: 'X-Permitted-Cross-Domain-Policies',
|
|
982
|
-
value: '',
|
|
983
|
-
description: {
|
|
984
|
-
content: '',
|
|
985
|
-
type: 'text/plain',
|
|
986
|
-
},
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
key: 'Referrer-Policy',
|
|
990
|
-
value: '',
|
|
991
|
-
description: {
|
|
992
|
-
content: '',
|
|
993
|
-
type: 'text/plain',
|
|
994
|
-
},
|
|
995
|
-
},
|
|
996
|
-
{
|
|
997
|
-
key: 'X-XSS-Protection',
|
|
998
|
-
value: '',
|
|
999
|
-
description: {
|
|
1000
|
-
content: '',
|
|
1001
|
-
type: 'text/plain',
|
|
1002
|
-
},
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
key: 'x-documentation-url',
|
|
1006
|
-
value: '',
|
|
1007
|
-
description: {
|
|
1008
|
-
content: '',
|
|
1009
|
-
type: 'text/plain',
|
|
1010
|
-
},
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
key: 'Access-Control-Allow-Origin',
|
|
1014
|
-
value: '',
|
|
1015
|
-
description: {
|
|
1016
|
-
content: '',
|
|
1017
|
-
type: 'text/plain',
|
|
1018
|
-
},
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
key: 'Access-Control-Allow-Methods',
|
|
1022
|
-
value: '',
|
|
1023
|
-
description: {
|
|
1024
|
-
content: '',
|
|
1025
|
-
type: 'text/plain',
|
|
1026
|
-
},
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
key: 'Access-Control-Allow-Headers',
|
|
1030
|
-
value: '',
|
|
1031
|
-
description: {
|
|
1032
|
-
content: '',
|
|
1033
|
-
type: 'text/plain',
|
|
1034
|
-
},
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
key: 'Access-Control-Allow-Credentials',
|
|
1038
|
-
value: '',
|
|
1039
|
-
description: {
|
|
1040
|
-
content: '',
|
|
1041
|
-
type: 'text/plain',
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
key: 'ETag',
|
|
1046
|
-
value: '',
|
|
1047
|
-
description: {
|
|
1048
|
-
content: '',
|
|
1049
|
-
type: 'text/plain',
|
|
1050
|
-
},
|
|
1051
|
-
},
|
|
1052
|
-
],
|
|
1053
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "customers": [\n {\n "_id": "<string>",\n "credentials": [\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n },\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n }\n ],\n "record": [\n "<string>",\n "<string>"\n ],\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "linkLater": [\n "<string>",\n "<string>"\n ],\n "debitLater": [\n "<string>",\n "<string>"\n ],\n "otherInfo": "<string>",\n "unconnected": "<boolean>",\n "manual": "<boolean>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>",\n "last_login": "<string>",\n "projects": [\n "<string>",\n "<string>"\n ],\n "identity": "<string>",\n "merged": "<boolean>",\n "merged_ids": [\n "<string>",\n "<string>"\n ],\n "current_project": "<string>",\n "options": {},\n "id": "<string>"\n },\n {\n "_id": "<string>",\n "credentials": [\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n },\n {\n "bank": {\n "_id": "<string>",\n "colors": {\n "accent": "<string>",\n "primary": "<string>",\n "button": "<string>",\n "icon": "<string>"\n },\n "icon": "<string>",\n "logo": "<string>",\n "name": "<string>",\n "v2_icon": "<string>",\n "v2_logo": "<string>"\n },\n "nuban": "<string>",\n "accountName": "<string>",\n "connected": "<boolean>"\n }\n ],\n "record": [\n "<string>",\n "<string>"\n ],\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "linkLater": [\n "<string>",\n "<string>"\n ],\n "debitLater": [\n "<string>",\n "<string>"\n ],\n "otherInfo": "<string>",\n "unconnected": "<boolean>",\n "manual": "<boolean>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>",\n "last_login": "<string>",\n "projects": [\n "<string>",\n "<string>"\n ],\n "identity": "<string>",\n "merged": "<boolean>",\n "merged_ids": [\n "<string>",\n "<string>"\n ],\n "current_project": "<string>",\n "options": {},\n "id": "<string>"\n }\n ],\n "pagination": {\n "totalDocs": "<integer>",\n "limit": "<integer>",\n "hasPrevPage": "<boolean>",\n "hasNextPage": "<boolean>",\n "page": "<integer>",\n "totalPages": "<integer>",\n "pagingCounter": "<integer>",\n "prevPage": "<string>",\n "nextPage": "<string>"\n }\n }\n}',
|
|
1054
|
-
},
|
|
1055
|
-
],
|
|
1056
|
-
},
|
|
1057
|
-
],
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
name: 'find-customers-by',
|
|
1061
|
-
item: [
|
|
1062
|
-
{
|
|
1063
|
-
name: 'Find Customers By',
|
|
1064
|
-
request: {
|
|
1065
|
-
auth: {
|
|
1066
|
-
type: 'bearer',
|
|
1067
|
-
bearer: [
|
|
1068
|
-
{
|
|
1069
|
-
key: 'token',
|
|
1070
|
-
value: '{{bearerToken}}',
|
|
1071
|
-
type: 'string',
|
|
1072
|
-
},
|
|
1073
|
-
],
|
|
1074
|
-
},
|
|
1075
|
-
method: 'POST',
|
|
1076
|
-
header: [
|
|
1077
|
-
{
|
|
1078
|
-
key: 'Content-Type',
|
|
1079
|
-
value: 'application/x-www-form-urlencoded',
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
key: 'Accept',
|
|
1083
|
-
value: 'application/json; charset=utf-8',
|
|
1084
|
-
},
|
|
1085
|
-
],
|
|
1086
|
-
body: {
|
|
1087
|
-
mode: 'urlencoded',
|
|
1088
|
-
urlencoded: [
|
|
1089
|
-
{
|
|
1090
|
-
key: 'key',
|
|
1091
|
-
value: '<string>',
|
|
1092
|
-
description: '(Required) You can specify the email of the customer as the key',
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
key: 'value',
|
|
1096
|
-
value: '<string>',
|
|
1097
|
-
description: '(Required) Input the actual email of the client you want to find',
|
|
1098
|
-
},
|
|
1099
|
-
],
|
|
1100
|
-
},
|
|
1101
|
-
url: {
|
|
1102
|
-
raw: '{{baseUrl}}/customers/find-customers-by',
|
|
1103
|
-
host: ['{{baseUrl}}'],
|
|
1104
|
-
path: ['customers', 'find-customers-by'],
|
|
1105
|
-
},
|
|
1106
|
-
description: 'API endpoint to *Find Customers* by model keys and values\n> A successful request will return a *HTTP 200* status code',
|
|
1107
|
-
},
|
|
1108
|
-
response: [
|
|
1109
|
-
{
|
|
1110
|
-
name: 'OK',
|
|
1111
|
-
originalRequest: {
|
|
1112
|
-
method: 'POST',
|
|
1113
|
-
header: [
|
|
1114
|
-
{
|
|
1115
|
-
key: 'Content-Type',
|
|
1116
|
-
value: 'application/x-www-form-urlencoded',
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
key: 'Accept',
|
|
1120
|
-
value: 'application/json; charset=utf-8',
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
key: 'Authorization',
|
|
1124
|
-
value: 'Bearer <token>',
|
|
1125
|
-
description: 'Added as a part of security scheme: bearer',
|
|
1126
|
-
},
|
|
1127
|
-
],
|
|
1128
|
-
body: {
|
|
1129
|
-
mode: 'urlencoded',
|
|
1130
|
-
urlencoded: [
|
|
1131
|
-
{
|
|
1132
|
-
key: 'key',
|
|
1133
|
-
value: '<string>',
|
|
1134
|
-
description: '(Required) You can specify the email of the customer as the key',
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
key: 'value',
|
|
1138
|
-
value: '<string>',
|
|
1139
|
-
description: '(Required) Input the actual email of the client you want to find',
|
|
1140
|
-
},
|
|
1141
|
-
],
|
|
1142
|
-
},
|
|
1143
|
-
url: {
|
|
1144
|
-
raw: '{{baseUrl}}/customers/find-customers-by',
|
|
1145
|
-
host: ['{{baseUrl}}'],
|
|
1146
|
-
path: ['customers', 'find-customers-by'],
|
|
1147
|
-
},
|
|
1148
|
-
},
|
|
1149
|
-
status: 'OK',
|
|
1150
|
-
code: 200,
|
|
1151
|
-
_postman_previewlanguage: 'json',
|
|
1152
|
-
header: [
|
|
1153
|
-
{
|
|
1154
|
-
key: 'Content-Type',
|
|
1155
|
-
value: 'application/json; charset=utf-8',
|
|
1156
|
-
},
|
|
1157
|
-
{
|
|
1158
|
-
key: 'X-Powered-By',
|
|
1159
|
-
value: '',
|
|
1160
|
-
description: {
|
|
1161
|
-
content: '',
|
|
1162
|
-
type: 'text/plain',
|
|
1163
|
-
},
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
key: 'Access-Control-Allow-Methods',
|
|
1167
|
-
value: '',
|
|
1168
|
-
description: {
|
|
1169
|
-
content: '',
|
|
1170
|
-
type: 'text/plain',
|
|
1171
|
-
},
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
key: 'Access-Control-Allow-Headers',
|
|
1175
|
-
value: '',
|
|
1176
|
-
description: {
|
|
1177
|
-
content: '',
|
|
1178
|
-
type: 'text/plain',
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
key: 'Access-Control-Allow-Credentials',
|
|
1183
|
-
value: '',
|
|
1184
|
-
description: {
|
|
1185
|
-
content: '',
|
|
1186
|
-
type: 'text/plain',
|
|
1187
|
-
},
|
|
1188
|
-
},
|
|
1189
|
-
{
|
|
1190
|
-
key: 'Content-Length',
|
|
1191
|
-
value: '',
|
|
1192
|
-
description: {
|
|
1193
|
-
content: '',
|
|
1194
|
-
type: 'text/plain',
|
|
1195
|
-
},
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
key: 'ETag',
|
|
1199
|
-
value: '',
|
|
1200
|
-
description: {
|
|
1201
|
-
content: '',
|
|
1202
|
-
type: 'text/plain',
|
|
1203
|
-
},
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
key: 'Date',
|
|
1207
|
-
value: '',
|
|
1208
|
-
description: {
|
|
1209
|
-
content: '',
|
|
1210
|
-
type: 'text/plain',
|
|
1211
|
-
},
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
key: 'Connection',
|
|
1215
|
-
value: '',
|
|
1216
|
-
description: {
|
|
1217
|
-
content: '',
|
|
1218
|
-
type: 'text/plain',
|
|
1219
|
-
},
|
|
1220
|
-
},
|
|
1221
|
-
],
|
|
1222
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "_id": "<string>",\n "email": [\n "<string>",\n "<string>"\n ],\n "phone": [\n "<string>",\n "<string>"\n ],\n "blocked": "<boolean>",\n "last_login": "<string>",\n "name": "<string>",\n "env": "<string>",\n "created_at": "<string>",\n "last_updated": "<string>",\n "__v": "<integer>"\n }\n}',
|
|
1223
|
-
},
|
|
1224
|
-
],
|
|
1225
|
-
},
|
|
1226
|
-
],
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
name: 'flag',
|
|
1230
|
-
item: [
|
|
1231
|
-
{
|
|
1232
|
-
name: 'Flag Customer',
|
|
1233
|
-
request: {
|
|
1234
|
-
auth: {
|
|
1235
|
-
type: 'bearer',
|
|
1236
|
-
bearer: [
|
|
1237
|
-
{
|
|
1238
|
-
key: 'token',
|
|
1239
|
-
value: '{{bearerToken}}',
|
|
1240
|
-
type: 'string',
|
|
1241
|
-
},
|
|
1242
|
-
],
|
|
1243
|
-
},
|
|
1244
|
-
method: 'POST',
|
|
1245
|
-
header: [
|
|
1246
|
-
{
|
|
1247
|
-
key: 'Content-Type',
|
|
1248
|
-
value: 'application/x-www-form-urlencoded',
|
|
1249
|
-
},
|
|
1250
|
-
],
|
|
1251
|
-
body: {
|
|
1252
|
-
mode: 'urlencoded',
|
|
1253
|
-
urlencoded: [
|
|
1254
|
-
{
|
|
1255
|
-
key: 'bank',
|
|
1256
|
-
value: '<string>',
|
|
1257
|
-
description: '(Required) The bank id',
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
key: 'customer',
|
|
1261
|
-
value: '<string>',
|
|
1262
|
-
description: '(Required) The customer id',
|
|
1263
|
-
},
|
|
1264
|
-
],
|
|
1265
|
-
},
|
|
1266
|
-
url: {
|
|
1267
|
-
raw: '{{baseUrl}}/customers/flag',
|
|
1268
|
-
host: ['{{baseUrl}}'],
|
|
1269
|
-
path: ['customers', 'flag'],
|
|
1270
|
-
},
|
|
1271
|
-
description: 'API endpoint to *Flag Customer*\n> A successful request will return a *HTTP 200* status code',
|
|
1272
|
-
},
|
|
1273
|
-
response: [
|
|
1274
|
-
{
|
|
1275
|
-
name: 'Untitled Response',
|
|
1276
|
-
originalRequest: {
|
|
1277
|
-
method: 'POST',
|
|
1278
|
-
header: [
|
|
1279
|
-
{
|
|
1280
|
-
key: 'Content-Type',
|
|
1281
|
-
value: 'application/x-www-form-urlencoded',
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
key: 'Authorization',
|
|
1285
|
-
value: 'Bearer <token>',
|
|
1286
|
-
description: 'Added as a part of security scheme: bearer',
|
|
1287
|
-
},
|
|
1288
|
-
],
|
|
1289
|
-
body: {
|
|
1290
|
-
mode: 'urlencoded',
|
|
1291
|
-
urlencoded: [
|
|
1292
|
-
{
|
|
1293
|
-
key: 'bank',
|
|
1294
|
-
value: '<string>',
|
|
1295
|
-
description: '(Required) The bank id',
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
key: 'customer',
|
|
1299
|
-
value: '<string>',
|
|
1300
|
-
description: '(Required) The customer id',
|
|
1301
|
-
},
|
|
1302
|
-
],
|
|
1303
|
-
},
|
|
1304
|
-
url: {
|
|
1305
|
-
raw: '{{baseUrl}}/customers/flag',
|
|
1306
|
-
host: ['{{baseUrl}}'],
|
|
1307
|
-
path: ['customers', 'flag'],
|
|
1308
|
-
},
|
|
1309
|
-
},
|
|
1310
|
-
status: 'OK',
|
|
1311
|
-
code: 200,
|
|
1312
|
-
_postman_previewlanguage: 'text',
|
|
1313
|
-
body: '',
|
|
1314
|
-
},
|
|
1315
|
-
],
|
|
1316
|
-
},
|
|
1317
|
-
],
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
name: 'unflag',
|
|
1321
|
-
item: [
|
|
1322
|
-
{
|
|
1323
|
-
name: 'UnFlag Customer',
|
|
1324
|
-
request: {
|
|
1325
|
-
auth: {
|
|
1326
|
-
type: 'bearer',
|
|
1327
|
-
bearer: [
|
|
1328
|
-
{
|
|
1329
|
-
key: 'token',
|
|
1330
|
-
value: '{{bearerToken}}',
|
|
1331
|
-
type: 'string',
|
|
1332
|
-
},
|
|
1333
|
-
],
|
|
1334
|
-
},
|
|
1335
|
-
method: 'POST',
|
|
1336
|
-
header: [
|
|
1337
|
-
{
|
|
1338
|
-
key: 'Content-Type',
|
|
1339
|
-
value: 'application/json',
|
|
1340
|
-
},
|
|
1341
|
-
],
|
|
1342
|
-
body: {
|
|
1343
|
-
mode: 'raw',
|
|
1344
|
-
raw: '{\n "bank": "<string>",\n "customer": "<string>",\n "unflag": "<boolean>"\n}',
|
|
1345
|
-
options: {
|
|
1346
|
-
raw: {
|
|
1347
|
-
headerFamily: 'json',
|
|
1348
|
-
language: 'json',
|
|
1349
|
-
},
|
|
1350
|
-
},
|
|
1351
|
-
},
|
|
1352
|
-
url: {
|
|
1353
|
-
raw: '{{baseUrl}}/customers/unflag',
|
|
1354
|
-
host: ['{{baseUrl}}'],
|
|
1355
|
-
path: ['customers', 'unflag'],
|
|
1356
|
-
},
|
|
1357
|
-
description: 'API endpoint to *UnFlag Customer*\n> A successful request will return a *HTTP 200* status code',
|
|
1358
|
-
},
|
|
1359
|
-
response: [
|
|
1360
|
-
{
|
|
1361
|
-
name: 'Untitled Response',
|
|
1362
|
-
originalRequest: {
|
|
1363
|
-
method: 'POST',
|
|
1364
|
-
header: [
|
|
1365
|
-
{
|
|
1366
|
-
key: 'Content-Type',
|
|
1367
|
-
value: 'application/json',
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
key: 'Authorization',
|
|
1371
|
-
value: 'Bearer <token>',
|
|
1372
|
-
description: 'Added as a part of security scheme: bearer',
|
|
1373
|
-
},
|
|
1374
|
-
],
|
|
1375
|
-
body: {
|
|
1376
|
-
mode: 'raw',
|
|
1377
|
-
raw: '{\n "bank": "<string>",\n "customer": "<string>",\n "unflag": "<boolean>"\n}',
|
|
1378
|
-
options: {
|
|
1379
|
-
raw: {
|
|
1380
|
-
headerFamily: 'json',
|
|
1381
|
-
language: 'json',
|
|
1382
|
-
},
|
|
1383
|
-
},
|
|
1384
|
-
},
|
|
1385
|
-
url: {
|
|
1386
|
-
raw: '{{baseUrl}}/customers/unflag',
|
|
1387
|
-
host: ['{{baseUrl}}'],
|
|
1388
|
-
path: ['customers', 'unflag'],
|
|
1389
|
-
},
|
|
1390
|
-
},
|
|
1391
|
-
status: 'OK',
|
|
1392
|
-
code: 200,
|
|
1393
|
-
_postman_previewlanguage: 'text',
|
|
1394
|
-
body: '',
|
|
1395
|
-
},
|
|
1396
|
-
],
|
|
1397
|
-
},
|
|
1398
|
-
],
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
name: 'remove',
|
|
1402
|
-
item: [
|
|
1403
|
-
{
|
|
1404
|
-
name: 'Remove Customer',
|
|
1405
|
-
request: {
|
|
1406
|
-
method: 'POST',
|
|
1407
|
-
header: [
|
|
1408
|
-
{
|
|
1409
|
-
key: 'Content-Type',
|
|
1410
|
-
value: 'application/json',
|
|
1411
|
-
},
|
|
1412
|
-
{
|
|
1413
|
-
key: 'Accept',
|
|
1414
|
-
value: 'application/json; charset=utf-8',
|
|
1415
|
-
},
|
|
1416
|
-
],
|
|
1417
|
-
body: {
|
|
1418
|
-
mode: 'raw',
|
|
1419
|
-
raw: '{\n "customer": "<string>"\n}',
|
|
1420
|
-
options: {
|
|
1421
|
-
raw: {
|
|
1422
|
-
headerFamily: 'json',
|
|
1423
|
-
language: 'json',
|
|
1424
|
-
},
|
|
1425
|
-
},
|
|
1426
|
-
},
|
|
1427
|
-
url: {
|
|
1428
|
-
raw: '{{baseUrl}}/customers/remove',
|
|
1429
|
-
host: ['{{baseUrl}}'],
|
|
1430
|
-
path: ['customers', 'remove'],
|
|
1431
|
-
},
|
|
1432
|
-
description: 'API endpoint to remove a customer.',
|
|
1433
|
-
},
|
|
1434
|
-
response: [
|
|
1435
|
-
{
|
|
1436
|
-
name: 'OK',
|
|
1437
|
-
originalRequest: {
|
|
1438
|
-
method: 'POST',
|
|
1439
|
-
header: [
|
|
1440
|
-
{
|
|
1441
|
-
key: 'Content-Type',
|
|
1442
|
-
value: 'application/json',
|
|
1443
|
-
},
|
|
1444
|
-
{
|
|
1445
|
-
key: 'Accept',
|
|
1446
|
-
value: 'application/json; charset=utf-8',
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
key: 'Authorization',
|
|
1450
|
-
value: 'Bearer <token>',
|
|
1451
|
-
description: 'Added as a part of security scheme: bearer',
|
|
1452
|
-
},
|
|
1453
|
-
],
|
|
1454
|
-
body: {
|
|
1455
|
-
mode: 'raw',
|
|
1456
|
-
raw: '{\n "customer": "<string>"\n}',
|
|
1457
|
-
options: {
|
|
1458
|
-
raw: {
|
|
1459
|
-
headerFamily: 'json',
|
|
1460
|
-
language: 'json',
|
|
1461
|
-
},
|
|
1462
|
-
},
|
|
1463
|
-
},
|
|
1464
|
-
url: {
|
|
1465
|
-
raw: '{{baseUrl}}/customers/remove',
|
|
1466
|
-
host: ['{{baseUrl}}'],
|
|
1467
|
-
path: ['customers', 'remove'],
|
|
1468
|
-
},
|
|
1469
|
-
},
|
|
1470
|
-
status: 'OK',
|
|
1471
|
-
code: 200,
|
|
1472
|
-
_postman_previewlanguage: 'json',
|
|
1473
|
-
header: [
|
|
1474
|
-
{
|
|
1475
|
-
key: 'Content-Type',
|
|
1476
|
-
value: 'application/json; charset=utf-8',
|
|
1477
|
-
},
|
|
1478
|
-
],
|
|
1479
|
-
body: '{\n "status": "<string>",\n "message": "<string>",\n "data": {\n "success": "<boolean>",\n "msg": "<string>"\n }\n}',
|
|
1480
|
-
},
|
|
1481
|
-
],
|
|
1482
|
-
},
|
|
1483
|
-
],
|
|
1484
|
-
},
|
|
1485
|
-
],
|
|
1486
|
-
};
|
|
1487
|
-
const filePath = path.resolve(__dirname, '../postman.json');
|
|
1488
|
-
const fileContents = fs.readFileSync(filePath, 'utf8');
|
|
1489
|
-
const json = JSON.parse(fileContents);
|
|
1490
|
-
const result = await (0, parsers_1.validatePostmanCollection)(json, {
|
|
1491
|
-
validateRequests: true,
|
|
1492
|
-
validateVariables: true,
|
|
1493
|
-
validateAuth: true,
|
|
1494
|
-
validateResponses: true,
|
|
1495
|
-
});
|
|
1496
|
-
console.log('\nValidation stats:');
|
|
1497
|
-
console.log(result.stats);
|
|
1498
|
-
console.log(JSON.stringify(await postmanV21_repo_1.PostmanV21Repo.fetchParsedItems(json.item, new app_service_1.default({
|
|
1499
|
-
workspace_id: '68a3eb9178b3b64492297de9',
|
|
1500
|
-
public_key: '',
|
|
1501
|
-
user_id: '6812471c9972b0b1998cefeb',
|
|
1502
|
-
token: '',
|
|
1503
|
-
env_type: types_1.EnvType.STAGING,
|
|
1504
|
-
}))));
|
|
1505
|
-
};
|
|
1506
|
-
run();
|
|
1507
1
|
//# sourceMappingURL=test.import.js.map
|