openapi-resource-converter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/README.md +170 -0
  2. package/dist/converter/constant/convert-type.js +19 -0
  3. package/dist/converter/constant/convert-type.js.map +1 -0
  4. package/dist/converter/constant/i-convert-output.js +3 -0
  5. package/dist/converter/constant/i-convert-output.js.map +1 -0
  6. package/dist/converter/i-openapi-converter.js +3 -0
  7. package/dist/converter/i-openapi-converter.js.map +1 -0
  8. package/dist/converter/postman/postman-collection-converter.js +210 -0
  9. package/dist/converter/postman/postman-collection-converter.js.map +1 -0
  10. package/dist/converter/postman/postman-command-builder.js +73 -0
  11. package/dist/converter/postman/postman-command-builder.js.map +1 -0
  12. package/dist/converter/postman/postman-convert-configures.js +81 -0
  13. package/dist/converter/postman/postman-convert-configures.js.map +1 -0
  14. package/dist/index.js +36 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/parser/component-parser.js +96 -0
  17. package/dist/parser/component-parser.js.map +1 -0
  18. package/dist/parser/field-parser.js +6 -0
  19. package/dist/parser/field-parser.js.map +1 -0
  20. package/dist/parser/open-api-parser.js +136 -0
  21. package/dist/parser/open-api-parser.js.map +1 -0
  22. package/dist/parser/parameters-parser.js +42 -0
  23. package/dist/parser/parameters-parser.js.map +1 -0
  24. package/dist/parser/postman-config-parser.js +195 -0
  25. package/dist/parser/postman-config-parser.js.map +1 -0
  26. package/dist/parser/request-body-parser.js +73 -0
  27. package/dist/parser/request-body-parser.js.map +1 -0
  28. package/dist/type/open-api/api-specification.js +79 -0
  29. package/dist/type/open-api/api-specification.js.map +1 -0
  30. package/dist/type/open-api/constant/content-type.js +9 -0
  31. package/dist/type/open-api/constant/content-type.js.map +1 -0
  32. package/dist/type/open-api/constant/data-format.js +36 -0
  33. package/dist/type/open-api/constant/data-format.js.map +1 -0
  34. package/dist/type/open-api/constant/data-type.js +44 -0
  35. package/dist/type/open-api/constant/data-type.js.map +1 -0
  36. package/dist/type/open-api/constant/http-method.js +45 -0
  37. package/dist/type/open-api/constant/http-method.js.map +1 -0
  38. package/dist/type/open-api/constant/in-type.js +30 -0
  39. package/dist/type/open-api/constant/in-type.js.map +1 -0
  40. package/dist/type/open-api/constant/named-literal.js +17 -0
  41. package/dist/type/open-api/constant/named-literal.js.map +1 -0
  42. package/dist/type/open-api/constant/protocol-type.js +40 -0
  43. package/dist/type/open-api/constant/protocol-type.js.map +1 -0
  44. package/dist/type/open-api/open-api-specification.js +43 -0
  45. package/dist/type/open-api/open-api-specification.js.map +1 -0
  46. package/dist/type/open-api/project/contact.js +37 -0
  47. package/dist/type/open-api/project/contact.js.map +1 -0
  48. package/dist/type/open-api/project/project-information.js +49 -0
  49. package/dist/type/open-api/project/project-information.js.map +1 -0
  50. package/dist/type/open-api/protocol/empty-body.js +12 -0
  51. package/dist/type/open-api/protocol/empty-body.js.map +1 -0
  52. package/dist/type/open-api/protocol/open-api-request.js +44 -0
  53. package/dist/type/open-api/protocol/open-api-request.js.map +1 -0
  54. package/dist/type/open-api/protocol/parameters.js +28 -0
  55. package/dist/type/open-api/protocol/parameters.js.map +1 -0
  56. package/dist/type/open-api/protocol/request-body.js +39 -0
  57. package/dist/type/open-api/protocol/request-body.js.map +1 -0
  58. package/dist/type/open-api/sub/i-field.js +3 -0
  59. package/dist/type/open-api/sub/i-field.js.map +1 -0
  60. package/dist/type/open-api/sub/object-field.js +49 -0
  61. package/dist/type/open-api/sub/object-field.js.map +1 -0
  62. package/dist/type/open-api/sub/parameter.js +70 -0
  63. package/dist/type/open-api/sub/parameter.js.map +1 -0
  64. package/dist/type/open-api/sub/tag.js +32 -0
  65. package/dist/type/open-api/sub/tag.js.map +1 -0
  66. package/dist/type/open-api/sub/value-field.js +80 -0
  67. package/dist/type/open-api/sub/value-field.js.map +1 -0
  68. package/dist/type/open-api/sub/version.js +53 -0
  69. package/dist/type/open-api/sub/version.js.map +1 -0
  70. package/dist/type/path.js +62 -0
  71. package/dist/type/path.js.map +1 -0
  72. package/dist/type/postman/constant/case-mode.js +58 -0
  73. package/dist/type/postman/constant/case-mode.js.map +1 -0
  74. package/dist/type/postman/constant/default-value.js +69 -0
  75. package/dist/type/postman/constant/default-value.js.map +1 -0
  76. package/dist/type/postman/constant/request-mode.js +44 -0
  77. package/dist/type/postman/constant/request-mode.js.map +1 -0
  78. package/dist/type/postman/i-postman-node.js +3 -0
  79. package/dist/type/postman/i-postman-node.js.map +1 -0
  80. package/dist/type/postman/i-postman-object.js +3 -0
  81. package/dist/type/postman/i-postman-object.js.map +1 -0
  82. package/dist/type/postman/i-postman-request-body.js +3 -0
  83. package/dist/type/postman/i-postman-request-body.js.map +1 -0
  84. package/dist/type/postman/parsed-postman-option.js +72 -0
  85. package/dist/type/postman/parsed-postman-option.js.map +1 -0
  86. package/dist/type/postman/postman-body-wrapper.js +46 -0
  87. package/dist/type/postman/postman-body-wrapper.js.map +1 -0
  88. package/dist/type/postman/postman-directory.js +61 -0
  89. package/dist/type/postman/postman-directory.js.map +1 -0
  90. package/dist/type/postman/postman-formdata.js +21 -0
  91. package/dist/type/postman/postman-formdata.js.map +1 -0
  92. package/dist/type/postman/postman-header.js +32 -0
  93. package/dist/type/postman/postman-header.js.map +1 -0
  94. package/dist/type/postman/postman-import-file.js +17 -0
  95. package/dist/type/postman/postman-import-file.js.map +1 -0
  96. package/dist/type/postman/postman-info.js +52 -0
  97. package/dist/type/postman/postman-info.js.map +1 -0
  98. package/dist/type/postman/postman-options.js +29 -0
  99. package/dist/type/postman/postman-options.js.map +1 -0
  100. package/dist/type/postman/postman-path-variable.js +72 -0
  101. package/dist/type/postman/postman-path-variable.js.map +1 -0
  102. package/dist/type/postman/postman-query.js +49 -0
  103. package/dist/type/postman/postman-query.js.map +1 -0
  104. package/dist/type/postman/postman-request-body.js +3 -0
  105. package/dist/type/postman/postman-request-body.js.map +1 -0
  106. package/dist/type/postman/postman-request-wrapper-template.js +41 -0
  107. package/dist/type/postman/postman-request-wrapper-template.js.map +1 -0
  108. package/dist/type/postman/postman-request-wrapper.js +29 -0
  109. package/dist/type/postman/postman-request-wrapper.js.map +1 -0
  110. package/dist/type/postman/postman-request.js +52 -0
  111. package/dist/type/postman/postman-request.js.map +1 -0
  112. package/dist/type/postman/postman-url.js +71 -0
  113. package/dist/type/postman/postman-url.js.map +1 -0
  114. package/dist/type/postman/type-value.js +29 -0
  115. package/dist/type/postman/type-value.js.map +1 -0
  116. package/dist/util/collection-util.js +59 -0
  117. package/dist/util/collection-util.js.map +1 -0
  118. package/dist/util/file-util.js +34 -0
  119. package/dist/util/file-util.js.map +1 -0
  120. package/dist/util/object-util.js +160 -0
  121. package/dist/util/object-util.js.map +1 -0
  122. package/dist/util/string-util.js +20 -0
  123. package/dist/util/string-util.js.map +1 -0
  124. package/package.json +53 -0
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var case_mode_1 = __importDefault(require("@/type/postman/constant/case-mode"));
7
+ var ParsedPostmanOption = /** @class */ (function () {
8
+ function ParsedPostmanOption(host, excludePath, headers, caseMode, placeholders, templates) {
9
+ this._host = host;
10
+ this._excludePath = excludePath;
11
+ this._headers = headers;
12
+ this._caseMode = caseMode;
13
+ this._placeholders = placeholders;
14
+ this._templates = templates;
15
+ }
16
+ Object.defineProperty(ParsedPostmanOption.prototype, "host", {
17
+ get: function () {
18
+ return this._host;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(ParsedPostmanOption.prototype, "excludePath", {
24
+ get: function () {
25
+ return this._excludePath;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(ParsedPostmanOption.prototype, "headers", {
31
+ get: function () {
32
+ return this._headers;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(ParsedPostmanOption.prototype, "caseMode", {
38
+ get: function () {
39
+ return this._caseMode;
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
44
+ Object.defineProperty(ParsedPostmanOption.prototype, "placeholders", {
45
+ get: function () {
46
+ return this._placeholders;
47
+ },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ Object.defineProperty(ParsedPostmanOption.prototype, "templates", {
52
+ get: function () {
53
+ return this._templates;
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ ParsedPostmanOption.ofDefault = function () {
59
+ return new ParsedPostmanOption('{{url}}', [], [], case_mode_1.default.SNAKE, new Map(), []);
60
+ };
61
+ ParsedPostmanOption.prototype.printStatus = function () {
62
+ //pretty print
63
+ console.log('host:', this._host);
64
+ console.log('excludePath:', this._excludePath);
65
+ console.log('headers:', this._headers);
66
+ console.log('caseMode:', this._caseMode);
67
+ console.log('placeholders:', this._placeholders);
68
+ };
69
+ return ParsedPostmanOption;
70
+ }());
71
+ exports.default = ParsedPostmanOption;
72
+ //# sourceMappingURL=parsed-postman-option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsed-postman-option.js","sourceRoot":"","sources":["../../../src/type/postman/parsed-postman-option.ts"],"names":[],"mappings":";;;;;AAAA,gFAAyD;AAMzD;IASI,6BACI,IAAY,EACZ,WAAwB,EACxB,OAA6B,EAC7B,QAAkB,EAClB,YAAoC,EACpC,SAA+C;QAE/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAChC,CAAC;IAGD,sBAAI,qCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAI,4CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAI,wCAAO;aAAX;YACI,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;;;OAAA;IAED,sBAAI,yCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;;;OAAA;IAED,sBAAI,6CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,aAAa,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAI,0CAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;;;OAAA;IAEa,6BAAS,GAAvB;QACI,OAAO,IAAI,mBAAmB,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,mBAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,EAAqB,EAAE,EAAE,CAAC,CAAC;IACxG,CAAC;IAEM,yCAAW,GAAlB;QACI,cAAc;QACd,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACrD,CAAC;IACL,0BAAC;AAAD,CAAC,AA9DD,IA8DC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var postman_options_1 = __importDefault(require("@/type/postman/postman-options"));
7
+ var request_mode_1 = __importDefault(require("@/type/postman/constant/request-mode"));
8
+ var PostmanBodyWrapper = /** @class */ (function () {
9
+ function PostmanBodyWrapper(mode, data, options) {
10
+ this._mode = mode;
11
+ this._data = data;
12
+ this._options = options;
13
+ }
14
+ PostmanBodyWrapper.prototype.toJSON = function () {
15
+ var wrapper = {
16
+ mode: this._mode
17
+ };
18
+ if (Array.isArray(this._data)) {
19
+ wrapper.formdata = this._data;
20
+ }
21
+ else {
22
+ var placeholderRE = /\"(\{\{[\w_]+\}\})\"/gm;
23
+ if (typeof this._data === 'string') {
24
+ wrapper.raw = this._data;
25
+ }
26
+ else {
27
+ var rawBody = JSON.stringify(this._data);
28
+ wrapper.raw = rawBody.replace(placeholderRE, "$1");
29
+ }
30
+ wrapper.options = this._options;
31
+ }
32
+ return wrapper;
33
+ };
34
+ PostmanBodyWrapper.fromFormData = function (data) {
35
+ return new PostmanBodyWrapper(request_mode_1.default.FORMDATA.value, data);
36
+ };
37
+ PostmanBodyWrapper.fromRaw = function (data) {
38
+ return new PostmanBodyWrapper(request_mode_1.default.RAW.value, data, postman_options_1.default.of("json"));
39
+ };
40
+ PostmanBodyWrapper.fromEmpty = function (data) {
41
+ return new PostmanBodyWrapper(request_mode_1.default.RAW.value, data, postman_options_1.default.of("json"));
42
+ };
43
+ return PostmanBodyWrapper;
44
+ }());
45
+ exports.default = PostmanBodyWrapper;
46
+ //# sourceMappingURL=postman-body-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-body-wrapper.js","sourceRoot":"","sources":["../../../src/type/postman/postman-body-wrapper.ts"],"names":[],"mappings":";;;;;AACA,mFAA4D;AAC5D,sFAA+D;AAK/D;IAMI,4BAAoB,IAAY,EAAE,IAAwB,EAAE,OAAwB;QAChF,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IAC3B,CAAC;IAEM,mCAAM,GAAb;QACI,IAAM,OAAO,GAAG;YACZ,IAAI,EAAE,IAAI,CAAC,KAAK;SAMnB,CAAA;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;QAClC,CAAC;aAAM,CAAC;YACJ,IAAM,aAAa,GAAG,wBAAwB,CAAC;YAC/C,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACjC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACJ,IAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC3C,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YACvD,CAAC;YACD,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,QAAS,CAAC;QACrC,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAEM,+BAAY,GAAnB,UAAoB,IAA4B;QAC5C,OAAO,IAAI,kBAAkB,CAAC,sBAAW,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAEM,0BAAO,GAAd,UAAe,IAAyB;QACpC,OAAO,IAAI,kBAAkB,CAAC,sBAAW,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,yBAAc,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1F,CAAC;IAEM,4BAAS,GAAhB,UAAiB,IAAyB;QACtC,OAAO,IAAI,kBAAkB,CAAC,sBAAW,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,yBAAc,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1F,CAAC;IACL,yBAAC;AAAD,CAAC,AA/CD,IA+CC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var path_1 = __importDefault(require("@/type/path"));
7
+ var postman_request_wrapper_1 = __importDefault(require("@/type/postman/postman-request-wrapper"));
8
+ var PostmanDirectory = /** @class */ (function () {
9
+ function PostmanDirectory(name, path, item) {
10
+ this._name = name;
11
+ this._path = new path_1.default(path);
12
+ this._item = item;
13
+ }
14
+ Object.defineProperty(PostmanDirectory.prototype, "path", {
15
+ get: function () {
16
+ return this._path;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ Object.defineProperty(PostmanDirectory.prototype, "item", {
22
+ get: function () {
23
+ return this._item;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ PostmanDirectory.prototype.includeDirectory = function (other) {
29
+ return this._item.some(function (node) { return node.path.equals(other) && node instanceof PostmanDirectory; });
30
+ };
31
+ PostmanDirectory.prototype.getDirectory = function (other) {
32
+ return this._item.find(function (node) { return node.path.equals(other) && node instanceof PostmanDirectory; });
33
+ };
34
+ PostmanDirectory.prototype.addNodeRecursive = function (path, value, depth) {
35
+ var current = path.subset(depth);
36
+ //마지막 경로일 경우에 만약 없다면 추가
37
+ if (current.equals(path) && !this.includeDirectory(current)) {
38
+ this._item.push(value);
39
+ return;
40
+ }
41
+ var directory = this.includeDirectory(current)
42
+ ? this.getDirectory(current) : new PostmanDirectory(current.lastValue, current.value, []);
43
+ //생성되지 않은 디렉터리라면
44
+ if (!this.includeDirectory(current)) {
45
+ this._item.push(directory);
46
+ }
47
+ directory.addNodeRecursive(path, value, depth + 1);
48
+ };
49
+ PostmanDirectory.prototype.addRequest = function (name, postmanRequest) {
50
+ this._item.push(new postman_request_wrapper_1.default(name, postmanRequest));
51
+ };
52
+ PostmanDirectory.prototype.toJSON = function () {
53
+ return {
54
+ name: this._name,
55
+ item: this._item
56
+ };
57
+ };
58
+ return PostmanDirectory;
59
+ }());
60
+ exports.default = PostmanDirectory;
61
+ //# sourceMappingURL=postman-directory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-directory.js","sourceRoot":"","sources":["../../../src/type/postman/postman-directory.ts"],"names":[],"mappings":";;;;;AACA,qDAA+B;AAE/B,mGAA2E;AAE3E;IAKI,0BAAY,IAAY,EAAE,IAAY,EAAE,IAAyB;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,cAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IACrB,CAAC;IAED,sBAAI,kCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,kCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAA;QACrB,CAAC;;;OAAA;IAEM,2CAAgB,GAAvB,UAAwB,KAAW;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,YAAY,gBAAgB,EAA3D,CAA2D,CAAC,CAAC;IAChG,CAAC;IAEM,uCAAY,GAAnB,UAAoB,KAAW;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAK,IAAI,YAAY,gBAAgB,EAA5D,CAA4D,CAAqB,CAAC;IACrH,CAAC;IAEM,2CAAgB,GAAvB,UAAwB,IAAU,EAAE,KAAuB,EAAE,KAAa;QACtE,IAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEnC,uBAAuB;QACvB,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,OAAO;QACX,CAAC;QAED,IAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAC5C,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAE7F,gBAAgB;QAChB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/B,CAAC;QAED,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,GAAE,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,qCAAU,GAAjB,UAAkB,IAAY,EAAE,cAA8B;QAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,iCAAqB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IACrE,CAAC;IAEM,iCAAM,GAAb;QACI,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,IAAI,EAAE,IAAI,CAAC,KAAK;SACnB,CAAA;IACL,CAAC;IACL,uBAAC;AAAD,CAAC,AAzDD,IAyDC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanFormdata = /** @class */ (function () {
4
+ function PostmanFormdata(key, value, type, description) {
5
+ this._key = key;
6
+ this._value = value;
7
+ this._type = type;
8
+ this._description = description;
9
+ }
10
+ PostmanFormdata.prototype.toJSON = function () {
11
+ return {
12
+ key: this._key,
13
+ value: this._value,
14
+ type: this._type,
15
+ description: this._description
16
+ };
17
+ };
18
+ return PostmanFormdata;
19
+ }());
20
+ exports.default = PostmanFormdata;
21
+ //# sourceMappingURL=postman-formdata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-formdata.js","sourceRoot":"","sources":["../../../src/type/postman/postman-formdata.ts"],"names":[],"mappings":";;AAEA;IAMI,yBAAmB,GAAW,EAAE,KAAa,EAAE,IAAkB,EAAE,WAAmB;QAClF,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;QACf,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAA;IACnC,CAAC;IAEM,gCAAM,GAAb;QACI,OAAO;YACH,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,WAAW,EAAE,IAAI,CAAC,YAAY;SACjC,CAAA;IACL,CAAC;IACL,sBAAC;AAAD,CAAC,AArBD,IAqBC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var default_value_1 = __importDefault(require("@/type/postman/constant/default-value"));
7
+ var PostmanHeader = /** @class */ (function () {
8
+ function PostmanHeader(key, value) {
9
+ this._key = key;
10
+ this._value = value;
11
+ }
12
+ PostmanHeader.prototype.getSeparatedValues = function () {
13
+ return this._value
14
+ .split(';')
15
+ .map(function (value) { return value.trim(); });
16
+ };
17
+ PostmanHeader.prototype.toJSON = function () {
18
+ return {
19
+ "key": this._key,
20
+ "value": this._value
21
+ };
22
+ };
23
+ PostmanHeader.prototype.toString = function () {
24
+ return "".concat(this._key, ": ").concat(this._value);
25
+ };
26
+ PostmanHeader.ofParameters = function (parameters) {
27
+ return parameters.map(function (header) { return new PostmanHeader(header.name, default_value_1.default.fromTypeFormat(header.type, header.format).value); });
28
+ };
29
+ return PostmanHeader;
30
+ }());
31
+ exports.default = PostmanHeader;
32
+ //# sourceMappingURL=postman-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-header.js","sourceRoot":"","sources":["../../../src/type/postman/postman-header.ts"],"names":[],"mappings":";;;;;AACA,wFAAiE;AAEjE;IAII,uBAAY,GAAW,EAAE,KAAa;QAClC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;QACf,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;IACvB,CAAC;IAED,0CAAkB,GAAlB;QACI,OAAO,IAAI,CAAC,MAAM;aACb,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,IAAI,EAAE,EAAZ,CAAY,CAAC,CAAA;IACnC,CAAC;IAED,8BAAM,GAAN;QACI,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,OAAO,EAAE,IAAI,CAAC,MAAM;SACvB,CAAA;IACL,CAAC;IAEM,gCAAQ,GAAf;QACI,OAAO,UAAG,IAAI,CAAC,IAAI,eAAK,IAAI,CAAC,MAAM,CAAE,CAAC;IAC1C,CAAC;IAEa,0BAAY,GAA1B,UAA2B,UAA4B;QACnD,OAAO,UAAU,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,IAAI,aAAa,CAC7C,MAAM,CAAC,IAAI,EACX,uBAAY,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAChE,EAH+B,CAG/B,CAAC,CAAC;IACP,CAAC;IACL,oBAAC;AAAD,CAAC,AAhCD,IAgCC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanImportFile = /** @class */ (function () {
4
+ function PostmanImportFile(info, item) {
5
+ this._info = info;
6
+ this._nodes = item;
7
+ }
8
+ PostmanImportFile.prototype.toJSON = function () {
9
+ return {
10
+ info: this._info,
11
+ item: this._nodes
12
+ };
13
+ };
14
+ return PostmanImportFile;
15
+ }());
16
+ exports.default = PostmanImportFile;
17
+ //# sourceMappingURL=postman-import-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-import-file.js","sourceRoot":"","sources":["../../../src/type/postman/postman-import-file.ts"],"names":[],"mappings":";;AAIA;IAII,2BAAmB,IAAiB,EAAE,IAAyB;QAC3D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;IACtB,CAAC;IAEM,kCAAM,GAAb;QACI,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,IAAI,EAAE,IAAI,CAAC,MAAM;SACpB,CAAA;IACL,CAAC;IACL,wBAAC;AAAD,CAAC,AAfD,IAeC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanInfo = /** @class */ (function () {
4
+ function PostmanInfo(postmanId, name, schema, exporterId) {
5
+ this._postmanId = postmanId;
6
+ this._name = name;
7
+ this._schema = schema;
8
+ this._exporterId = exporterId;
9
+ }
10
+ Object.defineProperty(PostmanInfo.prototype, "postmanId", {
11
+ get: function () {
12
+ return this._postmanId;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(PostmanInfo.prototype, "name", {
18
+ get: function () {
19
+ return this._name;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ Object.defineProperty(PostmanInfo.prototype, "schema", {
25
+ get: function () {
26
+ return this._schema;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ Object.defineProperty(PostmanInfo.prototype, "exporterId", {
32
+ get: function () {
33
+ return this._exporterId;
34
+ },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ /**
39
+ * For Serialize
40
+ */
41
+ PostmanInfo.prototype.toJSON = function () {
42
+ return {
43
+ _postmanId: this._postmanId,
44
+ name: this._name,
45
+ schema: this._schema,
46
+ _exporter_id: this._exporterId
47
+ };
48
+ };
49
+ return PostmanInfo;
50
+ }());
51
+ exports.default = PostmanInfo;
52
+ //# sourceMappingURL=postman-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-info.js","sourceRoot":"","sources":["../../../src/type/postman/postman-info.ts"],"names":[],"mappings":";;AAAA;IAMI,qBAAmB,SAAiB,EAAE,IAAY,EAAE,MAAc,EAAE,UAAkB;QAClF,IAAI,CAAC,UAAU,GAAG,SAAS,CAAA;QAC3B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAA;IACjC,CAAC;IAED,sBAAI,kCAAS;aAAb;YACI,OAAO,IAAI,CAAC,UAAU,CAAA;QAC1B,CAAC;;;OAAA;IAED,sBAAI,6BAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAA;QACrB,CAAC;;;OAAA;IAED,sBAAI,+BAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAA;QACvB,CAAC;;;OAAA;IAED,sBAAI,mCAAU;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAA;QAC3B,CAAC;;;OAAA;IAED;;OAEG;IACI,4BAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,YAAY,EAAE,IAAI,CAAC,WAAW;SACjC,CAAA;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AAxCD,IAwCC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanOptions = /** @class */ (function () {
4
+ function PostmanOptions(raw) {
5
+ this._raw = raw;
6
+ }
7
+ PostmanOptions.of = function (language) {
8
+ return new PostmanOptions(new RawOption(language));
9
+ };
10
+ PostmanOptions.prototype.toJSON = function () {
11
+ return {
12
+ "raw": this._raw
13
+ };
14
+ };
15
+ return PostmanOptions;
16
+ }());
17
+ exports.default = PostmanOptions;
18
+ var RawOption = /** @class */ (function () {
19
+ function RawOption(language) {
20
+ this._language = language;
21
+ }
22
+ RawOption.prototype.toJSON = function () {
23
+ return {
24
+ "language": this._language
25
+ };
26
+ };
27
+ return RawOption;
28
+ }());
29
+ //# sourceMappingURL=postman-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-options.js","sourceRoot":"","sources":["../../../src/type/postman/postman-options.ts"],"names":[],"mappings":";;AAAA;IAGI,wBAAY,GAAc;QACtB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;IACnB,CAAC;IAEM,iBAAE,GAAT,UAAU,QAAgB;QACtB,OAAO,IAAI,cAAc,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,+BAAM,GAAN;QACI,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,IAAI;SACnB,CAAA;IACL,CAAC;IACL,qBAAC;AAAD,CAAC,AAhBD,IAgBC;;AAED;IAGI,mBAAY,QAAgB;QACxB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;IAC7B,CAAC;IAED,0BAAM,GAAN;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,SAAS;SAC7B,CAAA;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AAZD,IAYC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var default_value_1 = __importDefault(require("@/type/postman/constant/default-value"));
7
+ var PostmanPathVariable = /** @class */ (function () {
8
+ function PostmanPathVariable(id, key, value, type, name, description) {
9
+ this._id = id;
10
+ this._key = key;
11
+ this._value = value;
12
+ this._type = type;
13
+ this._name = name;
14
+ this._description = description;
15
+ }
16
+ Object.defineProperty(PostmanPathVariable.prototype, "id", {
17
+ get: function () {
18
+ return this._id;
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(PostmanPathVariable.prototype, "key", {
24
+ get: function () {
25
+ return this._key;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(PostmanPathVariable.prototype, "value", {
31
+ get: function () {
32
+ return this._value;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(PostmanPathVariable.prototype, "type", {
38
+ get: function () {
39
+ return this._type;
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
44
+ Object.defineProperty(PostmanPathVariable.prototype, "name", {
45
+ get: function () {
46
+ return this._name;
47
+ },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ Object.defineProperty(PostmanPathVariable.prototype, "description", {
52
+ get: function () {
53
+ return this._description;
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ PostmanPathVariable.ofParameters = function (parameters) {
59
+ return parameters.map(function (param) { return new PostmanPathVariable('', param.name, default_value_1.default.fromTypeFormat(param.type, param.format).value, param.type, '', param.description); });
60
+ };
61
+ PostmanPathVariable.prototype.toJSON = function () {
62
+ var result = {
63
+ key: this._key,
64
+ value: this._value,
65
+ description: this._description
66
+ };
67
+ return result;
68
+ };
69
+ return PostmanPathVariable;
70
+ }());
71
+ exports.default = PostmanPathVariable;
72
+ //# sourceMappingURL=postman-path-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-path-variable.js","sourceRoot":"","sources":["../../../src/type/postman/postman-path-variable.ts"],"names":[],"mappings":";;;;;AAEA,wFAAiE;AAEjE;IAUI,6BAAmB,EAAU,EAAE,GAAW,EAAE,KAAa,EAAE,IAAc,EAAE,IAAY,EAAE,WAAmB;QACxG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IACpC,CAAC;IAGD,sBAAI,mCAAE;aAAN;YACI,OAAO,IAAI,CAAC,GAAG,CAAC;QACpB,CAAC;;;OAAA;IAED,sBAAI,oCAAG;aAAP;YACI,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;;;OAAA;IAED,sBAAI,sCAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;;;OAAA;IAED,sBAAI,qCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAI,qCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAI,4CAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;;;OAAA;IAEa,gCAAY,GAA1B,UAA2B,UAA4B;QACnD,OAAO,UAAU,CAAC,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,IAAI,mBAAmB,CAClD,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,uBAAY,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,WAAW,CACjH,EAF8B,CAE9B,CAAC,CAAC;IACP,CAAC;IAEM,oCAAM,GAAb;QACI,IAAM,MAAM,GAAG;YACX,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,WAAW,EAAE,IAAI,CAAC,YAAY;SAQjC,CAAC;QAEF,OAAO,MAAM,CAAC;IAClB,CAAC;IAEL,0BAAC;AAAD,CAAC,AAnED,IAmEC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var string_util_1 = require("@/util/string-util");
4
+ var PostmanQuery = /** @class */ (function () {
5
+ function PostmanQuery(key, value, description) {
6
+ this._key = key;
7
+ this._value = value;
8
+ this._description = description;
9
+ }
10
+ Object.defineProperty(PostmanQuery.prototype, "key", {
11
+ get: function () {
12
+ return this._key;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(PostmanQuery.prototype, "value", {
18
+ get: function () {
19
+ return this._value;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ Object.defineProperty(PostmanQuery.prototype, "description", {
25
+ get: function () {
26
+ return this._description;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ PostmanQuery.of = function (param) {
32
+ //value는 변수나 기본값으로 쓰일수 있기 때문에, 추후 {{param}}처럼 하는것을 고려
33
+ return new PostmanQuery(param.name, '', param.description);
34
+ };
35
+ ;
36
+ PostmanQuery.prototype.toJSON = function () {
37
+ var result = {
38
+ key: this._key,
39
+ description: this._description,
40
+ };
41
+ if (!(0, string_util_1.isEmpty)(this._value)) {
42
+ result.value = this._value;
43
+ }
44
+ return result;
45
+ };
46
+ return PostmanQuery;
47
+ }());
48
+ exports.default = PostmanQuery;
49
+ //# sourceMappingURL=postman-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-query.js","sourceRoot":"","sources":["../../../src/type/postman/postman-query.ts"],"names":[],"mappings":";;AACA,kDAA2C;AAE3C;IAKI,sBAAY,GAAW,EAAE,KAAa,EAAE,WAAmB;QACvD,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IACpC,CAAC;IAED,sBAAI,6BAAG;aAAP;YACI,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;;;OAAA;IAED,sBAAI,+BAAK;aAAT;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;;;OAAA;IAED,sBAAI,qCAAW;aAAf;YACI,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;;;OAAA;IAEM,eAAE,GAAT,UAAU,KAAgB;QACtB,qDAAqD;QACrD,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;IAC9D,CAAC;IAAA,CAAC;IAEF,6BAAM,GAAN;QACI,IAAM,MAAM,GAAI;YACZ,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,WAAW,EAAE,IAAI,CAAC,YAAY;SAKjC,CAAA;QACD,IAAK,CAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,mBAAC;AAAD,CAAC,AA3CD,IA2CC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=postman-request-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-request-body.js","sourceRoot":"","sources":["../../../src/type/postman/postman-request-body.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanRequestWrapperTemplate = /** @class */ (function () {
4
+ function PostmanRequestWrapperTemplate(path, type, format, values) {
5
+ this._path = path;
6
+ this._type = type;
7
+ this._format = format;
8
+ this._values = values;
9
+ }
10
+ Object.defineProperty(PostmanRequestWrapperTemplate.prototype, "path", {
11
+ get: function () {
12
+ return this._path;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(PostmanRequestWrapperTemplate.prototype, "type", {
18
+ get: function () {
19
+ return this._type;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ PostmanRequestWrapperTemplate.prototype.format = function (body) {
25
+ return this._format ? this._format(body) : body;
26
+ };
27
+ Object.defineProperty(PostmanRequestWrapperTemplate.prototype, "values", {
28
+ get: function () {
29
+ var _a;
30
+ return (_a = this._values) !== null && _a !== void 0 ? _a : [];
31
+ },
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ PostmanRequestWrapperTemplate.ofConfig = function (path, type, format, values) {
36
+ return new PostmanRequestWrapperTemplate(path, type, format, values);
37
+ };
38
+ return PostmanRequestWrapperTemplate;
39
+ }());
40
+ exports.default = PostmanRequestWrapperTemplate;
41
+ //# sourceMappingURL=postman-request-wrapper-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-request-wrapper-template.js","sourceRoot":"","sources":["../../../src/type/postman/postman-request-wrapper-template.ts"],"names":[],"mappings":";;AAKA;IAOI,uCAAoB,IAAU,EAAE,IAAiB,EAAE,MAA2D,EAAE,MAA+B;QAC3I,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACzB,CAAC;IAGD,sBAAI,+CAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAI,+CAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAGM,8CAAM,GAAb,UAAc,IAAyB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,CAAC;IAED,sBAAI,iDAAM;aAAV;;YACI,OAAO,MAAA,IAAI,CAAC,OAAO,mCAAI,EAAE,CAAC;QAC9B,CAAC;;;OAAA;IAEa,sCAAQ,GAAtB,UAAuB,IAAU,EAAE,IAAiB,EAAE,MAA2D,EAAE,MAA+B;QAC9I,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACxE,CAAC;IACL,oCAAC;AAAD,CAAC,AAnCD,IAmCC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var path_1 = __importDefault(require("@/type/path"));
7
+ var PostmanRequestWrapper = /** @class */ (function () {
8
+ function PostmanRequestWrapper(name, request) {
9
+ this._name = name;
10
+ this._request = request;
11
+ }
12
+ Object.defineProperty(PostmanRequestWrapper.prototype, "path", {
13
+ get: function () {
14
+ var joined = this._request.url.path.map(function (each) { return '/' + each; }).join('');
15
+ return new path_1.default("".concat(joined, ":").concat(this._request.method));
16
+ },
17
+ enumerable: false,
18
+ configurable: true
19
+ });
20
+ PostmanRequestWrapper.prototype.toJSON = function () {
21
+ return {
22
+ name: this._name,
23
+ request: this._request
24
+ };
25
+ };
26
+ return PostmanRequestWrapper;
27
+ }());
28
+ exports.default = PostmanRequestWrapper;
29
+ //# sourceMappingURL=postman-request-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-request-wrapper.js","sourceRoot":"","sources":["../../../src/type/postman/postman-request-wrapper.ts"],"names":[],"mappings":";;;;;AAEA,qDAA+B;AAE/B;IAII,+BAAY,IAAY,EAAE,OAAuB;QAC7C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;QACjB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IAC3B,CAAC;IAED,sBAAI,uCAAI;aAAR;YACI,IAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,GAAG,GAAG,IAAI,EAAV,CAAU,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACvE,OAAO,IAAI,cAAI,CAAC,UAAG,MAAM,cAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAE,CAAC,CAAC;QACzD,CAAC;;;OAAA;IAED,sCAAM,GAAN;QACI,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,OAAO,EAAE,IAAI,CAAC,QAAQ;SACzB,CAAA;IACL,CAAC;IACL,4BAAC;AAAD,CAAC,AApBD,IAoBC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var PostmanRequest = /** @class */ (function () {
4
+ function PostmanRequest(method, header, url, body) {
5
+ this._method = method.value.toUpperCase();
6
+ this._header = header;
7
+ this._url = url;
8
+ this._body = body;
9
+ }
10
+ Object.defineProperty(PostmanRequest.prototype, "method", {
11
+ get: function () {
12
+ return this._method;
13
+ },
14
+ enumerable: false,
15
+ configurable: true
16
+ });
17
+ Object.defineProperty(PostmanRequest.prototype, "header", {
18
+ get: function () {
19
+ return this._header;
20
+ },
21
+ enumerable: false,
22
+ configurable: true
23
+ });
24
+ Object.defineProperty(PostmanRequest.prototype, "body", {
25
+ get: function () {
26
+ return this._body;
27
+ },
28
+ enumerable: false,
29
+ configurable: true
30
+ });
31
+ Object.defineProperty(PostmanRequest.prototype, "url", {
32
+ get: function () {
33
+ return this._url;
34
+ },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ PostmanRequest.prototype.toJSON = function () {
39
+ var result = {
40
+ method: this._method,
41
+ header: this._header,
42
+ url: this._url
43
+ };
44
+ if (this._body) {
45
+ result.body = this._body;
46
+ }
47
+ return result;
48
+ };
49
+ return PostmanRequest;
50
+ }());
51
+ exports.default = PostmanRequest;
52
+ //# sourceMappingURL=postman-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postman-request.js","sourceRoot":"","sources":["../../../src/type/postman/postman-request.ts"],"names":[],"mappings":";;AAOA;IAOI,wBAAmB,MAAkB,EAAE,MAA4B,EAAE,GAAe,EAAG,IAAyB;QAC5G,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAGD,sBAAI,kCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;;;OAAA;IAED,sBAAI,kCAAM;aAAV;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;;;OAAA;IAED,sBAAI,gCAAI;aAAR;YACI,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAED,sBAAI,+BAAG;aAAP;YACI,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC;;;OAAA;IAEM,+BAAM,GAAb;QACI,IAAM,MAAM,GAAG;YACX,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,GAAG,EAAE,IAAI,CAAC,IAAI;SAMjB,CAAA;QAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,qBAAC;AAAD,CAAC,AAjDD,IAiDC"}