polyapi 0.10.5 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) 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/model/generate.d.ts +2 -0
  8. package/build/client/src/commands/model/generate.d.ts.map +1 -0
  9. package/build/client/src/commands/model/generate.js +96 -0
  10. package/build/client/src/commands/model/generate.js.map +1 -0
  11. package/build/client/src/commands/model/index.d.ts +4 -0
  12. package/build/client/src/commands/model/index.d.ts.map +1 -0
  13. package/build/client/src/commands/model/index.js +20 -0
  14. package/build/client/src/commands/model/index.js.map +1 -0
  15. package/build/client/src/commands/model/train.d.ts +2 -0
  16. package/build/client/src/commands/model/train.d.ts.map +1 -0
  17. package/build/client/src/commands/model/train.js +65 -0
  18. package/build/client/src/commands/model/train.js.map +1 -0
  19. package/build/client/src/commands/model/validate.d.ts +2 -0
  20. package/build/client/src/commands/model/validate.d.ts.map +1 -0
  21. package/build/client/src/commands/model/validate.js +42 -0
  22. package/build/client/src/commands/model/validate.js.map +1 -0
  23. package/build/common/src/constants.d.ts +9 -0
  24. package/build/common/src/constants.d.ts.map +1 -0
  25. package/build/common/src/constants.js +12 -0
  26. package/build/common/src/constants.js.map +1 -0
  27. package/build/common/src/json-schema.d.ts +3 -0
  28. package/build/common/src/json-schema.d.ts.map +1 -0
  29. package/build/common/src/json-schema.js +26 -0
  30. package/build/common/src/json-schema.js.map +1 -0
  31. package/build/common/src/utils.d.ts +0 -7
  32. package/build/common/src/utils.d.ts.map +1 -1
  33. package/build/common/src/utils.js +6 -12
  34. package/build/common/src/utils.js.map +1 -1
  35. package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts +5 -0
  36. package/build/model/src/dto/config-variable/config-variable-name.dto.d.ts.map +1 -0
  37. package/build/model/src/dto/config-variable/config-variable-name.dto.js +22 -0
  38. package/build/model/src/dto/config-variable/config-variable-name.dto.js.map +1 -0
  39. package/build/model/src/dto/config-variable/index.d.ts +1 -0
  40. package/build/model/src/dto/config-variable/index.d.ts.map +1 -1
  41. package/build/model/src/dto/config-variable/index.js +1 -0
  42. package/build/model/src/dto/config-variable/index.js.map +1 -1
  43. package/build/model/src/dto/function/api-function-translation.dto.d.ts +6 -0
  44. package/build/model/src/dto/function/api-function-translation.dto.d.ts.map +1 -0
  45. package/build/model/src/dto/function/api-function-translation.dto.js +3 -0
  46. package/build/model/src/dto/function/api-function-translation.dto.js.map +1 -0
  47. package/build/model/src/dto/function/create-api-function.dto.d.ts +24 -21
  48. package/build/model/src/dto/function/create-api-function.dto.d.ts.map +1 -1
  49. package/build/model/src/dto/function/create-api-function.dto.js +102 -15
  50. package/build/model/src/dto/function/create-api-function.dto.js.map +1 -1
  51. package/build/model/src/dto/function/create-api-functions.dto.d.ts +5 -0
  52. package/build/model/src/dto/function/create-api-functions.dto.d.ts.map +1 -0
  53. package/build/model/src/dto/function/create-api-functions.dto.js +25 -0
  54. package/build/model/src/dto/function/create-api-functions.dto.js.map +1 -0
  55. package/build/model/src/dto/function/index.d.ts +6 -1
  56. package/build/model/src/dto/function/index.d.ts.map +1 -1
  57. package/build/model/src/dto/function/index.js +6 -1
  58. package/build/model/src/dto/function/index.js.map +1 -1
  59. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts +24 -0
  60. package/build/model/src/dto/function/postman-api-function-training.dto.d.ts.map +1 -0
  61. package/build/model/src/dto/function/postman-api-function-training.dto.js +58 -0
  62. package/build/model/src/dto/function/postman-api-function-training.dto.js.map +1 -0
  63. package/build/model/src/dto/function/rendered-spec.dto.d.ts +7 -0
  64. package/build/model/src/dto/function/rendered-spec.dto.d.ts.map +1 -0
  65. package/build/model/src/dto/function/rendered-spec.dto.js +37 -0
  66. package/build/model/src/dto/function/rendered-spec.dto.js.map +1 -0
  67. package/build/model/src/dto/function/translate-query-params.dto.d.ts +4 -0
  68. package/build/model/src/dto/function/translate-query-params.dto.d.ts.map +1 -0
  69. package/build/model/src/dto/function/translate-query-params.dto.js +22 -0
  70. package/build/model/src/dto/function/translate-query-params.dto.js.map +1 -0
  71. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts +42 -0
  72. package/build/model/src/dto/function/types/source/common-source-types.dto.d.ts.map +1 -0
  73. package/build/model/src/dto/function/types/source/common-source-types.dto.js +160 -0
  74. package/build/model/src/dto/function/types/source/common-source-types.dto.js.map +1 -0
  75. package/build/model/src/dto/function/types/source/create-source.dto.d.ts +30 -0
  76. package/build/model/src/dto/function/types/source/create-source.dto.d.ts.map +1 -0
  77. package/build/model/src/dto/function/types/source/create-source.dto.js +178 -0
  78. package/build/model/src/dto/function/types/source/create-source.dto.js.map +1 -0
  79. package/build/model/src/dto/function/types/source/update-source.dto.d.ts +21 -0
  80. package/build/model/src/dto/function/types/source/update-source.dto.d.ts.map +1 -0
  81. package/build/model/src/dto/function/types/source/update-source.dto.js +201 -0
  82. package/build/model/src/dto/function/types/source/update-source.dto.js.map +1 -0
  83. package/build/model/src/dto/function/update-api-function.dto.d.ts +3 -3
  84. package/build/model/src/dto/function/update-api-function.dto.d.ts.map +1 -1
  85. package/build/model/src/dto/function/update-api-function.dto.js +5 -5
  86. package/build/model/src/dto/function/update-api-function.dto.js.map +1 -1
  87. package/build/model/src/dto/gptplugin/whoami.dto.d.ts.map +1 -1
  88. package/build/model/src/dto/gptplugin/whoami.dto.js +3 -1
  89. package/build/model/src/dto/gptplugin/whoami.dto.js.map +1 -1
  90. package/build/model/src/dto/job/execution.dto.d.ts.map +1 -1
  91. package/build/model/src/dto/tenant/index.d.ts +2 -0
  92. package/build/model/src/dto/tenant/index.d.ts.map +1 -1
  93. package/build/model/src/dto/tenant/index.js +2 -0
  94. package/build/model/src/dto/tenant/index.js.map +1 -1
  95. package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts +6 -0
  96. package/build/model/src/dto/tenant/tenant-config-variable.dto.d.ts.map +1 -0
  97. package/build/model/src/dto/tenant/tenant-config-variable.dto.js +26 -0
  98. package/build/model/src/dto/tenant/tenant-config-variable.dto.js.map +1 -0
  99. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts +7 -0
  100. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.d.ts.map +1 -0
  101. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js +30 -0
  102. package/build/model/src/dto/tenant/tenant-environment-config-variable.dto.js.map +1 -0
  103. package/build/model/src/dto/trigger/trigger-response.dto.d.ts +6 -4
  104. package/build/model/src/dto/trigger/trigger-response.dto.d.ts.map +1 -1
  105. package/build/model/src/dto/trigger/trigger-response.dto.js +2 -0
  106. package/build/model/src/dto/trigger/trigger-response.dto.js.map +1 -1
  107. package/build/model/src/dto/validators/index.d.ts +1 -0
  108. package/build/model/src/dto/validators/index.d.ts.map +1 -1
  109. package/build/model/src/dto/validators/index.js +1 -0
  110. package/build/model/src/dto/validators/index.js.map +1 -1
  111. package/build/model/src/dto/validators/json-schema.d.ts +7 -0
  112. package/build/model/src/dto/validators/json-schema.d.ts.map +1 -0
  113. package/build/model/src/dto/validators/json-schema.js +41 -0
  114. package/build/model/src/dto/validators/json-schema.js.map +1 -0
  115. package/build/model/src/function.d.ts +2 -2
  116. package/build/model/src/function.d.ts.map +1 -1
  117. package/build/tsconfig.build.tsbuildinfo +1 -1
  118. package/package.json +2 -1
  119. package/build/model/src/dto/function/types/update-source.d.ts +0 -57
  120. package/build/model/src/dto/function/types/update-source.d.ts.map +0 -1
  121. package/build/model/src/dto/function/types/update-source.js +0 -356
  122. package/build/model/src/dto/function/types/update-source.js.map +0 -1
