polyapi 0.10.4 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/build/client/src/api.d.ts +6 -1
  2. package/build/client/src/api.d.ts.map +1 -1
  3. package/build/client/src/api.js +42 -1
  4. package/build/client/src/api.js.map +1 -1
  5. package/build/client/src/cli.js +54 -0
  6. package/build/client/src/cli.js.map +1 -1
  7. package/build/client/src/commands/function.d.ts.map +1 -1
  8. package/build/client/src/commands/function.js +4 -1
  9. package/build/client/src/commands/function.js.map +1 -1
  10. package/build/client/src/commands/model/generate.d.ts +2 -0
  11. package/build/client/src/commands/model/generate.d.ts.map +1 -0
  12. package/build/client/src/commands/model/generate.js +96 -0
  13. package/build/client/src/commands/model/generate.js.map +1 -0
  14. package/build/client/src/commands/model/index.d.ts +4 -0
  15. package/build/client/src/commands/model/index.d.ts.map +1 -0
  16. package/build/client/src/commands/model/index.js +20 -0
  17. package/build/client/src/commands/model/index.js.map +1 -0
  18. package/build/client/src/commands/model/train.d.ts +2 -0
  19. package/build/client/src/commands/model/train.d.ts.map +1 -0
  20. package/build/client/src/commands/model/train.js +65 -0
  21. package/build/client/src/commands/model/train.js.map +1 -0
  22. package/build/client/src/commands/model/validate.d.ts +2 -0
  23. package/build/client/src/commands/model/validate.d.ts.map +1 -0
  24. package/build/client/src/commands/model/validate.js +42 -0
  25. package/build/client/src/commands/model/validate.js.map +1 -0
  26. package/build/common/src/constants.d.ts +9 -0
  27. package/build/common/src/constants.d.ts.map +1 -0
  28. package/build/common/src/constants.js +12 -0
  29. package/build/common/src/constants.js.map +1 -0
  30. package/build/common/src/json-schema.d.ts +3 -0
  31. package/build/common/src/json-schema.d.ts.map +1 -0
  32. package/build/common/src/json-schema.js +26 -0
  33. package/build/common/src/json-schema.js.map +1 -0
  34. package/build/common/src/utils.d.ts +0 -7
  35. package/build/common/src/utils.d.ts.map +1 -1
  36. package/build/common/src/utils.js +6 -12
  37. package/build/common/src/utils.js.map +1 -1
  38. package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts +5 -0
  39. package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts.map +1 -0
  40. package/build/model/src/dto/config-variable/config-variable-name.dto.js +22 -0
  41. package/build/model/src/dto/config-variable/config-variable-name.dto.js.map +1 -0
  42. package/build/model/src/dto/config-variable/index.d.ts +1 -0
  43. package/build/model/src/dto/config-variable/index.d.ts.map +1 -1
  44. package/build/model/src/dto/config-variable/index.js +1 -0
  45. package/build/model/src/dto/config-variable/index.js.map +1 -1
  46. package/build/model/src/dto/config-variable/validator/jobs.js +1 -1
  47. package/build/model/src/dto/config-variable/validator/jobs.js.map +1 -1
  48. package/build/model/src/dto/config-variable/value-types/index.d.ts +1 -1
  49. package/build/model/src/dto/config-variable/value-types/index.d.ts.map +1 -1
  50. package/build/model/src/dto/config-variable/value-types/index.js +1 -1
  51. package/build/model/src/dto/config-variable/value-types/index.js.map +1 -1
  52. package/build/model/src/dto/function/api-function-translation.dto.d.ts +6 -0
  53. package/build/model/src/dto/function/api-function-translation.dto.d.ts.map +1 -0
  54. package/build/model/src/dto/function/api-function-translation.dto.js +3 -0
  55. package/build/model/src/dto/function/api-function-translation.dto.js.map +1 -0
  56. package/build/model/src/dto/function/create-api-function.dto.d.ts +24 -21
  57. package/build/model/src/dto/function/create-api-function.dto.d.ts.map +1 -1
  58. package/build/model/src/dto/function/create-api-function.dto.js +103 -16
  59. package/build/model/src/dto/function/create-api-function.dto.js.map +1 -1
  60. package/build/model/src/dto/function/create-api-functions.dto.d.ts +5 -0
  61. package/build/model/src/dto/function/create-api-functions.dto.d.ts.map +1 -0
  62. package/build/model/src/dto/function/create-api-functions.dto.js +25 -0
  63. package/build/model/src/dto/function/create-api-functions.dto.js.map +1 -0
  64. package/build/model/src/dto/function/index.d.ts +6 -1
  65. package/build/model/src/dto/function/index.d.ts.map +1 -1
  66. package/build/model/src/dto/function/index.js +6 -1
  67. package/build/model/src/dto/function/index.js.map +1 -1
  68. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +24 -0
  69. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts.map +1 -0
  70. package/build/model/src/dto/function/postman-api-function-training.dto.js +58 -0
  71. package/build/model/src/dto/function/postman-api-function-training.dto.js.map +1 -0
  72. package/build/model/src/dto/function/rendered-spec.dto.d.ts +7 -0
  73. package/build/model/src/dto/function/rendered-spec.dto.d.ts.map +1 -0
  74. package/build/model/src/dto/function/rendered-spec.dto.js +37 -0
  75. package/build/model/src/dto/function/rendered-spec.dto.js.map +1 -0
  76. package/build/model/src/dto/function/translate-query-params.dto.d.ts +4 -0
  77. package/build/model/src/dto/function/translate-query-params.dto.d.ts.map +1 -0
  78. package/build/model/src/dto/function/translate-query-params.dto.js +22 -0
  79. package/build/model/src/dto/function/translate-query-params.dto.js.map +1 -0
  80. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts +42 -0
  81. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts.map +1 -0
  82. package/build/model/src/dto/function/types/source/common-source-types.dto.js +160 -0
  83. package/build/model/src/dto/function/types/source/common-source-types.dto.js.map +1 -0
  84. package/build/model/src/dto/function/types/source/create-source.dto.d.ts +30 -0
  85. package/build/model/src/dto/function/types/source/create-source.dto.d.ts.map +1 -0
  86. package/build/model/src/dto/function/types/source/create-source.dto.js +178 -0
  87. package/build/model/src/dto/function/types/source/create-source.dto.js.map +1 -0
  88. package/build/model/src/dto/function/types/source/update-source.dto.d.ts +21 -0
  89. package/build/model/src/dto/function/types/source/update-source.dto.d.ts.map +1 -0
  90. package/build/model/src/dto/function/types/source/update-source.dto.js +201 -0
  91. package/build/model/src/dto/function/types/source/update-source.dto.js.map +1 -0
  92. package/build/model/src/dto/function/update-api-function.dto.d.ts +4 -4
  93. package/build/model/src/dto/function/update-api-function.dto.d.ts.map +1 -1
  94. package/build/model/src/dto/function/update-api-function.dto.js +6 -6
  95. package/build/model/src/dto/function/update-api-function.dto.js.map +1 -1
  96. package/build/model/src/dto/gptplugin/whoami.dto.d.ts.map +1 -1
  97. package/build/model/src/dto/gptplugin/whoami.dto.js +3 -1
  98. package/build/model/src/dto/gptplugin/whoami.dto.js.map +1 -1
  99. package/build/model/src/dto/job/create-job.dto.d.ts.map +1 -1
  100. package/build/model/src/dto/job/create-job.dto.js.map +1 -1
  101. package/build/model/src/dto/job/execution.dto.d.ts.map +1 -1
  102. package/build/model/src/dto/job/job.dto.d.ts +1 -1
  103. package/build/model/src/dto/job/job.dto.d.ts.map +1 -1
  104. package/build/model/src/dto/job/job.dto.js.map +1 -1
  105. package/build/model/src/dto/job/update-job.dto.d.ts.map +1 -1
  106. package/build/model/src/dto/job/update-job.dto.js.map +1 -1
  107. package/build/model/src/dto/job/utils.dto.d.ts.map +1 -1
  108. package/build/model/src/dto/job/utils.dto.js +0 -3
  109. package/build/model/src/dto/job/utils.dto.js.map +1 -1
  110. package/build/model/src/dto/tenant/index.d.ts +2 -0
  111. package/build/model/src/dto/tenant/index.d.ts.map +1 -1
  112. package/build/model/src/dto/tenant/index.js +2 -0
  113. package/build/model/src/dto/tenant/index.js.map +1 -1
  114. package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts +6 -0
  115. package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts.map +1 -0
  116. package/build/model/src/dto/tenant/tenant-config-variable.dto.js +26 -0
  117. package/build/model/src/dto/tenant/tenant-config-variable.dto.js.map +1 -0
  118. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts +7 -0
  119. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts.map +1 -0
  120. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js +30 -0
  121. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js.map +1 -0
  122. package/build/model/src/dto/trigger/trigger-response.dto.d.ts +6 -4
  123. package/build/model/src/dto/trigger/trigger-response.dto.d.ts.map +1 -1
  124. package/build/model/src/dto/trigger/trigger-response.dto.js +2 -0
  125. package/build/model/src/dto/trigger/trigger-response.dto.js.map +1 -1
  126. package/build/model/src/dto/validators/index.d.ts +1 -0
  127. package/build/model/src/dto/validators/index.d.ts.map +1 -1
  128. package/build/model/src/dto/validators/index.js +1 -0
  129. package/build/model/src/dto/validators/index.js.map +1 -1
  130. package/build/model/src/dto/validators/json-schema.d.ts +7 -0
  131. package/build/model/src/dto/validators/json-schema.d.ts.map +1 -0
  132. package/build/model/src/dto/validators/json-schema.js +41 -0
  133. package/build/model/src/dto/validators/json-schema.js.map +1 -0
  134. package/build/model/src/function.d.ts +2 -2
  135. package/build/model/src/function.d.ts.map +1 -1
  136. package/build/model/src/job.d.ts.map +1 -1
  137. package/build/model/src/job.js +0 -1
  138. package/build/model/src/job.js.map +1 -1
  139. package/build/tsconfig.build.tsbuildinfo +1 -1
  140. package/package.json +2 -1
  141. package/build/model/src/dto/function/types/update-source.d.ts +0 -57
  142. package/build/model/src/dto/function/types/update-source.d.ts.map +0 -1
  143. package/build/model/src/dto/function/types/update-source.js +0 -356
  144. package/build/model/src/dto/function/types/update-source.js.map +0 -1
