polyapi 0.16.9 → 0.16.11
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/commands/function.d.ts.map +1 -1
- package/build/client/src/commands/function.js +31 -1
- package/build/client/src/commands/function.js.map +1 -1
- package/build/client/src/commands/model/validate.d.ts.map +1 -1
- package/build/client/src/commands/model/validate.js +3 -0
- package/build/client/src/commands/model/validate.js.map +1 -1
- package/build/client/src/config.js +1 -1
- package/build/client/src/config.js.map +1 -1
- package/build/model/src/auth.d.ts +28 -10
- package/build/model/src/auth.d.ts.map +1 -1
- package/build/model/src/auth.js +0 -13
- package/build/model/src/auth.js.map +1 -1
- package/build/model/src/dto/application/application.dto.d.ts +8 -0
- package/build/model/src/dto/application/application.dto.d.ts.map +1 -1
- package/build/model/src/dto/application/application.dto.js +17 -0
- package/build/model/src/dto/application/application.dto.js.map +1 -1
- package/build/model/src/dto/function/create-api-function.dto.d.ts +2 -2
- 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 +3 -3
- package/build/model/src/dto/function/create-api-function.dto.js.map +1 -1
- package/build/model/src/dto/function/create-custom-function.dto.js.map +1 -1
- package/build/model/src/dto/function/execute-api-function-description-generation.dto.d.ts +2 -2
- package/build/model/src/dto/function/execute-api-function-description-generation.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/execute-api-function-description-generation.dto.js +3 -3
- package/build/model/src/dto/function/execute-api-function-description-generation.dto.js.map +1 -1
- package/build/model/src/dto/function/function-logs.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/function-logs.dto.js.map +1 -1
- package/build/model/src/dto/function/function.dto.d.ts +8 -24
- package/build/model/src/dto/function/function.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/function.dto.js +19 -0
- package/build/model/src/dto/function/function.dto.js.map +1 -1
- package/build/model/src/dto/function/index.d.ts +1 -0
- package/build/model/src/dto/function/index.d.ts.map +1 -1
- package/build/model/src/dto/function/index.js +1 -0
- package/build/model/src/dto/function/index.js.map +1 -1
- package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +2 -2
- 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.map +1 -1
- package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts +40 -22
- package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/types/source/common-source-types.dto.js +165 -51
- package/build/model/src/dto/function/types/source/common-source-types.dto.js.map +1 -1
- package/build/model/src/dto/function/types/source/create-source.dto.d.ts +5 -26
- package/build/model/src/dto/function/types/source/create-source.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/types/source/create-source.dto.js +26 -79
- package/build/model/src/dto/function/types/source/create-source.dto.js.map +1 -1
- package/build/model/src/dto/function/types/source/index.d.ts +3 -0
- package/build/model/src/dto/function/types/source/index.d.ts.map +1 -0
- package/build/model/src/dto/function/types/source/index.js +15 -0
- package/build/model/src/dto/function/types/source/index.js.map +1 -0
- package/build/model/src/dto/function/types/source/source.dto.d.ts +9 -0
- package/build/model/src/dto/function/types/source/source.dto.d.ts.map +1 -0
- package/build/model/src/dto/function/types/source/source.dto.js +60 -0
- package/build/model/src/dto/function/types/source/source.dto.js.map +1 -0
- package/build/model/src/dto/function/types/source/update-source.dto.d.ts +7 -10
- package/build/model/src/dto/function/types/source/update-source.dto.d.ts.map +1 -1
- package/build/model/src/dto/function/types/source/update-source.dto.js +23 -37
- package/build/model/src/dto/function/types/source/update-source.dto.js.map +1 -1
- package/build/model/src/dto/function/update-api-function.dto.d.ts +2 -2
- 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 +3 -3
- package/build/model/src/dto/function/update-api-function.dto.js.map +1 -1
- package/build/model/src/dto/snippet/create-snippet.dto.d.ts.map +1 -1
- package/build/model/src/dto/snippet/create-snippet.dto.js.map +1 -1
- package/build/model/src/dto/specification-input/index.d.ts.map +1 -1
- package/build/model/src/dto/specification-input/index.js.map +1 -1
- package/build/model/src/dto/specification-input/specification-input.dto.d.ts +1 -1
- package/build/model/src/dto/specification-input/specification-input.dto.d.ts.map +1 -1
- package/build/model/src/dto/trigger/trigger.dto.js.map +1 -1
- package/build/model/src/dto/user/whoami.dto.d.ts +2 -0
- package/build/model/src/dto/user/whoami.dto.d.ts.map +1 -1
- package/build/model/src/dto/user/whoami.dto.js.map +1 -1
- package/build/model/src/dto/validators/name-identifier.js.map +1 -1
- package/build/model/src/dto/validators/record.js +1 -1
- package/build/model/src/dto/validators/record.js.map +1 -1
- package/build/model/src/dto/webhook/create-webhook-handle.dto.d.ts +2 -0
- package/build/model/src/dto/webhook/create-webhook-handle.dto.d.ts.map +1 -1
- package/build/model/src/dto/webhook/create-webhook-handle.dto.js +6 -0
- package/build/model/src/dto/webhook/create-webhook-handle.dto.js.map +1 -1
- package/build/model/src/dto/webhook/train-webhook-handle.dto.d.ts +7 -0
- package/build/model/src/dto/webhook/train-webhook-handle.dto.d.ts.map +1 -1
- package/build/model/src/dto/webhook/train-webhook-handle.dto.js +29 -1
- package/build/model/src/dto/webhook/train-webhook-handle.dto.js.map +1 -1
- package/build/model/src/dto/webhook/update-webhook-handle.dto.d.ts +2 -0
- package/build/model/src/dto/webhook/update-webhook-handle.dto.d.ts.map +1 -1
- package/build/model/src/dto/webhook/update-webhook-handle.dto.js +6 -0
- package/build/model/src/dto/webhook/update-webhook-handle.dto.js.map +1 -1
- package/build/model/src/dto/webhook/webhook-handle-description-generation.dto.d.ts.map +1 -1
- package/build/model/src/dto/webhook/webhook-handle.dto.d.ts +2 -0
- package/build/model/src/dto/webhook/webhook-handle.dto.d.ts.map +1 -1
- package/build/model/src/dto/webhook/webhook-handle.dto.js.map +1 -1
- package/build/model/src/function.d.ts +8 -5
- package/build/model/src/function.d.ts.map +1 -1
- package/build/model/src/function.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -9,82 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CreateSourceDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const utils_1 = require("../../../utils");
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
17
|
const common_source_types_dto_1 = require("./common-source-types.dto");
|
|
18
|
-
|
|
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 {
|
|
18
|
+
let CreateSourceDto = exports.CreateSourceDto = class CreateSourceDto {
|
|
72
19
|
};
|
|
73
20
|
__decorate([
|
|
74
21
|
(0, class_validator_1.IsString)(),
|
|
75
22
|
__metadata("design:type", String)
|
|
76
|
-
],
|
|
23
|
+
], CreateSourceDto.prototype, "url", void 0);
|
|
77
24
|
__decorate([
|
|
78
25
|
(0, class_validator_1.IsIn)(utils_1.HTTP_METHODS),
|
|
79
26
|
__metadata("design:type", String)
|
|
80
|
-
],
|
|
27
|
+
], CreateSourceDto.prototype, "method", void 0);
|
|
81
28
|
__decorate([
|
|
82
29
|
(0, class_validator_1.IsArray)(),
|
|
83
30
|
(0, class_validator_1.IsOptional)(),
|
|
84
31
|
(0, class_validator_1.ValidateNested)(),
|
|
85
|
-
(0, class_transformer_1.Type)(() =>
|
|
32
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.EntrySource),
|
|
86
33
|
__metadata("design:type", Array)
|
|
87
|
-
],
|
|
34
|
+
], CreateSourceDto.prototype, "headers", void 0);
|
|
88
35
|
__decorate([
|
|
89
36
|
(0, swagger_1.ApiProperty)({
|
|
90
37
|
name: 'auth',
|
|
@@ -95,16 +42,16 @@ __decorate([
|
|
|
95
42
|
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
|
|
96
43
|
},
|
|
97
44
|
{
|
|
98
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
45
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeyAuthSource),
|
|
99
46
|
},
|
|
100
47
|
{
|
|
101
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
48
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuthSource),
|
|
102
49
|
},
|
|
103
50
|
],
|
|
104
51
|
}),
|
|
105
52
|
(0, class_validator_1.IsObject)(),
|
|
106
53
|
(0, class_validator_1.ValidateNested)(),
|
|
107
|
-
(0, class_transformer_1.Type)(() => common_source_types_dto_1.
|
|
54
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.UpdateAuthSource, {
|
|
108
55
|
keepDiscriminatorProperty: true,
|
|
109
56
|
discriminator: {
|
|
110
57
|
property: 'type',
|
|
@@ -116,63 +63,63 @@ __decorate([
|
|
|
116
63
|
value: common_source_types_dto_1.BearerAuthSource,
|
|
117
64
|
name: 'bearer',
|
|
118
65
|
}, {
|
|
119
|
-
value: common_source_types_dto_1.
|
|
66
|
+
value: common_source_types_dto_1.ApiKeyAuthSource,
|
|
120
67
|
name: 'apikey',
|
|
121
68
|
}, {
|
|
122
|
-
value: common_source_types_dto_1.
|
|
69
|
+
value: common_source_types_dto_1.NoAuthSource,
|
|
123
70
|
name: 'noauth',
|
|
124
71
|
},
|
|
125
72
|
],
|
|
126
73
|
},
|
|
127
74
|
}),
|
|
128
75
|
__metadata("design:type", Object)
|
|
129
|
-
],
|
|
76
|
+
], CreateSourceDto.prototype, "auth", void 0);
|
|
130
77
|
__decorate([
|
|
131
78
|
(0, swagger_1.ApiProperty)({
|
|
132
79
|
name: 'body',
|
|
133
80
|
oneOf: [
|
|
134
81
|
{
|
|
135
|
-
$ref: (0, swagger_1.getSchemaPath)(
|
|
82
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.UrlEncodedBodySource),
|
|
136
83
|
}, {
|
|
137
|
-
$ref: (0, swagger_1.getSchemaPath)(
|
|
84
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.FormDataBodySource),
|
|
138
85
|
},
|
|
139
86
|
{
|
|
140
|
-
$ref: (0, swagger_1.getSchemaPath)(
|
|
87
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.RawBodySource),
|
|
141
88
|
},
|
|
142
89
|
{
|
|
143
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
90
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBodySource),
|
|
144
91
|
},
|
|
145
92
|
],
|
|
146
93
|
}),
|
|
147
94
|
(0, class_validator_1.IsObject)(),
|
|
148
95
|
(0, class_validator_1.ValidateNested)(),
|
|
149
|
-
(0, class_transformer_1.Type)(() => common_source_types_dto_1.
|
|
96
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.BodySource, {
|
|
150
97
|
keepDiscriminatorProperty: true,
|
|
151
98
|
discriminator: {
|
|
152
99
|
property: 'mode',
|
|
153
100
|
subTypes: [
|
|
154
101
|
{
|
|
155
|
-
value:
|
|
102
|
+
value: common_source_types_dto_1.UrlEncodedBodySource,
|
|
156
103
|
name: 'urlencoded',
|
|
157
104
|
}, {
|
|
158
|
-
value:
|
|
105
|
+
value: common_source_types_dto_1.FormDataBodySource,
|
|
159
106
|
name: 'formdata',
|
|
160
107
|
}, {
|
|
161
|
-
value:
|
|
108
|
+
value: common_source_types_dto_1.RawBodySource,
|
|
162
109
|
name: 'raw',
|
|
163
110
|
}, {
|
|
164
|
-
value: common_source_types_dto_1.
|
|
111
|
+
value: common_source_types_dto_1.EmptyBodySource,
|
|
165
112
|
name: 'empty',
|
|
166
113
|
}, {
|
|
167
|
-
value: common_source_types_dto_1.
|
|
114
|
+
value: common_source_types_dto_1.NoAuthSource,
|
|
168
115
|
name: 'noauth',
|
|
169
116
|
},
|
|
170
117
|
],
|
|
171
118
|
},
|
|
172
119
|
}),
|
|
173
120
|
__metadata("design:type", Object)
|
|
174
|
-
],
|
|
175
|
-
exports.
|
|
176
|
-
(0, swagger_1.ApiExtraModels)(
|
|
177
|
-
],
|
|
121
|
+
], CreateSourceDto.prototype, "body", void 0);
|
|
122
|
+
exports.CreateSourceDto = CreateSourceDto = __decorate([
|
|
123
|
+
(0, swagger_1.ApiExtraModels)(common_source_types_dto_1.BasicAuthSourceEntries, common_source_types_dto_1.EntrySource)
|
|
124
|
+
], CreateSourceDto);
|
|
178
125
|
//# sourceMappingURL=create-source.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,yDAAyC;AACzC,0CAA8C;AAC9C,6CAA6E;AAE7E,uEAamC;AAG5B,IAAM,eAAe,6BAArB,MAAM,eAAe;CAiG3B,CAAA;AA/FG;IADC,IAAA,0BAAQ,GAAE;;4CACC;AAGZ;IADC,IAAA,sBAAI,EAAC,oBAAY,CAAC;;+CACJ;AAMf;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAW,CAAC;;gDACA;AAyCxB;IAvCC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,yCAAe,CAAC;aACrC,EAAE;gBACD,IAAI,EAAE,IAAA,uBAAa,EAAC,0CAAgB,CAAC;aACtC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,0CAAgB,CAAC;aACtC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,sCAAY,CAAC;aAClC;SACF;KACF,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0CAAgB,EAAE;QAC5B,yBAAyB,EAAE,IAAI;QAC/B,aAAa,EAAE;YACb,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,yCAAe;oBACtB,IAAI,EAAE,OAAO;iBACd,EAAE;oBACD,KAAK,EAAE,0CAAgB;oBACvB,IAAI,EAAE,QAAQ;iB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odySource, UrlEncodedBodySource, FormDataEntrySource, SourceNullableEntry, } from './common-source-types.dto';
|
|
2
|
+
export { SourceDto } from './source.dto';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceDto = exports.SourceNullableEntry = exports.FormDataEntrySource = exports.UrlEncodedBodySource = exports.RawBodySource = exports.FormDataBodySource = exports.BearerAuthSource = exports.BasicAuthSource = exports.ApiKeyAuthSource = void 0;
|
|
4
|
+
var common_source_types_dto_1 = require("./common-source-types.dto");
|
|
5
|
+
Object.defineProperty(exports, "ApiKeyAuthSource", { enumerable: true, get: function () { return common_source_types_dto_1.ApiKeyAuthSource; } });
|
|
6
|
+
Object.defineProperty(exports, "BasicAuthSource", { enumerable: true, get: function () { return common_source_types_dto_1.BasicAuthSource; } });
|
|
7
|
+
Object.defineProperty(exports, "BearerAuthSource", { enumerable: true, get: function () { return common_source_types_dto_1.BearerAuthSource; } });
|
|
8
|
+
Object.defineProperty(exports, "FormDataBodySource", { enumerable: true, get: function () { return common_source_types_dto_1.FormDataBodySource; } });
|
|
9
|
+
Object.defineProperty(exports, "RawBodySource", { enumerable: true, get: function () { return common_source_types_dto_1.RawBodySource; } });
|
|
10
|
+
Object.defineProperty(exports, "UrlEncodedBodySource", { enumerable: true, get: function () { return common_source_types_dto_1.UrlEncodedBodySource; } });
|
|
11
|
+
Object.defineProperty(exports, "FormDataEntrySource", { enumerable: true, get: function () { return common_source_types_dto_1.FormDataEntrySource; } });
|
|
12
|
+
Object.defineProperty(exports, "SourceNullableEntry", { enumerable: true, get: function () { return common_source_types_dto_1.SourceNullableEntry; } });
|
|
13
|
+
var source_dto_1 = require("./source.dto");
|
|
14
|
+
Object.defineProperty(exports, "SourceDto", { enumerable: true, get: function () { return source_dto_1.SourceDto; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/index.ts"],"names":[],"mappings":";;;AAAA,qEASmC;AARjC,2HAAA,gBAAgB,OAAA;AAChB,0HAAA,eAAe,OAAA;AACf,2HAAA,gBAAgB,OAAA;AAChB,6HAAA,kBAAkB,OAAA;AAClB,wHAAA,aAAa,OAAA;AACb,+HAAA,oBAAoB,OAAA;AACpB,8HAAA,mBAAmB,OAAA;AACnB,8HAAA,mBAAmB,OAAA;AAGrB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntrySource, NoAuthSource, BasicAuthSource, BearerAuthSource, ApiKeyAuthSource, RawBodySource, EmptyBodySource, UrlEncodedBodySource, FormDataBodySource } from './common-source-types.dto';
|
|
2
|
+
export declare class SourceDto {
|
|
3
|
+
url: string;
|
|
4
|
+
headers: EntrySource[];
|
|
5
|
+
method: string;
|
|
6
|
+
body: EmptyBodySource | RawBodySource | UrlEncodedBodySource | FormDataBodySource;
|
|
7
|
+
auth: NoAuthSource | BasicAuthSource | BearerAuthSource | ApiKeyAuthSource;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=source.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/source.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAErM,qBACa,SAAS;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IAkBb,IAAI,EAAE,eAAe,GAAG,aAAa,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;IAmBlF,IAAI,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;CAC9E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.SourceDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const common_source_types_dto_1 = require("./common-source-types.dto");
|
|
15
|
+
let SourceDto = exports.SourceDto = class SourceDto {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
name: 'body',
|
|
20
|
+
anyOf: [
|
|
21
|
+
{
|
|
22
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBodySource),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.RawBodySource),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.UrlEncodedBodySource),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.FormDataBodySource),
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], SourceDto.prototype, "body", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
name: 'auth',
|
|
40
|
+
anyOf: [
|
|
41
|
+
{
|
|
42
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuthSource),
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BasicAuthSource),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeyAuthSource),
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], SourceDto.prototype, "auth", void 0);
|
|
57
|
+
exports.SourceDto = SourceDto = __decorate([
|
|
58
|
+
(0, swagger_1.ApiExtraModels)(common_source_types_dto_1.UrlEncodedBodySource, common_source_types_dto_1.FormDataBodySource, common_source_types_dto_1.RawBodySource, common_source_types_dto_1.EmptyBodySource, common_source_types_dto_1.ApiKeyAuthSource, common_source_types_dto_1.NoAuthSource, common_source_types_dto_1.BasicAuthSource, common_source_types_dto_1.BearerAuthSource, common_source_types_dto_1.ApiKeyAuthSource, common_source_types_dto_1.NoAuthSource)
|
|
59
|
+
], SourceDto);
|
|
60
|
+
//# sourceMappingURL=source.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,uEAAqM;AAG9L,IAAM,SAAS,uBAAf,MAAM,SAAS;CAyCrB,CAAA;AApBG;IAjBC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,yCAAe,CAAC;aACrC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,uCAAa,CAAC;aACnC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,8CAAoB,CAAC;aAC1C;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,4CAAkB,CAAC;aACxC;SACF;KACF,CAAC;;uCACgF;AAmBlF;IAjBC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,sCAAY,CAAC;aAClC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,yCAAe,CAAC;aACrC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,0CAAgB,CAAC;aACtC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,0CAAgB,CAAC;aACtC;SACF;KACF,CAAC;;uCACyE;oBAxClE,SAAS;IADrB,IAAA,wBAAc,EAAC,8CAAoB,EAAE,4CAAkB,EAAE,uCAAa,EAAE,yCAAe,EAAE,0CAAgB,EAAE,sCAAY,EAAE,yCAAe,EAAE,0CAAgB,EAAE,0CAAgB,EAAE,sCAAY,CAAC;GAC/K,SAAS,CAyCrB"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
mode: 'raw';
|
|
4
|
-
raw: Record<string, any>;
|
|
5
|
-
}
|
|
6
|
-
export declare class UpdateUrlEncodedBodySource extends Body {
|
|
1
|
+
import { EmptyBodySource, BasicAuthSource, BearerAuthSource, ApiKeyAuthSource, NoAuthSource, BodySource, RawBodySource } from './common-source-types.dto';
|
|
2
|
+
declare class UpdateUrlEncodedBodySource extends BodySource {
|
|
7
3
|
mode: 'urlencoded';
|
|
8
4
|
urlencoded: Record<string, string | null>;
|
|
9
5
|
}
|
|
10
|
-
|
|
6
|
+
declare class UpdateFormDataBodySource extends BodySource {
|
|
11
7
|
mode: 'formdata';
|
|
12
8
|
formdata: Record<string, string | null>;
|
|
13
9
|
}
|
|
14
|
-
export declare class
|
|
10
|
+
export declare class UpdateSourceDto {
|
|
15
11
|
url?: string;
|
|
16
12
|
method?: string;
|
|
17
13
|
headers?: Record<string, string | null>;
|
|
18
|
-
auth?: BasicAuthSource | BearerAuthSource |
|
|
19
|
-
body?: UpdateUrlEncodedBodySource | UpdateFormDataBodySource |
|
|
14
|
+
auth?: BasicAuthSource | BearerAuthSource | ApiKeyAuthSource | NoAuthSource;
|
|
15
|
+
body?: UpdateUrlEncodedBodySource | UpdateFormDataBodySource | RawBodySource | EmptyBodySource;
|
|
20
16
|
}
|
|
17
|
+
export {};
|
|
21
18
|
//# sourceMappingURL=update-source.dto.d.ts.map
|
|
@@ -1 +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,
|
|
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,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EAEZ,UAAU,EACV,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC,cAAM,0BAA2B,SAAQ,UAAU;IAEjD,IAAI,EAAE,YAAY,CAAC;IAanB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3C;AAED,cAAM,wBAAyB,SAAQ,UAAU;IAE/C,IAAI,EAAE,UAAU,CAAC;IAajB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACzC;AAED,qBACa,eAAe;IAGxB,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,gBAAgB,GAAG,YAAY,CAAC;IA8C5E,IAAI,CAAC,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,aAAa,GAAG,eAAe,CAAC;CAClG"}
|
|
@@ -9,28 +9,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UpdateSourceDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const validators_1 = require("../../../validators");
|
|
16
16
|
const utils_1 = require("../../../utils");
|
|
17
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
18
|
const common_source_types_dto_1 = require("./common-source-types.dto");
|
|
19
|
-
class
|
|
19
|
+
class UpdateUrlEncodedBodySource extends common_source_types_dto_1.BodySource {
|
|
20
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
21
|
__decorate([
|
|
35
22
|
(0, class_validator_1.IsIn)(['urlencoded']),
|
|
36
23
|
__metadata("design:type", String)
|
|
@@ -49,9 +36,8 @@ __decorate([
|
|
|
49
36
|
}),
|
|
50
37
|
__metadata("design:type", Object)
|
|
51
38
|
], UpdateUrlEncodedBodySource.prototype, "urlencoded", void 0);
|
|
52
|
-
class UpdateFormDataBodySource extends common_source_types_dto_1.
|
|
39
|
+
class UpdateFormDataBodySource extends common_source_types_dto_1.BodySource {
|
|
53
40
|
}
|
|
54
|
-
exports.UpdateFormDataBodySource = UpdateFormDataBodySource;
|
|
55
41
|
__decorate([
|
|
56
42
|
(0, class_validator_1.IsIn)(['formdata']),
|
|
57
43
|
__metadata("design:type", String)
|
|
@@ -70,18 +56,18 @@ __decorate([
|
|
|
70
56
|
}),
|
|
71
57
|
__metadata("design:type", Object)
|
|
72
58
|
], UpdateFormDataBodySource.prototype, "formdata", void 0);
|
|
73
|
-
let
|
|
59
|
+
let UpdateSourceDto = exports.UpdateSourceDto = class UpdateSourceDto {
|
|
74
60
|
};
|
|
75
61
|
__decorate([
|
|
76
62
|
(0, class_validator_1.IsOptional)(),
|
|
77
63
|
(0, class_validator_1.IsString)(),
|
|
78
64
|
__metadata("design:type", String)
|
|
79
|
-
],
|
|
65
|
+
], UpdateSourceDto.prototype, "url", void 0);
|
|
80
66
|
__decorate([
|
|
81
67
|
(0, class_validator_1.IsOptional)(),
|
|
82
68
|
(0, class_validator_1.IsIn)(utils_1.HTTP_METHODS),
|
|
83
69
|
__metadata("design:type", String)
|
|
84
|
-
],
|
|
70
|
+
], UpdateSourceDto.prototype, "method", void 0);
|
|
85
71
|
__decorate([
|
|
86
72
|
(0, swagger_1.ApiProperty)({
|
|
87
73
|
name: 'headers',
|
|
@@ -103,7 +89,7 @@ __decorate([
|
|
|
103
89
|
type: 'string',
|
|
104
90
|
}),
|
|
105
91
|
__metadata("design:type", Object)
|
|
106
|
-
],
|
|
92
|
+
], UpdateSourceDto.prototype, "headers", void 0);
|
|
107
93
|
__decorate([
|
|
108
94
|
(0, swagger_1.ApiProperty)({
|
|
109
95
|
name: 'auth',
|
|
@@ -115,17 +101,17 @@ __decorate([
|
|
|
115
101
|
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
|
|
116
102
|
},
|
|
117
103
|
{
|
|
118
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
104
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeyAuthSource),
|
|
119
105
|
},
|
|
120
106
|
{
|
|
121
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
107
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuthSource),
|
|
122
108
|
},
|
|
123
109
|
],
|
|
124
110
|
}),
|
|
125
111
|
(0, class_validator_1.IsObject)(),
|
|
126
112
|
(0, class_validator_1.IsOptional)(),
|
|
127
113
|
(0, class_validator_1.ValidateNested)(),
|
|
128
|
-
(0, class_transformer_1.Type)(() => common_source_types_dto_1.
|
|
114
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.UpdateAuthSource, {
|
|
129
115
|
keepDiscriminatorProperty: true,
|
|
130
116
|
discriminator: {
|
|
131
117
|
property: 'type',
|
|
@@ -137,17 +123,17 @@ __decorate([
|
|
|
137
123
|
value: common_source_types_dto_1.BearerAuthSource,
|
|
138
124
|
name: 'bearer',
|
|
139
125
|
}, {
|
|
140
|
-
value: common_source_types_dto_1.
|
|
126
|
+
value: common_source_types_dto_1.ApiKeyAuthSource,
|
|
141
127
|
name: 'apikey',
|
|
142
128
|
}, {
|
|
143
|
-
value: common_source_types_dto_1.
|
|
129
|
+
value: common_source_types_dto_1.NoAuthSource,
|
|
144
130
|
name: 'noauth',
|
|
145
131
|
},
|
|
146
132
|
],
|
|
147
133
|
},
|
|
148
134
|
}),
|
|
149
135
|
__metadata("design:type", Object)
|
|
150
|
-
],
|
|
136
|
+
], UpdateSourceDto.prototype, "auth", void 0);
|
|
151
137
|
__decorate([
|
|
152
138
|
(0, swagger_1.ApiProperty)({
|
|
153
139
|
name: 'body',
|
|
@@ -159,17 +145,17 @@ __decorate([
|
|
|
159
145
|
$ref: (0, swagger_1.getSchemaPath)(UpdateFormDataBodySource),
|
|
160
146
|
},
|
|
161
147
|
{
|
|
162
|
-
$ref: (0, swagger_1.getSchemaPath)(
|
|
148
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.RawBodySource),
|
|
163
149
|
},
|
|
164
150
|
{
|
|
165
|
-
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.
|
|
151
|
+
$ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBodySource),
|
|
166
152
|
},
|
|
167
153
|
],
|
|
168
154
|
}),
|
|
169
155
|
(0, class_validator_1.IsObject)(),
|
|
170
156
|
(0, class_validator_1.IsOptional)(),
|
|
171
157
|
(0, class_validator_1.ValidateNested)(),
|
|
172
|
-
(0, class_transformer_1.Type)(() => common_source_types_dto_1.
|
|
158
|
+
(0, class_transformer_1.Type)(() => common_source_types_dto_1.BodySource, {
|
|
173
159
|
keepDiscriminatorProperty: true,
|
|
174
160
|
discriminator: {
|
|
175
161
|
property: 'mode',
|
|
@@ -181,21 +167,21 @@ __decorate([
|
|
|
181
167
|
value: UpdateFormDataBodySource,
|
|
182
168
|
name: 'formdata',
|
|
183
169
|
}, {
|
|
184
|
-
value:
|
|
170
|
+
value: common_source_types_dto_1.RawBodySource,
|
|
185
171
|
name: 'raw',
|
|
186
172
|
}, {
|
|
187
|
-
value: common_source_types_dto_1.
|
|
173
|
+
value: common_source_types_dto_1.EmptyBodySource,
|
|
188
174
|
name: 'empty',
|
|
189
175
|
}, {
|
|
190
|
-
value: common_source_types_dto_1.
|
|
176
|
+
value: common_source_types_dto_1.NoAuthSource,
|
|
191
177
|
name: 'noauth',
|
|
192
178
|
},
|
|
193
179
|
],
|
|
194
180
|
},
|
|
195
181
|
}),
|
|
196
182
|
__metadata("design:type", Object)
|
|
197
|
-
],
|
|
198
|
-
exports.
|
|
199
|
-
(0, swagger_1.ApiExtraModels)(UpdateUrlEncodedBodySource, UpdateFormDataBodySource
|
|
200
|
-
],
|
|
183
|
+
], UpdateSourceDto.prototype, "body", void 0);
|
|
184
|
+
exports.UpdateSourceDto = UpdateSourceDto = __decorate([
|
|
185
|
+
(0, swagger_1.ApiExtraModels)(UpdateUrlEncodedBodySource, UpdateFormDataBodySource)
|
|
186
|
+
], UpdateSourceDto);
|
|
201
187
|
//# sourceMappingURL=update-source.dto.js.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"update-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/update-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,q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;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,uCAAa,CAAC;aACnC;YACD;gBACE,IAAI,EAAE,IAAA,uBAAa,EAAC,yCAAe,CAAC;aACrC;SACF;KACF,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oCAAU,EAAE;QACtB,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,uCAAa;oBACpB,IAAI,EAAE,KAAK;iBACZ,EAAE;oBACD,KAAK,EAAE,yCAAe;oBACtB,IAAI,EAAE,OAAO;iBACd,EAAE;oBACD,KAAK,EAAE,sCAAY;oBACnB,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF,CAAC;;6CAC6F;0BArHtF,eAAe;IAD3B,IAAA,wBAAc,EAAC,0BAA0B,EAAE,wBAAwB,CAAC;GACxD,eAAe,CAsH3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Argument } from '../../function';
|
|
2
2
|
import { Visibility } from '../../specs';
|
|
3
|
-
import {
|
|
3
|
+
import { UpdateSourceDto } from './types/source/update-source.dto';
|
|
4
4
|
export * from './types/source/update-source.dto';
|
|
5
5
|
export declare class UpdateApiFunctionDto {
|
|
6
6
|
name?: string;
|
|
@@ -10,7 +10,7 @@ export declare class UpdateApiFunctionDto {
|
|
|
10
10
|
response?: any;
|
|
11
11
|
payload?: string;
|
|
12
12
|
visibility?: Visibility;
|
|
13
|
-
source?:
|
|
13
|
+
source?: UpdateSourceDto;
|
|
14
14
|
enabledRedirect?: boolean;
|
|
15
15
|
returnType?: string;
|
|
16
16
|
returnTypeSchema?: Record<string, unknown>;
|
|
@@ -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,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,
|
|
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,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,eAAe,EAChB,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;IAMrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IAEvB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,UAAU,CAAC;IASxB,MAAM,CAAC,EAAE,eAAe,CAAC;IAIzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI3C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -62,13 +62,13 @@ __decorate([
|
|
|
62
62
|
], UpdateApiFunctionDto.prototype, "visibility", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, swagger_1.ApiProperty)({
|
|
65
|
-
type: () => update_source_dto_1.
|
|
65
|
+
type: () => update_source_dto_1.UpdateSourceDto,
|
|
66
66
|
}),
|
|
67
67
|
(0, class_validator_1.IsOptional)(),
|
|
68
68
|
(0, class_validator_1.IsObject)(),
|
|
69
69
|
(0, class_validator_1.ValidateNested)(),
|
|
70
|
-
(0, class_transformer_1.Type)(() => update_source_dto_1.
|
|
71
|
-
__metadata("design:type", update_source_dto_1.
|
|
70
|
+
(0, class_transformer_1.Type)(() => update_source_dto_1.UpdateSourceDto),
|
|
71
|
+
__metadata("design:type", update_source_dto_1.UpdateSourceDto)
|
|
72
72
|
], UpdateApiFunctionDto.prototype, "source", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-api-function.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/update-api-function.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA6G;AAC7G,yDAAyC;AACzC,6CAA0C;AAC1C,8CAAkE;AAClE,uCAAyC;AAEzC,wEAE0C;AAC1C,6CAA8C;AAE9C,mEAAiD;AAEjD,MAAa,oBAAoB;CAiDhC;AAjDD,oDAiDC;AA7CC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,GAAE;;kDACH;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,8BAAiB,GAAE;;qDACH;AAQjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;;uDACE;AAOvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,kBAAU,CAAC;;wDACK;AASxB;IAPC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"update-api-function.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/update-api-function.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA6G;AAC7G,yDAAyC;AACzC,6CAA0C;AAC1C,8CAAkE;AAClE,uCAAyC;AAEzC,wEAE0C;AAC1C,6CAA8C;AAE9C,mEAAiD;AAEjD,MAAa,oBAAoB;CAiDhC;AAjDD,oDAiDC;AA7CC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,GAAE;;kDACH;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,8BAAiB,GAAE;;qDACH;AAQjB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;;uDACE;AAOvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,kBAAU,CAAC;;wDACK;AASxB;IAPC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAe;KAC5B,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mCAAe,CAAC;8BACnB,mCAAe;oDAAC;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DACc;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAGpB;IADC,IAAA,4BAAU,GAAE;;8DAC8B;AAI3C;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snippet.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/snippet/create-snippet.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"create-snippet.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/snippet/create-snippet.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,qBAAa,gBAAgB;IAUzB,IAAI,EAAE,MAAM,CAAC;IASb,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-snippet.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/snippet/create-snippet.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,8CAAkE;AAClE,uCAAyC;
|
|
1
|
+
{"version":3,"file":"create-snippet.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/snippet/create-snippet.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,8CAAkE;AAClE,uCAAyC;AAEzC,MAAa,gBAAgB;CAkC5B;AAlCD,4CAkCC;AAxBG;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,EAAC;QACd,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,KAAK;KACnB,CAAC;;8CACW;AASb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAiB,GAAE;;iDACH;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACQ;AAGrB;IADC,IAAA,0BAAQ,GAAE;;8CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;oDACK;AAGxB;IADC,IAAA,0BAAQ,GAAE;;kDACM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/specification-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/specification-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/specification-input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/specification-input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateApiFunctionDto } from
|
|
1
|
+
import { CreateApiFunctionDto } from '../function/create-api-function.dto';
|
|
2
2
|
import { CreateWebhookHandleDto } from '../webhook/create-webhook-handle.dto';
|
|
3
3
|
export declare class SpecificationInputDto {
|
|
4
4
|
title: string;
|