ts-openapi-codegen 2.1.0-beta.8 → 2.1.0-beta.9

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 (133) hide show
  1. package/README.md +4 -0
  2. package/README.rus.md +4 -0
  3. package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +31 -24
  4. package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts +2 -0
  5. package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts.map +1 -0
  6. package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.js +47 -0
  7. package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +8 -7
  8. package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +8 -7
  9. package/dist/cli/analyzeDiff/analyzeDiff.d.ts +14 -2
  10. package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -1
  11. package/dist/cli/analyzeDiff/analyzeDiff.js +56 -13
  12. package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -3
  13. package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -1
  14. package/dist/cli/analyzeDiff/ciSummary.js +10 -6
  15. package/dist/cli/analyzeDiff/report.d.ts +0 -1
  16. package/dist/cli/analyzeDiff/report.d.ts.map +1 -1
  17. package/dist/cli/analyzeDiff/report.js +1 -3
  18. package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +2 -0
  19. package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -1
  20. package/dist/cli/analyzeDiff/writeLegacyReport.js +2 -0
  21. package/dist/cli/analyzeUsage/core/Scanner.d.ts +8 -0
  22. package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -1
  23. package/dist/cli/analyzeUsage/core/Scanner.js +10 -0
  24. package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +8 -0
  25. package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -1
  26. package/dist/cli/analyzeUsage/rules/ClientRule.js +10 -0
  27. package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +8 -0
  28. package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -1
  29. package/dist/cli/analyzeUsage/rules/ServiceRule.js +10 -0
  30. package/dist/common/LoggerMessages.d.ts +5 -0
  31. package/dist/common/LoggerMessages.d.ts.map +1 -1
  32. package/dist/common/LoggerMessages.js +4 -0
  33. package/dist/core/OpenApiClient.d.ts +8 -0
  34. package/dist/core/OpenApiClient.d.ts.map +1 -1
  35. package/dist/core/OpenApiClient.js +16 -2
  36. package/dist/core/WriteClient.d.ts +52 -15
  37. package/dist/core/WriteClient.d.ts.map +1 -1
  38. package/dist/core/WriteClient.js +36 -4
  39. package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +72 -0
  40. package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +20 -1
  41. package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +58 -6
  42. package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -1
  43. package/dist/core/semanticDiff/analyzeOpenApiDiff.js +47 -19
  44. package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -1
  45. package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -1
  46. package/dist/core/semanticDiff/semanticDiffReportSchema.js +140 -50
  47. package/dist/core/types/DiffReport.model.d.ts +101 -0
  48. package/dist/core/types/DiffReport.model.d.ts.map +1 -0
  49. package/dist/core/types/DiffReport.model.js +5 -0
  50. package/dist/core/types/shared/Model.model.d.ts +36 -0
  51. package/dist/core/types/shared/Model.model.d.ts.map +1 -1
  52. package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +182 -0
  53. package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts +2 -0
  54. package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts.map +1 -0
  55. package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.js +77 -0
  56. package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts +2 -0
  57. package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts.map +1 -0
  58. package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.js +159 -0
  59. package/dist/core/utils/__tests__/loadDiffReport.test.js +131 -0
  60. package/dist/core/utils/__tests__/modelHelpers.test.js +27 -9
  61. package/dist/core/utils/__tests__/prepareDtoModels.test.js +74 -2
  62. package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts +2 -0
  63. package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts.map +1 -0
  64. package/dist/core/utils/__tests__/resolveClassesModeTypes.test.js +111 -0
  65. package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts +2 -0
  66. package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts.map +1 -0
  67. package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.js +68 -0
  68. package/dist/core/utils/__tests__/serviceHelpers.test.js +10 -11
  69. package/dist/core/utils/__tests__/templateRendering.test.js +71 -0
  70. package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts +2 -0
  71. package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts.map +1 -0
  72. package/dist/core/utils/adapters/__tests__/semanticToStructural.test.js +63 -0
  73. package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts +10 -0
  74. package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts.map +1 -0
  75. package/dist/core/utils/adapters/extractMiraclesFromSemantic.js +13 -0
  76. package/dist/core/utils/adapters/index.d.ts +4 -0
  77. package/dist/core/utils/adapters/index.d.ts.map +1 -0
  78. package/dist/core/utils/adapters/index.js +8 -0
  79. package/dist/core/utils/adapters/semanticToStructural.d.ts +12 -0
  80. package/dist/core/utils/adapters/semanticToStructural.d.ts.map +1 -0
  81. package/dist/core/utils/adapters/semanticToStructural.js +36 -0
  82. package/dist/core/utils/applyDiffReportToClient.d.ts +13 -1
  83. package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -1
  84. package/dist/core/utils/applyDiffReportToClient.js +187 -107
  85. package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts +25 -0
  86. package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts.map +1 -0
  87. package/dist/core/utils/buildMiraclesFromSemanticChanges.js +146 -0
  88. package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts +23 -0
  89. package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts.map +1 -0
  90. package/dist/core/utils/expandOpenApiRefsForSemanticDiff.js +163 -0
  91. package/dist/core/utils/getOpenApiSpec.d.ts +18 -0
  92. package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
  93. package/dist/core/utils/getOpenApiSpec.js +35 -0
  94. package/dist/core/utils/loadDiffReport.d.ts +11 -30
  95. package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
  96. package/dist/core/utils/loadDiffReport.js +69 -3
  97. package/dist/core/utils/loadSemanticOpenApiSpec.d.ts +15 -0
  98. package/dist/core/utils/loadSemanticOpenApiSpec.d.ts.map +1 -0
  99. package/dist/core/utils/loadSemanticOpenApiSpec.js +61 -0
  100. package/dist/core/utils/modelHelpers.d.ts +13 -5
  101. package/dist/core/utils/modelHelpers.d.ts.map +1 -1
  102. package/dist/core/utils/modelHelpers.js +28 -23
  103. package/dist/core/utils/prepareDtoModels.d.ts +5 -0
  104. package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
  105. package/dist/core/utils/prepareDtoModels.js +55 -12
  106. package/dist/core/utils/resolveClassesModeTypes.d.ts +8 -0
  107. package/dist/core/utils/resolveClassesModeTypes.d.ts.map +1 -0
  108. package/dist/core/utils/resolveClassesModeTypes.js +77 -0
  109. package/dist/core/utils/semanticChangesToDiffEntries.d.ts +37 -0
  110. package/dist/core/utils/semanticChangesToDiffEntries.d.ts.map +1 -0
  111. package/dist/core/utils/semanticChangesToDiffEntries.js +99 -0
  112. package/dist/core/utils/semanticPointerToJsonPath.d.ts +7 -0
  113. package/dist/core/utils/semanticPointerToJsonPath.d.ts.map +1 -0
  114. package/dist/core/utils/semanticPointerToJsonPath.js +67 -0
  115. package/dist/core/utils/serviceHelpers.d.ts +6 -7
  116. package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
  117. package/dist/core/utils/serviceHelpers.js +8 -25
  118. package/dist/core/utils/writeClientServices.d.ts +14 -14
  119. package/dist/core/utils/writeClientServices.d.ts.map +1 -1
  120. package/dist/core/utils/writeClientServices.js +4 -8
  121. package/dist/templatesCompiled/client/exportModels.d.ts +17 -11
  122. package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -1
  123. package/dist/templatesCompiled/client/exportModels.js +96 -49
  124. package/dist/templatesCompiled/client/exportService.d.ts +13 -10
  125. package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
  126. package/dist/templatesCompiled/client/exportService.js +95 -67
  127. package/package.json +1 -3
  128. package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +0 -17
  129. package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +0 -1
  130. package/dist/cli/analyzeDiff/buildLegacyReport.js +0 -54
  131. package/dist/cli/analyzeDiff/diffEngine.d.ts +0 -54
  132. package/dist/cli/analyzeDiff/diffEngine.d.ts.map +0 -1
  133. package/dist/cli/analyzeDiff/diffEngine.js +0 -209
