yaveon.ecm.d3dwebhooks 0.14.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/js/Yaveon.ECM.Request.Handler.d.ts +3 -0
  2. package/js/Yaveon.ECM.Request.Handler.js +49 -0
  3. package/js/clients/Yaveon.ECM.af.Client.d.ts +1 -1
  4. package/js/clients/Yaveon.ECM.af.Client.js.map +1 -1
  5. package/js/clients/Yaveon.ECM.af.Contracts.Client.js +6 -6
  6. package/js/clients/Yaveon.ECM.af.Contracts.Client.js.map +1 -1
  7. package/js/clients/Yaveon.ECM.d3d.Client.d.ts +1 -1
  8. package/js/clients/Yaveon.ECM.d3d.Client.js +3 -3
  9. package/js/clients/Yaveon.ECM.d3d.Client.js.map +1 -1
  10. package/js/clients/Yaveon.ECM.d3d.Webhook.Client.d.ts +1 -1
  11. package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js +9 -9
  12. package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js.map +1 -1
  13. package/js/constants/Yaveon.ECM.Constants.d.ts +16 -0
  14. package/js/constants/Yaveon.ECM.Constants.js +20 -0
  15. package/js/constants/Yaveon.ECM.Constants.js.map +1 -0
  16. package/js/constants/Yaveon.ECM.PDF.Constants.d.ts +35 -0
  17. package/js/constants/Yaveon.ECM.PDF.Constants.js +39 -0
  18. package/js/constants/Yaveon.ECM.PDF.Constants.js.map +1 -0
  19. package/js/constants/Yaveon.ECM.d3d.Constants.d.ts +46 -0
  20. package/js/constants/Yaveon.ECM.d3d.Constants.js +37 -0
  21. package/js/constants/Yaveon.ECM.d3d.Constants.js.map +1 -0
  22. package/js/constants/Yaveon.ECM.d3d.Extension.Constants.d.ts +85 -0
  23. package/js/constants/Yaveon.ECM.d3d.Extension.Constants.js +39 -0
  24. package/js/constants/Yaveon.ECM.d3d.Extension.Constants.js.map +1 -0
  25. package/js/constants/Yaveon.ECM.d3d.Webhook.Constants.d.ts +88 -114
  26. package/js/constants/Yaveon.ECM.d3d.Webhook.Constants.js +50 -140
  27. package/js/constants/Yaveon.ECM.d3d.Webhook.Constants.js.map +1 -1
  28. package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.d.ts +124 -39
  29. package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.js +26 -43
  30. package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.js.map +1 -1
  31. package/js/extensions/Yaveon.ECM.d3d.Extension.Handler.d.ts +2 -0
  32. package/js/extensions/Yaveon.ECM.d3d.Extension.Handler.js +52 -0
  33. package/js/extensions/Yaveon.ECM.d3d.Extension.Handler.js.map +1 -0
  34. package/js/extensions/Yaveon.ECM.d3d.Extension.Interfaces.d.ts +7 -0
  35. package/js/{features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Interfaces.js → extensions/Yaveon.ECM.d3d.Extension.Interfaces.js} +1 -1
  36. package/js/extensions/Yaveon.ECM.d3d.Extension.Interfaces.js.map +1 -0
  37. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Interfaces.d.ts +1 -0
  38. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Interfaces.js +3 -0
  39. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Interfaces.js.map +1 -0
  40. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Logic.d.ts +3 -0
  41. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Logic.js +25 -0
  42. package/js/extensions/Yaveon.ECM.d3d.Extension.Sync/Yaveon.ECM.d3d.Extension.Sync.Logic.js.map +1 -0
  43. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Handler.d.ts +2 -2
  44. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Handler.js +7 -6
  45. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Handler.js.map +1 -1
  46. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Interfaces.d.ts +2 -2
  47. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Logic.js +2 -0
  48. package/js/features/Bucket/Yaveon.ECM.d3d.Webhook.Bucket.Logic.js.map +1 -1
  49. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Constants.d.ts +97 -5
  50. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Constants.js +1 -3
  51. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Constants.js.map +1 -1
  52. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Handler.d.ts +2 -2
  53. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Handler.js +8 -6
  54. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Handler.js.map +1 -1
  55. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Interfaces.d.ts +1 -1
  56. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Logic.js +6 -5
  57. package/js/features/CheckIn/Yaveon.ECM.d3d.Webhook.CheckIn.Logic.js.map +1 -1
  58. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.d.ts +191 -80
  59. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js +68 -89
  60. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js.map +1 -1
  61. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.d.ts +2 -2
  62. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js +8 -6
  63. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js.map +1 -1
  64. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.d.ts +12 -11
  65. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js.map +1 -1
  66. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.d.ts +1 -1
  67. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js +8 -7
  68. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js.map +1 -1
  69. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.d.ts +5 -5
  70. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js +44 -32
  71. package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js.map +1 -1
  72. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.d.ts +103 -11
  73. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js +6 -12
  74. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js.map +1 -1
  75. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.js +7 -5
  76. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.js.map +1 -1
  77. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Interfaces.d.ts +2 -2
  78. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Logic.js +6 -5
  79. package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Logic.js.map +1 -1
  80. package/js/features/EnrichAndMove/Yaveon.ECM.d3d.Webhook.EnrichAndMove.Handler.d.ts +2 -2
  81. package/js/features/EnrichAndMove/Yaveon.ECM.d3d.Webhook.EnrichAndMove.Handler.js +8 -6
  82. package/js/features/EnrichAndMove/Yaveon.ECM.d3d.Webhook.EnrichAndMove.Handler.js.map +1 -1
  83. package/js/features/EnrichAndMove/Yaveon.ECM.d3d.Webhook.EnrichAndMove.Logic.js +5 -4
  84. package/js/features/EnrichAndMove/Yaveon.ECM.d3d.Webhook.EnrichAndMove.Logic.js.map +1 -1
  85. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.d.ts +97 -3
  86. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js +1 -3
  87. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js.map +1 -1
  88. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Handler.d.ts +2 -2
  89. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Handler.js +2 -2
  90. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Handler.js.map +1 -1
  91. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Interfaces.d.ts +1 -1
  92. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Logic.d.ts +1 -1
  93. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Logic.js +4 -3
  94. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Logic.js.map +1 -1
  95. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Utility.js +1 -1
  96. package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Utility.js.map +1 -1
  97. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.d.ts +99 -5
  98. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js +1 -5
  99. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js.map +1 -1
  100. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.d.ts +2 -2
  101. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js +8 -6
  102. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js.map +1 -1
  103. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Interfaces.d.ts +1 -1
  104. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Logic.js +5 -4
  105. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Logic.js.map +1 -1
  106. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.d.ts +5 -5
  107. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js +1 -1
  108. package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js.map +1 -1
  109. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.d.ts +2 -2
  110. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js +8 -6
  111. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js.map +1 -1
  112. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Interfaces.d.ts +1 -1
  113. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Logic.js +4 -3
  114. package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Logic.js.map +1 -1
  115. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.d.ts +158 -14
  116. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js +9 -17
  117. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js.map +1 -1
  118. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.d.ts +2 -2
  119. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js +8 -6
  120. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js.map +1 -1
  121. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.d.ts +2 -2
  122. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js +4 -3
  123. package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js.map +1 -1
  124. package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.d.ts +149 -31
  125. package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js +26 -35
  126. package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js.map +1 -1
  127. package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.d.ts +2 -2
  128. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Constants.d.ts +47 -0
  129. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Constants.js +6 -0
  130. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Constants.js.map +1 -0
  131. package/js/features/Sync/{Yaveon.ECM.d3d.Webhook.Sync.Interfaces.d.ts → Yaveon.ECM.d3d.Feature.Sync.Interfaces.d.ts} +2 -2
  132. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Interfaces.js +3 -0
  133. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Interfaces.js.map +1 -0
  134. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Logic.d.ts +2 -0
  135. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Logic.js +101 -0
  136. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Logic.js.map +1 -0
  137. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Utility.d.ts +6 -0
  138. package/js/features/Sync/{Yaveon.ECM.d3d.Webhook.Sync.Utility.js → Yaveon.ECM.d3d.Feature.Sync.Utility.js} +5 -34
  139. package/js/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Utility.js.map +1 -0
  140. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.d.ts +97 -3
  141. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js +1 -3
  142. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js.map +1 -1
  143. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.d.ts +2 -2
  144. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js +5 -4
  145. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js.map +1 -1
  146. package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces.d.ts +2 -2
  147. package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.d.ts +127 -9
  148. package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js +4 -10
  149. package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js.map +1 -1
  150. package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic.js +9 -7
  151. package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic.js.map +1 -1
  152. package/js/features/Yaveon.ECM.d3d.Feature.Interfaces.d.ts +17 -0
  153. package/js/features/Yaveon.ECM.d3d.Feature.Interfaces.js +19 -0
  154. package/js/features/Yaveon.ECM.d3d.Feature.Interfaces.js.map +1 -0
  155. package/js/interfaces/Yaveon.ECM.d3d.Config.Interfaces.d.ts +13 -0
  156. package/js/interfaces/{Yaveon.ECM.d3d.Webhook.Interfaces.js → Yaveon.ECM.d3d.Config.Interfaces.js} +1 -1
  157. package/js/interfaces/Yaveon.ECM.d3d.Config.Interfaces.js.map +1 -0
  158. package/js/interfaces/{Yaveon.ECM.d3d.Webhook.Interfaces.d.ts → Yaveon.ECM.d3d.Interfaces.d.ts} +7 -42
  159. package/js/interfaces/Yaveon.ECM.d3d.Interfaces.js +3 -0
  160. package/js/interfaces/Yaveon.ECM.d3d.Interfaces.js.map +1 -0
  161. package/js/utilities/Yaveon.ECM.d3d.Utility.d.ts +6 -6
  162. package/js/utilities/Yaveon.ECM.d3d.Utility.js +48 -5
  163. package/js/utilities/Yaveon.ECM.d3d.Utility.js.map +1 -1
  164. package/js/{Yaveon.ECM.d3d.Webhook.Handler.d.ts → webhooks/Yaveon.ECM.d3d.Webhook.Handler.d.ts} +1 -1
  165. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Handler.js +83 -0
  166. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Handler.js.map +1 -0
  167. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.d.ts +3 -0
  168. package/js/{features/Sync → webhooks/Yaveon.ECM.d3d.Webhook.Sync}/Yaveon.ECM.d3d.Webhook.Sync.Handler.js +11 -9
  169. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js.map +1 -0
  170. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.d.ts +4 -0
  171. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js +24 -0
  172. package/js/webhooks/Yaveon.ECM.d3d.Webhook.Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js.map +1 -0
  173. package/js/webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.d.ts +32 -0
  174. package/js/webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.js +19 -0
  175. package/js/webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.js.map +1 -0
  176. package/js/{interfaces → webhooks/interfaces}/Yaveon.ECM.d3d.Webhook.af.Interfaces.d.ts +1 -0
  177. package/js/webhooks/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces.js.map +1 -0
  178. package/package.json +1 -1
  179. package/js/Yaveon.ECM.d3d.Webhook.Handler.js +0 -75
  180. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.d.ts +0 -4
  181. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js +0 -9
  182. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js.map +0 -1
  183. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.d.ts +0 -2
  184. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js.map +0 -1
  185. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Interfaces.js.map +0 -1
  186. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.d.ts +0 -3
  187. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js +0 -101
  188. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js.map +0 -1
  189. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.d.ts +0 -8
  190. package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.js.map +0 -1
  191. package/js/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.js.map +0 -1
  192. package/js/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces.js.map +0 -1
  193. package/types/docx4js.d.ts +0 -5
  194. /package/js/{interfaces → webhooks/interfaces}/Yaveon.ECM.d3d.Webhook.af.Interfaces.js +0 -0
