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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
@@ -32,4 +32,5 @@ __exportStar(require("./create-api-function.dto"), exports);
|
|
|
32
32
|
__exportStar(require("./execute-api-function-description-generation.dto"), exports);
|
|
33
33
|
__exportStar(require("./api-function-description-generation.dto"), exports);
|
|
34
34
|
__exportStar(require("./function-logs.dto"), exports);
|
|
35
|
+
__exportStar(require("./types/source/index"), exports);
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,0DAAwC;AACxC,6DAA2C;AAC3C,sEAAoD;AACpD,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAC5C,4DAA0C;AAC1C,oFAAkE;AAClE,4EAA0D;AAC1D,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,0DAAwC;AACxC,6DAA2C;AAC3C,sEAAoD;AACpD,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAC5C,4DAA0C;AAC1C,oFAAkE;AAClE,4EAA0D;AAC1D,sDAAoC;AACpC,uDAAqC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IntrospectionQuery } from 'graphql';
|
|
2
2
|
import { Body, Variables, Header, Method } from '../../function';
|
|
3
|
-
import {
|
|
3
|
+
import { PostmanAuth } from '../../auth';
|
|
4
4
|
export declare class PostmanApiFunctionTrainingDto {
|
|
5
5
|
requestName: string;
|
|
6
6
|
name?: string;
|
|
@@ -13,7 +13,7 @@ export declare class PostmanApiFunctionTrainingDto {
|
|
|
13
13
|
variables?: Variables;
|
|
14
14
|
statusCode: number;
|
|
15
15
|
templateHeaders: Header[];
|
|
16
|
-
templateAuth?:
|
|
16
|
+
templateAuth?: PostmanAuth;
|
|
17
17
|
method: Method;
|
|
18
18
|
templateUrl: string;
|
|
19
19
|
templateBody: Body;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"postman-api-function-training.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/postman-api-function-training.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAIjE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,qBAAa,6BAA6B;IAGxC,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,IAAI,CAAC;IAGnB,EAAE,CAAC,EAAE,MAAM,CAAC;IAIZ,qBAAqB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAIjD,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -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":";;;;;;;;;;;;
|
|
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,qDAAwF;AAExF,8CAAkE;AAGlE,MAAa,6BAA6B;CA0CzC;AA1CD,sEA0CC;AAvCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAc,GAAE;;2DACH;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,8BAAiB,GAAE;;8DACH;AAKjB;IADC,IAAA,4BAAU,GAAE;;0DACD;AAUZ;IADC,IAAA,4BAAU,GAAE;;kEACO;AAKpB;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"}
|
|
@@ -1,42 +1,60 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class EntrySource {
|
|
2
2
|
key: string;
|
|
3
3
|
value: string;
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
6
|
-
key:
|
|
7
|
-
value: string
|
|
5
|
+
export declare class BasicAuthSourceEntries {
|
|
6
|
+
key: 'username' | 'password';
|
|
7
|
+
value: string;
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class BearerAuthSourceEntry {
|
|
10
|
+
key: 'token';
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class FormDataEntrySource extends EntrySource {
|
|
14
|
+
type: 'text' | 'file';
|
|
15
|
+
}
|
|
16
|
+
export declare class BodySource {
|
|
10
17
|
mode: 'urlencoded' | 'formdata' | 'raw' | 'empty';
|
|
11
18
|
}
|
|
12
|
-
export declare class
|
|
19
|
+
export declare class EmptyBodySource extends BodySource {
|
|
13
20
|
mode: 'empty';
|
|
14
21
|
}
|
|
15
|
-
export declare class
|
|
16
|
-
|
|
22
|
+
export declare class RawBodySource extends BodySource {
|
|
23
|
+
mode: 'raw';
|
|
24
|
+
raw: string;
|
|
25
|
+
language: 'html' | 'xml' | 'text' | 'json' | 'javascript';
|
|
17
26
|
}
|
|
18
|
-
export declare class
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
value: string;
|
|
27
|
+
export declare class FormDataBodySource extends BodySource {
|
|
28
|
+
mode: 'formdata';
|
|
29
|
+
formdata: FormDataEntrySource[];
|
|
22
30
|
}
|
|
23
|
-
export declare class
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
export declare class UrlEncodedBodySource extends BodySource {
|
|
32
|
+
mode: 'urlencoded';
|
|
33
|
+
urlencoded: EntrySource[];
|
|
26
34
|
}
|
|
27
|
-
export declare class
|
|
35
|
+
export declare class UpdateAuthSource {
|
|
36
|
+
type: 'basic' | 'bearer' | 'apikey' | 'noauth';
|
|
37
|
+
}
|
|
38
|
+
export declare class BasicAuthSource extends UpdateAuthSource {
|
|
28
39
|
type: 'basic';
|
|
29
|
-
basic:
|
|
40
|
+
basic: BasicAuthSourceEntries[];
|
|
30
41
|
}
|
|
31
|
-
export declare class
|
|
42
|
+
export declare class ApiKeyAuthSource extends UpdateAuthSource {
|
|
32
43
|
type: 'apikey';
|
|
33
|
-
apikey:
|
|
44
|
+
apikey: {
|
|
45
|
+
key: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
34
48
|
}
|
|
35
|
-
export declare class BearerAuthSource extends
|
|
49
|
+
export declare class BearerAuthSource extends UpdateAuthSource {
|
|
36
50
|
type: 'bearer';
|
|
37
|
-
bearer:
|
|
51
|
+
bearer: BearerAuthSourceEntry[];
|
|
38
52
|
}
|
|
39
|
-
export declare class
|
|
53
|
+
export declare class NoAuthSource extends UpdateAuthSource {
|
|
40
54
|
type: 'noauth';
|
|
41
55
|
}
|
|
56
|
+
export declare class SourceNullableEntry {
|
|
57
|
+
key: string;
|
|
58
|
+
value: string | null;
|
|
59
|
+
}
|
|
42
60
|
//# sourceMappingURL=common-source-types.dto.d.ts.map
|
|
@@ -1 +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":"
|
|
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":"AAMA,qBAAa,WAAW;IAEtB,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;CACf;AAqCD,qBAAa,sBAAsB;IAEjC,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAI7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,qBAAqB;IAGhC,GAAG,EAAE,OAAO,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,WAAW;IAElD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAGD,qBAAa,UAAU;IAEnB,IAAI,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= (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.SourceNullableEntry = exports.NoAuthSource = exports.BearerAuthSource = exports.ApiKeyAuthSource = exports.BasicAuthSource = exports.UpdateAuthSource = exports.UrlEncodedBodySource = exports.FormDataBodySource = exports.RawBodySource = exports.EmptyBodySource = exports.BodySource = exports.FormDataEntrySource = exports.BearerAuthSourceEntry = exports.BasicAuthSourceEntries = exports.EntrySource = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
class
|
|
16
|
+
class EntrySource {
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.EntrySource = EntrySource;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], EntrySource.prototype, "key", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EntrySource.prototype, "value", void 0);
|
|
27
|
+
class ApiKeyEntrySource {
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsIn)(['in', 'key', 'value']),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ApiKeyEntrySource.prototype, "key", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ApiKeyEntrySource.prototype, "value", void 0);
|
|
37
|
+
class ApiKeyInEntrySource {
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsIn)(['in']),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ApiKeyInEntrySource.prototype, "key", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsIn)(['header', 'query']),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ApiKeyInEntrySource.prototype, "value", void 0);
|
|
47
|
+
class KeyValueApiKeyEntrySource extends ApiKeyEntrySource {
|
|
48
|
+
}
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsIn)(['key']),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], KeyValueApiKeyEntrySource.prototype, "key", void 0);
|
|
19
53
|
__decorate([
|
|
20
54
|
(0, swagger_1.ApiProperty)(),
|
|
21
55
|
(0, class_validator_1.IsString)(),
|
|
22
56
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
57
|
+
], KeyValueApiKeyEntrySource.prototype, "value", void 0);
|
|
58
|
+
class ValueApiKeyEntrySource extends ApiKeyEntrySource {
|
|
59
|
+
}
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsIn)(['value']),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ValueApiKeyEntrySource.prototype, "key", void 0);
|
|
24
64
|
__decorate([
|
|
25
65
|
(0, swagger_1.ApiProperty)(),
|
|
26
66
|
(0, class_validator_1.IsString)(),
|
|
27
67
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
-
class
|
|
68
|
+
], ValueApiKeyEntrySource.prototype, "value", void 0);
|
|
69
|
+
class BasicAuthSourceEntries {
|
|
30
70
|
}
|
|
31
|
-
exports.
|
|
71
|
+
exports.BasicAuthSourceEntries = BasicAuthSourceEntries;
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsIn)(['username', 'password']),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], BasicAuthSourceEntries.prototype, "key", void 0);
|
|
32
76
|
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
33
78
|
(0, class_validator_1.IsString)(),
|
|
34
79
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
80
|
+
], BasicAuthSourceEntries.prototype, "value", void 0);
|
|
81
|
+
class BearerAuthSourceEntry {
|
|
82
|
+
}
|
|
83
|
+
exports.BearerAuthSourceEntry = BearerAuthSourceEntry;
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsIn)(['token']),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], BearerAuthSourceEntry.prototype, "key", void 0);
|
|
36
88
|
__decorate([
|
|
37
|
-
(0, class_validator_1.ValidateIf)((object, value) => value !== null),
|
|
38
89
|
(0, class_validator_1.IsString)(),
|
|
39
90
|
__metadata("design:type", String)
|
|
40
|
-
],
|
|
41
|
-
class
|
|
91
|
+
], BearerAuthSourceEntry.prototype, "value", void 0);
|
|
92
|
+
class FormDataEntrySource extends EntrySource {
|
|
93
|
+
}
|
|
94
|
+
exports.FormDataEntrySource = FormDataEntrySource;
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsIn)(['text', 'file']),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], FormDataEntrySource.prototype, "type", void 0);
|
|
99
|
+
class BodySource {
|
|
42
100
|
}
|
|
43
|
-
exports.
|
|
101
|
+
exports.BodySource = BodySource;
|
|
44
102
|
__decorate([
|
|
45
103
|
(0, class_validator_1.IsIn)(['urlencoded', 'formdata', 'raw', 'empty']),
|
|
46
104
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
48
|
-
class
|
|
105
|
+
], BodySource.prototype, "mode", void 0);
|
|
106
|
+
class EmptyBodySource extends BodySource {
|
|
49
107
|
}
|
|
50
|
-
exports.
|
|
108
|
+
exports.EmptyBodySource = EmptyBodySource;
|
|
51
109
|
__decorate([
|
|
52
110
|
(0, class_validator_1.IsIn)(['empty']),
|
|
53
111
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
-
class
|
|
112
|
+
], EmptyBodySource.prototype, "mode", void 0);
|
|
113
|
+
class RawBodySource extends BodySource {
|
|
56
114
|
}
|
|
57
|
-
exports.
|
|
115
|
+
exports.RawBodySource = RawBodySource;
|
|
58
116
|
__decorate([
|
|
59
|
-
(0, class_validator_1.IsIn)(['
|
|
117
|
+
(0, class_validator_1.IsIn)(['raw']),
|
|
60
118
|
__metadata("design:type", String)
|
|
61
|
-
],
|
|
62
|
-
class BearerEntry {
|
|
63
|
-
}
|
|
64
|
-
exports.BearerEntry = BearerEntry;
|
|
119
|
+
], RawBodySource.prototype, "mode", void 0);
|
|
65
120
|
__decorate([
|
|
66
|
-
(0, class_validator_1.
|
|
121
|
+
(0, class_validator_1.IsString)(),
|
|
67
122
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
123
|
+
], RawBodySource.prototype, "raw", void 0);
|
|
69
124
|
__decorate([
|
|
70
|
-
(0, class_validator_1.IsIn)(['
|
|
125
|
+
(0, class_validator_1.IsIn)(['html', 'xml', 'text', 'json', 'javascript']),
|
|
71
126
|
__metadata("design:type", String)
|
|
72
|
-
],
|
|
127
|
+
], RawBodySource.prototype, "language", void 0);
|
|
128
|
+
class FormDataBodySource extends BodySource {
|
|
129
|
+
}
|
|
130
|
+
exports.FormDataBodySource = FormDataBodySource;
|
|
73
131
|
__decorate([
|
|
74
|
-
(0, class_validator_1.
|
|
132
|
+
(0, class_validator_1.IsIn)(['formdata']),
|
|
75
133
|
__metadata("design:type", String)
|
|
76
|
-
],
|
|
77
|
-
|
|
134
|
+
], FormDataBodySource.prototype, "mode", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_validator_1.IsArray)(),
|
|
137
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
138
|
+
(0, class_transformer_1.Type)(() => FormDataEntrySource),
|
|
139
|
+
__metadata("design:type", Array)
|
|
140
|
+
], FormDataBodySource.prototype, "formdata", void 0);
|
|
141
|
+
class UrlEncodedBodySource extends BodySource {
|
|
78
142
|
}
|
|
79
|
-
exports.
|
|
143
|
+
exports.UrlEncodedBodySource = UrlEncodedBodySource;
|
|
80
144
|
__decorate([
|
|
81
|
-
(0, class_validator_1.IsIn)(['
|
|
145
|
+
(0, class_validator_1.IsIn)(['urlencoded']),
|
|
82
146
|
__metadata("design:type", String)
|
|
83
|
-
],
|
|
147
|
+
], UrlEncodedBodySource.prototype, "mode", void 0);
|
|
84
148
|
__decorate([
|
|
85
|
-
(0,
|
|
86
|
-
(0, class_validator_1.
|
|
149
|
+
(0, class_validator_1.IsArray)(),
|
|
150
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
151
|
+
(0, class_transformer_1.Type)(() => EntrySource),
|
|
152
|
+
__metadata("design:type", Array)
|
|
153
|
+
], UrlEncodedBodySource.prototype, "urlencoded", void 0);
|
|
154
|
+
class UpdateAuthSource {
|
|
155
|
+
}
|
|
156
|
+
exports.UpdateAuthSource = UpdateAuthSource;
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
|
|
87
159
|
__metadata("design:type", String)
|
|
88
|
-
],
|
|
89
|
-
class BasicAuthSource extends
|
|
160
|
+
], UpdateAuthSource.prototype, "type", void 0);
|
|
161
|
+
class BasicAuthSource extends UpdateAuthSource {
|
|
90
162
|
}
|
|
91
163
|
exports.BasicAuthSource = BasicAuthSource;
|
|
92
164
|
__decorate([
|
|
@@ -97,7 +169,7 @@ __decorate([
|
|
|
97
169
|
(0, swagger_1.ApiProperty)({
|
|
98
170
|
type: 'array',
|
|
99
171
|
items: {
|
|
100
|
-
$ref: (0, swagger_1.getSchemaPath)(
|
|
172
|
+
$ref: (0, swagger_1.getSchemaPath)(BasicAuthSourceEntries),
|
|
101
173
|
},
|
|
102
174
|
uniqueItems: true,
|
|
103
175
|
minimum: 2,
|
|
@@ -107,34 +179,64 @@ __decorate([
|
|
|
107
179
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
108
180
|
(0, class_validator_1.ArrayMaxSize)(2),
|
|
109
181
|
(0, class_validator_1.ArrayMinSize)(2),
|
|
110
|
-
(0, class_transformer_1.Type)(() =>
|
|
182
|
+
(0, class_transformer_1.Type)(() => BasicAuthSourceEntries),
|
|
111
183
|
(0, class_validator_1.ArrayUnique)(o => o.key),
|
|
112
184
|
__metadata("design:type", Array)
|
|
113
185
|
], BasicAuthSource.prototype, "basic", void 0);
|
|
114
|
-
class
|
|
115
|
-
}
|
|
116
|
-
exports.ApiKeySource = ApiKeySource;
|
|
186
|
+
let ApiKeyAuthSource = exports.ApiKeyAuthSource = class ApiKeyAuthSource extends UpdateAuthSource {
|
|
187
|
+
};
|
|
117
188
|
__decorate([
|
|
118
189
|
(0, class_validator_1.IsIn)(['apikey']),
|
|
119
190
|
__metadata("design:type", String)
|
|
120
|
-
],
|
|
191
|
+
], ApiKeyAuthSource.prototype, "type", void 0);
|
|
121
192
|
__decorate([
|
|
122
193
|
(0, swagger_1.ApiProperty)({
|
|
123
194
|
type: 'array',
|
|
195
|
+
description: 'Items uniqueness is determined by "key" property.',
|
|
124
196
|
items: {
|
|
125
|
-
|
|
197
|
+
anyOf: [
|
|
198
|
+
{
|
|
199
|
+
$ref: (0, swagger_1.getSchemaPath)(ApiKeyInEntrySource),
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
$ref: (0, swagger_1.getSchemaPath)(KeyValueApiKeyEntrySource),
|
|
203
|
+
},
|
|
204
|
+
],
|
|
126
205
|
},
|
|
127
206
|
uniqueItems: true,
|
|
128
207
|
minimum: 3,
|
|
208
|
+
maximum: 3,
|
|
129
209
|
}),
|
|
130
210
|
(0, class_validator_1.IsArray)(),
|
|
131
211
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
132
|
-
(0, class_transformer_1.Type)(() =>
|
|
212
|
+
(0, class_transformer_1.Type)(() => ApiKeyEntrySource, {
|
|
213
|
+
keepDiscriminatorProperty: true,
|
|
214
|
+
discriminator: {
|
|
215
|
+
property: 'key',
|
|
216
|
+
subTypes: [
|
|
217
|
+
{
|
|
218
|
+
value: ApiKeyInEntrySource,
|
|
219
|
+
name: 'in',
|
|
220
|
+
}, {
|
|
221
|
+
value: KeyValueApiKeyEntrySource,
|
|
222
|
+
name: 'key',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
value: ValueApiKeyEntrySource,
|
|
226
|
+
name: 'value',
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
}),
|
|
133
231
|
(0, class_validator_1.ArrayUnique)(o => o.key),
|
|
134
232
|
(0, class_validator_1.ArrayMinSize)(3),
|
|
233
|
+
(0, class_validator_1.ArrayMaxSize)(3),
|
|
135
234
|
__metadata("design:type", Array)
|
|
136
|
-
],
|
|
137
|
-
|
|
235
|
+
], ApiKeyAuthSource.prototype, "apikey", void 0);
|
|
236
|
+
exports.ApiKeyAuthSource = ApiKeyAuthSource = __decorate([
|
|
237
|
+
(0, swagger_1.ApiExtraModels)(KeyValueApiKeyEntrySource, ApiKeyInEntrySource, ValueApiKeyEntrySource)
|
|
238
|
+
], ApiKeyAuthSource);
|
|
239
|
+
class BearerAuthSource extends UpdateAuthSource {
|
|
138
240
|
}
|
|
139
241
|
exports.BearerAuthSource = BearerAuthSource;
|
|
140
242
|
__decorate([
|
|
@@ -145,16 +247,28 @@ __decorate([
|
|
|
145
247
|
(0, swagger_1.ApiProperty)(),
|
|
146
248
|
(0, class_validator_1.IsArray)(),
|
|
147
249
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
148
|
-
(0, class_transformer_1.Type)(() =>
|
|
250
|
+
(0, class_transformer_1.Type)(() => BearerAuthSourceEntry),
|
|
149
251
|
(0, class_validator_1.ArrayMinSize)(1),
|
|
150
252
|
(0, class_validator_1.ArrayMaxSize)(1),
|
|
151
253
|
__metadata("design:type", Array)
|
|
152
254
|
], BearerAuthSource.prototype, "bearer", void 0);
|
|
153
|
-
class
|
|
255
|
+
class NoAuthSource extends UpdateAuthSource {
|
|
154
256
|
}
|
|
155
|
-
exports.
|
|
257
|
+
exports.NoAuthSource = NoAuthSource;
|
|
156
258
|
__decorate([
|
|
157
259
|
(0, class_validator_1.IsIn)(['noauth']),
|
|
158
260
|
__metadata("design:type", String)
|
|
159
|
-
],
|
|
261
|
+
], NoAuthSource.prototype, "type", void 0);
|
|
262
|
+
class SourceNullableEntry {
|
|
263
|
+
}
|
|
264
|
+
exports.SourceNullableEntry = SourceNullableEntry;
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, class_validator_1.IsString)(),
|
|
267
|
+
__metadata("design:type", String)
|
|
268
|
+
], SourceNullableEntry.prototype, "key", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, class_validator_1.ValidateIf)((object, value) => value !== null),
|
|
271
|
+
(0, class_validator_1.IsString)(),
|
|
272
|
+
__metadata("design:type", String)
|
|
273
|
+
], SourceNullableEntry.prototype, "value", void 0);
|
|
160
274
|
//# sourceMappingURL=common-source-types.dto.js.map
|
|
@@ -1 +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":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"common-source-types.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,yDAAyC;AACzC,qDAA+H;AAI/H,MAAa,WAAW;CAMvB;AAND,kCAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;wCACC;AAGZ;IADC,IAAA,0BAAQ,GAAE;;0CACG;AAGhB,MAAM,iBAAiB;CAMtB;AAJC;IADC,IAAA,sBAAI,EAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;;8CACD;AAG5B;IADC,IAAA,0BAAQ,GAAE;;gDACG;AAGhB,MAAM,mBAAmB;CAOxB;AALC;IAD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CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACvB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;gDACyB;2BA7C9B,gBAAgB;IAD5B,IAAA,wBAAc,EAAC,yBAAyB,EAAE,mBAAmB,EAAE,sBAAsB,CAAC;GAC1E,gBAAgB,CA8C5B;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAWrD;AAXD,4CAWC;AATC;IADC,IAAA,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,qBAAqB,CAAC;IACjC,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;gDACgB;AAGlC,MAAa,YAAa,SAAQ,gBAAgB;CAGjD;AAHD,oCAGC;AADD;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;0CACF;AAIf,MAAa,mBAAmB;CAO/B;AAPD,kDAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;gDACC;AAIZ;IAFC,IAAA,4BAAU,EAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;IAC7C,IAAA,0BAAQ,GAAE;;kDACU"}
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
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 {
|
|
1
|
+
import { EmptyBodySource, BasicAuthSource, BearerAuthSource, RawBodySource, EntrySource, UrlEncodedBodySource, FormDataBodySource, ApiKeyAuthSource, NoAuthSource } from './common-source-types.dto';
|
|
2
|
+
export declare class CreateSourceDto {
|
|
24
3
|
url: string;
|
|
25
4
|
method: string;
|
|
26
|
-
headers?:
|
|
27
|
-
auth: BasicAuthSource | BearerAuthSource |
|
|
28
|
-
body:
|
|
5
|
+
headers?: EntrySource[];
|
|
6
|
+
auth: BasicAuthSource | BearerAuthSource | ApiKeyAuthSource | NoAuthSource;
|
|
7
|
+
body: UrlEncodedBodySource | FormDataBodySource | RawBodySource | EmptyBodySource;
|
|
29
8
|
}
|
|
30
9
|
//# sourceMappingURL=create-source.dto.d.ts.map
|
|
@@ -1 +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,
|
|
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,eAAe,EACf,eAAe,EACf,gBAAgB,EAIhB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,qBACa,eAAe;IAExB,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;IAMf,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IAyCxB,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,CAAC;IA4C3E,IAAI,EAAE,oBAAoB,GAAG,kBAAkB,GAAG,aAAa,GAAG,eAAe,CAAC;CACrF"}
|