@@ -1,17 +1,21 @@
1
1
  import { OutputPaths } from '../types/base/OutputPaths.model';
2
2
  import { Templates } from '../types/base/Templates.model';
3
3
  import { HttpClient } from '../types/enums/HttpClient.enum';
4
+ import { ModelsMode } from '../types/enums/ModelsMode.enum';
4
5
  import type { Service } from '../types/shared/Service.model';
5
6
  import { WriteClient } from '../WriteClient';
6
7
  type TServeceOutputsPath = Omit<OutputPaths, 'output' | 'outputSchemas'>;
7
8
  /**
8
- * @param services Array of Services to write
9
- * @param templates The loaded handlebar templates
10
- * @param outputServicePath Folder options for generating the core, models, and service part
11
- * @param httpClient The selected httpClient (fetch, xhr or node)
12
- * @param useUnionTypes Use union types instead of enums
13
- * @param useOptions Use options or arguments functions
14
- * @param useCancelableRequest Use cancelable request type
9
+ * Параметры записи сервисов клиента.
10
+ * @property services список сервисов для записи
11
+ * @property templates загруженные Handlebars-шаблоны
12
+ * @property outputPaths пути выходных директорий сервисов
13
+ * @property httpClient выбранный HTTP-клиент
14
+ * @property useUnionTypes использовать union types вместо enum
15
+ * @property useOptions использовать options-функции вместо аргументов
16
+ * @property useCancelableRequest использовать cancelable request type
17
+ * @property [modelsMode] режим генерации моделей
18
+ * @property [prettierConfigPath] путь к конфигу Prettier
15
19
  */
