@veloceapps/sdk 0.0.0-watch

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 (351) hide show
  1. package/README.md +7 -0
  2. package/cms/cms.actions.d.ts +12 -0
  3. package/cms/cms.default.d.ts +5 -0
  4. package/cms/cms.elements.d.ts +4 -0
  5. package/cms/components/element-children/element-children.component.d.ts +10 -0
  6. package/cms/components/element-children/element-children.module.d.ts +8 -0
  7. package/cms/components/element-renderer/element-renderer.component.d.ts +35 -0
  8. package/cms/components/element-renderer/element-renderer.module.d.ts +7 -0
  9. package/cms/components/element.component.d.ts +13 -0
  10. package/cms/components/index.d.ts +1 -0
  11. package/cms/components/plugin.component.d.ts +15 -0
  12. package/cms/components/preview/index.d.ts +2 -0
  13. package/cms/components/preview/preview.component.d.ts +34 -0
  14. package/cms/components/preview/preview.module.d.ts +11 -0
  15. package/cms/decorators/element.decorator.d.ts +2 -0
  16. package/cms/decorators/index.d.ts +1 -0
  17. package/cms/directives/custom-template.directive.d.ts +12 -0
  18. package/cms/engine/models/entity.d.ts +11 -0
  19. package/cms/engine/models/plugin.d.ts +5 -0
  20. package/cms/index.d.ts +11 -0
  21. package/cms/injection-tokens.d.ts +11 -0
  22. package/cms/launcher.module.d.ts +10 -0
  23. package/cms/modules/federated/default-options.d.ts +4 -0
  24. package/cms/modules/federated/export.d.ts +1 -0
  25. package/cms/modules/federated/federated.component.d.ts +26 -0
  26. package/cms/modules/federated/federated.module.d.ts +9 -0
  27. package/cms/modules/federated/federated.types.d.ts +30 -0
  28. package/cms/modules/federated/federated.utils.d.ts +1 -0
  29. package/cms/package.json +10 -0
  30. package/cms/plugins/configuration.plugin.d.ts +23 -0
  31. package/cms/plugins/io.plugin.d.ts +9 -0
  32. package/cms/plugins/script.plugin.d.ts +13 -0
  33. package/cms/services/dynamic-module.service.d.ts +15 -0
  34. package/cms/services/element-context.service.d.ts +8 -0
  35. package/cms/services/index.d.ts +3 -0
  36. package/cms/services/integration.state.d.ts +17 -0
  37. package/cms/services/io-provider.service.d.ts +15 -0
  38. package/cms/services/launcher.service.d.ts +18 -0
  39. package/cms/services/templates.service.d.ts +9 -0
  40. package/cms/types/common.types.d.ts +103 -0
  41. package/cms/types/configuration.types.d.ts +17 -0
  42. package/cms/types/elements.types.d.ts +2 -0
  43. package/cms/types/index.d.ts +5 -0
  44. package/cms/types/integration.types.d.ts +4 -0
  45. package/cms/types/path.types.d.ts +11 -0
  46. package/cms/utils/element.utils.d.ts +15 -0
  47. package/cms/utils/elements-resolver.d.ts +20 -0
  48. package/cms/utils/index.d.ts +3 -0
  49. package/cms/utils/path.utils.d.ts +5 -0
  50. package/cms/veloce-sdk-cms.d.ts +5 -0
  51. package/cms/vendor-map.d.ts +689 -0
  52. package/core/core.module.d.ts +8 -0
  53. package/core/index.d.ts +6 -0
  54. package/core/modules/configuration/configuration.module.d.ts +7 -0
  55. package/core/modules/configuration/helpers.d.ts +3 -0
  56. package/core/modules/configuration/index.d.ts +4 -0
  57. package/core/modules/configuration/services/configuration-runtime.service.d.ts +28 -0
  58. package/core/modules/configuration/services/configuration.service.d.ts +40 -0
  59. package/core/modules/configuration/services/runtime-context.service.d.ts +14 -0
  60. package/core/modules/configuration/types/configuration-runtime.types.d.ts +6 -0
  61. package/core/modules/flow-configuration/flow-configuration.module.d.ts +6 -0
  62. package/core/modules/flow-configuration/index.d.ts +4 -0
  63. package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +37 -0
  64. package/core/modules/flow-configuration/services/flow-update.service.d.ts +12 -0
  65. package/core/modules/flow-configuration/types/update.types.d.ts +12 -0
  66. package/core/modules/index.d.ts +2 -0
  67. package/core/package.json +10 -0
  68. package/core/services/context.service.d.ts +17 -0
  69. package/core/services/index.d.ts +3 -0
  70. package/core/services/product-images.service.d.ts +12 -0
  71. package/core/services/quote-draft.service.d.ts +31 -0
  72. package/core/types/index.d.ts +3 -0
  73. package/core/types/quote-states.types.d.ts +6 -0
  74. package/core/types/runtime.types.d.ts +31 -0
  75. package/core/types/ui-definition.types.d.ts +26 -0
  76. package/core/utils/index.d.ts +2 -0
  77. package/core/utils/line-item.utils.d.ts +26 -0
  78. package/core/utils/line-item.worker.d.ts +12 -0
  79. package/core/veloce-sdk-core.d.ts +5 -0
  80. package/esm2015/cms/cms.actions.js +17 -0
  81. package/esm2015/cms/cms.default.js +6 -0
  82. package/esm2015/cms/cms.elements.js +29 -0
  83. package/esm2015/cms/components/element-children/element-children.component.js +23 -0
  84. package/esm2015/cms/components/element-children/element-children.module.js +18 -0
  85. package/esm2015/cms/components/element-renderer/element-renderer.component.js +143 -0
  86. package/esm2015/cms/components/element-renderer/element-renderer.module.js +16 -0
  87. package/esm2015/cms/components/element.component.js +31 -0
  88. package/esm2015/cms/components/index.js +2 -0
  89. package/esm2015/cms/components/plugin.component.js +16 -0
  90. package/esm2015/cms/components/preview/index.js +3 -0
  91. package/esm2015/cms/components/preview/preview.component.js +105 -0
  92. package/esm2015/cms/components/preview/preview.module.js +23 -0
  93. package/esm2015/cms/decorators/element.decorator.js +6 -0
  94. package/esm2015/cms/decorators/index.js +2 -0
  95. package/esm2015/cms/directives/custom-template.directive.js +25 -0
  96. package/esm2015/cms/engine/models/entity.js +18 -0
  97. package/esm2015/cms/engine/models/plugin.js +6 -0
  98. package/esm2015/cms/index.js +11 -0
  99. package/esm2015/cms/injection-tokens.js +8 -0
  100. package/esm2015/cms/launcher.module.js +23 -0
  101. package/esm2015/cms/modules/federated/default-options.js +5 -0
  102. package/esm2015/cms/modules/federated/export.js +2 -0
  103. package/esm2015/cms/modules/federated/federated.component.js +82 -0
  104. package/esm2015/cms/modules/federated/federated.module.js +19 -0
  105. package/esm2015/cms/modules/federated/federated.types.js +2 -0
  106. package/esm2015/cms/modules/federated/federated.utils.js +37 -0
  107. package/esm2015/cms/plugins/configuration.plugin.js +94 -0
  108. package/esm2015/cms/plugins/io.plugin.js +37 -0
  109. package/esm2015/cms/plugins/script.plugin.js +66 -0
  110. package/esm2015/cms/services/dynamic-module.service.js +33 -0
  111. package/esm2015/cms/services/element-context.service.js +10 -0
  112. package/esm2015/cms/services/index.js +4 -0
  113. package/esm2015/cms/services/integration.state.js +40 -0
  114. package/esm2015/cms/services/io-provider.service.js +51 -0
  115. package/esm2015/cms/services/launcher.service.js +57 -0
  116. package/esm2015/cms/services/templates.service.js +19 -0
  117. package/esm2015/cms/types/common.types.js +2 -0
  118. package/esm2015/cms/types/configuration.types.js +2 -0
  119. package/esm2015/cms/types/elements.types.js +2 -0
  120. package/esm2015/cms/types/index.js +6 -0
  121. package/esm2015/cms/types/integration.types.js +2 -0
  122. package/esm2015/cms/types/path.types.js +2 -0
  123. package/esm2015/cms/utils/element.utils.js +149 -0
  124. package/esm2015/cms/utils/elements-resolver.js +108 -0
  125. package/esm2015/cms/utils/index.js +4 -0
  126. package/esm2015/cms/utils/path.utils.js +67 -0
  127. package/esm2015/cms/veloce-sdk-cms.js +5 -0
  128. package/esm2015/cms/vendor-map.js +35 -0
  129. package/esm2015/core/core.module.js +18 -0
  130. package/esm2015/core/index.js +7 -0
  131. package/esm2015/core/modules/configuration/configuration.module.js +34 -0
  132. package/esm2015/core/modules/configuration/helpers.js +10 -0
  133. package/esm2015/core/modules/configuration/index.js +5 -0
  134. package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +90 -0
  135. package/esm2015/core/modules/configuration/services/configuration.service.js +153 -0
  136. package/esm2015/core/modules/configuration/services/runtime-context.service.js +61 -0
  137. package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +2 -0
  138. package/esm2015/core/modules/flow-configuration/flow-configuration.module.js +18 -0
  139. package/esm2015/core/modules/flow-configuration/index.js +5 -0
  140. package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +90 -0
  141. package/esm2015/core/modules/flow-configuration/services/flow-update.service.js +114 -0
  142. package/esm2015/core/modules/flow-configuration/types/update.types.js +2 -0
  143. package/esm2015/core/modules/index.js +3 -0
  144. package/esm2015/core/services/context.service.js +44 -0
  145. package/esm2015/core/services/index.js +4 -0
  146. package/esm2015/core/services/product-images.service.js +30 -0
  147. package/esm2015/core/services/quote-draft.service.js +88 -0
  148. package/esm2015/core/types/index.js +4 -0
  149. package/esm2015/core/types/quote-states.types.js +2 -0
  150. package/esm2015/core/types/runtime.types.js +16 -0
  151. package/esm2015/core/types/ui-definition.types.js +2 -0
  152. package/esm2015/core/utils/index.js +3 -0
  153. package/esm2015/core/utils/line-item.utils.js +98 -0
  154. package/esm2015/core/utils/line-item.worker.js +19 -0
  155. package/esm2015/core/veloce-sdk-core.js +5 -0
  156. package/esm2015/index.js +2 -0
  157. package/esm2015/runtime/components/component-preview/component-preview.component.js +125 -0
  158. package/esm2015/runtime/components/index.js +5 -0
  159. package/esm2015/runtime/components/section-renderer/section-renderer.component.js +71 -0
  160. package/esm2015/runtime/components/ui-runtime/runtime.component.js +427 -0
  161. package/esm2015/runtime/components/ui-runtime-preview/runtime-preview.component.js +109 -0
  162. package/esm2015/runtime/execution/components/children-placeholder/children-placeholder.component.js +68 -0
  163. package/esm2015/runtime/execution/components/context-provider/context-provider.component.js +36 -0
  164. package/esm2015/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.js +72 -0
  165. package/esm2015/runtime/execution/components/federated/federated.component.js +81 -0
  166. package/esm2015/runtime/execution/components/velo-attribute/velo-attribute.component.js +65 -0
  167. package/esm2015/runtime/execution/components/velo-multiselect/velo-multiselect.component.js +136 -0
  168. package/esm2015/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.js +80 -0
  169. package/esm2015/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.js +101 -0
  170. package/esm2015/runtime/execution/components/velo-port-radio/velo-port-radio.component.js +150 -0
  171. package/esm2015/runtime/execution/components/velo-type/velo-type.component.js +121 -0
  172. package/esm2015/runtime/execution/directives/section-script.directive.js +242 -0
  173. package/esm2015/runtime/execution/directives/sf-query.directive.js +34 -0
  174. package/esm2015/runtime/execution/directives/velo-attribute.directive.js +86 -0
  175. package/esm2015/runtime/execution/directives/velo-port.directive.js +373 -0
  176. package/esm2015/runtime/execution/directives/vl-approval.directive.js +22 -0
  177. package/esm2015/runtime/execution/directives/vl-document-attachments.directive.js +35 -0
  178. package/esm2015/runtime/execution/directives/vl-document-templates.directive.js +59 -0
  179. package/esm2015/runtime/execution/directives/vl-quote.directive.js +41 -0
  180. package/esm2015/runtime/execution/directives/vl-ramp.directive.js +51 -0
  181. package/esm2015/runtime/execution/runtime-execution.module.js +163 -0
  182. package/esm2015/runtime/execution/utils/federated.util.js +37 -0
  183. package/esm2015/runtime/index.js +5 -0
  184. package/esm2015/runtime/runtime.module.js +104 -0
  185. package/esm2015/runtime/services/cart.service.js +28 -0
  186. package/esm2015/runtime/services/collapsible-state.service.js +34 -0
  187. package/esm2015/runtime/services/configuration.service.js +102 -0
  188. package/esm2015/runtime/services/current-state.service.js +17 -0
  189. package/esm2015/runtime/services/form-scope.service.js +30 -0
  190. package/esm2015/runtime/services/index.js +4 -0
  191. package/esm2015/runtime/services/product-model-cache.service.js +30 -0
  192. package/esm2015/runtime/services/runtime-context.service.js +56 -0
  193. package/esm2015/runtime/services/runtime-form.service.js +224 -0
  194. package/esm2015/runtime/services/runtime.service.js +108 -0
  195. package/esm2015/runtime/services/section-helper.service.js +27 -0
  196. package/esm2015/runtime/services/section-scope.service.js +36 -0
  197. package/esm2015/runtime/services/section-store.service.js +22 -0
  198. package/esm2015/runtime/services/section.service.js +124 -0
  199. package/esm2015/runtime/types/bound-data.types.js +7 -0
  200. package/esm2015/runtime/types/index.js +2 -0
  201. package/esm2015/runtime/types/runtime.types.js +2 -0
  202. package/esm2015/runtime/types/script-registry.types.js +51 -0
  203. package/esm2015/runtime/utils/line-item.util.js +273 -0
  204. package/esm2015/runtime/utils/section.utils.js +26 -0
  205. package/esm2015/runtime/utils/sections-binder.helper.js +105 -0
  206. package/esm2015/runtime/veloce-sdk-runtime.js +5 -0
  207. package/esm2015/src/components/dialog/dialog.component.js +30 -0
  208. package/esm2015/src/components/dialog/dialog.module.js +19 -0
  209. package/esm2015/src/components/dialog/dialog.types.js +2 -0
  210. package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +116 -0
  211. package/esm2015/src/components/header/cart-overlay/cart-preview.module.js +23 -0
  212. package/esm2015/src/components/header/header.component.js +196 -0
  213. package/esm2015/src/components/header/header.module.js +23 -0
  214. package/esm2015/src/components/header/header.types.js +2 -0
  215. package/esm2015/src/constants.js +2 -0
  216. package/esm2015/src/flow-routing.module.js +97 -0
  217. package/esm2015/src/flow.component.js +35 -0
  218. package/esm2015/src/flow.module.js +52 -0
  219. package/esm2015/src/guards/context.guard.js +75 -0
  220. package/esm2015/src/guards/index.js +2 -0
  221. package/esm2015/src/guards/product-unload.guard.js +43 -0
  222. package/esm2015/src/guards/root.guard.js +41 -0
  223. package/esm2015/src/index.js +7 -0
  224. package/esm2015/src/pages/catalog/catalog.component.js +117 -0
  225. package/esm2015/src/pages/catalog/catalog.module.js +20 -0
  226. package/esm2015/src/pages/debug/debug.component.js +65 -0
  227. package/esm2015/src/pages/debug/debug.module.js +48 -0
  228. package/esm2015/src/pages/legacy-product/legacy-product.component.js +132 -0
  229. package/esm2015/src/pages/legacy-product/legacy-product.module.js +21 -0
  230. package/esm2015/src/pages/product/product.component.js +95 -0
  231. package/esm2015/src/pages/product/product.module.js +20 -0
  232. package/esm2015/src/pages/record-not-found/record-not-found.component.js +29 -0
  233. package/esm2015/src/pages/record-not-found/record-not-found.module.js +20 -0
  234. package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +117 -0
  235. package/esm2015/src/pages/shopping-cart/shopping-cart.module.js +20 -0
  236. package/esm2015/src/resolvers/flow.resolver.js +58 -0
  237. package/esm2015/src/resolvers/quote.resolver.js +45 -0
  238. package/esm2015/src/services/flow-dialog.service.js +80 -0
  239. package/esm2015/src/services/flow-router.service.js +124 -0
  240. package/esm2015/src/services/flow.service.js +67 -0
  241. package/esm2015/src/services/index.js +2 -0
  242. package/esm2015/src/types/context-route.types.js +2 -0
  243. package/esm2015/src/types/flow-customization.types.js +3 -0
  244. package/esm2015/src/types/index.js +3 -0
  245. package/esm2015/src/types/route.types.js +2 -0
  246. package/esm2015/src/utils/flow.utils.js +12 -0
  247. package/esm2015/src/utils/index.js +2 -0
  248. package/esm2015/veloce-sdk.js +5 -0
  249. package/fesm2015/veloce-sdk-cms.js +1301 -0
  250. package/fesm2015/veloce-sdk-cms.js.map +1 -0
  251. package/fesm2015/veloce-sdk-core.js +837 -0
  252. package/fesm2015/veloce-sdk-core.js.map +1 -0
  253. package/fesm2015/veloce-sdk-runtime.js +3895 -0
  254. package/fesm2015/veloce-sdk-runtime.js.map +1 -0
  255. package/fesm2015/veloce-sdk.js +1635 -0
  256. package/fesm2015/veloce-sdk.js.map +1 -0
  257. package/index.d.ts +1 -0
  258. package/package.json +49 -0
  259. package/runtime/components/component-preview/component-preview.component.d.ts +27 -0
  260. package/runtime/components/index.d.ts +4 -0
  261. package/runtime/components/section-renderer/section-renderer.component.d.ts +25 -0
  262. package/runtime/components/ui-runtime/runtime.component.d.ts +53 -0
  263. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +27 -0
  264. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +30 -0
  265. package/runtime/execution/components/context-provider/context-provider.component.d.ts +14 -0
  266. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +25 -0
  267. package/runtime/execution/components/federated/federated.component.d.ts +36 -0
  268. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +19 -0
  269. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +35 -0
  270. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +22 -0
  271. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +22 -0
  272. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +28 -0
  273. package/runtime/execution/components/velo-type/velo-type.component.d.ts +31 -0
  274. package/runtime/execution/directives/section-script.directive.d.ts +59 -0
  275. package/runtime/execution/directives/sf-query.directive.d.ts +15 -0
  276. package/runtime/execution/directives/velo-attribute.directive.d.ts +26 -0
  277. package/runtime/execution/directives/velo-port.directive.d.ts +74 -0
  278. package/runtime/execution/directives/vl-approval.directive.d.ts +10 -0
  279. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +15 -0
  280. package/runtime/execution/directives/vl-document-templates.directive.d.ts +33 -0
  281. package/runtime/execution/directives/vl-quote.directive.d.ts +14 -0
  282. package/runtime/execution/directives/vl-ramp.directive.d.ts +15 -0
  283. package/runtime/execution/runtime-execution.module.d.ts +27 -0
  284. package/runtime/execution/utils/federated.util.d.ts +6 -0
  285. package/runtime/index.d.ts +4 -0
  286. package/runtime/package.json +10 -0
  287. package/runtime/runtime.module.d.ts +18 -0
  288. package/runtime/services/cart.service.d.ts +15 -0
  289. package/runtime/services/collapsible-state.service.d.ts +15 -0
  290. package/runtime/services/configuration.service.d.ts +19 -0
  291. package/runtime/services/current-state.service.d.ts +8 -0
  292. package/runtime/services/form-scope.service.d.ts +20 -0
  293. package/runtime/services/index.d.ts +3 -0
  294. package/runtime/services/product-model-cache.service.d.ts +14 -0
  295. package/runtime/services/runtime-context.service.d.ts +16 -0
  296. package/runtime/services/runtime-form.service.d.ts +24 -0
  297. package/runtime/services/runtime.service.d.ts +43 -0
  298. package/runtime/services/section-helper.service.d.ts +8 -0
  299. package/runtime/services/section-scope.service.d.ts +14 -0
  300. package/runtime/services/section-store.service.d.ts +11 -0
  301. package/runtime/services/section.service.d.ts +30 -0
  302. package/runtime/types/bound-data.types.d.ts +13 -0
  303. package/runtime/types/index.d.ts +1 -0
  304. package/runtime/types/runtime.types.d.ts +19 -0
  305. package/runtime/types/script-registry.types.d.ts +13 -0
  306. package/runtime/utils/line-item.util.d.ts +34 -0
  307. package/runtime/utils/section.utils.d.ts +2 -0
  308. package/runtime/utils/sections-binder.helper.d.ts +16 -0
  309. package/runtime/veloce-sdk-runtime.d.ts +5 -0
  310. package/src/components/dialog/dialog.component.d.ts +13 -0
  311. package/src/components/dialog/dialog.module.d.ts +9 -0
  312. package/src/components/dialog/dialog.types.d.ts +6 -0
  313. package/src/components/header/cart-overlay/cart-preview.component.d.ts +31 -0
  314. package/src/components/header/cart-overlay/cart-preview.module.d.ts +13 -0
  315. package/src/components/header/header.component.d.ts +48 -0
  316. package/src/components/header/header.module.d.ts +13 -0
  317. package/src/components/header/header.types.d.ts +19 -0
  318. package/src/constants.d.ts +1 -0
  319. package/src/flow-routing.module.d.ts +11 -0
  320. package/src/flow.component.d.ts +17 -0
  321. package/src/flow.module.d.ts +15 -0
  322. package/src/guards/context.guard.d.ts +18 -0
  323. package/src/guards/index.d.ts +1 -0
  324. package/src/guards/product-unload.guard.d.ts +16 -0
  325. package/src/guards/root.guard.d.ts +15 -0
  326. package/src/index.d.ts +6 -0
  327. package/src/pages/catalog/catalog.component.d.ts +32 -0
  328. package/src/pages/catalog/catalog.module.d.ts +10 -0
  329. package/src/pages/debug/debug.component.d.ts +27 -0
  330. package/src/pages/debug/debug.module.d.ts +14 -0
  331. package/src/pages/legacy-product/legacy-product.component.d.ts +37 -0
  332. package/src/pages/legacy-product/legacy-product.module.d.ts +10 -0
  333. package/src/pages/product/product.component.d.ts +30 -0
  334. package/src/pages/product/product.module.d.ts +10 -0
  335. package/src/pages/record-not-found/record-not-found.component.d.ts +11 -0
  336. package/src/pages/record-not-found/record-not-found.module.d.ts +9 -0
  337. package/src/pages/shopping-cart/shopping-cart.component.d.ts +32 -0
  338. package/src/pages/shopping-cart/shopping-cart.module.d.ts +10 -0
  339. package/src/resolvers/flow.resolver.d.ts +14 -0
  340. package/src/resolvers/quote.resolver.d.ts +18 -0
  341. package/src/services/flow-dialog.service.d.ts +20 -0
  342. package/src/services/flow-router.service.d.ts +35 -0
  343. package/src/services/flow.service.d.ts +17 -0
  344. package/src/services/index.d.ts +1 -0
  345. package/src/types/context-route.types.d.ts +5 -0
  346. package/src/types/flow-customization.types.d.ts +11 -0
  347. package/src/types/index.d.ts +2 -0
  348. package/src/types/route.types.d.ts +9 -0
  349. package/src/utils/flow.utils.d.ts +1 -0
  350. package/src/utils/index.d.ts +1 -0
  351. package/veloce-sdk.d.ts +5 -0