@@ -1,80 +1,191 @@
1
- import { Constants as _constants } from '../../constants/Yaveon.ECM.d3d.Webhook.af.Constants';
2
- export declare class Constants extends _constants {
3
- }
4
- export declare namespace Constants {
5
- namespace Af {
6
- namespace Contracts {
7
- enum AutomaticRenewal {
8
- Auto = "AUTOMATIC",
9
- None = "NONE"
10
- }
11
- enum ConfigProperty {
12
- Default = "default",
13
- Id = "id",
14
- Static = "static",
15
- ToCustomPropertyId = "toCustomPropertyId",
16
- ToPropertyName = "toPropertyName",
17
- Translation = "translation",
18
- Value = "value",
19
- RegEx = "regex"
20
- }
21
- enum ContractStates {
22
- Concept = "CONCEPT",
23
- Negotiation = "NEGOTIATION",
24
- Valid = "VALID",
25
- Canceled = "CANCELED",
26
- Suspended = "SUSPENDED",
27
- Expired = "EXPIRED"
28
- }
29
- enum OwnRole {
30
- Active = "ACTIVE",
31
- Passive = "PASSIVE",
32
- Coop = "COOPERATION"
33
- }
34
- enum ServiceEndpoints {
35
- Contracts = "/alphaflow-contract/contractservice/contracts"
36
- }
37
- enum TerminationCalendarEvent {
38
- Any = "ANYTIME",
39
- ExactDay = "EXACTDAY",
40
- EndOfMonth = "ENDOFMONTH",
41
- EndOfQuarter = "ENDOFQUARTER",
42
- EndOfSemester = "ENDOFSEMESTER",
43
- EndOfYear = "ENDOFYEAR",
44
- Termination = "TERMINATION"
45
- }
46
- const TerminationDefaultRemark: string;
47
- enum TerminationUnit {
48
- Days = "DAYS",
49
- Weeks = "WEEKS",
50
- Months = "MONTHS",
51
- Years = "YEARS"
52
- }
53
- enum ToType {
54
- boolean = "boolean",
55
- Date = "date",
56
- IAfAutomaticRenewalProperty = "IAfAutomaticRenewalProperty",
57
- IAfContractStatusProperty = "IAfContractStatusProperty",
58
- IAfCustomFieldProperty = "IAfCustomFieldProperty",
59
- IAfGenericIdProperty = "IAfGenericIdProperty",
60
- IAfGenericValueProperty = "IAfGenericValueProperty",
61
- IAfOwnRoleProperty = "IAfOwnRoleProperty",
62
- IAfTerminationCalendarEventProperty = "IAfTerminationCalendarEventProperty",
63
- IAfTerminationUnitProperty = "IAfTerminationUnitProperty",
64
- number = "number",
65
- string = "string"
66
- }
67
- enum IdNeeding {
68
- ContractType = "contractType",
69
- Organization = "organization",
70
- TradingPartner = "tradingPartner"
71
- }
72
- }
73
- const AlphaflowObjectIdField: {
74
- name: string;
75
- };
76
- const DefaultHeaders: import("../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
77
- const ServiceEndpoints: typeof _constants.Af.ServiceEndpoints;
78
- const Method: typeof _constants.Af.Method;
79
- }
80
- }
1
+ export declare const Constants: {
2
+ AfContracts: {
3
+ AutomaticRenewal: {
4
+ readonly Auto: "AUTOMATIC";
5
+ readonly None: "NONE";
6
+ };
7
+ ConfigProperty: {
8
+ readonly Default: "default";
9
+ readonly Id: "id";
10
+ readonly Static: "static";
11
+ readonly ToCustomPropertyId: "toCustomPropertyId";
12
+ readonly ToPropertyName: "toPropertyName";
13
+ readonly Translation: "translation";
14
+ readonly Value: "value";
15
+ readonly RegEx: "regex";
16
+ };
17
+ ContractStates: {
18
+ readonly Concept: "CONCEPT";
19
+ readonly Negotiation: "NEGOTIATION";
20
+ readonly Valid: "VALID";
21
+ readonly Canceled: "CANCELED";
22
+ readonly Suspended: "SUSPENDED";
23
+ readonly Expired: "EXPIRED";
24
+ };
25
+ OwnRole: {
26
+ readonly Active: "ACTIVE";
27
+ readonly Passive: "PASSIVE";
28
+ readonly Coop: "COOPERATION";
29
+ };
30
+ ServiceEndpoints: {
31
+ readonly Contracts: "/alphaflow-contract/contractservice/contracts";
32
+ readonly ContractTypes: "/alphaflow-contract/contracttypeservice/contracttypes";
33
+ };
34
+ TerminationCalendarEvent: {
35
+ readonly Any: "ANYTIME";
36
+ readonly ExactDay: "EXACTDAY";
37
+ readonly EndOfMonth: "ENDOFMONTH";
38
+ readonly EndOfQuarter: "ENDOFQUARTER";
39
+ readonly EndOfSemester: "ENDOFSEMESTER";
40
+ readonly EndOfYear: "ENDOFYEAR";
41
+ readonly Termination: "TERMINATION";
42
+ };
43
+ TerminationDefaultRemark: "set by webhook";
44
+ TerminationUnit: {
45
+ readonly Days: "DAYS";
46
+ readonly Weeks: "WEEKS";
47
+ readonly Months: "MONTHS";
48
+ readonly Years: "YEARS";
49
+ };
50
+ ToType: {
51
+ readonly boolean: "boolean";
52
+ readonly Date: "date";
53
+ readonly IAfAutomaticRenewalProperty: "IAfAutomaticRenewalProperty";
54
+ readonly IAfContractStatusProperty: "IAfContractStatusProperty";
55
+ readonly IAfCustomFieldProperty: "IAfCustomFieldProperty";
56
+ readonly IAfGenericIdProperty: "IAfGenericIdProperty";
57
+ readonly IAfGenericValueProperty: "IAfGenericValueProperty";
58
+ readonly IAfOwnRoleProperty: "IAfOwnRoleProperty";
59
+ readonly IAfTerminationCalendarEventProperty: "IAfTerminationCalendarEventProperty";
60
+ readonly IAfTerminationUnitProperty: "IAfTerminationUnitProperty";
61
+ readonly number: "number";
62
+ readonly string: "string";
63
+ };
64
+ IdNeeding: {
65
+ readonly ContractType: "contractType";
66
+ readonly Organization: "organization";
67
+ readonly TradingPartner: "tradingPartner";
68
+ };
69
+ };
70
+ Af: {
71
+ AlphaflowObjectIdField: {
72
+ readonly name: "alphaflowObjectID";
73
+ };
74
+ DefaultHeaders: import("../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
75
+ ServiceEndpoints: {
76
+ readonly Accounts: "/alphaflow-user/accountservice/accounts";
77
+ readonly Entities: "/alphaflow-appstudio/entityobjectservice/entityobjects";
78
+ readonly Groups: "/alphaflow-user/groupservice/groups";
79
+ readonly Organizations: "/alphaflow-organization/organizationservice/organizations";
80
+ readonly TradingPartners: "/alphaflow-tradingpartner/tradingpartnerservice/tradingpartners";
81
+ readonly Workflows: "/alphaflow-appstudio/workflowservice";
82
+ };
83
+ Method: {
84
+ readonly Get: "GET";
85
+ readonly Patch: "PATCH";
86
+ readonly Post: "POST";
87
+ };
88
+ ValueSetEntities: {
89
+ readonly ContractTypes: "contracttypes";
90
+ readonly Groups: "groups";
91
+ readonly Organizations: "organizations";
92
+ readonly TradingPartners: "tradingpartners";
93
+ readonly Users: "users";
94
+ };
95
+ };
96
+ d3dWebhook: {
97
+ readonly defaultHeaders: import("../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
98
+ readonly StateChangeText: "by webhook";
99
+ readonly ConfigFileName: "webhookConfiguration";
100
+ readonly ConfigFileExtension: "json";
101
+ readonly ConfigFileDisplayName: "Webhook Konfiguration";
102
+ readonly ConfigFileLockedTimeout: 3000;
103
+ readonly WebhookObject: {
104
+ readonly PropertyNames: {
105
+ readonly CategoryPropertyName: "categoryId";
106
+ readonly FileNamePropertyName: "property_filename";
107
+ readonly FileStatusPropertyName: "property_state";
108
+ readonly FileTypePropertyName: "property_filetype";
109
+ readonly OwnerPropertyName: "property_owner";
110
+ };
111
+ readonly FileStatus: {
112
+ readonly Processing: "B";
113
+ readonly Released: "";
114
+ };
115
+ };
116
+ readonly FeatureNames: {
117
+ readonly CheckIn: "checkin";
118
+ readonly Contract: "contract";
119
+ readonly Enrich: "enrich";
120
+ readonly EnrichAndMove: "enrichmove";
121
+ readonly Inherit: "inherit";
122
+ readonly MoveFolder: "move";
123
+ readonly NumberRange: "numberRange";
124
+ readonly ReadReceipt: "readReceipt";
125
+ readonly Bucket: "bucket";
126
+ readonly ValueSet: "valueset";
127
+ readonly Sync: "sync";
128
+ };
129
+ readonly EventNames: {
130
+ readonly Create: "add";
131
+ readonly Read: "read";
132
+ readonly Update: "update";
133
+ readonly Remove: "delete";
134
+ };
135
+ readonly UrlParameters: {
136
+ readonly Entity: "entity";
137
+ readonly Source: "source";
138
+ readonly Event: "event";
139
+ readonly Feature: "feature";
140
+ readonly RequestType: "requestType";
141
+ };
142
+ readonly SourceNames: {
143
+ readonly Af: "af";
144
+ readonly D3d: "d3d";
145
+ };
146
+ };
147
+ DmsObjectStates: {
148
+ States: {
149
+ readonly Processing: "processing";
150
+ readonly Verifiction: "verification";
151
+ readonly Released: "released";
152
+ readonly Archive: "archive";
153
+ readonly Block: "Block";
154
+ };
155
+ isValid: (stateValue: string) => boolean;
156
+ };
157
+ d3d: {
158
+ readonly FileNameFolder: "---dummy";
159
+ readonly FileStatus: {
160
+ readonly Released: "release";
161
+ };
162
+ readonly PersistedObject: {
163
+ readonly FileStatusPropertyName: "property_state";
164
+ readonly FileNamePropertyName: "property_filename";
165
+ readonly FileTypePropertyName: "property_filetype";
166
+ readonly CategoryPropertyName: "property_category";
167
+ readonly CaptionPropertyName: "property_caption";
168
+ };
169
+ readonly SearchObject: {
170
+ readonly FileStatusPropertyName: "property_state";
171
+ };
172
+ readonly DmsObjectTypes: {
173
+ readonly Document: "document";
174
+ readonly Folder: "folder";
175
+ };
176
+ };
177
+ RequestTypes: {
178
+ readonly Extension: "extension";
179
+ readonly Webhook: "webhook";
180
+ };
181
+ UrlParameters: {
182
+ readonly Event: "event";
183
+ readonly Feature: "feature";
184
+ readonly RequestType: "requestType";
185
+ };
186
+ Method: {
187
+ readonly Get: "GET";
188
+ readonly Patch: "PATCH";
189
+ readonly Post: "POST";
190
+ };
191
+ };
@@ -2,93 +2,72 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Constants = void 0;
4
4
  const Yaveon_ECM_d3d_Webhook_af_Constants_1 = require("../../constants/Yaveon.ECM.d3d.Webhook.af.Constants");
5
- class Constants extends Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants {
6
- }
7
- exports.Constants = Constants;
8
- (function (Constants) {
9
- let Af;
10
- (function (Af) {
11
- let Contracts;
12
- (function (Contracts) {
13
- let AutomaticRenewal;
14
- (function (AutomaticRenewal) {
15
- AutomaticRenewal["Auto"] = "AUTOMATIC";
16
- AutomaticRenewal["None"] = "NONE";
17
- })(AutomaticRenewal = Contracts.AutomaticRenewal || (Contracts.AutomaticRenewal = {}));
18
- let ConfigProperty;
19
- (function (ConfigProperty) {
20
- ConfigProperty["Default"] = "default";
21
- ConfigProperty["Id"] = "id";
22
- ConfigProperty["Static"] = "static";
23
- ConfigProperty["ToCustomPropertyId"] = "toCustomPropertyId";
24
- ConfigProperty["ToPropertyName"] = "toPropertyName";
25
- ConfigProperty["Translation"] = "translation";
26
- ConfigProperty["Value"] = "value";
27
- ConfigProperty["RegEx"] = "regex";
28
- })(ConfigProperty = Contracts.ConfigProperty || (Contracts.ConfigProperty = {}));
29
- let ContractStates;
30
- (function (ContractStates) {
31
- ContractStates["Concept"] = "CONCEPT";
32
- ContractStates["Negotiation"] = "NEGOTIATION";
33
- ContractStates["Valid"] = "VALID";
34
- ContractStates["Canceled"] = "CANCELED";
35
- ContractStates["Suspended"] = "SUSPENDED";
36
- ContractStates["Expired"] = "EXPIRED";
37
- })(ContractStates = Contracts.ContractStates || (Contracts.ContractStates = {}));
38
- let OwnRole;
39
- (function (OwnRole) {
40
- OwnRole["Active"] = "ACTIVE";
41
- OwnRole["Passive"] = "PASSIVE";
42
- OwnRole["Coop"] = "COOPERATION";
43
- })(OwnRole = Contracts.OwnRole || (Contracts.OwnRole = {}));
44
- let ServiceEndpoints;
45
- (function (ServiceEndpoints) {
46
- ServiceEndpoints["Contracts"] = "/alphaflow-contract/contractservice/contracts";
47
- })(ServiceEndpoints = Contracts.ServiceEndpoints || (Contracts.ServiceEndpoints = {}));
48
- let TerminationCalendarEvent;
49
- (function (TerminationCalendarEvent) {
50
- TerminationCalendarEvent["Any"] = "ANYTIME";
51
- TerminationCalendarEvent["ExactDay"] = "EXACTDAY";
52
- TerminationCalendarEvent["EndOfMonth"] = "ENDOFMONTH";
53
- TerminationCalendarEvent["EndOfQuarter"] = "ENDOFQUARTER";
54
- TerminationCalendarEvent["EndOfSemester"] = "ENDOFSEMESTER";
55
- TerminationCalendarEvent["EndOfYear"] = "ENDOFYEAR";
56
- TerminationCalendarEvent["Termination"] = "TERMINATION";
57
- })(TerminationCalendarEvent = Contracts.TerminationCalendarEvent || (Contracts.TerminationCalendarEvent = {}));
58
- Contracts.TerminationDefaultRemark = "set by webhook";
59
- let TerminationUnit;
60
- (function (TerminationUnit) {
61
- TerminationUnit["Days"] = "DAYS";
62
- TerminationUnit["Weeks"] = "WEEKS";
63
- TerminationUnit["Months"] = "MONTHS";
64
- TerminationUnit["Years"] = "YEARS";
65
- })(TerminationUnit = Contracts.TerminationUnit || (Contracts.TerminationUnit = {}));
66
- let ToType;
67
- (function (ToType) {
68
- ToType["boolean"] = "boolean";
69
- ToType["Date"] = "date";
70
- ToType["IAfAutomaticRenewalProperty"] = "IAfAutomaticRenewalProperty";
71
- ToType["IAfContractStatusProperty"] = "IAfContractStatusProperty";
72
- ToType["IAfCustomFieldProperty"] = "IAfCustomFieldProperty";
73
- ToType["IAfGenericIdProperty"] = "IAfGenericIdProperty";
74
- ToType["IAfGenericValueProperty"] = "IAfGenericValueProperty";
75
- ToType["IAfOwnRoleProperty"] = "IAfOwnRoleProperty";
76
- ToType["IAfTerminationCalendarEventProperty"] = "IAfTerminationCalendarEventProperty";
77
- ToType["IAfTerminationUnitProperty"] = "IAfTerminationUnitProperty";
78
- ToType["number"] = "number";
79
- ToType["string"] = "string";
80
- })(ToType = Contracts.ToType || (Contracts.ToType = {}));
81
- let IdNeeding;
82
- (function (IdNeeding) {
83
- IdNeeding["ContractType"] = "contractType";
84
- IdNeeding["Organization"] = "organization";
85
- IdNeeding["TradingPartner"] = "tradingPartner";
86
- })(IdNeeding = Contracts.IdNeeding || (Contracts.IdNeeding = {}));
87
- })(Contracts = Af.Contracts || (Af.Contracts = {}));
88
- Af.AlphaflowObjectIdField = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.AlphaflowObjectIdField;
89
- Af.DefaultHeaders = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.DefaultHeaders;
90
- Af.ServiceEndpoints = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.ServiceEndpoints;
91
- Af.Method = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.Method;
92
- })(Af = Constants.Af || (Constants.Af = {}));
93
- })(Constants || (exports.Constants = Constants = {}));
5
+ exports.Constants = Object.assign(Object.assign({}, Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants), { AfContracts: {
6
+ AutomaticRenewal: {
7
+ Auto: 'AUTOMATIC',
8
+ None: 'NONE'
9
+ },
10
+ ConfigProperty: {
11
+ Default: 'default',
12
+ Id: 'id',
13
+ Static: 'static',
14
+ ToCustomPropertyId: 'toCustomPropertyId',
15
+ ToPropertyName: 'toPropertyName',
16
+ Translation: 'translation',
17
+ Value: 'value',
18
+ RegEx: "regex"
19
+ },
20
+ ContractStates: {
21
+ Concept: 'CONCEPT',
22
+ Negotiation: 'NEGOTIATION',
23
+ Valid: 'VALID',
24
+ Canceled: 'CANCELED',
25
+ Suspended: 'SUSPENDED',
26
+ Expired: 'EXPIRED'
27
+ },
28
+ OwnRole: {
29
+ Active: 'ACTIVE',
30
+ Passive: 'PASSIVE',
31
+ Coop: 'COOPERATION'
32
+ },
33
+ ServiceEndpoints: {
34
+ Contracts: '/alphaflow-contract/contractservice/contracts',
35
+ ContractTypes: '/alphaflow-contract/contracttypeservice/contracttypes',
36
+ },
37
+ TerminationCalendarEvent: {
38
+ Any: 'ANYTIME',
39
+ ExactDay: 'EXACTDAY',
40
+ EndOfMonth: 'ENDOFMONTH',
41
+ EndOfQuarter: 'ENDOFQUARTER',
42
+ EndOfSemester: 'ENDOFSEMESTER',
43
+ EndOfYear: 'ENDOFYEAR',
44
+ Termination: 'TERMINATION'
45
+ },
46
+ TerminationDefaultRemark: "set by webhook",
47
+ TerminationUnit: {
48
+ Days: 'DAYS',
49
+ Weeks: 'WEEKS',
50
+ Months: 'MONTHS',
51
+ Years: 'YEARS'
52
+ },
53
+ ToType: {
54
+ boolean: 'boolean',
55
+ Date: 'date',
56
+ IAfAutomaticRenewalProperty: 'IAfAutomaticRenewalProperty',
57
+ IAfContractStatusProperty: 'IAfContractStatusProperty',
58
+ IAfCustomFieldProperty: 'IAfCustomFieldProperty',
59
+ IAfGenericIdProperty: 'IAfGenericIdProperty',
60
+ IAfGenericValueProperty: 'IAfGenericValueProperty',
61
+ IAfOwnRoleProperty: 'IAfOwnRoleProperty',
62
+ IAfTerminationCalendarEventProperty: 'IAfTerminationCalendarEventProperty',
63
+ IAfTerminationUnitProperty: 'IAfTerminationUnitProperty',
64
+ number: 'number',
65
+ string: 'string'
66
+ },
67
+ IdNeeding: {
68
+ ContractType: 'contractType',
69
+ Organization: 'organization',
70
+ TradingPartner: 'tradingPartner'
71
+ }
72
+ } });
94
73
  //# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.ts"],"names":[],"mappings":";;;AAAA,6GAA6F;AAGhF,QAAA,SAAS,mCACf,+CAAU,KACb,WAAW,EAAE;QACT,gBAAgB,EAAE;YACd,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,MAAM;SACN;QACV,cAAc,EAAE;YACZ,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,MAAM,EAAE,QAAQ;YAChB,kBAAkB,EAAE,oBAAoB;YACxC,cAAc,EAAE,gBAAgB;YAChC,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;SACR;QACV,cAAc,EAAE;YACZ,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACZ;QACV,OAAO,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,aAAa;SACb;QACV,gBAAgB,EAAE;YACd,SAAS,EAAE,+CAA+C;YAC1D,aAAa,EAAE,uDAAuD;SAChE;QACV,wBAAwB,EAAE;YACtB,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;SACpB;QACV,wBAAwB,EAAE,gBAAyB;QACnD,eAAe,EAAE;YACb,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;SACR;QACV,MAAM,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,MAAM;YACZ,2BAA2B,EAAE,6BAA6B;YAC1D,yBAAyB,EAAE,2BAA2B;YACtD,sBAAsB,EAAE,wBAAwB;YAChD,oBAAoB,EAAE,sBAAsB;YAC5C,uBAAuB,EAAE,yBAAyB;YAClD,kBAAkB,EAAE,oBAAoB;YACxC,mCAAmC,EAAE,qCAAqC;YAC1E,0BAA0B,EAAE,4BAA4B;YACxD,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;SACV;QACV,SAAS,EAAE;YACP,YAAY,EAAE,cAAc;YAC5B,YAAY,EAAE,cAAc;YAC5B,cAAc,EAAE,gBAAgB;SAC1B;KACb,IACJ"}
@@ -1,2 +1,2 @@
1
- import { IWebhookResponse } from './Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces';
2
- export declare let handleRequest: (req: any) => Promise<IWebhookResponse>;
1
+ import { IWebhookResponse, IEnvironmentObject } from './Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces';
2
+ export declare let handleRequest: (objectId: string, envObject: IEnvironmentObject, req: any) => Promise<IWebhookResponse>;
@@ -3,23 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleRequest = void 0;
4
4
  const Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Constants");
5
5
  const Yaveon_ECM_d3d_Webhook_af_Contract_Logic_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Logic");
6
- let handleRequest = async (req) => {
7
- let event = req.params[Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.ParamNames.Event];
6
+ let handleRequest = async (objectId, envObject, req) => {
7
+ let event = req.params[Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.Event];
8
8
  switch (event) {
9
- case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.EventNames.Create:
9
+ case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.d3dWebhook.EventNames.Create:
10
10
  return (0, Yaveon_ECM_d3d_Webhook_af_Contract_Logic_1.add)(req);
11
- case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.EventNames.Update:
11
+ case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.d3dWebhook.EventNames.Update:
12
12
  return (0, Yaveon_ECM_d3d_Webhook_af_Contract_Logic_1.update)(req);
13
- case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.EventNames.Remove:
13
+ case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.d3dWebhook.EventNames.Remove:
14
14
  return {
15
+ success: true,
15
16
  reqBody: req.json(),
16
17
  resultMsg: 'Event "' + event + '" does not require any custom logic.',
17
18
  resultState: 200
18
19
  };
19
20
  default:
20
21
  return {
22
+ success: false,
21
23
  reqBody: req.json(),
22
- resultMsg: 'Event "' + event + '" unknown or not supported. Valid events: ' + Object.values(Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.EventNames).join(", ") + '"',
24
+ resultMsg: 'Event "' + event + '" unknown or not supported. Valid events: ' + Object.values(Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.d3dWebhook.EventNames).join(", ") + '"',
23
25
  resultState: 400
24
26
  };
25
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.ts"],"names":[],"mappings":";;;AACA,iHAA2E;AAC3E,yGAGmD;AAE5C,IAAI,aAAa,GAAG,KAAK,EAAE,GAAQ,EAA6B,EAAE;IAErE,IAAI,KAAK,GAAW,GAAG,CAAC,MAAM,CAAC,wDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;IAExE,QAAQ,KAAK,EAAC;QACV,KAAK,wDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM;YACtC,OAAO,IAAA,8CAAG,EAAC,GAAG,CAAC,CAAC;QACxB,KAAK,wDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM;YACtC,OAAO,IAAA,iDAAM,EAAC,GAAG,CAAC,CAAC;QAC3B,KAAK,wDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM;YAC1C,OAAO;gBACH,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,SAAS,GAAE,KAAK,GAAE,sCAAsC;gBACnE,WAAW,EAAE,GAAG;aACnB,CAAC;QACN;YACI,OAAO;gBACH,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,SAAS,GAAE,KAAK,GAAE,4CAA4C,GAAE,MAAM,CAAC,MAAM,CAAC,wDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAE,GAAG;gBAC5I,WAAW,EAAE,GAAG;aACnB,CAAC;KACT;AACL,CAAC,CAAA;AAtBU,QAAA,aAAa,iBAsBvB"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.ts"],"names":[],"mappings":";;;AACA,iHAA2E;AAC3E,yGAGmD;AAE5C,IAAI,aAAa,GAAG,KAAK,EAAE,QAAe,EAAE,SAA4B,EAAE,GAAQ,EAA6B,EAAE;IAEpH,IAAI,KAAK,GAAW,GAAG,CAAC,MAAM,CAAC,wDAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IAE7D,QAAQ,KAAK,EAAC;QACV,KAAK,wDAAS,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM;YACnC,OAAO,IAAA,8CAAG,EAAC,GAAG,CAAC,CAAC;QACxB,KAAK,wDAAS,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM;YACnC,OAAO,IAAA,iDAAM,EAAC,GAAG,CAAC,CAAC;QAC3B,KAAK,wDAAS,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM;YACvC,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,SAAS,GAAE,KAAK,GAAE,sCAAsC;gBACnE,WAAW,EAAE,GAAG;aACnB,CAAC;QACN;YACI,OAAO;gBACH,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,SAAS,GAAE,KAAK,GAAE,4CAA4C,GAAE,MAAM,CAAC,MAAM,CAAC,wDAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAE,GAAG;gBACzI,WAAW,EAAE,GAAG;aACnB,CAAC;KACT;AACL,CAAC,CAAA;AAxBU,QAAA,aAAa,iBAwBvB"}
@@ -1,7 +1,7 @@
1
- import { IAfGenericIdProperty, IAfGenericValueProperty } from '../../interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
1
+ import { IAfGenericIdProperty, IAfGenericValueProperty } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
2
2
  import { Constants } from './Yaveon.ECM.d3d.Webhook.af.Contract.Constants';
3
- export { IAfGenericIdProperty, IAfGenericValueProperty } from '../../interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
4
- export { IWebhookResponse } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
3
+ export { IAfGenericIdProperty, IAfGenericValueProperty, IEnvironmentObject } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
4
+ export { IWebhookResponse } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
5
5
  export interface IAfNewContract {
6
6
  [key: string]: any;
7
7
  responsible: IAfGenericIdProperty | null;
@@ -40,19 +40,19 @@ export interface IAfContract extends IAfNewContract {
40
40
  internalNumber: string;
41
41
  }
42
42
  export interface IAfContractStatusProperty {
43
- value: Constants.Af.Contracts.ContractStates;
43
+ value: typeof Constants.AfContracts.ContractStates[keyof typeof Constants.AfContracts.ContractStates];
44
44
  }
45
45
  export interface IAfOwnRoleProperty {
46
- value: Constants.Af.Contracts.OwnRole;
46
+ value: typeof Constants.AfContracts.OwnRole[keyof typeof Constants.AfContracts.OwnRole];
47
47
  }
48
48
  export interface IAfAutomaticRenewalProperty {
49
- value: Constants.Af.Contracts.AutomaticRenewal;
49
+ value: typeof Constants.AfContracts.AutomaticRenewal[keyof typeof Constants.AfContracts.AutomaticRenewal];
50
50
  }
51
51
  export interface IAfTerminationUnitProperty {
52
- value: Constants.Af.Contracts.TerminationUnit;
52
+ value: typeof Constants.AfContracts.TerminationUnit[keyof typeof Constants.AfContracts.TerminationUnit];
53
53
  }
54
54
  export interface IAfTerminationCalendarEventProperty {
55
- value: Constants.Af.Contracts.TerminationCalendarEvent;
55
+ value: typeof Constants.AfContracts.TerminationCalendarEvent[keyof typeof Constants.AfContracts.TerminationCalendarEvent];
56
56
  }
57
57
  export interface IAfCustomFieldProperty {
58
58
  value: string;
@@ -82,12 +82,13 @@ interface IWebhookConfigAfContractPropertyMappingBase {
82
82
  fromPropertyGuid: string;
83
83
  fromPropertyId?: string;
84
84
  fromPropertyName: string;
85
- toType: Constants.Af.Contracts.ToType;
86
- default?: any;
85
+ toType: typeof Constants.AfContracts.ToType[keyof typeof Constants.AfContracts.ToType];
86
+ default?: string;
87
87
  mandatory?: boolean;
88
- static?: any;
88
+ static?: string;
89
89
  translation?: string;
90
90
  regex?: string;
91
+ [key: string]: string | boolean | typeof Constants.AfContracts.ToType[keyof typeof Constants.AfContracts.ToType] | undefined;
91
92
  }
92
93
  export interface IWebhookConfigAfContractPropertyMapping extends IWebhookConfigAfContractPropertyMappingBase {
93
94
  toPropertyName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.ts"],"names":[],"mappings":";;AAoDC,CAAC"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.ts"],"names":[],"mappings":";;AAqDC,CAAC"}
@@ -1,3 +1,3 @@
1
- import { IWebhookResponse } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
1
+ import { IWebhookResponse } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
2
2
  export declare let add: (req: any) => Promise<IWebhookResponse>;
3
3
  export declare let update: (req: any) => Promise<IWebhookResponse>;
@@ -7,13 +7,14 @@ const Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1 = require("./Yaveon.ECM.d3d.W
7
7
  const Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Constants");
8
8
  const Yaveon_ECM_d3d_Utility_1 = require("../../utilities/Yaveon.ECM.d3d.Utility");
9
9
  process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '1';
10
- let add = async (req) => { return runWebHook(req); };
10
+ let add = async (req) => { return runWebhook(req); };
11
11
  exports.add = add;
12
- let update = async (req) => { return runWebHook(req); };
12
+ let update = async (req) => { return runWebhook(req); };
13
13
  exports.update = update;
14
- let runWebHook = async (req) => {
14
+ let runWebhook = async (req) => {
15
15
  var _a, _b, _c;
16
16
  let webHookResponse = {
17
+ success: true,
17
18
  reqBody: req.json(),
18
19
  resultMsg: '',
19
20
  resultState: 200
@@ -40,21 +41,21 @@ let runWebHook = async (req) => {
40
41
  if (!contract.hasOwnProperty('id')) {
41
42
  webHookResponse.resultMsg += 'Preparing contract body... ';
42
43
  const updateBody = await Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getPreparedUpdateBody(afContractsClient, contractMapping.propertyMapping, config.contract.translations, doc, contract);
43
- if (((_b = updateBody.contractStatus) === null || _b === void 0 ? void 0 : _b.value) === Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.Af.Contracts.ContractStates.Canceled) {
44
- updateBody.terminationRemark = contractMapping.terminationRemark ? contractMapping.terminationRemark : Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.Af.Contracts.TerminationDefaultRemark;
44
+ if (((_b = updateBody.contractStatus) === null || _b === void 0 ? void 0 : _b.value) === Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.AfContracts.ContractStates.Canceled) {
45
+ updateBody.terminationRemark = contractMapping.terminationRemark ? contractMapping.terminationRemark : Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.AfContracts.TerminationDefaultRemark;
45
46
  updateBody.terminationBy = Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getTypedAfValueObject({
46
47
  fromPropertyGuid: "",
47
48
  fromPropertyName: "",
48
49
  toPropertyName: "",
49
50
  toCustomPropertyId: "",
50
- toType: Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.Af.Contracts.ToType.IAfGenericValueProperty
51
+ toType: Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.AfContracts.ToType.IAfGenericValueProperty
51
52
  }, (_c = updateBody.responsible) === null || _c === void 0 ? void 0 : _c.id);
52
53
  updateBody.terminationDate = Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getTypedAfValueObject({
53
54
  fromPropertyGuid: "",
54
55
  fromPropertyName: "",
55
56
  toPropertyName: "",
56
57
  toCustomPropertyId: "",
57
- toType: Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.Af.Contracts.ToType.Date
58
+ toType: Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.AfContracts.ToType.Date
58
59
  }, doc.dateUpdated);
59
60
  }
60
61
  webHookResponse.resultMsg += ' done\r\n';