16
20
  interface IWriteClientServices {
17
21
  services: Service[];
@@ -21,16 +25,12 @@ interface IWriteClientServices {
21
25
  useUnionTypes: boolean;
22
26
  useOptions: boolean;
23
27
  useCancelableRequest: boolean;
28
+ modelsMode?: ModelsMode;
24
29
  prettierConfigPath?: string;
25
30
  }
26
31
  /**
27
- * Generate Services using the Handlebar template and write to disk.
28
- * @param services Array of Services to write
29
- * @param templates The loaded handlebar templates
30
- * @param outputServicePath Folder options for generating the core, models, and service part
31
- * @param httpClient The selected httpClient (fetch, xhr or node)
32
- * @param useUnionTypes Use union types instead of enums
33
- * @param useOptions Use options or arguments functions
32
+ * Генерирует сервисы по Handlebars-шаблону и записывает их на диск.
33
+ * @param options параметры записи сервисов
34
34
  */
35
35
  export declare function writeClientServices(this: WriteClient, options: IWriteClientServices): Promise<void>;
36
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BzG"}
1
+ {"version":3,"file":"writeClientServices.d.ts","sourceRoot":"","sources":["../../../src/core/utils/writeClientServices.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,UAAU,oBAAoB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BzG"}
@@ -5,16 +5,11 @@ const LoggerMessages_1 = require("../../common/LoggerMessages");
5
5
  const format_1 = require("../../common/utils/format");
6
6
  const pathHelpers_1 = require("../../common/utils/pathHelpers");
7
7
  /**
8
- * Generate Services using the Handlebar template and write to disk.
9
- * @param services Array of Services to write
10
- * @param templates The loaded handlebar templates
11
- * @param outputServicePath Folder options for generating the core, models, and service part
12
- * @param httpClient The selected httpClient (fetch, xhr or node)
13
- * @param useUnionTypes Use union types instead of enums
14
- * @param useOptions Use options or arguments functions
8
+ * Генерирует сервисы по Handlebars-шаблону и записывает их на диск.
9
+ * @param options параметры записи сервисов
15
10
  */
16
11
  async function writeClientServices(options) {
17
- const { services, templates, outputPaths, httpClient, useUnionTypes, useOptions, useCancelableRequest, prettierConfigPath } = options;
12
+ const { services, templates, outputPaths, httpClient, useUnionTypes, useOptions, useCancelableRequest, modelsMode, prettierConfigPath } = options;
18
13
  this.logger.info(LoggerMessages_1.LOGGER_MESSAGES.WRITE_CLIENT.SERVICES_START);
19
14
  for (const service of services) {
20
15
  const file = (0, pathHelpers_1.resolveHelper)(outputPaths.outputServices, `${service.name}.ts`);
@@ -27,6 +22,7 @@ async function writeClientServices(options) {
27
22
  outputCore: outputPaths.outputCore,
28
23
  outputModels: outputPaths.outputModels,
29
24
  useCancelableRequest,
25
+ modelsMode,
30
26
  });
31
27
  const formattedValue = await (0, format_1.format)(templateResult, undefined, prettierConfigPath);
32
28
  await this.writeOutputFile(file, formattedValue);
@@ -11,20 +11,26 @@ declare const _default: {
11
11
  "12": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
12
12
  "13": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
13
13
  "14": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
- "16": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
15
- "18": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
16
- "19": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
17
- "20": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
18
- "21": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
19
- "22": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
20
- "24": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
14
+ "16": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
15
+ "17": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
16
+ "19": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
17
+ "21": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
18
+ "22": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
19
+ "23": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
20
+ "24": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
21
21
  "25": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
22
- "26": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
22
+ "27": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
23
23
  "28": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
24
- "30": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
24
+ "29": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
25
25
  "31": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
26
- "33": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
27
- "35": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
26
+ "33": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
27
+ "34": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
28
+ "36": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
29
+ "38": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
30
+ "40": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
31
+ "41": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
32
+ "42": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
33
+ "43": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
28
34
  compiler: (string | number)[];
29
35
  main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
30
36
  usePartial: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"exportModels.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportModels.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA0SmC"}
1
+ {"version":3,"file":"exportModels.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportModels.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA+VmC"}
@@ -13,7 +13,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
13
13
  }
14
14
  return undefined;
15
15
  };
16
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isDefinition"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 43, "column": 7 } } })) != null ? stack1 : "");
16
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isDefinition"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 51, "column": 7 } } })) != null ? stack1 : "");
17
17
  }, "2": function (container, depth0, helpers, partials, data) {
18
18
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
19
19
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -21,7 +21,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
21
21
  }