@@ -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.ConfigVariableNameDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const value_types_1 = require("./value-types");
15
+ class ConfigVariableNameDto {
16
+ }
17
+ exports.ConfigVariableNameDto = ConfigVariableNameDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(value_types_1.ConfigVariableName),
20
+ __metadata("design:type", String)
21
+ ], ConfigVariableNameDto.prototype, "name", void 0);
22
+ //# sourceMappingURL=config-variable-name.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-variable-name.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/config-variable/config-variable-name.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,+CAAmD;AAEnD,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AADG;IADC,IAAA,wBAAM,EAAC,gCAAkB,CAAC;;mDACF"}
@@ -2,4 +2,5 @@ export * from './set-config-variable.dto';
2
2
  export * from './config-variable.dto';
3
3
  export * from './value-types';
4
4
  export * from './validator';
5
+ export * from './config-variable-name.dto';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/config-variable/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/config-variable/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC"}
@@ -18,4 +18,5 @@ __exportStar(require("./set-config-variable.dto"), exports);
18
18
  __exportStar(require("./config-variable.dto"), exports);
19
19
  __exportStar(require("./value-types"), exports);
20
20
  __exportStar(require("./validator"), exports);
21
+ __exportStar(require("./config-variable-name.dto"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/config-variable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,wDAAsC;AACtC,gDAA8B;AAC9B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/config-variable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,wDAAsC;AACtC,gDAA8B;AAC9B,8CAA4B;AAC5B,6DAA2C"}
@@ -0,0 +1,6 @@
1
+ import { CreateApiFunctionDto } from './create-api-function.dto';
2
+ export type ApiFunctionTranslationDto = {
3
+ title: string;
4
+ functions: CreateApiFunctionDto[];
5
+ };
6
+ //# sourceMappingURL=api-function-translation.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-function-translation.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/api-function-translation.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,MAAM,yBAAyB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,oBAAoB,EAAE,CAAA;CACpC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-function-translation.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-function-translation.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/api-function-translation.dto.ts"],"names":[],"mappings":""}
@@ -1,24 +1,27 @@
1
- import { IntrospectionQuery } from 'graphql';
2
- import { Body, Variables, Header, Method } from '../../function';
3
- import { Auth } from '../../auth';
4
- export declare class CreateApiFunctionDto {
5
- requestName: string;
6
- name?: string;
7
- context?: string;
1
+ import { Visibility } from '../../specs';
2
+ import { CreateSourceFunctionDto } from './types/source/create-source.dto';
3
+ export * from './types/source/create-source.dto';
4
+ export declare class ArgumentsMetadataDto {
5
+ name: string;
8
6
  description?: string;
9
- payload?: string;
10
- url: string;
11
- body: Body;
12
- response: any;
13
- variables?: Variables;
14
- statusCode: number;
15
- templateHeaders: Header[];
16
- templateAuth?: Auth;
17
- method: Method;
18
- templateUrl: string;
19
- templateBody: Body;
20
- id?: string;
21
- introspectionResponse: IntrospectionQuery | null;
22
- enabledRedirect: boolean;
7
+ required?: boolean;
8
+ secure?: boolean;
9
+ type?: string;
10
+ typeSchema?: Record<string, unknown>;
11
+ typeObject?: object;
12
+ payload?: boolean;
13
+ variable?: string | null;
14
+ removeIfNotPresentOnExecute?: boolean;
15
+ }
16
+ export declare class CreateApiFunctionDto {
17
+ name: string;
18
+ context: string;
19
+ description: string;
20
+ arguments?: ArgumentsMetadataDto[];
21
+ visibility?: Visibility;
22
+ source: CreateSourceFunctionDto;
23
+ enabledRedirect?: boolean;
24
+ returnType?: string;
25
+ returnTypeSchema?: Record<string, unknown>;
23
26
  }
24
27
  //# sourceMappingURL=create-api-function.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-function.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-function.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;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,qBAAa,oBAAoB;IAG/B,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,IAAI,CAAC;IACpB,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
+ {"version":3,"file":"create-api-function.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-function.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,cAAc,kCAAkC,CAAC;AAEjD,qBAAa,oBAAoB;IAE7B,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,MAAM,CAAC,EAAE,OAAO,CAAC;IAIjB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,qBAAa,oBAAoB;IAI/B,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IASpB,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAKnC,UAAU,CAAC,EAAE,UAAU,CAAC;IAQxB,MAAM,EAAE,uBAAuB,CAAC;IAIhC,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C"}
@@ -1,58 +1,145 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
2
13
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
14
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
15
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
16
  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
17
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
18
  };
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
8
22
  var __metadata = (this && this.__metadata) || function (k, v) {
9
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
24
  };
11
25
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateApiFunctionDto = void 0;
26
+ exports.CreateApiFunctionDto = exports.ArgumentsMetadataDto = void 0;
13
27
  const class_validator_1 = require("class-validator");
14
- const validators_1 = require("./../validators");
15
- class CreateApiFunctionDto {
28
+ const class_transformer_1 = require("class-transformer");
29
+ const validators_1 = require("../validators");
30
+ const specs_1 = require("../../specs");
31
+ const swagger_1 = require("@nestjs/swagger");
32
+ const create_source_dto_1 = require("./types/source/create-source.dto");
33
+ __exportStar(require("./types/source/create-source.dto"), exports);
34
+ class ArgumentsMetadataDto {
16
35
  }
17
- exports.CreateApiFunctionDto = CreateApiFunctionDto;
36
+ exports.ArgumentsMetadataDto = ArgumentsMetadataDto;
18
37
  __decorate([
19
38
  (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], ArgumentsMetadataDto.prototype, "name", void 0);
41
+ __decorate([
20
42
  (0, class_validator_1.IsOptional)(),
43
+ (0, class_validator_1.IsString)(),
21
44
  __metadata("design:type", String)
22
- ], CreateApiFunctionDto.prototype, "requestName", void 0);
45
+ ], ArgumentsMetadataDto.prototype, "description", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsBoolean)(),
49
+ __metadata("design:type", Boolean)
50
+ ], ArgumentsMetadataDto.prototype, "required", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsBoolean)(),
54
+ __metadata("design:type", Boolean)
55
+ ], ArgumentsMetadataDto.prototype, "secure", void 0);
23
56
  __decorate([
24
57
  (0, class_validator_1.IsOptional)(),
25
58
  (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.Validate)(validators_1.NameIdentifier),
27
59
  __metadata("design:type", String)
28
- ], CreateApiFunctionDto.prototype, "name", void 0);
60
+ ], ArgumentsMetadataDto.prototype, "type", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, validators_1.IsJsonSchema)(),
64
+ __metadata("design:type", Object)
65
+ ], ArgumentsMetadataDto.prototype, "typeSchema", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.IsObject)(),
69
+ __metadata("design:type", Object)
70
+ ], ArgumentsMetadataDto.prototype, "typeObject", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_validator_1.IsString)(),
74
+ __metadata("design:type", Boolean)
75
+ ], ArgumentsMetadataDto.prototype, "payload", void 0);
29
76
  __decorate([
30
77
  (0, class_validator_1.IsOptional)(),
31
78
  (0, class_validator_1.IsString)(),
32
- (0, class_validator_1.Validate)(validators_1.ContextIdentifier),
33
79
  __metadata("design:type", String)
34
- ], CreateApiFunctionDto.prototype, "context", void 0);
80
+ ], ArgumentsMetadataDto.prototype, "variable", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_validator_1.IsBoolean)(),
84
+ __metadata("design:type", Boolean)
85
+ ], ArgumentsMetadataDto.prototype, "removeIfNotPresentOnExecute", void 0);
86
+ class CreateApiFunctionDto {
87
+ }
88
+ exports.CreateApiFunctionDto = CreateApiFunctionDto;
35
89
  __decorate([
90
+ (0, class_validator_1.IsString)(),
36
91
  (0, class_validator_1.IsNotEmpty)(),
92
+ (0, class_validator_1.Validate)(validators_1.NameIdentifier),
37
93
  __metadata("design:type", String)
38
- ], CreateApiFunctionDto.prototype, "url", void 0);
94
+ ], CreateApiFunctionDto.prototype, "name", void 0);
39
95
  __decorate([
96
+ (0, class_validator_1.IsString)(),
40
97
  (0, class_validator_1.IsNotEmpty)(),
98
+ (0, class_validator_1.Validate)(validators_1.ContextIdentifier),
99
+ __metadata("design:type", String)
100
+ ], CreateApiFunctionDto.prototype, "context", void 0);
101
+ __decorate([
102
+ (0, class_validator_1.IsString)(),
41
103
  __metadata("design:type", String)
42
- ], CreateApiFunctionDto.prototype, "templateUrl", void 0);
104
+ ], CreateApiFunctionDto.prototype, "description", void 0);
105
+ __decorate([
106
+ (0, class_validator_1.IsArray)(),
107
+ (0, class_validator_1.IsOptional)(),
108
+ (0, class_validator_1.ArrayUnique)((argument) => argument.name, {
109
+ message: ' All "$property" names should be unique.',
110
+ }),
111
+ (0, class_validator_1.ValidateNested)({ each: true }),
112
+ (0, class_transformer_1.Type)(() => ArgumentsMetadataDto),
113
+ __metadata("design:type", Array)
114
+ ], CreateApiFunctionDto.prototype, "arguments", void 0);
43
115
  __decorate([
44
116
  (0, class_validator_1.IsOptional)(),
45
117
  (0, class_validator_1.IsString)(),
118
+ (0, class_validator_1.IsEnum)(specs_1.Visibility),
46
119
  __metadata("design:type", String)
47
- ], CreateApiFunctionDto.prototype, "id", void 0);
120
+ ], CreateApiFunctionDto.prototype, "visibility", void 0);
48
121
  __decorate([
49
- (0, class_validator_1.IsOptional)(),
122
+ (0, swagger_1.ApiProperty)({
123
+ type: () => create_source_dto_1.CreateSourceFunctionDto,
124
+ }),
50
125
  (0, class_validator_1.IsObject)(),
51
- __metadata("design:type", Object)
52
- ], CreateApiFunctionDto.prototype, "introspectionResponse", void 0);
126
+ (0, class_validator_1.ValidateNested)(),
127
+ (0, class_transformer_1.Type)(() => create_source_dto_1.CreateSourceFunctionDto),
128
+ __metadata("design:type", create_source_dto_1.CreateSourceFunctionDto)
129
+ ], CreateApiFunctionDto.prototype, "source", void 0);
53
130
  __decorate([
54
131
  (0, class_validator_1.IsOptional)(),
55
132
  (0, class_validator_1.IsBoolean)(),
56
133
  __metadata("design:type", Boolean)
57
134
  ], CreateApiFunctionDto.prototype, "enabledRedirect", void 0);
