polyapi 0.10.5 → 0.11.0
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/api.d.ts +6 -1
- package/build/client/src/api.d.ts.map +1 -1
- package/build/client/src/api.js +42 -1
- package/build/client/src/api.js.map +1 -1
- package/build/client/src/cli.js +54 -0
- package/build/client/src/cli.js.map +1 -1
- package/build/client/src/commands/model/generate.d.ts +2 -0
- package/build/client/src/commands/model/generate.d.ts.map +1 -0
- package/build/client/src/commands/model/generate.js +96 -0
- package/build/client/src/commands/model/generate.js.map +1 -0
- package/build/client/src/commands/model/index.d.ts +4 -0
- package/build/client/src/commands/model/index.d.ts.map +1 -0
- package/build/client/src/commands/model/index.js +20 -0
- package/build/client/src/commands/model/index.js.map +1 -0
- package/build/client/src/commands/model/train.d.ts +2 -0
- package/build/client/src/commands/model/train.d.ts.map +1 -0
- package/build/client/src/commands/model/train.js +65 -0
- package/build/client/src/commands/model/train.js.map +1 -0
- package/build/client/src/commands/model/validate.d.ts +2 -0
- package/build/client/src/commands/model/validate.d.ts.map +1 -0
- package/build/client/src/commands/model/validate.js +42 -0
- package/build/client/src/commands/model/validate.js.map +1 -0
- package/build/common/src/constants.d.ts +9 -0
- package/build/common/src/constants.d.ts.map +1 -0
- package/build/common/src/constants.js +12 -0
- package/build/common/src/constants.js.map +1 -0
- package/build/common/src/json-schema.d.ts +3 -0
- package/build/common/src/json-schema.d.ts.map +1 -0
- package/build/common/src/json-schema.js +26 -0
- package/build/common/src/json-schema.js.map +1 -0
- package/build/common/src/utils.d.ts +0 -7
- package/build/common/src/utils.d.ts.map +1 -1
- package/build/common/src/utils.js +6 -12
- package/build/common/src/utils.js.map +1 -1
- package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts +5 -0
- package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts.map +1 -0
- package/build/model/src/dto/config-variable/config-variable-name.dto.js +22 -0
- package/build/model/src/dto/config-variable/config-variable-name.dto.js.map +1 -0
- package/build/model/src/dto/config-variable/index.d.ts +1 -0
- package/build/model/src/dto/config-variable/index.d.ts.map +1 -1
- package/build/model/src/dto/config-variable/index.js +1 -0
- package/build/model/src/dto/config-variable/index.js.map +1 -1
- package/build/model/src/dto/function/api-function-translation.dto.d.ts +6 -0
- package/build/model/src/dto/function/api-function-translation.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/api-function-translation.dto.js +3 -0
- package/build/model/src/dto/function/api-function-translation.dto.js.map +1 -0
- package/build/model/src/dto/function/create-api-function.dto.d.ts +24 -21
- package/build/model/src/dto/function/create-api-function.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/create-api-function.dto.js +102 -15
- package/build/model/src/dto/function/create-api-function.dto.js.map +1 -1
- package/build/model/src/dto/function/create-api-functions.dto.d.ts +5 -0
- package/build/model/src/dto/function/create-api-functions.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/create-api-functions.dto.js +25 -0
- package/build/model/src/dto/function/create-api-functions.dto.js.map +1 -0
- package/build/model/src/dto/function/index.d.ts +6 -1
- package/build/model/src/dto/function/index.d.ts.map +1 -1
- package/build/model/src/dto/function/index.js +6 -1
- package/build/model/src/dto/function/index.js.map +1 -1
- package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +24 -0
- package/build/model/src/dto/function/postman-api-function-training.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/postman-api-function-training.dto.js +58 -0
- package/build/model/src/dto/function/postman-api-function-training.dto.js.map +1 -0
- package/build/model/src/dto/function/rendered-spec.dto.d.ts +7 -0
- package/build/model/src/dto/function/rendered-spec.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/rendered-spec.dto.js +37 -0
- package/build/model/src/dto/function/rendered-spec.dto.js.map +1 -0
- package/build/model/src/dto/function/translate-query-params.dto.d.ts +4 -0
- package/build/model/src/dto/function/translate-query-params.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/translate-query-params.dto.js +22 -0
- package/build/model/src/dto/function/translate-query-params.dto.js.map +1 -0
- package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts +42 -0
- package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/types/source/common-source-types.dto.js +160 -0
- package/build/model/src/dto/function/types/source/common-source-types.dto.js.map +1 -0
- package/build/model/src/dto/function/types/source/create-source.dto.d.ts +30 -0
- package/build/model/src/dto/function/types/source/create-source.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/types/source/create-source.dto.js +178 -0
- package/build/model/src/dto/function/types/source/create-source.dto.js.map +1 -0
- package/build/model/src/dto/function/types/source/update-source.dto.d.ts +21 -0
- package/build/model/src/dto/function/types/source/update-source.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/types/source/update-source.dto.js +201 -0
- package/build/model/src/dto/function/types/source/update-source.dto.js.map +1 -0
- package/build/model/src/dto/function/update-api-function.dto.d.ts +3 -3
- package/build/model/src/dto/function/update-api-function.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/update-api-function.dto.js +5 -5
- package/build/model/src/dto/function/update-api-function.dto.js.map +1 -1
- package/build/model/src/dto/gptplugin/whoami.dto.d.ts.map +1 -1
- package/build/model/src/dto/gptplugin/whoami.dto.js +3 -1
- package/build/model/src/dto/gptplugin/whoami.dto.js.map +1 -1
- package/build/model/src/dto/job/execution.dto.d.ts.map +1 -1
- package/build/model/src/dto/tenant/index.d.ts +2 -0
- package/build/model/src/dto/tenant/index.d.ts.map +1 -1
- package/build/model/src/dto/tenant/index.js +2 -0
- package/build/model/src/dto/tenant/index.js.map +1 -1
- package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts +6 -0
- package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts.map +1 -0
- package/build/model/src/dto/tenant/tenant-config-variable.dto.js +26 -0
- package/build/model/src/dto/tenant/tenant-config-variable.dto.js.map +1 -0
- package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts +7 -0
- package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts.map +1 -0
- package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js +30 -0
- package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js.map +1 -0
- package/build/model/src/dto/trigger/trigger-response.dto.d.ts +6 -4
- package/build/model/src/dto/trigger/trigger-response.dto.d.ts.map +1 -1
- package/build/model/src/dto/trigger/trigger-response.dto.js +2 -0
- package/build/model/src/dto/trigger/trigger-response.dto.js.map +1 -1
- package/build/model/src/dto/validators/index.d.ts +1 -0
- package/build/model/src/dto/validators/index.d.ts.map +1 -1
- package/build/model/src/dto/validators/index.js +1 -0
- package/build/model/src/dto/validators/index.js.map +1 -1
- package/build/model/src/dto/validators/json-schema.d.ts +7 -0
- package/build/model/src/dto/validators/json-schema.d.ts.map +1 -0
- package/build/model/src/dto/validators/json-schema.js +41 -0
- package/build/model/src/dto/validators/json-schema.js.map +1 -0
- package/build/model/src/function.d.ts +2 -2
- package/build/model/src/function.d.ts.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/build/model/src/dto/function/types/update-source.d.ts +0 -57
- package/build/model/src/dto/function/types/update-source.d.ts.map +0 -1
- package/build/model/src/dto/function/types/update-source.js +0 -356
- package/build/model/src/dto/function/types/update-source.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-source-types.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,iBAAiB;IAG1B,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,yBAAyB;IAElC,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,qBAAa,IAAI;IAEb,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;CACrD;AAED,qBAAa,SAAU,SAAQ,IAAI;IAE/B,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,UAAU;IAEnB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAClD;AAED,qBAAa,WAAW;IAEtB,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,OAAO,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,gBAAgB;IAEzB,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAI7B,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,UAAU;IAE3C,IAAI,EAAE,OAAO,CAAC;IAiBd,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,qBAAa,YAAa,SAAQ,UAAU;IAExC,IAAI,EAAE,QAAQ,CAAC;IAef,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IAE5C,IAAI,EAAE,QAAQ,CAAC;IAQf,MAAM,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,qBAAa,MAAO,SAAQ,UAAU;IAEpC,IAAI,EAAE,QAAQ,CAAC;CAChB"}
|
|
@@ -0,0 +1,160 @@
|
|
|
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.NoAuth = exports.BearerAuthSource = exports.ApiKeySource = exports.BasicAuthSource = exports.BasicAuthEntries = exports.BearerEntry = exports.UpdateAuth = exports.EmptyBody = exports.Body = exports.UpdateSourceNullableEntry = exports.UpdateSourceEntry = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class UpdateSourceEntry {
|
|
17
|
+
}
|
|
18
|
+
exports.UpdateSourceEntry = UpdateSourceEntry;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UpdateSourceEntry.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateSourceEntry.prototype, "value", void 0);
|
|
29
|
+
class UpdateSourceNullableEntry {
|
|
30
|
+
}
|
|
31
|
+
exports.UpdateSourceNullableEntry = UpdateSourceNullableEntry;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], UpdateSourceNullableEntry.prototype, "key", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.ValidateIf)((object, value) => value !== null),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], UpdateSourceNullableEntry.prototype, "value", void 0);
|
|
41
|
+
class Body {
|
|
42
|
+
}
|
|
43
|
+
exports.Body = Body;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsIn)(['urlencoded', 'formdata', 'raw', 'empty']),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Body.prototype, "mode", void 0);
|
|
48
|
+
class EmptyBody extends Body {
|
|
49
|
+
}
|
|
50
|
+
exports.EmptyBody = EmptyBody;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsIn)(['empty']),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], EmptyBody.prototype, "mode", void 0);
|
|
55
|
+
class UpdateAuth {
|
|
56
|
+
}
|
|
57
|
+
exports.UpdateAuth = UpdateAuth;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], UpdateAuth.prototype, "type", void 0);
|
|
62
|
+
class BearerEntry {
|
|
63
|
+
}
|
|
64
|
+
exports.BearerEntry = BearerEntry;
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsIn)(['any']),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], BearerEntry.prototype, "type", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsIn)(['token']),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], BearerEntry.prototype, "key", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], BearerEntry.prototype, "value", void 0);
|
|
77
|
+
class BasicAuthEntries {
|
|
78
|
+
}
|
|
79
|
+
exports.BasicAuthEntries = BasicAuthEntries;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsIn)(['username', 'password']),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], BasicAuthEntries.prototype, "key", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)(),
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], BasicAuthEntries.prototype, "value", void 0);
|
|
89
|
+
class BasicAuthSource extends UpdateAuth {
|
|
90
|
+
}
|
|
91
|
+
exports.BasicAuthSource = BasicAuthSource;
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsIn)(['basic']),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], BasicAuthSource.prototype, "type", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
type: 'array',
|
|
99
|
+
items: {
|
|
100
|
+
$ref: (0, swagger_1.getSchemaPath)(BasicAuthEntries),
|
|
101
|
+
},
|
|
102
|
+
uniqueItems: true,
|
|
103
|
+
minimum: 2,
|
|
104
|
+
maximum: 2,
|
|
105
|
+
}),
|
|
106
|
+
(0, class_validator_1.IsArray)(),
|
|
107
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
108
|
+
(0, class_validator_1.ArrayMaxSize)(2),
|
|
109
|
+
(0, class_validator_1.ArrayMinSize)(2),
|
|
110
|
+
(0, class_transformer_1.Type)(() => BasicAuthEntries),
|
|
111
|
+
(0, class_validator_1.ArrayUnique)(o => o.key),
|
|
112
|
+
__metadata("design:type", Array)
|
|
113
|
+
], BasicAuthSource.prototype, "basic", void 0);
|
|
114
|
+
class ApiKeySource extends UpdateAuth {
|
|
115
|
+
}
|
|
116
|
+
exports.ApiKeySource = ApiKeySource;
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_validator_1.IsIn)(['apikey']),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], ApiKeySource.prototype, "type", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
type: 'array',
|
|
124
|
+
items: {
|
|
125
|
+
$ref: (0, swagger_1.getSchemaPath)(UpdateSourceEntry),
|
|
126
|
+
},
|
|
127
|
+
uniqueItems: true,
|
|
128
|
+
minimum: 3,
|
|
129
|
+
}),
|
|
130
|
+
(0, class_validator_1.IsArray)(),
|
|
131
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
132
|
+
(0, class_transformer_1.Type)(() => UpdateSourceEntry),
|
|
133
|
+
(0, class_validator_1.ArrayUnique)(o => o.key),
|
|
134
|
+
(0, class_validator_1.ArrayMinSize)(3),
|
|
135
|
+
__metadata("design:type", Array)
|
|
136
|
+
], ApiKeySource.prototype, "apikey", void 0);
|
|
137
|
+
class BearerAuthSource extends UpdateAuth {
|
|
138
|
+
}
|
|
139
|
+
exports.BearerAuthSource = BearerAuthSource;
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_validator_1.IsIn)(['bearer']),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], BearerAuthSource.prototype, "type", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)(),
|
|
146
|
+
(0, class_validator_1.IsArray)(),
|
|
147
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
148
|
+
(0, class_transformer_1.Type)(() => BearerEntry),
|
|
149
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
150
|
+
(0, class_validator_1.ArrayMaxSize)(1),
|
|
151
|
+
__metadata("design:type", Array)
|
|
152
|
+
], BearerAuthSource.prototype, "bearer", void 0);
|
|
153
|
+
class NoAuth extends UpdateAuth {
|
|
154
|
+
}
|
|
155
|
+
exports.NoAuth = NoAuth;
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_validator_1.IsIn)(['noauth']),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], NoAuth.prototype, "type", void 0);
|
|
160
|
+
//# sourceMappingURL=common-source-types.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-source-types.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":";;;;;;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sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;8CACF;AAQf;IANC,IAAA,qBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;gDACM;AAG1B,MAAa,MAAO,SAAQ,UAAU;CAGrC;AAHD,wBAGC;AADC;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;oCACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EmptyBody, BasicAuthSource, BearerAuthSource, ApiKeySource, NoAuth, UpdateSourceEntry, Body } from './common-source-types.dto';
|
|
2
|
+
export { UpdateSourceNullableEntry, BearerAuthSource, BasicAuthSource, ApiKeySource } from './common-source-types.dto';
|
|
3
|
+
declare class CreateSourceHeadersDto {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateFormDataEntry extends UpdateSourceEntry {
|
|
8
|
+
type: 'text' | 'file';
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateRawBodySource extends Body {
|
|
11
|
+
mode: 'raw';
|
|
12
|
+
raw: string;
|
|
13
|
+
language?: 'html' | 'xml' | 'text' | 'json' | 'javascript';
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateFormDataBodySource extends Body {
|
|
16
|
+
mode: 'formdata';
|
|
17
|
+
formdata: CreateFormDataEntry[];
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateUrlEncodedBodySource extends Body {
|
|
20
|
+
mode: 'urlencoded';
|
|
21
|
+
urlencoded: UpdateSourceEntry[];
|
|
22
|
+
}
|
|
23
|
+
export declare class CreateSourceFunctionDto {
|
|
24
|
+
url: string;
|
|
25
|
+
method: string;
|
|
26
|
+
headers?: CreateSourceHeadersDto[];
|
|
27
|
+
auth: BasicAuthSource | BearerAuthSource | ApiKeySource | NoAuth;
|
|
28
|
+
body: CreateUrlEncodedBodySource | CreateFormDataBodySource | CreateRawBodySource | EmptyBody;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=create-source.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAEN,iBAAiB,EAEjB,IAAI,EACL,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEvH,cAAM,sBAAsB;IAE1B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,iBAAiB;IAGxD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,mBAAoB,SAAQ,IAAI;IAE3C,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAIZ,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CAC5D;AAED,qBAAa,wBAAyB,SAAQ,IAAI;IAEhD,IAAI,EAAE,UAAU,CAAC;IAEjB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,qBAAa,0BAA2B,SAAQ,IAAI;IAElD,IAAI,EAAE,YAAY,CAAC;IAEnB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,qBACa,uBAAuB;IAEhC,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;IAMf,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAyCnC,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAAC;IA4CjE,IAAI,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAAC;CACjG"}
|
|
@@ -0,0 +1,178 @@
|
|
|
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.CreateSourceFunctionDto = exports.CreateUrlEncodedBodySource = exports.CreateFormDataBodySource = exports.CreateRawBodySource = exports.CreateFormDataEntry = exports.ApiKeySource = exports.BasicAuthSource = exports.BearerAuthSource = exports.UpdateSourceNullableEntry = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const utils_1 = require("../../../utils");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
const common_source_types_dto_1 = require("./common-source-types.dto");
|
|
18
|
+
var common_source_types_dto_2 = require("./common-source-types.dto");
|
|
19
|
+
Object.defineProperty(exports, "UpdateSourceNullableEntry", { enumerable: true, get: function () { return common_source_types_dto_2.UpdateSourceNullableEntry; } });
|
|
20
|
+
Object.defineProperty(exports, "BearerAuthSource", { enumerable: true, get: function () { return common_source_types_dto_2.BearerAuthSource; } });
|
|
21
|
+
Object.defineProperty(exports, "BasicAuthSource", { enumerable: true, get: function () { return common_source_types_dto_2.BasicAuthSource; } });
|
|
22
|
+
Object.defineProperty(exports, "ApiKeySource", { enumerable: true, get: function () { return common_source_types_dto_2.ApiKeySource; } });
|
|
23
|
+
class CreateSourceHeadersDto {
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateSourceHeadersDto.prototype, "key", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateSourceHeadersDto.prototype, "value", void 0);
|
|
33
|
+
class CreateFormDataEntry extends common_source_types_dto_1.UpdateSourceEntry {
|
|
34
|
+
}
|
|
35
|
+
exports.CreateFormDataEntry = CreateFormDataEntry;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(['text', 'file']),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateFormDataEntry.prototype, "type", void 0);
|
|
41
|
+
class CreateRawBodySource extends common_source_types_dto_1.Body {
|
|
42
|
+
}
|
|
43
|
+
exports.CreateRawBodySource = CreateRawBodySource;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsIn)(['raw']),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateRawBodySource.prototype, "mode", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateRawBodySource.prototype, "raw", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsEnum)(['html', 'xml', 'text', 'json', 'javascript']),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateRawBodySource.prototype, "language", void 0);
|
|
57
|
+
class CreateFormDataBodySource extends common_source_types_dto_1.Body {
|
|
58
|
+
}
|
|
59
|
+
exports.CreateFormDataBodySource = CreateFormDataBodySource;
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsIn)(['formdata']),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreateFormDataBodySource.prototype, "mode", void 0);
|
|
64
|
+
class CreateUrlEncodedBodySource extends common_source_types_dto_1.Body {
|
|
65
|
+
}
|
|
66
|
+
exports.CreateUrlEncodedBodySource = CreateUrlEncodedBodySource;
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsIn)(['urlencoded']),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CreateUrlEncodedBodySource.prototype, "mode", void 0);
|
|
71
|
+
let CreateSourceFunctionDto = exports.CreateSourceFunctionDto = class CreateSourceFunctionDto {
|
|
72
|
+
};
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateSourceFunctionDto.prototype, "url", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsIn)(utils_1.HTTP_METHODS),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CreateSourceFunctionDto.prototype, "method", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsArray)(),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.ValidateNested)(),
|
|
85
|
+
(0, class_transformer_1.Type)(() => CreateSourceHeadersDto),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], CreateSourceFunctionDto.prototype, "headers", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiProperty)({
|
|
90
|
+
name: 'auth',
|
|
91
|
+
oneOf: [
|
|
92
|
+
{
|
|
93
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BasicAuthSource),
|
|
94
|
+
}, {
|
|
95
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeySource),
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuth),
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
}),
|
|
105
|
+
(0, class_validator_1.IsObject)(),
|
|
106
|
+
(0, class_validator_1.ValidateNested)(),
|
|
107
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.UpdateAuth, {
|
|
108
|
+
keepDiscriminatorProperty: true,
|
|
109
|
+
discriminator: {
|
|
110
|
+
property: 'type',
|
|
111
|
+
subTypes: [
|
|
112
|
+
{
|
|
113
|
+
value: common_source_types_dto_1.BasicAuthSource,
|
|
114
|
+
name: 'basic',
|
|
115
|
+
}, {
|
|
116
|
+
value: common_source_types_dto_1.BearerAuthSource,
|
|
117
|
+
name: 'bearer',
|
|
118
|
+
}, {
|
|
119
|
+
value: common_source_types_dto_1.ApiKeySource,
|
|
120
|
+
name: 'apikey',
|
|
121
|
+
}, {
|
|
122
|
+
value: common_source_types_dto_1.NoAuth,
|
|
123
|
+
name: 'noauth',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], CreateSourceFunctionDto.prototype, "auth", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, swagger_1.ApiProperty)({
|
|
132
|
+
name: 'body',
|
|
133
|
+
oneOf: [
|
|
134
|
+
{
|
|
135
|
+
$ref: (0, swagger_1.getSchemaPath)(CreateUrlEncodedBodySource),
|
|
136
|
+
}, {
|
|
137
|
+
$ref: (0, swagger_1.getSchemaPath)(CreateFormDataBodySource),
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
$ref: (0, swagger_1.getSchemaPath)(CreateRawBodySource),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBody),
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
}),
|
|
147
|
+
(0, class_validator_1.IsObject)(),
|
|
148
|
+
(0, class_validator_1.ValidateNested)(),
|
|
149
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.Body, {
|
|
150
|
+
keepDiscriminatorProperty: true,
|
|
151
|
+
discriminator: {
|
|
152
|
+
property: 'mode',
|
|
153
|
+
subTypes: [
|
|
154
|
+
{
|
|
155
|
+
value: CreateUrlEncodedBodySource,
|
|
156
|
+
name: 'urlencoded',
|
|
157
|
+
}, {
|
|
158
|
+
value: CreateFormDataBodySource,
|
|
159
|
+
name: 'formdata',
|
|
160
|
+
}, {
|
|
161
|
+
value: CreateRawBodySource,
|
|
162
|
+
name: 'raw',
|
|
163
|
+
}, {
|
|
164
|
+
value: common_source_types_dto_1.EmptyBody,
|
|
165
|
+
name: 'empty',
|
|
166
|
+
}, {
|
|
167
|
+
value: common_source_types_dto_1.NoAuth,
|
|
168
|
+
name: 'noauth',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
}),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], CreateSourceFunctionDto.prototype, "body", void 0);
|
|
175
|
+
exports.CreateSourceFunctionDto = CreateSourceFunctionDto = __decorate([
|
|
176
|
+
(0, swagger_1.ApiExtraModels)(CreateUrlEncodedBodySource, CreateFormDataBodySource, CreateRawBodySource, common_source_types_dto_1.BasicAuthSource, common_source_types_dto_1.BearerAuthSource, common_source_types_dto_1.ApiKeySource, common_source_types_dto_1.NoAuth, common_source_types_dto_1.BasicAuthEntries, common_source_types_dto_1.UpdateSourceEntry)
|
|
177
|
+
], CreateSourceFunctionDto);
|
|
178
|
+
//# sourceMappingURL=create-source.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwG;AACxG,yDAAyC;AACzC,0CAA8C;AAC9C,6CAA6E;AAE7E,uEAUmC;AAEnC,qEAAuH;AAA9G,oIAAA,yBAAyB,OAAA;AAAE,2HAAA,gBAAgB,OAAA;AAAE,0HAAA,eAAe,OAAA;AAAE,uHAAA,YAAY,OAAA;AAEnF,MAAM,sBAAsB;CAM3B;AAJC;IADC,IAAA,0BAAQ,GAAE;;mDACC;AAGZ;IADC,IAAA,0BAAQ,GAAE;;qDACG;AAGhB,MAAa,mBAAoB,SAAQ,2CAAiB;CAIzD;AAJD,kDAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;iDACH;AAGxB,MAAa,mBAAoB,SAAQ,8BAAI;CAU5C;AAVD,kDAUC;AARC;IADC,IAAA,sBAAI,EAAC,CAAC,KAAK,CAAC,CAAC;;iDACF;AAGZ;IADC,IAAA,0BAAQ,GAAE;;gDACC;AAIZ;IAFC,IAAA,wBAAM,EAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IACrD,IAAA,4BAAU,GAAE;;qDAC8C;AAG7D,MAAa,wBAAyB,SAAQ,8BAAI;CAKjD;AALD,4DAKC;AAHC;IADC,IAAA,sBAAI,EAAC,CAAC,UAAU,CAAC,CAAC;;sDACF;AAKnB,MAAa,0BAA2B,SAAQ,8BAAI;CAKnD;AALD,gEAKC;AAHC;IADC,IAAA,s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E;YACL;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,0BAA0B,CAAC;aAChD,EAAE;gBACD,IAAI,EAAE,IAAA,uBAAa,EAAC,wBAAwB,CAAC;aAC9C;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,mBAAmB,CAAC;aACzC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,mCAAS,CAAC;aAC/B;SACF;KACF,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAI,EAAE;QAChB,yBAAyB,EAAE,IAAI;QAC/B,aAAa,EAAE;YACb,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,0BAA0B;oBACjC,IAAI,EAAE,YAAY;iBACnB,EAAE;oBACD,KAAK,EAAE,wBAAwB;oBAC/B,IAAI,EAAE,UAAU;iBACjB,EAAE;oBACD,KAAK,EAAE,mBAAmB;oBAC1B,IAAI,EAAE,KAAK;iBACZ,EAAE;oBACD,KAAK,EAAE,mCAAS;oBAChB,IAAI,EAAE,OAAO;iBACd,EAAE;oBACD,KAAK,EAAE,gCAAM;oBACb,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF,CAAC;;qDAC4F;kCAhGrF,uBAAuB;IADnC,IAAA,wBAAc,EAAC,0BAA0B,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,yCAAe,EAAE,0CAAgB,EAAE,sCAAY,EAAE,gCAAM,EAAE,0CAAgB,EAAE,2CAAiB,CAAC;GAC3K,uBAAuB,CAiGnC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EmptyBody, BasicAuthSource, BearerAuthSource, ApiKeySource, NoAuth, Body } from './common-source-types.dto';
|
|
2
|
+
export declare class UpdateRawBodySource extends Body {
|
|
3
|
+
mode: 'raw';
|
|
4
|
+
raw: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
export declare class UpdateUrlEncodedBodySource extends Body {
|
|
7
|
+
mode: 'urlencoded';
|
|
8
|
+
urlencoded: Record<string, string | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare class UpdateFormDataBodySource extends Body {
|
|
11
|
+
mode: 'formdata';
|
|
12
|
+
formdata: Record<string, string | null>;
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateSourceFunctionDto {
|
|
15
|
+
url?: string;
|
|
16
|
+
method?: string;
|
|
17
|
+
headers?: Record<string, string | null>;
|
|
18
|
+
auth?: BasicAuthSource | BearerAuthSource | ApiKeySource | NoAuth;
|
|
19
|
+
body?: UpdateUrlEncodedBodySource | UpdateFormDataBodySource | UpdateRawBodySource | EmptyBody;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=update-source.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/update-source.dto.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAEN,IAAI,EACL,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,mBAAoB,SAAQ,IAAI;IAE3C,IAAI,EAAE,KAAK,CAAC;IAIZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC1B;AAED,qBAAa,0BAA2B,SAAQ,IAAI;IAElD,IAAI,EAAE,YAAY,CAAC;IAanB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3C;AAED,qBAAa,wBAAyB,SAAQ,IAAI;IAEhD,IAAI,EAAE,UAAU,CAAC;IAajB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACzC;AAED,qBACa,uBAAuB;IAGhC,GAAG,CAAC,EAAE,MAAM,CAAC;IAIb,MAAM,CAAC,EAAE,MAAM,CAAC;IAqBhB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IA2CxC,IAAI,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAAC;IA8ClE,IAAI,CAAC,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAAC;CAClG"}
|
|
@@ -0,0 +1,201 @@
|
|
|
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.UpdateSourceFunctionDto = exports.UpdateFormDataBodySource = exports.UpdateUrlEncodedBodySource = exports.UpdateRawBodySource = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const validators_1 = require("../../../validators");
|
|
16
|
+
const utils_1 = require("../../../utils");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const common_source_types_dto_1 = require("./common-source-types.dto");
|
|
19
|
+
class UpdateRawBodySource extends common_source_types_dto_1.Body {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateRawBodySource = UpdateRawBodySource;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsIn)(['raw']),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpdateRawBodySource.prototype, "mode", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsObject)(),
|
|
28
|
+
(0, swagger_1.ApiProperty)(),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], UpdateRawBodySource.prototype, "raw", void 0);
|
|
31
|
+
class UpdateUrlEncodedBodySource extends common_source_types_dto_1.Body {
|
|
32
|
+
}
|
|
33
|
+
exports.UpdateUrlEncodedBodySource = UpdateUrlEncodedBodySource;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsIn)(['urlencoded']),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateUrlEncodedBodySource.prototype, "mode", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
type: 'object',
|
|
41
|
+
additionalProperties: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
nullable: true,
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
(0, validators_1.Record)({
|
|
47
|
+
nullable: true,
|
|
48
|
+
type: 'string',
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], UpdateUrlEncodedBodySource.prototype, "urlencoded", void 0);
|
|
52
|
+
class UpdateFormDataBodySource extends common_source_types_dto_1.Body {
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateFormDataBodySource = UpdateFormDataBodySource;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsIn)(['formdata']),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], UpdateFormDataBodySource.prototype, "mode", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
type: 'object',
|
|
62
|
+
additionalProperties: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
nullable: true,
|
|
65
|
+
},
|
|
66
|
+
}),
|
|
67
|
+
(0, validators_1.Record)({
|
|
68
|
+
nullable: true,
|
|
69
|
+
type: 'string',
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], UpdateFormDataBodySource.prototype, "formdata", void 0);
|
|
73
|
+
let UpdateSourceFunctionDto = exports.UpdateSourceFunctionDto = class UpdateSourceFunctionDto {
|
|
74
|
+
};
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpdateSourceFunctionDto.prototype, "url", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, class_validator_1.IsIn)(utils_1.HTTP_METHODS),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], UpdateSourceFunctionDto.prototype, "method", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
name: 'headers',
|
|
88
|
+
description: 'Set headers values through strings. Provide `null` to remove a header.',
|
|
89
|
+
type: 'object',
|
|
90
|
+
additionalProperties: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
nullable: true,
|
|
93
|
+
},
|
|
94
|
+
example: {
|
|
95
|
+
'X-My-Custom-Header': null,
|
|
96
|
+
'X-Page': '{{page}}',
|
|
97
|
+
},
|
|
98
|
+
required: false,
|
|
99
|
+
}),
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, validators_1.Record)({
|
|
102
|
+
nullable: true,
|
|
103
|
+
type: 'string',
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], UpdateSourceFunctionDto.prototype, "headers", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({
|
|
109
|
+
name: 'auth',
|
|
110
|
+
required: false,
|
|
111
|
+
oneOf: [
|
|
112
|
+
{
|
|
113
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BasicAuthSource),
|
|
114
|
+
}, {
|
|
115
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeySource),
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuth),
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
}),
|
|
125
|
+
(0, class_validator_1.IsObject)(),
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
(0, class_validator_1.ValidateNested)(),
|
|
128
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.UpdateAuth, {
|
|
129
|
+
keepDiscriminatorProperty: true,
|
|
130
|
+
discriminator: {
|
|
131
|
+
property: 'type',
|
|
132
|
+
subTypes: [
|
|
133
|
+
{
|
|
134
|
+
value: common_source_types_dto_1.BasicAuthSource,
|
|
135
|
+
name: 'basic',
|
|
136
|
+
}, {
|
|
137
|
+
value: common_source_types_dto_1.BearerAuthSource,
|
|
138
|
+
name: 'bearer',
|
|
139
|
+
}, {
|
|
140
|
+
value: common_source_types_dto_1.ApiKeySource,
|
|
141
|
+
name: 'apikey',
|
|
142
|
+
}, {
|
|
143
|
+
value: common_source_types_dto_1.NoAuth,
|
|
144
|
+
name: 'noauth',
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
}),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], UpdateSourceFunctionDto.prototype, "auth", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, swagger_1.ApiProperty)({
|
|
153
|
+
name: 'body',
|
|
154
|
+
required: false,
|
|
155
|
+
oneOf: [
|
|
156
|
+
{
|
|
157
|
+
$ref: (0, swagger_1.getSchemaPath)(UpdateUrlEncodedBodySource),
|
|
158
|
+
}, {
|
|
159
|
+
$ref: (0, swagger_1.getSchemaPath)(UpdateFormDataBodySource),
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
$ref: (0, swagger_1.getSchemaPath)(UpdateRawBodySource),
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBody),
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
}),
|
|
169
|
+
(0, class_validator_1.IsObject)(),
|
|
170
|
+
(0, class_validator_1.IsOptional)(),
|
|
171
|
+
(0, class_validator_1.ValidateNested)(),
|
|
172
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.Body, {
|
|
173
|
+
keepDiscriminatorProperty: true,
|
|
174
|
+
discriminator: {
|
|
175
|
+
property: 'mode',
|
|
176
|
+
subTypes: [
|
|
177
|
+
{
|
|
178
|
+
value: UpdateUrlEncodedBodySource,
|
|
179
|
+
name: 'urlencoded',
|
|
180
|
+
}, {
|
|
181
|
+
value: UpdateFormDataBodySource,
|
|
182
|
+
name: 'formdata',
|
|
183
|
+
}, {
|
|
184
|
+
value: UpdateRawBodySource,
|
|
185
|
+
name: 'raw',
|
|
186
|
+
}, {
|
|
187
|
+
value: common_source_types_dto_1.EmptyBody,
|
|
188
|
+
name: 'empty',
|
|
189
|
+
}, {
|
|
190
|
+
value: common_source_types_dto_1.NoAuth,
|
|
191
|
+
name: 'noauth',
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
}),
|
|
196
|
+
__metadata("design:type", Object)
|
|
197
|
+
], UpdateSourceFunctionDto.prototype, "body", void 0);
|
|
198
|
+
exports.UpdateSourceFunctionDto = UpdateSourceFunctionDto = __decorate([
|
|
199
|
+
(0, swagger_1.ApiExtraModels)(UpdateUrlEncodedBodySource, UpdateFormDataBodySource, UpdateRawBodySource, common_source_types_dto_1.EmptyBody)
|
|
200
|
+
], UpdateSourceFunctionDto);
|
|
201
|
+
//# sourceMappingURL=update-source.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/update-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,yDAAyC;AACzC,oDAA6C;AAC7C,0CAA8C;AAC9C,6CAA6E;AAE7E,uEAQmC;AAEnC,MAAa,mBAAoB,SAAQ,8BAAI;CAO5C;AAPD,kDAOC;AALC;IADC,IAAA,sBAAI,EAAC,CAAC,KAAK,CAAC,CAAC;;iDACF;AAIZ;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;gDACW;AAG3B,MAAa,0BAA2B,SAAQ,8BAAI;CAgBnD;AAhBD,gEAgBC;AAdC;IADC,IAAA,sBAAI,EAAC,CAAC,YAAY,CAAC,CAAC;;wDACF;AAanB;IAXC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE;YACpB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;KACF,CAAC;IACD,IAAA,mBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf,CAAC;;8DACwC;AAG5C,MAAa,wBAAyB,SAAQ,8BAAI;CAgBjD;AAhBD,4DAgBC;AAdC;IADC,IAAA,sBAAI,EAAC,CAAC,UAAU,CAAC,CAAC;;sDACF;AAajB;IAXC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,QAAQ;QACd,oBAAoB,EAAE;YACpB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;KACF,CAAC;IACD,IAAA,mBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;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A,wBAAc,EAAC,0BAA0B,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,mCAAS,CAAC;GACxF,uBAAuB,CAsHnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArgumentsMetadata } from '../../function';
|
|
2
2
|
import { Visibility } from '../../specs';
|
|
3
|
-
import { UpdateSourceFunctionDto } from './types/update-source';
|
|
4
|
-
export * from './types/update-source';
|
|
3
|
+
import { UpdateSourceFunctionDto } from './types/source/update-source.dto';
|
|
4
|
+
export * from './types/source/update-source.dto';
|
|
5
5
|
export declare class UpdateApiFunctionDto {
|
|
6
6
|
name?: string;
|
|
7
7
|
context?: string;
|
|
@@ -13,7 +13,7 @@ export declare class UpdateApiFunctionDto {
|
|
|
13
13
|
source?: UpdateSourceFunctionDto;
|
|
14
14
|
enabledRedirect: boolean | undefined;
|
|
15
15
|
returnType?: string;
|
|
16
|
-
returnTypeSchema?: Record<string,
|
|
16
|
+
returnTypeSchema?: Record<string, unknown>;
|
|
17
17
|
templateBody: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=update-api-function.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-api-function.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/update-api-function.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,uBAAuB,EACxB,MAAM,
|
|
1
|
+
{"version":3,"file":"update-api-function.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/update-api-function.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAG1C,cAAc,kCAAkC,CAAC;AAEjD,qBAAa,oBAAoB;IAI/B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,UAAU,CAAC;IASxB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAIjC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC;IAIrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI3C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC"}
|