22
22
  return undefined;
23
23
  };
24
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "rawName"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 42, "column": 7 } } })) != null ? stack1 : "");
24
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "rawName"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 50, "column": 7 } } })) != null ? stack1 : "");
25
25
  }, "3": function (container, depth0, helpers, partials, data) {
26
26
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
27
27
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
29
29
  }
30
30
  return undefined;
31
31
  };
32
- return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "export"), "interface", { "name": "equals", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.program(16, data, 0), "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 40, "column": 11 } } })) != null ? stack1 : "")
32
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "export"), "interface", { "name": "equals", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.program(19, data, 0), "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 48, "column": 11 } } })) != null ? stack1 : "")
33
33
  + "\n";
34
34
  }, "4": function (container, depth0, helpers, partials, data) {
35
35
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -43,6 +43,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
43
43
  + ((stack1 = container.lambda(container.strict(depth0, "rawName", { "start": { "line": 15, "column": 20 }, "end": { "line": 15, "column": 27 } }), depth0)) != null ? stack1 : "")
44
44
  + " {\n"
45
45
  + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 36, "column": 13 } } })) != null ? stack1 : "")
46
+ + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "ghostProperties"), { "name": "if", "hash": {}, "fn": container.program(16, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 44, "column": 11 } } })) != null ? stack1 : "")
46
47
  + "}\n";
47
48
  }, "5": function (container, depth0, helpers, partials, data) {
48
49
  var stack1;
@@ -121,6 +122,19 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
121
122
  + ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "diff"), "previousType", { "start": { "line": 30, "column": 31 }, "end": { "line": 30, "column": 48 } }), depth0)) != null ? stack1 : "")
122
123
  + "\n */\n";
123
124
  }, "16": function (container, depth0, helpers, partials, data) {
125
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
126
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
127
+ return parent[propertyName];
128
+ }
129
+ return undefined;
130
+ };
131
+ return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "ghostProperties"), { "name": "each", "hash": {}, "fn": container.program(17, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 43, "column": 13 } } })) != null ? stack1 : "");
132
+ }, "17": function (container, depth0, helpers, partials, data) {
133
+ var stack1;
134
+ return " /**\n * @deprecated Removed from API\n */\n "
135
+ + ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 11 } }), depth0)) != null ? stack1 : "")
136
+ + "?: unknown;\n";
137
+ }, "19": function (container, depth0, helpers, partials, data) {
124
138
  var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
125
139
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
126
140
  return parent[propertyName];
@@ -128,37 +142,37 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
128
142
  return undefined;
129
143
  };
130
144
  return "export type "
131
- + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 39, "column": 15 }, "end": { "line": 39, "column": 22 } }), depth0)) != null ? stack1 : "")
145
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 22 } }), depth0)) != null ? stack1 : "")
132
146
  + " = "
133
- + ((stack1 = alias2(alias1(depth0, "rawType", { "start": { "line": 39, "column": 31 }, "end": { "line": 39, "column": 38 } }), depth0)) != null ? stack1 : "")
147
+ + ((stack1 = alias2(alias1(depth0, "rawType", { "start": { "line": 47, "column": 31 }, "end": { "line": 47, "column": 38 } }), depth0)) != null ? stack1 : "")
134
148
  + ((stack1 = container.invokePartial(lookupProperty(partials, "isNullable"), depth0, { "name": "isNullable", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
135
149
  + ";\n";
136
- }, "18": function (container, depth0, helpers, partials, data) {
150
+ }, "21": function (container, depth0, helpers, partials, data) {
137
151
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
138
152
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
139
153
  return parent[propertyName];
140
154
  }
141
155
  return undefined;
142
156
  };
143
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isDefinition"), { "name": "if", "hash": {}, "fn": container.program(19, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 47, "column": 0 }, "end": { "line": 93, "column": 7 } } })) != null ? stack1 : "");
144
- }, "19": function (container, depth0, helpers, partials, data) {
157
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isDefinition"), { "name": "if", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 55, "column": 0 }, "end": { "line": 101, "column": 7 } } })) != null ? stack1 : "");
158
+ }, "22": function (container, depth0, helpers, partials, data) {
145
159
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
146
160
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
147
161
  return parent[propertyName];
148
162
  }
149
163
  return undefined;
150
164
  };