135
+ __decorate([
136
+ (0, class_validator_1.IsOptional)(),
137
+ (0, class_validator_1.IsString)(),
138
+ __metadata("design:type", String)
139
+ ], CreateApiFunctionDto.prototype, "returnType", void 0);
140
+ __decorate([
141
+ (0, class_validator_1.IsOptional)(),
142
+ (0, validators_1.IsJsonSchema)(),
143
+ __metadata("design:type", Object)
144
+ ], CreateApiFunctionDto.prototype, "returnTypeSchema", void 0);
58
145
  //# sourceMappingURL=create-api-function.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-function.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-function.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,qDAAkG;AAElG,gDAAoE;AAEpE,MAAa,oBAAoB;CA0ChC;AA1CD,oDA0CC;AAvCC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACO;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAQ,EAAC,2BAAc,CAAC;;kDACX;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAQ,EAAC,8BAAiB,CAAC;;qDACX;AAKjB;IADC,IAAA,4BAAU,GAAE;;iDACD;AAUZ;IADC,IAAA,4BAAU,GAAE;;yDACO;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACsC;AAIjD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DACa"}
1
+ {"version":3,"file":"create-api-function.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-function.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAgJ;AAChJ,yDAAyC;AACzC,8CAAgF;AAChF,uCAAyC;AAEzC,6CAA8C;AAE9C,wEAA2E;AAC3E,mEAAiD;AAEjD,MAAa,oBAAoB;CAuChC;AAvCD,oDAuCC;AArCG;IADC,IAAA,0BAAQ,GAAE;;kDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACO;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;oDACK;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAY,GAAE;;wDACsB;AAIrC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yEAC0B;AAG1C,MAAa,oBAAoB;CA+ChC;AA/CD,oDA+CC;AA3CC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,2BAAc,CAAC;;kDACZ;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,8BAAiB,CAAC;;qDACZ;AAGhB;IADC,IAAA,0BAAQ,GAAE;;yDACS;AASpB;IAPC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAW,EAAuB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC9D,OAAO,EAAE,0CAA0C;KACpD,CAAC;IACD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;;uDACE;AAKnC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,kBAAU,CAAC;;wDACK;AAQxB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,2CAAuB;KACpC,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAuB,CAAC;8BAC5B,2CAAuB;oDAAC;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;6DACc;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAY,GAAE;;8DAC4B"}
@@ -0,0 +1,5 @@
1
+ import { CreateApiFunctionDto } from './create-api-function.dto';
2
+ export declare class CreateApiFunctionsDto {
3
+ functions: CreateApiFunctionDto[];
4
+ }
5
+ //# sourceMappingURL=create-api-functions.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api-functions.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-functions.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,qBAAa,qBAAqB;IAI9B,SAAS,EAAE,oBAAoB,EAAE,CAAC;CACrC"}
@@ -0,0 +1,25 @@
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.CreateApiFunctionsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const create_api_function_dto_1 = require("./create-api-function.dto");
15
+ const class_transformer_1 = require("class-transformer");
16
+ class CreateApiFunctionsDto {
17
+ }
18
+ exports.CreateApiFunctionsDto = CreateApiFunctionsDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsArray)(),
21
+ (0, class_validator_1.ValidateNested)({ each: true }),
22
+ (0, class_transformer_1.Type)(() => create_api_function_dto_1.CreateApiFunctionDto),
23
+ __metadata("design:type", Array)
24
+ ], CreateApiFunctionsDto.prototype, "functions", void 0);
25
+ //# sourceMappingURL=create-api-functions.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-api-functions.dto.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/create-api-functions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0D;AAC1D,uEAAiE;AACjE,yDAAyC;AAEzC,MAAa,qBAAqB;CAKjC;AALD,sDAKC;AADG;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8CAAoB,CAAC;;wDACC"}
@@ -1,6 +1,7 @@
1
1
  export * from './function.dto';
