polyapi 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/src/cli.js +3 -0
- package/build/client/src/cli.js.map +1 -1
- package/build/client/src/commands/function.js +4 -4
- package/build/client/src/commands/function.js.map +1 -1
- package/build/client/src/commands/generate.js +2 -2
- package/build/client/src/commands/generate.js.map +1 -1
- package/build/client/src/commands/setup.d.ts.map +1 -1
- package/build/client/src/commands/setup.js +1 -0
- package/build/client/src/commands/setup.js.map +1 -1
- package/build/client/src/commands/tenant.js +2 -2
- package/build/client/src/commands/tenant.js.map +1 -1
- package/build/client/src/utils.js +1 -1
- package/build/client/src/utils.js.map +1 -1
- package/build/common/src/client-dependencies.d.ts +1 -0
- package/build/common/src/client-dependencies.d.ts.map +1 -1
- package/build/common/src/client-dependencies.js +18 -3
- package/build/common/src/client-dependencies.js.map +1 -1
- package/build/model/src/dto/activity/activity-query.dto.d.ts +10 -0
- package/build/model/src/dto/activity/activity-query.dto.d.ts.map +1 -0
- package/build/model/src/dto/activity/activity-query.dto.js +55 -0
- package/build/model/src/dto/activity/activity-query.dto.js.map +1 -0
- package/build/model/src/dto/activity/activity.enum.d.ts +9 -0
- package/build/model/src/dto/activity/activity.enum.d.ts.map +1 -0
- package/build/model/src/dto/activity/activity.enum.js +14 -0
- package/build/model/src/dto/activity/activity.enum.js.map +1 -0
- package/build/model/src/dto/activity/index.d.ts +2 -1
- package/build/model/src/dto/activity/index.d.ts.map +1 -1
- package/build/model/src/dto/activity/index.js +2 -1
- package/build/model/src/dto/activity/index.js.map +1 -1
- package/build/model/src/dto/copilot/client-chat-data.dto.d.ts +11 -0
- package/build/model/src/dto/copilot/client-chat-data.dto.d.ts.map +1 -0
- package/build/model/src/dto/copilot/client-chat-data.dto.js +55 -0
- package/build/model/src/dto/copilot/client-chat-data.dto.js.map +1 -0
- package/build/model/src/dto/copilot/client-chat-message.dto.d.ts +11 -0
- package/build/model/src/dto/copilot/client-chat-message.dto.d.ts.map +1 -0
- package/build/model/src/dto/copilot/client-chat-message.dto.js +51 -0
- package/build/model/src/dto/copilot/client-chat-message.dto.js.map +1 -0
- package/build/model/src/dto/copilot/index.d.ts +1 -0
- package/build/model/src/dto/copilot/index.d.ts.map +1 -1
- package/build/model/src/dto/copilot/index.js +1 -0
- package/build/model/src/dto/copilot/index.js.map +1 -1
- package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +92 -4
- package/build/model/src/dto/function/postman-api-function-training.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/postman-api-function-training.dto.js +438 -3
- package/build/model/src/dto/function/postman-api-function-training.dto.js.map +1 -1
- package/build/model/src/function.d.ts +2 -42
- package/build/model/src/function.d.ts.map +1 -1
- package/build/model/src/function.js.map +1 -1
- package/build/model/src/index.d.ts +0 -1
- package/build/model/src/index.d.ts.map +1 -1
- package/build/model/src/index.js +0 -1
- package/build/model/src/index.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/model/src/auth.d.ts +0 -53
- package/build/model/src/auth.d.ts.map +0 -1
- package/build/model/src/auth.js +0 -3
- package/build/model/src/auth.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientChatMessageDto } from './client-chat-message.dto';
|
|
2
|
+
export declare class ClientChatDataDto {
|
|
3
|
+
copilotThreadId: string;
|
|
4
|
+
messages: ClientChatMessageDto[];
|
|
5
|
+
language: string;
|
|
6
|
+
lastUserMessage: string | null;
|
|
7
|
+
githubUserId: number;
|
|
8
|
+
githubUserName: string;
|
|
9
|
+
polyInstance: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=client-chat-data.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-chat-data.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/client-chat-data.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,iBAAiB;IAG5B,eAAe,EAAE,MAAM,CAAC;IAKxB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IAIjC,QAAQ,EAAE,MAAM,CAAC;IAIjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,YAAY,EAAE,MAAM,CAAC;IAIrB,cAAc,EAAE,MAAM,CAAC;IAIvB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClientChatDataDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const client_chat_message_dto_1 = require("./client-chat-message.dto");
|
|
16
|
+
class ClientChatDataDto {
|
|
17
|
+
}
|
|
18
|
+
exports.ClientChatDataDto = ClientChatDataDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ClientChatDataDto.prototype, "copilotThreadId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsArray)(),
|
|
26
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
27
|
+
(0, class_transformer_1.Type)(() => client_chat_message_dto_1.ClientChatMessageDto),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], ClientChatDataDto.prototype, "messages", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ClientChatDataDto.prototype, "language", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ClientChatDataDto.prototype, "lastUserMessage", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsNumber)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ClientChatDataDto.prototype, "githubUserId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ClientChatDataDto.prototype, "githubUserName", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ClientChatDataDto.prototype, "polyInstance", void 0);
|
|
55
|
+
//# sourceMappingURL=client-chat-data.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-chat-data.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/client-chat-data.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAsG;AACtG,uEAAiE;AAEjE,MAAa,iBAAiB;CA6B7B;AA7BD,8CA6BC;AA1BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACW;AAKxB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8CAAoB,CAAC;;mDACA;AAIjC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACkB;AAI/B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACQ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AgentErrorDto } from './agent-error.dto';
|
|
2
|
+
import { ClientConfirmationDto } from './client-confirmation.dto';
|
|
3
|
+
import { ClientReferenceDto } from './client-reference.dto';
|
|
4
|
+
export declare class ClientChatMessageDto {
|
|
5
|
+
role: string;
|
|
6
|
+
content: string;
|
|
7
|
+
copilotReferences: ClientReferenceDto[];
|
|
8
|
+
copilotConfirmations: ClientConfirmationDto[];
|
|
9
|
+
copilotErrors: AgentErrorDto[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=client-chat-message.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-chat-message.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/client-chat-message.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBAAa,oBAAoB;IAG/B,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAMhB,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;IAMxC,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAM9C,aAAa,EAAE,aAAa,EAAE,CAAC;CAChC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClientChatMessageDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const agent_error_dto_1 = require("./agent-error.dto");
|
|
16
|
+
const client_confirmation_dto_1 = require("./client-confirmation.dto");
|
|
17
|
+
const client_reference_dto_1 = require("./client-reference.dto");
|
|
18
|
+
class ClientChatMessageDto {
|
|
19
|
+
}
|
|
20
|
+
exports.ClientChatMessageDto = ClientChatMessageDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ClientChatMessageDto.prototype, "role", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ClientChatMessageDto.prototype, "content", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsArray)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_transformer_1.Type)(() => client_reference_dto_1.ClientReferenceDto),
|
|
34
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], ClientChatMessageDto.prototype, "copilotReferences", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsArray)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => client_confirmation_dto_1.ClientConfirmationDto),
|
|
41
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], ClientChatMessageDto.prototype, "copilotConfirmations", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsArray)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => agent_error_dto_1.AgentErrorDto),
|
|
48
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], ClientChatMessageDto.prototype, "copilotErrors", void 0);
|
|
51
|
+
//# sourceMappingURL=client-chat-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-chat-message.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/client-chat-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA4F;AAC5F,uDAAkD;AAClD,uEAAkE;AAClE,iEAA4D;AAE5D,MAAa,oBAAoB;CAyBhC;AAzBD,oDAyBC;AAtBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACA;AAGb;IADC,IAAA,0BAAQ,GAAE;;qDACK;AAMhB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;IAC9B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+DACS;AAMxC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+CAAqB,CAAC;IACjC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kEACe;AAM9C;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;IACzB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACA"}
|
|
@@ -13,5 +13,6 @@ export * from './client-reference-metadata.dto';
|
|
|
13
13
|
export * from './client-confirmation.dto';
|
|
14
14
|
export * from './client-confirmation-state.dto';
|
|
15
15
|
export * from './client-messages-data.dto';
|
|
16
|
+
export * from './client-chat-data.dto';
|
|
16
17
|
export * from './client-auth-error.dto';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -29,5 +29,6 @@ __exportStar(require("./client-reference-metadata.dto"), exports);
|
|
|
29
29
|
__exportStar(require("./client-confirmation.dto"), exports);
|
|
30
30
|
__exportStar(require("./client-confirmation-state.dto"), exports);
|
|
31
31
|
__exportStar(require("./client-messages-data.dto"), exports);
|
|
32
|
+
__exportStar(require("./client-chat-data.dto"), exports);
|
|
32
33
|
__exportStar(require("./client-auth-error.dto"), exports);
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,gEAA8C;AAC9C,yDAAuC;AACvC,oDAAkC;AAClC,yDAAuC;AACvC,gEAA8C;AAC9C,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,yDAAuC;AACvC,8DAA4C;AAC5C,kEAAgD;AAChD,4DAA0C;AAC1C,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/copilot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,gEAA8C;AAC9C,yDAAuC;AACvC,oDAAkC;AAClC,yDAAuC;AACvC,gEAA8C;AAC9C,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,yDAAuC;AACvC,8DAA4C;AAC5C,kEAAgD;AAChD,4DAA0C;AAC1C,kEAAgD;AAChD,6DAA2C;AAC3C,yDAAuC;AACvC,0DAAwC"}
|
|
@@ -1,6 +1,93 @@
|
|
|
1
1
|
import { IntrospectionQuery } from 'graphql';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Variables, Header, Method } from '../../function';
|
|
3
|
+
export declare class PostmanEntry {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class PostmanFormDataEntry extends PostmanEntry {
|
|
9
|
+
type: 'text' | 'file';
|
|
10
|
+
}
|
|
11
|
+
export declare class PostmanBodyBase {
|
|
12
|
+
mode?: 'urlencoded' | 'formdata' | 'raw' | 'empty' | 'graphql';
|
|
13
|
+
}
|
|
14
|
+
export type BodyLanguage = 'json' | 'javascript' | 'text' | 'xml' | 'html';
|
|
15
|
+
declare class PostmanRawOptions {
|
|
16
|
+
language: BodyLanguage;
|
|
17
|
+
}
|
|
18
|
+
declare class PostmanBodyRawOptions {
|
|
19
|
+
raw: PostmanRawOptions;
|
|
20
|
+
}
|
|
21
|
+
export declare class PostmanRawBody extends PostmanBodyBase {
|
|
22
|
+
mode: 'raw';
|
|
23
|
+
raw: string;
|
|
24
|
+
options: PostmanBodyRawOptions;
|
|
25
|
+
}
|
|
26
|
+
export declare class PostmanUrlencodedBody extends PostmanBodyBase {
|
|
27
|
+
mode: 'urlencoded';
|
|
28
|
+
urlencoded: PostmanEntry[];
|
|
29
|
+
}
|
|
30
|
+
export declare class PostmanFormDataBody extends PostmanBodyBase {
|
|
31
|
+
mode: 'formdata';
|
|
32
|
+
formdata: PostmanFormDataEntry[];
|
|
33
|
+
}
|
|
34
|
+
export declare class PostmanEmptyBody {
|
|
35
|
+
mode?: 'empty';
|
|
36
|
+
}
|
|
37
|
+
declare class GraphqlOptions {
|
|
38
|
+
query: string;
|
|
39
|
+
variables: string;
|
|
40
|
+
}
|
|
41
|
+
export declare class PostmanGraphQLBody extends PostmanBodyBase {
|
|
42
|
+
mode: 'graphql';
|
|
43
|
+
graphql: GraphqlOptions;
|
|
44
|
+
}
|
|
45
|
+
declare class PostmanAuthBase {
|
|
46
|
+
type: 'basic' | 'bearer' | 'apikey' | 'noauth';
|
|
47
|
+
}
|
|
48
|
+
export declare class PostmanBasicAuth extends PostmanAuthBase {
|
|
49
|
+
type: 'basic';
|
|
50
|
+
basic: [{
|
|
51
|
+
type: "any";
|
|
52
|
+
key: "username";
|
|
53
|
+
value: string;
|
|
54
|
+
}, {
|
|
55
|
+
type: "any";
|
|
56
|
+
key: "password";
|
|
57
|
+
value: string;
|
|
58
|
+
}];
|
|
59
|
+
}
|
|
60
|
+
declare class PostmanBearerEntry {
|
|
61
|
+
key: 'token';
|
|
62
|
+
value: string;
|
|
63
|
+
type: 'any';
|
|
64
|
+
}
|
|
65
|
+
export declare class PostmanBearerAuth extends PostmanAuthBase {
|
|
66
|
+
type: 'bearer';
|
|
67
|
+
bearer: PostmanBearerEntry[];
|
|
68
|
+
}
|
|
69
|
+
export declare class PostmanApiKeyAuth extends PostmanAuthBase {
|
|
70
|
+
type: 'apikey';
|
|
71
|
+
apikey: [{
|
|
72
|
+
type: "any";
|
|
73
|
+
key: "in";
|
|
74
|
+
value: "query" | "header";
|
|
75
|
+
}, {
|
|
76
|
+
type: "any";
|
|
77
|
+
key: "key";
|
|
78
|
+
value: string;
|
|
79
|
+
}, {
|
|
80
|
+
type: "any";
|
|
81
|
+
key: "value";
|
|
82
|
+
value: string;
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
export declare class PostmanNoAuth extends PostmanAuthBase {
|
|
86
|
+
type: 'noauth';
|
|
87
|
+
noauth: any[];
|
|
88
|
+
}
|
|
89
|
+
export type PostmanBody = PostmanUrlencodedBody | PostmanFormDataBody | PostmanRawBody | PostmanEmptyBody | PostmanGraphQLBody;
|
|
90
|
+
export type PostmanAuth = PostmanBasicAuth | PostmanBearerAuth | PostmanApiKeyAuth | PostmanNoAuth;
|
|
4
91
|
export declare class PostmanApiFunctionTrainingDto {
|
|
5
92
|
requestName: string;
|
|
6
93
|
name?: string;
|
|
@@ -8,7 +95,7 @@ export declare class PostmanApiFunctionTrainingDto {
|
|
|
8
95
|
description?: string;
|
|
9
96
|
payload?: string;
|
|
10
97
|
url: string;
|
|
11
|
-
body:
|
|
98
|
+
body: PostmanBody;
|
|
12
99
|
response: any;
|
|
13
100
|
variables?: Variables;
|
|
14
101
|
statusCode: number;
|
|
@@ -16,9 +103,10 @@ export declare class PostmanApiFunctionTrainingDto {
|
|
|
16
103
|
templateAuth?: PostmanAuth;
|
|
17
104
|
method: Method;
|
|
18
105
|
templateUrl: string;
|
|
19
|
-
templateBody:
|
|
106
|
+
templateBody: PostmanBody;
|
|
20
107
|
id?: string;
|
|
21
108
|
introspectionResponse: IntrospectionQuery | null;
|
|
22
109
|
enabledRedirect: boolean;
|
|
23
110
|
}
|
|
111
|
+
export {};
|
|
24
112
|
//# sourceMappingURL=postman-api-function-training.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAQ3D,qBAAa,YAAY;IAEvB,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,oBAAqB,SAAQ,YAAY;IAEpD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAGD,qBAAa,eAAe;IAG1B,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3E,cAAM,iBAAiB;IAErB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,cAAM,qBAAqB;IAGzB,GAAG,EAAE,iBAAiB,CAAC;CACxB;AAED,qBAAa,cAAe,SAAQ,eAAe;IAEjD,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,EAAE,qBAAqB,CAAC;CAChC;AAED,qBAAa,qBAAsB,SAAQ,eAAe;IAExD,IAAI,EAAE,YAAY,CAAC;IAKnB,UAAU,EA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