151
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoName"), { "name": "if", "hash": {}, "fn": container.program(20, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 48, "column": 0 }, "end": { "line": 92, "column": 7 } } })) != null ? stack1 : "");
152
- }, "20": function (container, depth0, helpers, partials, data) {
165
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoName"), { "name": "if", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 56, "column": 0 }, "end": { "line": 100, "column": 7 } } })) != null ? stack1 : "");
166
+ }, "23": function (container, depth0, helpers, partials, data) {
153
167
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
154
168
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
155
169
  return parent[propertyName];
156
170
  }
157
171
  return undefined;
158
172
  };
159
- return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoKind"), "class", { "name": "equals", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.program(35, data, 0), "data": data, "loc": { "start": { "line": 49, "column": 0 }, "end": { "line": 90, "column": 11 } } })) != null ? stack1 : "")
173
+ return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoKind"), "class", { "name": "equals", "hash": {}, "fn": container.program(24, data, 0), "inverse": container.program(38, data, 0), "data": data, "loc": { "start": { "line": 57, "column": 0 }, "end": { "line": 98, "column": 11 } } })) != null ? stack1 : "")
160
174
  + "\n";
161
- }, "21": function (container, depth0, helpers, partials, data) {
175
+ }, "24": function (container, depth0, helpers, partials, data) {
162
176
  var stack1, alias1 = container.strict, alias2 = container.lambda, alias3 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
163
177
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
164
178
  return parent[propertyName];
@@ -166,23 +180,23 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
166
180
  return undefined;
167
181
  };
168
182
  return "export class "
169
- + ((stack1 = alias2(alias1(depth0, "dtoName", { "start": { "line": 50, "column": 16 }, "end": { "line": 50, "column": 23 } }), depth0)) != null ? stack1 : "")
183
+ + ((stack1 = alias2(alias1(depth0, "dtoName", { "start": { "line": 58, "column": 16 }, "end": { "line": 58, "column": 23 } }), depth0)) != null ? stack1 : "")
170
184
  + " extends BaseDto<"
171
- + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 50, "column": 46 }, "end": { "line": 50, "column": 53 } }), depth0)) != null ? stack1 : "")
185
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 58, "column": 46 }, "end": { "line": 58, "column": 53 } }), depth0)) != null ? stack1 : "")
172
186
  + "> {\n"
173
- + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 51, "column": 4 }, "end": { "line": 53, "column": 13 } } })) != null ? stack1 : "")
187
+ + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 59, "column": 4 }, "end": { "line": 61, "column": 13 } } })) != null ? stack1 : "")
174
188
  + "\n"
175
- + ((stack1 = lookupProperty(helpers, "if").call(alias3, lookupProperty(depth0, "dtoGetters"), { "name": "if", "hash": {}, "fn": container.program(24, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 55, "column": 4 }, "end": { "line": 66, "column": 11 } } })) != null ? stack1 : "")
189
+ + ((stack1 = lookupProperty(helpers, "if").call(alias3, lookupProperty(depth0, "dtoGetters"), { "name": "if", "hash": {}, "fn": container.program(27, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 74, "column": 11 } } })) != null ? stack1 : "")
176
190
  + "\n public constructor(data: "
177
- + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 68, "column": 32 }, "end": { "line": 68, "column": 39 } }), depth0)) != null ? stack1 : "")
191
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 76, "column": 32 }, "end": { "line": 76, "column": 39 } }), depth0)) != null ? stack1 : "")
178
192
  + ") {\n super(data);\n"
179
- + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(28, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 70, "column": 8 }, "end": { "line": 72, "column": 17 } } })) != null ? stack1 : "")
193
+ + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(31, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 78, "column": 8 }, "end": { "line": 80, "column": 17 } } })) != null ? stack1 : "")
180
194
  + " }\n\n public toJSON(): "
181
- + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 75, "column": 24 }, "end": { "line": 75, "column": 31 } }), depth0)) != null ? stack1 : "")
195
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 31 } }), depth0)) != null ? stack1 : "")
182
196
  + " {\n return {\n ...this._raw,\n"
183
- + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(30, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 78, "column": 12 }, "end": { "line": 84, "column": 21 } } })) != null ? stack1 : "")
197
+ + ((stack1 = lookupProperty(helpers, "each").call(alias3, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(33, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 86, "column": 12 }, "end": { "line": 92, "column": 21 } } })) != null ? stack1 : "")
184
198
  + " };\n }\n}\n";