2
+ export * from './rendered-spec.dto';
2
3
  export * from './execute-api-function.dto';
3
- export * from './create-api-function.dto';
4
+ export * from './postman-api-function-training.dto';
4
5
  export * from './update-api-function.dto';
5
6
  export * from './update-custom-function.dto';
6
7
  export * from './delete-all-functions.dto';
@@ -10,4 +11,8 @@ export * from './auth-function-event-handler.dto';
10
11
  export * from './execute-custom-function.dto';
11
12
  export * from './prebuilt-base-image-options';
12
13
  export * from './server-fuction-logs.query';
14
+ export * from './create-api-function.dto';
15
+ export * from './create-api-functions.dto';
16
+ export * from './api-function-translation.dto';
17
+ export * from './translate-query-params.dto';
13
18
  //# sourceMappingURL=index.d.ts.map
@@ -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,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,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"}
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,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,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC"}
@@ -15,8 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./function.dto"), exports);
18
+ __exportStar(require("./rendered-spec.dto"), exports);
18
19
  __exportStar(require("./execute-api-function.dto"), exports);
19
- __exportStar(require("./create-api-function.dto"), exports);
20
+ __exportStar(require("./postman-api-function-training.dto"), exports);
20
21
  __exportStar(require("./update-api-function.dto"), exports);