@@ -0,0 +1,37 @@
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.CreateRenderedSpecDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CreateRenderedSpecDto {
15
+ }
16
+ exports.CreateRenderedSpecDto = CreateRenderedSpecDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], CreateRenderedSpecDto.prototype, "language", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], CreateRenderedSpecDto.prototype, "apiFunctionId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], CreateRenderedSpecDto.prototype, "typedefs", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], CreateRenderedSpecDto.prototype, "signature", void 0);
37
+ //# sourceMappingURL=rendered-spec.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendered-spec.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/rendered-spec.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,qBAAqB;CAiBjC;AAjBD,sDAiBC;AAdC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAKjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACI;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACK"}
@@ -0,0 +1,4 @@
1
+ export declare class TranslateQueryParamsDto {
2
+ context?: string;
3
+ }
4
+ //# sourceMappingURL=translate-query-params.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate-query-params.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/translate-query-params.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAGhC,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,22 @@
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.TranslateQueryParamsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class TranslateQueryParamsDto {
15
+ }
16
+ exports.TranslateQueryParamsDto = TranslateQueryParamsDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], TranslateQueryParamsDto.prototype, "context", void 0);
22
+ //# sourceMappingURL=translate-query-params.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate-query-params.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/translate-query-params.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACM"}
@@ -0,0 +1,42 @@
1
+ export declare class UpdateSourceEntry {
2
+ key: string;
3
+ value: string;
4
+ }
5
+ export declare class UpdateSourceNullableEntry {
6
+ key: string;
7
+ value: string | null;
8
+ }
9
+ export declare class Body {
10
+ mode: 'urlencoded' | 'formdata' | 'raw' | 'empty';
11
+ }
12
+ export declare class EmptyBody extends Body {
13
+ mode: 'empty';
14
+ }
15
+ export declare class UpdateAuth {
16
+ type: 'basic' | 'bearer' | 'apikey' | 'noauth';
17
+ }
18
+ export declare class BearerEntry {
19
+ type: 'any';
20
+ key: 'token';
21
+ value: string;
22
+ }
23
+ export declare class BasicAuthEntries {
24
+ key: 'username' | 'password';
25
+ value: string;
26
+ }
27
+ export declare class BasicAuthSource extends UpdateAuth {
28
+ type: 'basic';
29
+ basic: BasicAuthEntries[];
30
+ }
31
+ export declare class ApiKeySource extends UpdateAuth {
32
+ type: 'apikey';
33
+ apikey: UpdateSourceEntry[];
34
+ }
35
+ export declare class BearerAuthSource extends UpdateAuth {
36
+ type: 'bearer';
37
+ bearer: BearerEntry[];
38
+ }
39
+ export declare class NoAuth extends UpdateAuth {
40
+ type: 'noauth';
41
+ }
42
+ //# sourceMappingURL=common-source-types.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-source-types.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,iBAAiB;IAG1B,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,yBAAyB;IAElC,GAAG,EAAE,MAAM,CAAC;IAIZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,qBAAa,IAAI;IAEb,IAAI,EAAE,YAAY,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;CACrD;AAED,qBAAa,SAAU,SAAQ,IAAI;IAE/B,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,UAAU;IAEnB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;CAClD;AAED,qBAAa,WAAW;IAEtB,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,OAAO,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,gBAAgB;IAEzB,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAI7B,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAgB,SAAQ,UAAU;IAE3C,IAAI,EAAE,OAAO,CAAC;IAiBd,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,qBAAa,YAAa,SAAQ,UAAU;IAExC,IAAI,EAAE,QAAQ,CAAC;IAef,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IAE5C,IAAI,EAAE,QAAQ,CAAC;IAQf,MAAM,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,qBAAa,MAAO,SAAQ,UAAU;IAEpC,IAAI,EAAE,QAAQ,CAAC;CAChB"}
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.NoAuth = exports.BearerAuthSource = exports.ApiKeySource = exports.BasicAuthSource = exports.BasicAuthEntries = exports.BearerEntry = exports.UpdateAuth = exports.EmptyBody = exports.Body = exports.UpdateSourceNullableEntry = exports.UpdateSourceEntry = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ class UpdateSourceEntry {
17
+ }
18
+ exports.UpdateSourceEntry = UpdateSourceEntry;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)(),
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], UpdateSourceEntry.prototype, "key", void 0);
24
+ __decorate([
25
+ (0, swagger_1.ApiProperty)(),
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], UpdateSourceEntry.prototype, "value", void 0);
29
+ class UpdateSourceNullableEntry {
30
+ }
31
+ exports.UpdateSourceNullableEntry = UpdateSourceNullableEntry;
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], UpdateSourceNullableEntry.prototype, "key", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.ValidateIf)((object, value) => value !== null),
38
+ (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], UpdateSourceNullableEntry.prototype, "value", void 0);
41
+ class Body {
42
+ }
43
+ exports.Body = Body;
44
+ __decorate([
45
+ (0, class_validator_1.IsIn)(['urlencoded', 'formdata', 'raw', 'empty']),
46
+ __metadata("design:type", String)
47
+ ], Body.prototype, "mode", void 0);
48
+ class EmptyBody extends Body {
49
+ }
50
+ exports.EmptyBody = EmptyBody;
51
+ __decorate([
52
+ (0, class_validator_1.IsIn)(['empty']),
53
+ __metadata("design:type", String)
54
+ ], EmptyBody.prototype, "mode", void 0);
55
+ class UpdateAuth {
56
+ }
57
+ exports.UpdateAuth = UpdateAuth;
58
+ __decorate([
59
+ (0, class_validator_1.IsIn)(['basic', 'bearer', 'apikey', 'noauth']),
60
+ __metadata("design:type", String)
61
+ ], UpdateAuth.prototype, "type", void 0);
62
+ class BearerEntry {
63
+ }
64
+ exports.BearerEntry = BearerEntry;
65
+ __decorate([
66
+ (0, class_validator_1.IsIn)(['any']),
67
+ __metadata("design:type", String)
68
+ ], BearerEntry.prototype, "type", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsIn)(['token']),
71
+ __metadata("design:type", String)
72
+ ], BearerEntry.prototype, "key", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsString)(),
75
+ __metadata("design:type", String)
76
+ ], BearerEntry.prototype, "value", void 0);
77
+ class BasicAuthEntries {
78
+ }
79
+ exports.BasicAuthEntries = BasicAuthEntries;
80
+ __decorate([
81
+ (0, class_validator_1.IsIn)(['username', 'password']),
82
+ __metadata("design:type", String)
83
+ ], BasicAuthEntries.prototype, "key", void 0);
84
+ __decorate([
85
+ (0, swagger_1.ApiProperty)(),
86
+ (0, class_validator_1.IsString)(),
87
+ __metadata("design:type", String)
88
+ ], BasicAuthEntries.prototype, "value", void 0);
89
+ class BasicAuthSource extends UpdateAuth {
90
+ }
91
+ exports.BasicAuthSource = BasicAuthSource;
92
+ __decorate([
93
+ (0, class_validator_1.IsIn)(['basic']),
94
+ __metadata("design:type", String)
95
+ ], BasicAuthSource.prototype, "type", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiProperty)({
98
+ type: 'array',
99
+ items: {
100
+ $ref: (0, swagger_1.getSchemaPath)(BasicAuthEntries),
101
+ },
102
+ uniqueItems: true,
103
+ minimum: 2,
104
+ maximum: 2,
105
+ }),
106
+ (0, class_validator_1.IsArray)(),
107
+ (0, class_validator_1.ValidateNested)({ each: true }),
108
+ (0, class_validator_1.ArrayMaxSize)(2),
109
+ (0, class_validator_1.ArrayMinSize)(2),
110
+ (0, class_transformer_1.Type)(() => BasicAuthEntries),
111
+ (0, class_validator_1.ArrayUnique)(o => o.key),
112
+ __metadata("design:type", Array)
113
+ ], BasicAuthSource.prototype, "basic", void 0);
114
+ class ApiKeySource extends UpdateAuth {
115
+ }
116
+ exports.ApiKeySource = ApiKeySource;
117
+ __decorate([
118
+ (0, class_validator_1.IsIn)(['apikey']),
119
+ __metadata("design:type", String)
120
+ ], ApiKeySource.prototype, "type", void 0);
121
+ __decorate([
122
+ (0, swagger_1.ApiProperty)({
123
+ type: 'array',
124
+ items: {
125
+ $ref: (0, swagger_1.getSchemaPath)(UpdateSourceEntry),
126
+ },
127
+ uniqueItems: true,
128
+ minimum: 3,
129
+ }),
130
+ (0, class_validator_1.IsArray)(),
131
+ (0, class_validator_1.ValidateNested)({ each: true }),
132
+ (0, class_transformer_1.Type)(() => UpdateSourceEntry),
133
+ (0, class_validator_1.ArrayUnique)(o => o.key),
134
+ (0, class_validator_1.ArrayMinSize)(3),
135
+ __metadata("design:type", Array)
136
+ ], ApiKeySource.prototype, "apikey", void 0);
137
+ class BearerAuthSource extends UpdateAuth {
138
+ }
139
+ exports.BearerAuthSource = BearerAuthSource;
140
+ __decorate([
141
+ (0, class_validator_1.IsIn)(['bearer']),
142
+ __metadata("design:type", String)
143
+ ], BearerAuthSource.prototype, "type", void 0);
144
+ __decorate([
145
+ (0, swagger_1.ApiProperty)(),
146
+ (0, class_validator_1.IsArray)(),
147
+ (0, class_validator_1.ValidateNested)({ each: true }),
148
+ (0, class_transformer_1.Type)(() => BearerEntry),
149
+ (0, class_validator_1.ArrayMinSize)(1),
150
+ (0, class_validator_1.ArrayMaxSize)(1),
151
+ __metadata("design:type", Array)
152
+ ], BearerAuthSource.prototype, "bearer", void 0);
153
+ class NoAuth extends UpdateAuth {
154
+ }
155
+ exports.NoAuth = NoAuth;
156
+ __decorate([
157
+ (0, class_validator_1.IsIn)(['noauth']),
158
+ __metadata("design:type", String)
159
+ ], NoAuth.prototype, "type", void 0);
160
+ //# sourceMappingURL=common-source-types.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-source-types.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/common-source-types.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAC7D,yDAAyC;AACzC,qDAA+H;AAE/H,MAAa,iBAAiB;CAQ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ACb,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;gDACM;AAG1B,MAAa,MAAO,SAAQ,UAAU;CAGrC;AAHD,wBAGC;AADC;IADC,IAAA,sBAAI,EAAC,CAAC,QAAQ,CAAC,CAAC;;oCACF"}
@@ -0,0 +1,30 @@
1
+ import { EmptyBody, BasicAuthSource, BearerAuthSource, ApiKeySource, NoAuth, UpdateSourceEntry, Body } from './common-source-types.dto';
2
+ export { UpdateSourceNullableEntry, BearerAuthSource, BasicAuthSource, ApiKeySource } from './common-source-types.dto';
3
+ declare class CreateSourceHeadersDto {
4
+ key: string;
5
+ value: string;
6
+ }
7
+ export declare class CreateFormDataEntry extends UpdateSourceEntry {
8
+ type: 'text' | 'file';
9
+ }
10
+ export declare class CreateRawBodySource extends Body {
11
+ mode: 'raw';
12
+ raw: string;
13
+ language?: 'html' | 'xml' | 'text' | 'json' | 'javascript';
14
+ }
15
+ export declare class CreateFormDataBodySource extends Body {
16
+ mode: 'formdata';
17
+ formdata: CreateFormDataEntry[];
18
+ }
19
+ export declare class CreateUrlEncodedBodySource extends Body {
20
+ mode: 'urlencoded';
21
+ urlencoded: UpdateSourceEntry[];
22
+ }
23
+ export declare class CreateSourceFunctionDto {
24
+ url: string;
25
+ method: string;
26
+ headers?: CreateSourceHeadersDto[];
27
+ auth: BasicAuthSource | BearerAuthSource | ApiKeySource | NoAuth;
28
+ body: CreateUrlEncodedBodySource | CreateFormDataBodySource | CreateRawBodySource | EmptyBody;
29
+ }
30
+ //# sourceMappingURL=create-source.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAEN,iBAAiB,EAEjB,IAAI,EACL,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEvH,cAAM,sBAAsB;IAE1B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAoB,SAAQ,iBAAiB;IAGxD,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,mBAAoB,SAAQ,IAAI;IAE3C,IAAI,EAAE,KAAK,CAAC;IAGZ,GAAG,EAAE,MAAM,CAAC;IAIZ,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CAC5D;AAED,qBAAa,wBAAyB,SAAQ,IAAI;IAEhD,IAAI,EAAE,UAAU,CAAC;IAEjB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED,qBAAa,0BAA2B,SAAQ,IAAI;IAElD,IAAI,EAAE,YAAY,CAAC;IAEnB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,qBACa,uBAAuB;IAEhC,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;IAMf,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAyCnC,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAAC;IA4CjE,IAAI,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAAC;CACjG"}
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateSourceFunctionDto = exports.CreateUrlEncodedBodySource = exports.CreateFormDataBodySource = exports.CreateRawBodySource = exports.CreateFormDataEntry = exports.ApiKeySource = exports.BasicAuthSource = exports.BearerAuthSource = exports.UpdateSourceNullableEntry = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const utils_1 = require("../../../utils");
16
+ const swagger_1 = require("@nestjs/swagger");
17
+ const common_source_types_dto_1 = require("./common-source-types.dto");
18
+ var common_source_types_dto_2 = require("./common-source-types.dto");
19
+ Object.defineProperty(exports, "UpdateSourceNullableEntry", { enumerable: true, get: function () { return common_source_types_dto_2.UpdateSourceNullableEntry; } });
20
+ Object.defineProperty(exports, "BearerAuthSource", { enumerable: true, get: function () { return common_source_types_dto_2.BearerAuthSource; } });
21
+ Object.defineProperty(exports, "BasicAuthSource", { enumerable: true, get: function () { return common_source_types_dto_2.BasicAuthSource; } });
22
+ Object.defineProperty(exports, "ApiKeySource", { enumerable: true, get: function () { return common_source_types_dto_2.ApiKeySource; } });
23
+ class CreateSourceHeadersDto {
24
+ }
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], CreateSourceHeadersDto.prototype, "key", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], CreateSourceHeadersDto.prototype, "value", void 0);
33
+ class CreateFormDataEntry extends common_source_types_dto_1.UpdateSourceEntry {
34
+ }
35
+ exports.CreateFormDataEntry = CreateFormDataEntry;
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsEnum)(['text', 'file']),
39
+ __metadata("design:type", String)
40
+ ], CreateFormDataEntry.prototype, "type", void 0);
41
+ class CreateRawBodySource extends common_source_types_dto_1.Body {
42
+ }
43
+ exports.CreateRawBodySource = CreateRawBodySource;
44
+ __decorate([
45
+ (0, class_validator_1.IsIn)(['raw']),
46
+ __metadata("design:type", String)
47
+ ], CreateRawBodySource.prototype, "mode", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ __metadata("design:type", String)
51
+ ], CreateRawBodySource.prototype, "raw", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsEnum)(['html', 'xml', 'text', 'json', 'javascript']),
54
+ (0, class_validator_1.IsOptional)(),
55
+ __metadata("design:type", String)
56
+ ], CreateRawBodySource.prototype, "language", void 0);
57
+ class CreateFormDataBodySource extends common_source_types_dto_1.Body {
58
+ }
59
+ exports.CreateFormDataBodySource = CreateFormDataBodySource;
60
+ __decorate([
61
+ (0, class_validator_1.IsIn)(['formdata']),
62
+ __metadata("design:type", String)
63
+ ], CreateFormDataBodySource.prototype, "mode", void 0);
64
+ class CreateUrlEncodedBodySource extends common_source_types_dto_1.Body {
65
+ }
66
+ exports.CreateUrlEncodedBodySource = CreateUrlEncodedBodySource;
67
+ __decorate([
68
+ (0, class_validator_1.IsIn)(['urlencoded']),
69
+ __metadata("design:type", String)
70
+ ], CreateUrlEncodedBodySource.prototype, "mode", void 0);
71
+ let CreateSourceFunctionDto = exports.CreateSourceFunctionDto = class CreateSourceFunctionDto {
72
+ };
73
+ __decorate([
74
+ (0, class_validator_1.IsString)(),
75
+ __metadata("design:type", String)
76
+ ], CreateSourceFunctionDto.prototype, "url", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsIn)(utils_1.HTTP_METHODS),
79
+ __metadata("design:type", String)
80
+ ], CreateSourceFunctionDto.prototype, "method", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsArray)(),
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.ValidateNested)(),
85
+ (0, class_transformer_1.Type)(() => CreateSourceHeadersDto),
86
+ __metadata("design:type", Array)
87
+ ], CreateSourceFunctionDto.prototype, "headers", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ name: 'auth',
91
+ oneOf: [
92
+ {
93
+ $ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BasicAuthSource),
94
+ }, {
95
+ $ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.BearerAuthSource),
96
+ },
97
+ {
98
+ $ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.ApiKeySource),
99
+ },
100
+ {
101
+ $ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.NoAuth),
102
+ },
103
+ ],
104
+ }),
105
+ (0, class_validator_1.IsObject)(),
106
+ (0, class_validator_1.ValidateNested)(),
107
+ (0, class_transformer_1.Type)(() => common_source_types_dto_1.UpdateAuth, {
108
+ keepDiscriminatorProperty: true,
109
+ discriminator: {
110
+ property: 'type',
111
+ subTypes: [
112
+ {
113
+ value: common_source_types_dto_1.BasicAuthSource,
114
+ name: 'basic',
115
+ }, {
116
+ value: common_source_types_dto_1.BearerAuthSource,
117
+ name: 'bearer',
118
+ }, {
119
+ value: common_source_types_dto_1.ApiKeySource,
120
+ name: 'apikey',
121
+ }, {
122
+ value: common_source_types_dto_1.NoAuth,
123
+ name: 'noauth',
124
+ },
125
+ ],
126
+ },
127
+ }),
128
+ __metadata("design:type", Object)
129
+ ], CreateSourceFunctionDto.prototype, "auth", void 0);
130
+ __decorate([
131
+ (0, swagger_1.ApiProperty)({
132
+ name: 'body',
133
+ oneOf: [
134
+ {
135
+ $ref: (0, swagger_1.getSchemaPath)(CreateUrlEncodedBodySource),
136
+ }, {
137
+ $ref: (0, swagger_1.getSchemaPath)(CreateFormDataBodySource),
138
+ },
139
+ {
140
+ $ref: (0, swagger_1.getSchemaPath)(CreateRawBodySource),
141
+ },
142
+ {
143
+ $ref: (0, swagger_1.getSchemaPath)(common_source_types_dto_1.EmptyBody),
144
+ },
145
+ ],
146
+ }),
147
+ (0, class_validator_1.IsObject)(),
148
+ (0, class_validator_1.ValidateNested)(),
149
+ (0, class_transformer_1.Type)(() => common_source_types_dto_1.Body, {
150
+ keepDiscriminatorProperty: true,
151
+ discriminator: {
152
+ property: 'mode',
153
+ subTypes: [
154
+ {
155
+ value: CreateUrlEncodedBodySource,
156
+ name: 'urlencoded',
157
+ }, {
158
+ value: CreateFormDataBodySource,
159
+ name: 'formdata',
160
+ }, {
161
+ value: CreateRawBodySource,
162
+ name: 'raw',
163
+ }, {
164
+ value: common_source_types_dto_1.EmptyBody,
165
+ name: 'empty',
166
+ }, {
167
+ value: common_source_types_dto_1.NoAuth,
168
+ name: 'noauth',
169
+ },
170
+ ],
171
+ },
172
+ }),
173
+ __metadata("design:type", Object)
174
+ ], CreateSourceFunctionDto.prototype, "body", void 0);
175
+ exports.CreateSourceFunctionDto = CreateSourceFunctionDto = __decorate([
176
+ (0, swagger_1.ApiExtraModels)(CreateUrlEncodedBodySource, CreateFormDataBodySource, CreateRawBodySource, common_source_types_dto_1.BasicAuthSource, common_source_types_dto_1.BearerAuthSource, common_source_types_dto_1.ApiKeySource, common_source_types_dto_1.NoAuth, common_source_types_dto_1.BasicAuthEntries, common_source_types_dto_1.UpdateSourceEntry)
177
+ ], CreateSourceFunctionDto);
178
+ //# sourceMappingURL=create-source.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-source.dto.js","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/create-source.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwG;AACxG,yDAAyC;AACzC,0CAA8C;AAC9C,6CAA6E;AAE7E,uEAUmC;AAEnC,q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I,EAAE;QAChB,yBAAyB,EAAE,IAAI;QAC/B,aAAa,EAAE;YACb,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,0BAA0B;oBACjC,IAAI,EAAE,YAAY;iBACnB,EAAE;oBACD,KAAK,EAAE,wBAAwB;oBAC/B,IAAI,EAAE,UAAU;iBACjB,EAAE;oBACD,KAAK,EAAE,mBAAmB;oBAC1B,IAAI,EAAE,KAAK;iBACZ,EAAE;oBACD,KAAK,EAAE,mCAAS;oBAChB,IAAI,EAAE,OAAO;iBACd,EAAE;oBACD,KAAK,EAAE,gCAAM;oBACb,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF,CAAC;;qDAC4F;kCAhGrF,uBAAuB;IADnC,IAAA,wBAAc,EAAC,0BAA0B,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,yCAAe,EAAE,0CAAgB,EAAE,sCAAY,EAAE,gCAAM,EAAE,0CAAgB,EAAE,2CAAiB,CAAC;GAC3K,uBAAuB,CAiGnC"}
@@ -0,0 +1,21 @@
1
+ import { EmptyBody, BasicAuthSource, BearerAuthSource, ApiKeySource, NoAuth, Body } from './common-source-types.dto';
2
+ export declare class UpdateRawBodySource extends Body {
3
+ mode: 'raw';
4
+ raw: Record<string, any>;
5
+ }
6
+ export declare class UpdateUrlEncodedBodySource extends Body {
7
+ mode: 'urlencoded';
8
+ urlencoded: Record<string, string | null>;
9
+ }
10
+ export declare class UpdateFormDataBodySource extends Body {
11
+ mode: 'formdata';
12
+ formdata: Record<string, string | null>;
13
+ }
14
+ export declare class UpdateSourceFunctionDto {
15
+ url?: string;
16
+ method?: string;
17
+ headers?: Record<string, string | null>;
18
+ auth?: BasicAuthSource | BearerAuthSource | ApiKeySource | NoAuth;
19
+ body?: UpdateUrlEncodedBodySource | UpdateFormDataBodySource | UpdateRawBodySource | EmptyBody;
20
+ }
21
+ //# sourceMappingURL=update-source.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-source.dto.d.ts","sourceRoot":"","sources":["../../../../../../../../model/src/dto/function/types/source/update-source.dto.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,MAAM,EAEN,IAAI,EACL,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,mBAAoB,SAAQ,IAAI;IAE3C,IAAI,EAAE,KAAK,CAAC;IAIZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC1B;AAED,qBAAa,0BAA2B,SAAQ,IAAI;IAElD,IAAI,EAAE,YAAY,CAAC;IAanB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3C;AAED,qBAAa,wBAAyB,SAAQ,IAAI;IAEhD,IAAI,EAAE,UAAU,CAAC;IAajB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACzC;AAED,qBACa,uBAAuB;IAGhC,GAAG,CAAC,EAAE,MAAM,CAAC;IAIb,MAAM,CAAC,EAAE,MAAM,CAAC;IAqBhB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IA2CxC,IAAI,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,GAAG,MAAM,CAAC;IA8ClE,IAAI,CAAC,EAAE,0BAA0B,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAAC;CAClG"}