185
- }, "22": function (container, depth0, helpers, partials, data) {
199
+ }, "25": function (container, depth0, helpers, partials, data) {
186
200
  var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
187
201
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
188
202
  return parent[propertyName];
@@ -190,20 +204,20 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
190
204
  return undefined;
191
205
  };
192
206
  return " public readonly "
193
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 52, "column": 23 }, "end": { "line": 52, "column": 27 } }), depth0)) != null ? stack1 : "")
207
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 60, "column": 23 }, "end": { "line": 60, "column": 27 } }), depth0)) != null ? stack1 : "")
194
208
  + ": "
195
- + ((stack1 = alias2(alias1(depth0, "dtoType", { "start": { "line": 52, "column": 35 }, "end": { "line": 52, "column": 42 } }), depth0)) != null ? stack1 : "")
209
+ + ((stack1 = alias2(alias1(depth0, "dtoType", { "start": { "line": 60, "column": 35 }, "end": { "line": 60, "column": 42 } }), depth0)) != null ? stack1 : "")
196
210
  + ((stack1 = container.invokePartial(lookupProperty(partials, "isNullable"), depth0, { "name": "isNullable", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
197
211
  + ";\n";
198
- }, "24": function (container, depth0, helpers, partials, data) {
212
+ }, "27": function (container, depth0, helpers, partials, data) {
199
213
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
200
214
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
201
215
  return parent[propertyName];
202
216
  }
203
217
  return undefined;
204
218
  };
205
- return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoGetters"), { "name": "each", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 56, "column": 4 }, "end": { "line": 65, "column": 13 } } })) != null ? stack1 : "");
206
- }, "25": function (container, depth0, helpers, partials, data) {
219
+ return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoGetters"), { "name": "each", "hash": {}, "fn": container.program(28, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 73, "column": 13 } } })) != null ? stack1 : "");
220
+ }, "28": function (container, depth0, helpers, partials, data) {
207
221
  var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
208
222
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
209
223
  return parent[propertyName];
@@ -211,55 +225,86 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
211
225
  return undefined;
212
226
  };
213
227
  return " /**\n * @miracle: "
214
- + ((stack1 = alias2(alias1(depth0, "oldName", { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 27 } }), depth0)) != null ? stack1 : "")
228
+ + ((stack1 = alias2(alias1(depth0, "oldName", { "start": { "line": 66, "column": 20 }, "end": { "line": 66, "column": 27 } }), depth0)) != null ? stack1 : "")
215
229
  + " -> "
216
- + ((stack1 = alias2(alias1(depth0, "newName", { "start": { "line": 58, "column": 37 }, "end": { "line": 58, "column": 44 } }), depth0)) != null ? stack1 : "")
217
- + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "confidence"), { "name": "if", "hash": {}, "fn": container.program(26, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 58, "column": 47 }, "end": { "line": 58, "column": 103 } } })) != null ? stack1 : "")
230
+ + ((stack1 = alias2(alias1(depth0, "newName", { "start": { "line": 66, "column": 37 }, "end": { "line": 66, "column": 44 } }), depth0)) != null ? stack1 : "")
231
+ + ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "confidence"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 66, "column": 47 }, "end": { "line": 66, "column": 103 } } })) != null ? stack1 : "")
218
232
  + "\n * @deprecated\n */\n public get "
219
- + ((stack1 = alias2(alias1(depth0, "oldName", { "start": { "line": 61, "column": 18 }, "end": { "line": 61, "column": 25 } }), depth0)) != null ? stack1 : "")
233
+ + ((stack1 = alias2(alias1(depth0, "oldName", { "start": { "line": 69, "column": 18 }, "end": { "line": 69, "column": 25 } }), depth0)) != null ? stack1 : "")
220
234
  + "() {\n return "
221
- + ((stack1 = alias2(alias1(depth0, "target", { "start": { "line": 62, "column": 18 }, "end": { "line": 62, "column": 24 } }), depth0)) != null ? stack1 : "")
235
+ + ((stack1 = alias2(alias1(depth0, "target", { "start": { "line": 70, "column": 18 }, "end": { "line": 70, "column": 24 } }), depth0)) != null ? stack1 : "")
222
236
  + ";\n }\n\n";
