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
|
@@ -9,12 +9,284 @@ 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.PostmanApiFunctionTrainingDto = void 0;
|
|
12
|
+
exports.PostmanApiFunctionTrainingDto = exports.PostmanNoAuth = exports.PostmanApiKeyAuth = exports.PostmanBearerAuth = exports.PostmanBasicAuth = exports.PostmanGraphQLBody = exports.PostmanEmptyBody = exports.PostmanFormDataBody = exports.PostmanUrlencodedBody = exports.PostmanRawBody = exports.PostmanBodyBase = exports.PostmanFormDataEntry = exports.PostmanEntry = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const validators_1 = require("../validators");
|
|
15
|
-
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
class PostmanEntry {
|
|
16
18
|
}
|
|
17
|
-
exports.
|
|
19
|
+
exports.PostmanEntry = PostmanEntry;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PostmanEntry.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PostmanEntry.prototype, "value", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsBoolean)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], PostmanEntry.prototype, "disabled", void 0);
|
|
33
|
+
class PostmanFormDataEntry extends PostmanEntry {
|
|
34
|
+
}
|
|
35
|
+
exports.PostmanFormDataEntry = PostmanFormDataEntry;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsIn)(['text', 'file']),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], PostmanFormDataEntry.prototype, "type", void 0);
|
|
40
|
+
class PostmanBodyBase {
|
|
41
|
+
}
|
|
42
|
+
exports.PostmanBodyBase = PostmanBodyBase;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsIn)(['urlencoded', 'formdata', 'raw', 'empty', 'graphql']),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PostmanBodyBase.prototype, "mode", void 0);
|
|
48
|
+
class PostmanRawOptions {
|
|
49
|
+
}
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsIn)(['html', 'xml', 'text', 'json', 'javascript']),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PostmanRawOptions.prototype, "language", void 0);
|
|
54
|
+
class PostmanBodyRawOptions {
|
|
55
|
+
}
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsObject)(),
|
|
58
|
+
(0, class_validator_1.ValidateNested)(),
|
|
59
|
+
__metadata("design:type", PostmanRawOptions)
|
|
60
|
+
], PostmanBodyRawOptions.prototype, "raw", void 0);
|
|
61
|
+
class PostmanRawBody extends PostmanBodyBase {
|
|
62
|
+
}
|
|
63
|
+
exports.PostmanRawBody = PostmanRawBody;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsIn)(['raw']),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PostmanRawBody.prototype, "mode", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsString)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], PostmanRawBody.prototype, "raw", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.ValidateNested)(),
|
|
74
|
+
__metadata("design:type", PostmanBodyRawOptions)
|
|
75
|
+
], PostmanRawBody.prototype, "options", void 0);
|
|
76
|
+
class PostmanUrlencodedBody extends PostmanBodyBase {
|
|
77
|
+
}
|
|
78
|
+
exports.PostmanUrlencodedBody = PostmanUrlencodedBody;
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsIn)(['urlencoded']),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], PostmanUrlencodedBody.prototype, "mode", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsArray)(),
|
|
85
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
86
|
+
(0, class_transformer_1.Type)(() => PostmanEntry),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], PostmanUrlencodedBody.prototype, "urlencoded", void 0);
|
|
89
|
+
class PostmanFormDataBody extends PostmanBodyBase {
|
|
90
|
+
}
|
|
91
|
+
exports.PostmanFormDataBody = PostmanFormDataBody;
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsIn)(['formdata']),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], PostmanFormDataBody.prototype, "mode", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsArray)(),
|
|
98
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
99
|
+
(0, class_transformer_1.Type)(() => PostmanFormDataEntry),
|
|
100
|
+
__metadata("design:type", Array)
|
|
101
|
+
], PostmanFormDataBody.prototype, "formdata", void 0);
|
|
102
|
+
class PostmanEmptyBody {
|
|
103
|
+
}
|
|
104
|
+
exports.PostmanEmptyBody = PostmanEmptyBody;
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsOptional)(),
|
|
107
|
+
(0, class_validator_1.IsIn)(['empty']),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], PostmanEmptyBody.prototype, "mode", void 0);
|
|
110
|
+
class GraphqlOptions {
|
|
111
|
+
}
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsString)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], GraphqlOptions.prototype, "query", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_validator_1.IsString)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], GraphqlOptions.prototype, "variables", void 0);
|
|
120
|
+
class PostmanGraphQLBody extends PostmanBodyBase {
|
|
121
|
+
}
|
|
122
|
+
exports.PostmanGraphQLBody = PostmanGraphQLBody;
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_validator_1.IsObject)(),
|
|
125
|
+
(0, class_validator_1.ValidateNested)(),
|
|
126
|
+
__metadata("design:type", GraphqlOptions)
|
|
127
|
+
], PostmanGraphQLBody.prototype, "graphql", void 0);
|
|
128
|
+
class PostmanAuthBase {
|
|
129
|
+
}
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], PostmanAuthBase.prototype, "type", void 0);
|
|
134
|
+
class PostmanBasicAuthEntries {
|
|
135
|
+
}
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_validator_1.IsIn)(['username', 'password']),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], PostmanBasicAuthEntries.prototype, "key", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, class_validator_1.IsString)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], PostmanBasicAuthEntries.prototype, "value", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiHideProperty)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], PostmanBasicAuthEntries.prototype, "type", void 0);
|
|
148
|
+
class PostmanBasicAuth extends PostmanAuthBase {
|
|
149
|
+
}
|
|
150
|
+
exports.PostmanBasicAuth = PostmanBasicAuth;
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsIn)(['basic']),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], PostmanBasicAuth.prototype, "type", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, class_validator_1.IsArray)(),
|
|
157
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
158
|
+
(0, class_transformer_1.Type)(() => PostmanBasicAuthEntries),
|
|
159
|
+
__metadata("design:type", Array)
|
|
160
|
+
], PostmanBasicAuth.prototype, "basic", void 0);
|
|
161
|
+
class PostmanBearerEntry {
|
|
162
|
+
}
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, class_validator_1.IsIn)(['token']),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], PostmanBearerEntry.prototype, "key", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, class_validator_1.IsString)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], PostmanBearerEntry.prototype, "value", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, swagger_1.ApiHideProperty)(),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], PostmanBearerEntry.prototype, "type", void 0);
|
|
175
|
+
class PostmanBearerAuth extends PostmanAuthBase {
|
|
176
|
+
}
|
|
177
|
+
exports.PostmanBearerAuth = PostmanBearerAuth;
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, class_validator_1.IsIn)(['bearer']),
|
|
180
|
+
__metadata("design:type", String)
|
|
181
|
+
], PostmanBearerAuth.prototype, "type", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, class_validator_1.IsArray)(),
|
|
184
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
185
|
+
(0, class_transformer_1.Type)(() => PostmanBearerEntry),
|
|
186
|
+
__metadata("design:type", Array)
|
|
187
|
+
], PostmanBearerAuth.prototype, "bearer", void 0);
|
|
188
|
+
class PostmanApiKeyEntry {
|
|
189
|
+
}
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, class_validator_1.IsIn)(['in', 'key', 'value']),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], PostmanApiKeyEntry.prototype, "key", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, class_validator_1.IsString)(),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], PostmanApiKeyEntry.prototype, "value", void 0);
|
|
198
|
+
class PostmanApiKeyInEntry {
|
|
199
|
+
}
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, class_validator_1.IsIn)(['in']),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], PostmanApiKeyInEntry.prototype, "key", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, class_validator_1.IsIn)(['header', 'query']),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], PostmanApiKeyInEntry.prototype, "value", void 0);
|
|
208
|
+
class PostmanKeyValueApiKeyEntry {
|
|
209
|
+
}
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, class_validator_1.IsIn)(['key']),
|
|
212
|
+
__metadata("design:type", String)
|
|
213
|
+
], PostmanKeyValueApiKeyEntry.prototype, "key", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, swagger_1.ApiProperty)(),
|
|
216
|
+
(0, class_validator_1.IsString)(),
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], PostmanKeyValueApiKeyEntry.prototype, "value", void 0);
|
|
219
|
+
class PostmanValueApiKeyEntry {
|
|
220
|
+
}
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, class_validator_1.IsIn)(['value']),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], PostmanValueApiKeyEntry.prototype, "key", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)(),
|
|
227
|
+
(0, class_validator_1.IsString)(),
|
|
228
|
+
__metadata("design:type", String)
|
|
229
|
+
], PostmanValueApiKeyEntry.prototype, "value", void 0);
|
|
230
|
+
let PostmanApiKeyAuth = exports.PostmanApiKeyAuth = class PostmanApiKeyAuth extends PostmanAuthBase {
|
|
231
|
+
};
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, class_validator_1.IsIn)(['apikey']),
|
|
234
|
+
__metadata("design:type", String)
|
|
235
|
+
], PostmanApiKeyAuth.prototype, "type", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, swagger_1.ApiProperty)({
|
|
238
|
+
type: 'array',
|
|
239
|
+
description: 'Items uniqueness is determined by "key" property.',
|
|
240
|
+
items: {
|
|
241
|
+
anyOf: [
|
|
242
|
+
{
|
|
243
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanApiKeyInEntry),
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanKeyValueApiKeyEntry),
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
uniqueItems: true,
|
|
251
|
+
minimum: 3,
|
|
252
|
+
}),
|
|
253
|
+
(0, class_validator_1.IsArray)(),
|
|
254
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
255
|
+
(0, class_transformer_1.Type)(() => PostmanApiKeyEntry, {
|
|
256
|
+
keepDiscriminatorProperty: true,
|
|
257
|
+
discriminator: {
|
|
258
|
+
property: 'key',
|
|
259
|
+
subTypes: [
|
|
260
|
+
{
|
|
261
|
+
value: PostmanApiKeyInEntry,
|
|
262
|
+
name: 'in',
|
|
263
|
+
}, {
|
|
264
|
+
value: PostmanKeyValueApiKeyEntry,
|
|
265
|
+
name: 'key',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
value: PostmanValueApiKeyEntry,
|
|
269
|
+
name: 'value',
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
}),
|
|
274
|
+
(0, class_validator_1.ArrayUnique)(o => o.key),
|
|
275
|
+
(0, class_validator_1.ArrayMinSize)(3),
|
|
276
|
+
__metadata("design:type", Array)
|
|
277
|
+
], PostmanApiKeyAuth.prototype, "apikey", void 0);
|
|
278
|
+
exports.PostmanApiKeyAuth = PostmanApiKeyAuth = __decorate([
|
|
279
|
+
(0, swagger_1.ApiExtraModels)(PostmanKeyValueApiKeyEntry, PostmanApiKeyInEntry, PostmanValueApiKeyEntry)
|
|
280
|
+
], PostmanApiKeyAuth);
|
|
281
|
+
class PostmanNoAuth extends PostmanAuthBase {
|
|
282
|
+
}
|
|
283
|
+
exports.PostmanNoAuth = PostmanNoAuth;
|
|
284
|
+
__decorate([
|
|
285
|
+
(0, class_validator_1.IsIn)(['noauth']),
|
|
286
|
+
__metadata("design:type", String)
|
|
287
|
+
], PostmanNoAuth.prototype, "type", void 0);
|
|
288
|
+
let PostmanApiFunctionTrainingDto = exports.PostmanApiFunctionTrainingDto = class PostmanApiFunctionTrainingDto {
|
|
289
|
+
};
|
|
18
290
|
__decorate([
|
|
19
291
|
(0, class_validator_1.IsString)(),
|
|
20
292
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -33,13 +305,173 @@ __decorate([
|
|
|
33
305
|
__metadata("design:type", String)
|
|
34
306
|
], PostmanApiFunctionTrainingDto.prototype, "context", void 0);
|
|
35
307
|
__decorate([
|
|
308
|
+
(0, class_validator_1.IsOptional)(),
|
|
309
|
+
(0, class_validator_1.IsString)(),
|
|
310
|
+
__metadata("design:type", String)
|
|
311
|
+
], PostmanApiFunctionTrainingDto.prototype, "description", void 0);
|
|
312
|
+
__decorate([
|
|
313
|
+
(0, class_validator_1.IsOptional)(),
|
|
314
|
+
(0, class_validator_1.IsString)(),
|
|
315
|
+
__metadata("design:type", String)
|
|
316
|
+
], PostmanApiFunctionTrainingDto.prototype, "payload", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
(0, class_validator_1.IsString)(),
|
|
36
319
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
320
|
__metadata("design:type", String)
|
|
38
321
|
], PostmanApiFunctionTrainingDto.prototype, "url", void 0);
|
|
39
322
|
__decorate([
|
|
323
|
+
(0, swagger_1.ApiProperty)({
|
|
324
|
+
name: 'body',
|
|
325
|
+
oneOf: [
|
|
326
|
+
{
|
|
327
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanUrlencodedBody),
|
|
328
|
+
}, {
|
|
329
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanFormDataBody),
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanRawBody),
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanEmptyBody),
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanGraphQLBody),
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
}),
|
|
342
|
+
(0, class_validator_1.IsObject)(),
|
|
343
|
+
(0, class_validator_1.ValidateNested)(),
|
|
344
|
+
(0, class_transformer_1.Type)(() => PostmanBodyBase, {
|
|
345
|
+
keepDiscriminatorProperty: true,
|
|
346
|
+
discriminator: {
|
|
347
|
+
property: 'mode',
|
|
348
|
+
subTypes: [
|
|
349
|
+
{
|
|
350
|
+
value: PostmanUrlencodedBody,
|
|
351
|
+
name: 'urlencoded',
|
|
352
|
+
}, {
|
|
353
|
+
value: PostmanFormDataBody,
|
|
354
|
+
name: 'formdata',
|
|
355
|
+
}, {
|
|
356
|
+
value: PostmanRawBody,
|
|
357
|
+
name: 'raw',
|
|
358
|
+
}, {
|
|
359
|
+
value: PostmanEmptyBody,
|
|
360
|
+
name: 'empty',
|
|
361
|
+
}, {
|
|
362
|
+
value: PostmanGraphQLBody,
|
|
363
|
+
name: 'graphql',
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
},
|
|
367
|
+
}),
|
|
368
|
+
__metadata("design:type", Object)
|
|
369
|
+
], PostmanApiFunctionTrainingDto.prototype, "body", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
(0, class_validator_1.IsNumber)(),
|
|
372
|
+
__metadata("design:type", Number)
|
|
373
|
+
], PostmanApiFunctionTrainingDto.prototype, "statusCode", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
(0, swagger_1.ApiProperty)({
|
|
376
|
+
name: 'templateAuth',
|
|
377
|
+
oneOf: [
|
|
378
|
+
{
|
|
379
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanBearerAuth),
|
|
380
|
+
}, {
|
|
381
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanBasicAuth),
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanApiKeyAuth),
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanNoAuth),
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
}),
|
|
391
|
+
(0, class_validator_1.IsObject)(),
|
|
392
|
+
(0, class_validator_1.ValidateNested)(),
|
|
393
|
+
(0, class_transformer_1.Type)(() => PostmanBodyBase, {
|
|
394
|
+
keepDiscriminatorProperty: true,
|
|
395
|
+
discriminator: {
|
|
396
|
+
property: 'type',
|
|
397
|
+
subTypes: [
|
|
398
|
+
{
|
|
399
|
+
value: PostmanBearerAuth,
|
|
400
|
+
name: 'bearer',
|
|
401
|
+
}, {
|
|
402
|
+
value: PostmanBasicAuth,
|
|
403
|
+
name: 'basic',
|
|
404
|
+
}, {
|
|
405
|
+
value: PostmanApiKeyAuth,
|
|
406
|
+
name: 'apiKey',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
value: PostmanNoAuth,
|
|
410
|
+
name: 'noauth',
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
}),
|
|
415
|
+
__metadata("design:type", Object)
|
|
416
|
+
], PostmanApiFunctionTrainingDto.prototype, "templateAuth", void 0);
|
|
417
|
+
__decorate([
|
|
418
|
+
(0, class_validator_1.IsIn)(['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD']),
|
|
419
|
+
__metadata("design:type", String)
|
|
420
|
+
], PostmanApiFunctionTrainingDto.prototype, "method", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
(0, class_validator_1.IsString)(),
|
|
40
423
|
(0, class_validator_1.IsNotEmpty)(),
|
|
41
424
|
__metadata("design:type", String)
|
|
42
425
|
], PostmanApiFunctionTrainingDto.prototype, "templateUrl", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
(0, swagger_1.ApiProperty)({
|
|
428
|
+
name: 'templateBody',
|
|
429
|
+
oneOf: [
|
|
430
|
+
{
|
|
431
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanUrlencodedBody),
|
|
432
|
+
}, {
|
|
433
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanFormDataBody),
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanRawBody),
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanEmptyBody),
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
$ref: (0, swagger_1.getSchemaPath)(PostmanGraphQLBody),
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
}),
|
|
446
|
+
(0, class_validator_1.IsObject)(),
|
|
447
|
+
(0, class_validator_1.ValidateNested)(),
|
|
448
|
+
(0, class_transformer_1.Type)(() => PostmanBodyBase, {
|
|
449
|
+
keepDiscriminatorProperty: true,
|
|
450
|
+
discriminator: {
|
|
451
|
+
property: 'mode',
|
|
452
|
+
subTypes: [
|
|
453
|
+
{
|
|
454
|
+
value: PostmanUrlencodedBody,
|
|
455
|
+
name: 'urlencoded',
|
|
456
|
+
}, {
|
|
457
|
+
value: PostmanFormDataBody,
|
|
458
|
+
name: 'formdata',
|
|
459
|
+
}, {
|
|
460
|
+
value: PostmanRawBody,
|
|
461
|
+
name: 'raw',
|
|
462
|
+
}, {
|
|
463
|
+
value: PostmanEmptyBody,
|
|
464
|
+
name: 'empty',
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
value: PostmanGraphQLBody,
|
|
468
|
+
name: 'graphql',
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
},
|
|
472
|
+
}),
|
|
473
|
+
__metadata("design:type", Object)
|
|
474
|
+
], PostmanApiFunctionTrainingDto.prototype, "templateBody", void 0);
|
|
43
475
|
__decorate([
|
|
44
476
|
(0, class_validator_1.IsOptional)(),
|
|
45
477
|
(0, class_validator_1.IsString)(),
|
|
@@ -55,4 +487,7 @@ __decorate([
|
|
|
55
487
|
(0, class_validator_1.IsBoolean)(),
|
|
56
488
|
__metadata("design:type", Boolean)
|
|
57
489
|
], PostmanApiFunctionTrainingDto.prototype, "enabledRedirect", void 0);
|
|
490
|
+
exports.PostmanApiFunctionTrainingDto = PostmanApiFunctionTrainingDto = __decorate([
|
|
491
|
+
(0, swagger_1.ApiExtraModels)(PostmanUrlencodedBody, PostmanFormDataBody, PostmanRawBody, PostmanEmptyBody, PostmanGraphQLBody, PostmanApiKeyAuth, PostmanBearerAuth, PostmanBasicAuth, PostmanNoAuth)
|
|
492
|
+
], PostmanApiFunctionTrainingDto);
|
|
58
493
|
//# sourceMappingURL=postman-api-function-training.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postman-api-function-training.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"postman-api-function-training.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAA4J;AAE5J,8CAAkE;AAClE,yDAAyC;AACzC,6CAA8F;AAG9F,MAAa,YAAY;CAUxB;AAVD,oCAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;yCACC;AAGZ;IADC,IAAA,0BAAQ,GAAE;;2CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8CACO;AAGrB,MAAa,oBAAqB,SAAQ,YAAY;CAGrD;AAHD,oDAGC;AADC;IADC,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;kDACD;AAIxB,MAAa,eAAe;CAI3B;AAJD,0CAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;;6CACG;AAKjE,MAAM,iBAAiB;CAGtB;AADC;IADC,IAAA,sBAAI,EAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC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AAE,KAAK;iBACZ,EAAE;oBACD,KAAK,EAAE,gBAAgB;oBACvB,IAAI,EAAE,OAAO;iBACd;gBACD;oBACE,KAAK,EAAE,kBAAkB;oBACzB,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF,CAAC;;mEACwB;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4EACsC;AAIjD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACa;wCA9Ld,6BAA6B;IADzC,IAAA,wBAAc,EAAC,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC;GAC3K,6BAA6B,CA+LzC"}
|
|
@@ -1,47 +1,8 @@
|
|
|
1
1
|
import { ArgumentSerializationDto } from './dto/function/create-api-function.dto';
|
|
2
|
+
import { PostmanEmptyBody, PostmanEntry, PostmanFormDataBody, PostmanGraphQLBody, PostmanRawBody, PostmanUrlencodedBody } from './dto/function/postman-api-function-training.dto';
|
|
2
3
|
export type Variables = Record<string, string>;
|
|
3
|
-
export type PostmanEntry = {
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
8
4
|
export type Header = PostmanEntry;
|
|
9
|
-
export type
|
|
10
|
-
mode: 'graphql';
|
|
11
|
-
graphql: {
|
|
12
|
-
query: string;
|
|
13
|
-
variables: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
type BodyLanguage = 'json' | 'javascript' | 'text' | 'xml' | 'html';
|
|
17
|
-
export type RawBody = {
|
|
18
|
-
mode: 'raw';
|
|
19
|
-
raw: string;
|
|
20
|
-
options?: {
|
|
21
|
-
raw?: {
|
|
22
|
-
language: BodyLanguage;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
language?: BodyLanguage;
|
|
26
|
-
};
|
|
27
|
-
export type UrlencodedBody = {
|
|
28
|
-
mode: 'urlencoded';
|
|
29
|
-
urlencoded: PostmanEntry[];
|
|
30
|
-
};
|
|
31
|
-
export type FormDataEntry = PostmanEntry & {
|
|
32
|
-
type: 'text' | 'file';
|
|
33
|
-
};
|
|
34
|
-
export type FormDataBody = {
|
|
35
|
-
mode: 'formdata';
|
|
36
|
-
formdata: FormDataEntry[];
|
|
37
|
-
};
|
|
38
|
-
export type EmptyBody = {
|
|
39
|
-
mode?: 'empty';
|
|
40
|
-
};
|
|
41
|
-
export type PlainBodyObject = {
|
|
42
|
-
mode: undefined;
|
|
43
|
-
};
|
|
44
|
-
export type Body = RawBody | UrlencodedBody | FormDataBody | EmptyBody | GraphQLBody | PlainBodyObject;
|
|
5
|
+
export type Body = PostmanRawBody | PostmanUrlencodedBody | PostmanFormDataBody | PostmanEmptyBody | PostmanGraphQLBody;
|
|
45
6
|
export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
46
7
|
export type ArgumentType = string;
|
|
47
8
|
export declare class Argument {
|
|
@@ -67,5 +28,4 @@ export type FunctionLog = {
|
|
|
67
28
|
level: string;
|
|
68
29
|
executionId?: string;
|
|
69
30
|
};
|
|
70
|
-
export {};
|
|
71
31
|
//# sourceMappingURL=function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../model/src/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../model/src/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB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
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../model/src/function.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../model/src/function.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AASlF,qDAAkE;AAYlE,MAAa,QAAQ;CA0CpB;AA1CD,4BA0CC;AAxCC;IADC,IAAA,0BAAQ,GAAE;;qCACE;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sCACC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0CACO;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wCACK;AAGjB;IADC,IAAA,4BAAU,GAAE;;sCACO;AAGpB;IADC,IAAA,4BAAU,GAAE;;4CACwB;AAGrC;IADC,IAAA,4BAAU,GAAE;;4CACO;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yCACM;AAGlB;IADC,IAAA,4BAAU,GAAE;;0CACY;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DAC0B;AAGtC;IADC,IAAA,4BAAU,GAAE;8BACG,kDAAwB;+CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../model/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../model/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"}
|
package/build/model/src/index.js
CHANGED
|
@@ -19,7 +19,6 @@ __exportStar(require("./function"), exports);
|
|
|
19
19
|
__exportStar(require("./chat"), exports);
|
|
20
20
|
__exportStar(require("./event"), exports);
|
|
21
21
|
__exportStar(require("./user"), exports);
|
|
22
|
-
__exportStar(require("./auth"), exports);
|
|
23
22
|
__exportStar(require("./specs"), exports);
|
|
24
23
|
__exportStar(require("./permissions"), exports);
|
|
25
24
|
__exportStar(require("./job"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../model/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../model/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,gDAA8B;AAC9B,wCAAsB"}
|