mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix types
This commit is contained in:
8
plugins/importer-postman/package-lock.json
generated
8
plugins/importer-postman/package-lock.json
generated
@@ -8,7 +8,7 @@
|
||||
"name": "importer-postman",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"@yaakapp/api": "^0.2.5"
|
||||
"@yaakapp/api": "^0.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.14.9",
|
||||
@@ -664,9 +664,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@yaakapp/api": {
|
||||
"version": "0.2.5",
|
||||
"resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.5.tgz",
|
||||
"integrity": "sha512-UXD4Vvm4IVGNqKQuORnlbZ/RSOqA3AkkvaBqcipqGCodkx/4kM1602fBFfBZMdiouq0RyyQ65ByWvJWVre/adg==",
|
||||
"version": "0.2.7",
|
||||
"resolved": "https://registry.npmjs.org/@yaakapp/api/-/api-0.2.7.tgz",
|
||||
"integrity": "sha512-vU9KtEwe5a+6VpDtV5+GSV+BpZETer/M9TtZ+oDZovvFMO0d55KqPfs7S6PuMru6e8Yxky8mO1TjL4Vsylh2Gg==",
|
||||
"dependencies": {
|
||||
"@types/node": "^22.5.4"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"build": "yaakcli build ./src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@yaakapp/api": "^0.2.5"
|
||||
"@yaakapp/api": "^0.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@yaakapp/cli": "^0.0.42",
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import {
|
||||
Context,
|
||||
Environment,
|
||||
Folder,
|
||||
HttpRequest,
|
||||
HttpRequestHeader,
|
||||
Model,
|
||||
Workspace,
|
||||
Context,
|
||||
HttpUrlParameter,
|
||||
Workspace,
|
||||
} from '@yaakapp/api';
|
||||
|
||||
const POSTMAN_2_1_0_SCHEMA = 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json';
|
||||
@@ -327,9 +326,9 @@ function convertTemplateSyntax<T>(obj: T): T {
|
||||
}
|
||||
}
|
||||
|
||||
const idCount: Partial<Record<Model['model'], number>> = {};
|
||||
const idCount: Partial<Record<string, number>> = {};
|
||||
|
||||
function generateId(model: Model['model']): string {
|
||||
function generateId(model: string): string {
|
||||
idCount[model] = (idCount[model] ?? -1) + 1;
|
||||
return `GENERATE_ID::${model.toUpperCase()}_${idCount[model]}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user