223
- }, "26": function (container, depth0, helpers, partials, data) {
237
+ }, "29": function (container, depth0, helpers, partials, data) {
224
238
  var stack1;
225
239
  return " (confidence: "
226
- + ((stack1 = container.lambda(container.strict(depth0, "confidence", { "start": { "line": 58, "column": 82 }, "end": { "line": 58, "column": 92 } }), depth0)) != null ? stack1 : "")
240
+ + ((stack1 = container.lambda(container.strict(depth0, "confidence", { "start": { "line": 66, "column": 82 }, "end": { "line": 66, "column": 92 } }), depth0)) != null ? stack1 : "")
227
241
  + ")";
228
- }, "28": function (container, depth0, helpers, partials, data) {
242
+ }, "31": function (container, depth0, helpers, partials, data) {
229
243
  var stack1, alias1 = container.strict, alias2 = container.lambda;
230
244
  return " this"
231
- + ((stack1 = alias2(alias1(depth0, "dtoTarget", { "start": { "line": 71, "column": 15 }, "end": { "line": 71, "column": 24 } }), depth0)) != null ? stack1 : "")
245
+ + ((stack1 = alias2(alias1(depth0, "dtoTarget", { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 24 } }), depth0)) != null ? stack1 : "")
232
246
  + " = "
233
- + ((stack1 = alias2(alias1(depth0, "dtoInit", { "start": { "line": 71, "column": 33 }, "end": { "line": 71, "column": 40 } }), depth0)) != null ? stack1 : "")
247
+ + ((stack1 = alias2(alias1(depth0, "dtoInit", { "start": { "line": 79, "column": 33 }, "end": { "line": 79, "column": 40 } }), depth0)) != null ? stack1 : "")
234
248
  + ";\n";
235
- }, "30": function (container, depth0, helpers, partials, data) {
249
+ }, "33": function (container, depth0, helpers, partials, data) {
236
250
  var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
237
251
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
238
252
  return parent[propertyName];
239
253
  }
240
254
  return undefined;
241
255
  };
242
- return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoToJSON"), { "name": "if", "hash": {}, "fn": container.program(31, data, 0), "inverse": container.program(33, data, 0), "data": data, "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 83, "column": 19 } } })) != null ? stack1 : "");
243
- }, "31": function (container, depth0, helpers, partials, data) {
256
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "dtoToJSON"), { "name": "if", "hash": {}, "fn": container.program(34, data, 0), "inverse": container.program(36, data, 0), "data": data, "loc": { "start": { "line": 87, "column": 12 }, "end": { "line": 91, "column": 19 } } })) != null ? stack1 : "");
257
+ }, "34": function (container, depth0, helpers, partials, data) {
244
258
  var stack1, alias1 = container.strict, alias2 = container.lambda;
245
259
  return " "
246
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 80, "column": 15 }, "end": { "line": 80, "column": 19 } }), depth0)) != null ? stack1 : "")
260
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 88, "column": 15 }, "end": { "line": 88, "column": 19 } }), depth0)) != null ? stack1 : "")
247
261
  + ": "
248
- + ((stack1 = alias2(alias1(depth0, "dtoToJSON", { "start": { "line": 80, "column": 27 }, "end": { "line": 80, "column": 36 } }), depth0)) != null ? stack1 : "")
262
+ + ((stack1 = alias2(alias1(depth0, "dtoToJSON", { "start": { "line": 88, "column": 27 }, "end": { "line": 88, "column": 36 } }), depth0)) != null ? stack1 : "")
249
263
  + ",\n";
250
- }, "33": function (container, depth0, helpers, partials, data) {
264
+ }, "36": function (container, depth0, helpers, partials, data) {
251
265
  var stack1, alias1 = container.strict, alias2 = container.lambda;
252
266
  return " "
253
- + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 82, "column": 15 }, "end": { "line": 82, "column": 19 } }), depth0)) != null ? stack1 : "")
267
+ + ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 90, "column": 15 }, "end": { "line": 90, "column": 19 } }), depth0)) != null ? stack1 : "")
254
268
  + ": this"
255
- + ((stack1 = alias2(alias1(depth0, "dtoTarget", { "start": { "line": 82, "column": 31 }, "end": { "line": 82, "column": 40 } }), depth0)) != null ? stack1 : "")
269
+ + ((stack1 = alias2(alias1(depth0, "dtoTarget", { "start": { "line": 90, "column": 31 }, "end": { "line": 90, "column": 40 } }), depth0)) != null ? stack1 : "")
256
270
  + ",\n";