@@ -0,0 +1,27 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { FlowsApiService } from '@veloce/api';
4
+ import { FlowProperties } from '@veloce/core';
5
+ import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
6
+ import { Observable } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ interface FlowPropertiesExt extends FlowProperties {
9
+ queryParamsStr: string;
10
+ }
11
+ export declare class DebugComponent {
12
+ private flowsApiService;
13
+ private router;
14
+ private activatedRoute;
15
+ private context;
16
+ private flowConfiguration;
17
+ private quoteDraftService;
18
+ readonly objectNames: string[];
19
+ form: FormGroup;
20
+ selectedFlow?: FlowPropertiesExt;
21
+ flows$: Observable<FlowPropertiesExt[]>;
22
+ constructor(flowsApiService: FlowsApiService, router: Router, activatedRoute: ActivatedRoute, context: ContextService, flowConfiguration: FlowConfigurationService, quoteDraftService: QuoteDraftService);
23
+ runFlow(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<DebugComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<DebugComponent, "vl-flow-debug", never, {}, {}, never, never>;
26
+ }
27
+ export {};
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./debug.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/router";
6
+ import * as i5 from "primeng/radiobutton";
7
+ import * as i6 from "primeng/button";
8
+ import * as i7 from "primeng/inputtext";
9
+ import * as i8 from "primeng/dropdown";
10
+ export declare class DebugModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DebugModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DebugModule, [typeof i1.DebugComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.RadioButtonModule, typeof i6.ButtonModule, typeof i7.InputTextModule, typeof i8.DropdownModule], never>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<DebugModule>;
14
+ }
@@ -0,0 +1,37 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { QuoteApiService } from '@veloce/api';
4
+ import { LineItem } from '@veloce/core';
5
+ import { ContextService, QuoteDraftService } from '@veloce/sdk/core';
6
+ import { CurrentStateService, RuntimeContextService, RuntimeService, SolutionReadyAware, SolutionUpdatedAware } from '@veloce/sdk/runtime';
7
+ import { FlowCustomization } from '../../types';
8
+ import * as i0 from "@angular/core";
9
+ export declare class LegacyProductComponent implements OnInit, OnDestroy, SolutionUpdatedAware, SolutionReadyAware {
10
+ private route;
11
+ private quoteDraftService;
12
+ private quoteApiService;
13
+ private contextService;
14
+ private runtimeContextService;
15
+ private runtimeService;
16
+ private currentStateService;
17
+ private customizationService?;
18
+ private destroyed$;
19
+ private assets?;
20
+ constructor(route: ActivatedRoute, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, contextService: ContextService, runtimeContextService: RuntimeContextService, runtimeService: RuntimeService, currentStateService: CurrentStateService, customizationService?: FlowCustomization | undefined);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ onSolutionReady(lineItem: LineItem): void;
24
+ onSolutionCancel(): void;
25
+ onSolutionUpdated(lineItem: LineItem): void;
26
+ onSolutionStop(lineItem: LineItem): void;
27
+ private init;
28
+ private getLineItemId;
29
+ private configure;
30
+ private reConfigure;
31
+ private getAsset;
32
+ private startRuntime;
33
+ private customizeContext;
34
+ private getRuntimeContext;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<LegacyProductComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<LegacyProductComponent, "ng-component", never, {}, {}, never, never>;
37
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./legacy-product.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloce/sdk/runtime";
5
+ import * as i4 from "ngx-bootstrap/tooltip";
6
+ export declare class LegacyProductModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LegacyProductModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LegacyProductModule, [typeof i1.LegacyProductComponent], [typeof i2.CommonModule, typeof i3.RuntimeModule, typeof i4.TooltipModule], [typeof i1.LegacyProductComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<LegacyProductModule>;
10
+ }
@@ -0,0 +1,30 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloce/sdk/core';
3
+ import { MessageService } from 'primeng/api';
4
+ import { BehaviorSubject } from 'rxjs';
5
+ import { FlowCustomization } from '../../types/flow-customization.types';
6
+ import * as i0 from "@angular/core";
7
+ interface State {
8
+ loading: boolean;
9
+ failure: boolean;
10
+ }
11
+ export declare class ProductComponent implements OnInit, OnDestroy {
12
+ private contextService;
13
+ private runtimeService;
14
+ private conigurationService;
15
+ private quoteDraftService;
16
+ private messageService;
17
+ private customizationService?;
18
+ private destroy$;
19
+ uiDefinition?: UIDefinition;
20
+ state$: BehaviorSubject<State>;
21
+ constructor(contextService: ContextService, runtimeService: ConfigurationRuntimeService, conigurationService: ConfigurationService, quoteDraftService: QuoteDraftService, messageService: MessageService, customizationService?: FlowCustomization | undefined);
22
+ ngOnInit(): void;
23
+ ngOnDestroy(): void;
24
+ private customize;
25
+ private init;
26
+ private getLineItemId;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductComponent, [null, null, null, null, null, { optional: true; }]>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductComponent, "vl-flow-product", never, {}, {}, never, never>;
29
+ }
30
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./product.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloce/sdk/cms";
5
+ import * as i4 from "@veloce/components";
6
+ export declare class ProductModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductModule, [typeof i1.ProductComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.ProductComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProductModule>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RecordNotFoundComponent {
4
+ private router;
5
+ private route;
6
+ message: string;
7
+ subMessage: string;
8
+ constructor(router: Router, route: ActivatedRoute);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RecordNotFoundComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<RecordNotFoundComponent, "vl-flow-record-not-found", never, {}, {}, never, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./record-not-found.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/router";
5
+ export declare class RecordNotFoundModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RecordNotFoundModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RecordNotFoundModule, [typeof i1.RecordNotFoundComponent], [typeof i2.CommonModule, typeof i3.RouterModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<RecordNotFoundModule>;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { UITemplatesApiService } from '@veloce/api';
3
+ import { ToastService } from '@veloce/components';
4
+ import { ContextService, UIDefinition } from '@veloce/sdk/core';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import { FlowCustomization } from '../../types';
7
+ import * as i0 from "@angular/core";
8
+ interface State {
9
+ loading: boolean;
10
+ failure: boolean;
11
+ }
12
+ export declare class ShoppingCartComponent implements OnInit, OnDestroy {
13
+ private templatesApi;
14
+ private contextService;
15
+ private cdr;
16
+ private toastService;
17
+ private customizationService?;
18
+ uiDefinition?: UIDefinition;
19
+ state$: BehaviorSubject<State>;
20
+ private templateApiName;
21
+ private destroyed$;
22
+ constructor(templatesApi: UITemplatesApiService, contextService: ContextService, cdr: ChangeDetectorRef, toastService: ToastService, customizationService?: FlowCustomization | undefined);
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ private getTemplateRootComponent$;
26
+ private getLocalShoppingCartComponentMeta$;
27
+ private getShoppingCartComponentMeta$;
28
+ private generateUIDefinition$;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartComponent, [null, null, null, null, { optional: true; }]>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShoppingCartComponent, "vl-flow-shopping-cart", never, {}, {}, never, never>;
31
+ }
32
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./shopping-cart.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@veloce/sdk/cms";
5
+ import * as i4 from "@veloce/components";
6
+ export declare class ShoppingCartModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShoppingCartModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ShoppingCartModule, [typeof i1.ShoppingCartComponent], [typeof i2.CommonModule, typeof i3.PreviewModule, typeof i4.LoaderModule], [typeof i1.ShoppingCartComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<ShoppingCartModule>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
+ import { FlowsApiService } from '@veloce/api';
3
+ import { FlowRouterService } from '../services/flow-router.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowResolver implements Resolve<Promise<boolean>> {
6
+ private router;
7
+ private flowsApiService;
8
+ private routerService;
9
+ constructor(router: Router, flowsApiService: FlowsApiService, routerService: FlowRouterService);
10
+ private handleError;
11
+ resolve(route: ActivatedRouteSnapshot): Promise<boolean> | import("rxjs").Observable<Promise<boolean>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowResolver, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowResolver>;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { ActivatedRouteSnapshot, Resolve, Router } from '@angular/router';
2
+ import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
3
+ import { Observable } from 'rxjs';
4
+ import { FlowRouterService } from '../services/flow-router.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class QuoteResolver implements Resolve<void | boolean> {
7
+ private router;
8
+ private quoteDraftService;
9
+ private routerService;
10
+ private contextService;
11
+ private flowConfiguration;
12
+ constructor(router: Router, quoteDraftService: QuoteDraftService, routerService: FlowRouterService, contextService: ContextService, flowConfiguration: FlowConfigurationService);
13
+ private handleError;
14
+ private initFlow$;
15
+ resolve(route: ActivatedRouteSnapshot): Observable<void | boolean>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuoteResolver, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<QuoteResolver>;
18
+ }
@@ -0,0 +1,20 @@
1
+ import { ContextService } from '@veloce/sdk/core';
2
+ import { DialogService } from 'primeng/dynamicdialog';
3
+ import { Observable } from 'rxjs';
4
+ import { FlowDialogConfig } from '../components/dialog/dialog.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FlowDialogService {
7
+ private dialogService;
8
+ private contextService;
9
+ constructor(dialogService: DialogService, contextService: ContextService);
10
+ show(config: FlowDialogConfig): Observable<boolean>;
11
+ showEmptyCartDialog(): Observable<boolean>;
12
+ showReadonlyModeDialog(): Observable<boolean>;
13
+ showQuoteReadonlyModeDialog(): Observable<boolean>;
14
+ showAccountNoChangesDialog(): Observable<boolean>;
15
+ showUnsavedChangesDialog(): Observable<boolean>;
16
+ showReadonlyQuoteSubmitFailureDialog(): Observable<boolean>;
17
+ showAccountSubmitFailureDialog(): Observable<boolean>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowDialogService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowDialogService>;
20
+ }
@@ -0,0 +1,35 @@
1
+ import { ActivatedRoute, ActivatedRouteSnapshot, Params, Router } from '@angular/router';
2
+ import { ContextService } from '@veloce/sdk/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowRouterService {
6
+ private router;
7
+ private route;
8
+ private contextService;
9
+ private routeChange$;
10
+ private lastChildParams$;
11
+ private lastChildRoute$;
12
+ private urlHistory;
13
+ loading$: Observable<boolean>;
14
+ constructor(router: Router, route: ActivatedRoute, contextService: ContextService);
15
+ getFlowRootRoute(route: ActivatedRouteSnapshot): ActivatedRouteSnapshot | undefined;
16
+ getFlowRootPath(route: ActivatedRouteSnapshot): string;
17
+ get route$(): Observable<ActivatedRouteSnapshot>;
18
+ get params$(): Observable<Params>;
19
+ getLastChildRoute: (route: ActivatedRoute) => ActivatedRoute;
20
+ getNthChildRoute: (route: ActivatedRoute, index: number) => ActivatedRoute;
21
+ getLastChildRouteSnapshot: (route: ActivatedRouteSnapshot) => ActivatedRouteSnapshot;
22
+ watchLastChildRoute$: (route: ActivatedRoute) => Observable<ActivatedRouteSnapshot>;
23
+ getLastChildParams: (route: ActivatedRouteSnapshot) => Params;
24
+ watchLastChildParams$: (route: ActivatedRoute) => Observable<Params>;
25
+ getFlowSubpath$: () => Observable<string>;
26
+ isConfigurationRoute$(): Observable<boolean>;
27
+ isCartRoute$(): Observable<boolean>;
28
+ isCatalogRoute$(): Observable<boolean>;
29
+ navigateBack(): void;
30
+ navigateToProductConfiguration(productId: string, lineItemId?: string): void;
31
+ navigateToShoppingCart(): void;
32
+ navigateToCatalog(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowRouterService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowRouterService>;
35
+ }
@@ -0,0 +1,17 @@
1
+ import { IntegrationState } from '@veloce/sdk/cms';
2
+ import { ConfigurationService, FlowConfigurationService, QuoteDraftService } from '@veloce/sdk/core';
3
+ import { FlowRouterService } from './flow-router.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowService {
6
+ private integrationState;
7
+ private flowRouterService;
8
+ private quoteDraftService;
9
+ private configurationService;
10
+ private flowConfigurationService;
11
+ private cleanup$;
12
+ constructor(integrationState: IntegrationState, flowRouterService: FlowRouterService, quoteDraftService: QuoteDraftService, configurationService: ConfigurationService, flowConfigurationService: FlowConfigurationService);
13
+ initSubscriptions(): void;
14
+ cleanup(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowService>;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './flow.service';
@@ -0,0 +1,5 @@
1
+ import { ConfigurationContextMode } from '@veloce/core';
2
+ export interface ContextRouteData {
3
+ mode: ConfigurationContextMode;
4
+ headerId: string;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { TemplateComponentWithAttachments, UIDefinition as LegacyUIDefinition } from '@veloce/core';
3
+ import { UIDefinition } from '@veloce/sdk/core';
4
+ import { Observable } from 'rxjs';
5
+ export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
+ export interface FlowCustomization {
7
+ getUiDefinition?(productId: string): Observable<UIDefinition | null>;
8
+ getLegacyUiDefinition?(productId: string): Observable<LegacyUIDefinition | null>;
9
+ getShoppingCartComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
10
+ getCatalogComponent?(templateName: string): Observable<TemplateComponentWithAttachments | null>;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './context-route.types';
2
+ export * from './flow-customization.types';
@@ -0,0 +1,9 @@
1
+ import { Route } from '@angular/router';
2
+ export interface FlowObjectIdProperties {
3
+ accountId?: string;
4
+ quoteId?: string;
5
+ orderId?: string;
6
+ }
7
+ export interface RouteWithId extends Route {
8
+ id?: string;
9
+ }
@@ -0,0 +1 @@
1
+ export declare const getFlowObjectIdPropertyName: (objectName?: string | undefined) => "accountId" | "orderId" | "quoteId";
@@ -0,0 +1 @@
1
+ export * from './flow.utils';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@veloce/sdk" />
5
+ export * from './index';