21
22
  __exportStar(require("./update-custom-function.dto"), exports);
22
23
  __exportStar(require("./delete-all-functions.dto"), exports);
@@ -26,4 +27,8 @@ __exportStar(require("./auth-function-event-handler.dto"), exports);
26
27
  __exportStar(require("./execute-custom-function.dto"), exports);
27
28
  __exportStar(require("./prebuilt-base-image-options"), exports);
28
29
  __exportStar(require("./server-fuction-logs.query"), exports);
30
+ __exportStar(require("./create-api-function.dto"), exports);
31
+ __exportStar(require("./create-api-functions.dto"), exports);
32
+ __exportStar(require("./api-function-translation.dto"), exports);
33
+ __exportStar(require("./translate-query-params.dto"), exports);
29
34
  //# 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,6DAA2C;AAC3C,4DAA0C;AAC1C,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../model/src/dto/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,6DAA2C;AAC3C,sEAAoD;AACpD,4DAA0C;AAC1C,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C"}
@@ -0,0 +1,24 @@
1
+ import { IntrospectionQuery } from 'graphql';
2
+ import { Body, Variables, Header, Method } from '../../function';
3
+ import { Auth } from '../../auth';
4
+ export declare class PostmanApiFunctionTrainingDto {
5
+ requestName: string;
6
+ name?: string;
7
+ context?: string;
8
+ description?: string;
9
+ payload?: string;
10
+ url: string;
11
+ body: Body;
12
+ response: any;
13
+ variables?: Variables;
14
+ statusCode: number;
15
+ templateHeaders: Header[];
16
+ templateAuth?: Auth;
17
+ method: Method;
18
+ templateUrl: string;
19
+ templateBody: Body;
20
+ id?: string;
21
+ introspectionResponse: IntrospectionQuery | null;
22
+ enabledRedirect: boolean;
23
+ }
24
+ //# sourceMappingURL=postman-api-function-training.dto.d.ts.map
@@ -0,0 +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;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,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,IAAI,CAAC;IACpB,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"}
@@ -0,0 +1,58 @@
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.PostmanApiFunctionTrainingDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const validators_1 = require("../validators");
15
+ class PostmanApiFunctionTrainingDto {
16
+ }
17
+ exports.PostmanApiFunctionTrainingDto = PostmanApiFunctionTrainingDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ __metadata("design:type", String)
22
+ ], PostmanApiFunctionTrainingDto.prototype, "requestName", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.Validate)(validators_1.NameIdentifier),
27
+ __metadata("design:type", String)
28
+ ], PostmanApiFunctionTrainingDto.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.Validate)(validators_1.ContextIdentifier),
33
+ __metadata("design:type", String)
34
+ ], PostmanApiFunctionTrainingDto.prototype, "context", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ __metadata("design:type", String)
38
+ ], PostmanApiFunctionTrainingDto.prototype, "url", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ __metadata("design:type", String)
42
+ ], PostmanApiFunctionTrainingDto.prototype, "templateUrl", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsString)(),
46
+ __metadata("design:type", String)
47
+ ], PostmanApiFunctionTrainingDto.prototype, "id", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsObject)(),
51
+ __metadata("design:type", Object)
52
+ ], PostmanApiFunctionTrainingDto.prototype, "introspectionResponse", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsBoolean)(),
56
+ __metadata("design:type", Boolean)
57
+ ], PostmanApiFunctionTrainingDto.prototype, "enabledRedirect", void 0);
58
+ //# sourceMappingURL=postman-api-function-training.dto.js.map
@@ -0,0 +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":";;;;;;;;;;;;AAGA,qDAAkG;AAElG,8CAAkE;AAElE,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,0BAAQ,EAAC,2BAAc,CAAC;;2DACX;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAQ,EAAC,8BAAiB,CAAC;;8DACX;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"}
@@ -0,0 +1,7 @@
1
+ export declare class CreateRenderedSpecDto {
2
+ language: string;
3
+ apiFunctionId: string;
4
+ typedefs: string;
5
+ signature: string;
6
+ }
7
+ //# sourceMappingURL=rendered-spec.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendered-spec.dto.d.ts","sourceRoot":"","sources":["../../../../../../model/src/dto/function/rendered-spec.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAGhC,QAAQ,EAAE,MAAM,CAAC;IAKjB,aAAa,EAAE,MAAM,CAAC;IAItB,QAAQ,EAAE,MAAM,CAAC;IAIjB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -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