257
- }, "35": function (container, depth0, helpers, partials, data) {
271
+ }, "38": function (container, depth0, helpers, partials, data) {
258
272
  var stack1, alias1 = container.strict, alias2 = container.lambda;
259
273
  return "export type "
260
- + ((stack1 = alias2(alias1(depth0, "dtoName", { "start": { "line": 89, "column": 15 }, "end": { "line": 89, "column": 22 } }), depth0)) != null ? stack1 : "")
274
+ + ((stack1 = alias2(alias1(depth0, "dtoName", { "start": { "line": 97, "column": 15 }, "end": { "line": 97, "column": 22 } }), depth0)) != null ? stack1 : "")
261
275
  + " = "
262
- + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 89, "column": 31 }, "end": { "line": 89, "column": 38 } }), depth0)) != null ? stack1 : "")
276
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 97, "column": 31 }, "end": { "line": 97, "column": 38 } }), depth0)) != null ? stack1 : "")
277
+ + ";\n";
278
+ }, "40": function (container, depth0, helpers, partials, data) {
279
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
280
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
281
+ return parent[propertyName];
282
+ }
283
+ return undefined;
284
+ };
285
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isDefinition"), { "name": "if", "hash": {}, "fn": container.program(41, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 105, "column": 0 }, "end": { "line": 111, "column": 7 } } })) != null ? stack1 : "");
286
+ }, "41": function (container, depth0, helpers, partials, data) {
287
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
288
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
289
+ return parent[propertyName];
290
+ }
291
+ return undefined;
292
+ };
293
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "exportName"), { "name": "if", "hash": {}, "fn": container.program(42, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 106, "column": 0 }, "end": { "line": 110, "column": 7 } } })) != null ? stack1 : "");
294
+ }, "42": function (container, depth0, helpers, partials, data) {
295
+ var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
296
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
297
+ return parent[propertyName];
298
+ }
299
+ return undefined;
300
+ };
301
+ return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "rawName"), { "name": "if", "hash": {}, "fn": container.program(43, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 107, "column": 0 }, "end": { "line": 109, "column": 7 } } })) != null ? stack1 : "");
302
+ }, "43": function (container, depth0, helpers, partials, data) {
303
+ var stack1, alias1 = container.strict, alias2 = container.lambda;
304
+ return "export type "
305
+ + ((stack1 = alias2(alias1(depth0, "exportName", { "start": { "line": 108, "column": 15 }, "end": { "line": 108, "column": 25 } }), depth0)) != null ? stack1 : "")
306
+ + " = "
307
+ + ((stack1 = alias2(alias1(depth0, "rawName", { "start": { "line": 108, "column": 34 }, "end": { "line": 108, "column": 41 } }), depth0)) != null ? stack1 : "")
263
308
  + ";\n";
264
309
  }, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
265
310
  var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
@@ -274,7 +319,9 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
274
319
  + "';\nimport { fromArray } from '"
275
320
  + ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "dtoUtils", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 69 } } })) != null ? stack1 : "")
276
321
  + "';\n\n"
277
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 44, "column": 9 } } })) != null ? stack1 : "")
322
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 52, "column": 9 } } })) != null ? stack1 : "")
323
+ + "\n"
324
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 54, "column": 0 }, "end": { "line": 102, "column": 9 } } })) != null ? stack1 : "")
278
325
  + "\n"
279
- + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(18, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 46, "column": 0 }, "end": { "line": 94, "column": 9 } } })) != null ? stack1 : "");
326
+ + ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "models"), { "name": "each", "hash": {}, "fn": container.program(40, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 104, "column": 0 }, "end": { "line": 112, "column": 9 } } })) != null ? stack1 : "");
280
327
  }, "usePartial": true, "useData": true };
@@ -1,26 +1,29 @@
1
1
  declare const _default: {
2
2
  "1": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
3
- "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
3
+ "2": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
4
4
  "3": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
- "5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
5
+ "5": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
6
+ "6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
6
7
  "7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
7
8
  "9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
8
9
  "11": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
9
- "13": (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
10
- "14": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
11
- "16": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
12
- "17": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
10
+ "13": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
11
+ "15": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
12
+ "17": (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
13
13
  "18": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
- "20": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
14
+ "20": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
15
+ "21": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
15
16
  "22": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
16
- "24": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
17
- "25": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
17
+ "24": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
18
18
  "26": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
19
- "28": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
19
+ "28": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
20
+ "29": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
20
21
  "30": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
21
22
  "32": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
22
23
  "34": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
23
24
  "36": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
25
+ "38": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
26
+ "40": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
24
27
  compiler: (string | number)[];
25
28
  main: (container: any, depth0: any, helpers: any, partials: any, data: any, blockParams: any, depths: any) => string;
26
29
  usePartial: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAgRoD"}
1
+ {"version":3,"file":"exportService.d.ts","sourceRoot":"","sources":["../../../src/templatesCompiled/client/exportService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA+SoD"}