yaveon.ecm.d3dwebhooks 0.14.1 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,5 +1,5 @@
1
- import { IAfObject, IAfObjectField } from '../../interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
2
- export { IWebhookResponse, IPersistedDocObject } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
1
+ import { IAfObject, IAfObjectField } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
2
+ export { IWebhookResponse, IPersistedDocObject } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
3
3
  export interface IAfQmObject extends IAfObject {
4
4
  field: {
5
5
  Kapitel: IAfObjectField;
@@ -0,0 +1,47 @@
1
+ export declare const Constants: {
2
+ alterationText: string;
3
+ DmsObjectStates: {
4
+ States: {
5
+ readonly Processing: "processing";
6
+ readonly Verifiction: "verification";
7
+ readonly Released: "released";
8
+ readonly Archive: "archive";
9
+ readonly Block: "Block";
10
+ };
11
+ isValid: (stateValue: string) => boolean;
12
+ };
13
+ d3d: {
14
+ readonly FileNameFolder: "---dummy";
15
+ readonly FileStatus: {
16
+ readonly Released: "release";
17
+ };
18
+ readonly PersistedObject: {
19
+ readonly FileStatusPropertyName: "property_state";
20
+ readonly FileNamePropertyName: "property_filename";
21
+ readonly FileTypePropertyName: "property_filetype";
22
+ readonly CategoryPropertyName: "property_category";
23
+ readonly CaptionPropertyName: "property_caption";
24
+ };
25
+ readonly SearchObject: {
26
+ readonly FileStatusPropertyName: "property_state";
27
+ };
28
+ readonly DmsObjectTypes: {
29
+ readonly Document: "document";
30
+ readonly Folder: "folder";
31
+ };
32
+ };
33
+ RequestTypes: {
34
+ readonly Extension: "extension";
35
+ readonly Webhook: "webhook";
36
+ };
37
+ UrlParameters: {
38
+ readonly Event: "event";
39
+ readonly Feature: "feature";
40
+ readonly RequestType: "requesttype";
41
+ };
42
+ Method: {
43
+ readonly Get: "GET";
44
+ readonly Patch: "PATCH";
45
+ readonly Post: "POST";
46
+ };
47
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Constants = void 0;
4
+ const Yaveon_ECM_d3d_Constants_1 = require("../../constants/Yaveon.ECM.d3d.Constants");
5
+ exports.Constants = Object.assign(Object.assign({}, Yaveon_ECM_d3d_Constants_1.Constants), { alterationText: "published by sync feature" });
6
+ //# sourceMappingURL=Yaveon.ECM.d3d.Feature.Sync.Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Feature.Sync.Constants.js","sourceRoot":"","sources":["../../../source/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Constants.ts"],"names":[],"mappings":";;;AAAA,uFAAkF;AAErE,QAAA,SAAS,mCACf,oCAAU,KACb,cAAc,EAAE,2BAA2B,IAC9C"}
@@ -1,5 +1,5 @@
1
- import { IWebhookConfig } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
2
- export { IWebhookConfig, IWebhookConfigAccount, IDocMultiPropertyObject, IDocPropertyObject, IDocUpdateBodyObject, IPersistedDocObject, IWebhookResponse, IWhDocObject } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
1
+ import { IWebhookConfig } from '../Yaveon.ECM.d3d.Feature.Interfaces';
2
+ export { IWebhookConfigAccount, IDocMultiPropertyObject, IDocPropertyObject, IDocUpdateBodyObject, IPersistedDocObject, IEnvironmentObject as IEnvironmtObject, IFeatureResponse } from '../Yaveon.ECM.d3d.Feature.Interfaces';
3
3
  export interface IWebhookConfigSync extends IWebhookConfig {
4
4
  sync: IWebhookConfigSyncProperty[];
5
5
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Yaveon.ECM.d3d.Feature.Sync.Interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Feature.Sync.Interfaces.js","sourceRoot":"","sources":["../../../source/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { IEnvironmtObject, IFeatureResponse } from './Yaveon.ECM.d3d.Feature.Sync.Interfaces';
2
+ export declare const runFeature: (objectId: string, envObject: IEnvironmtObject, req: any) => Promise<IFeatureResponse>;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runFeature = void 0;
4
+ const Yaveon_ECM_d3d_Webhook_Client_1 = require("../../clients/Yaveon.ECM.d3d.Webhook.Client");
5
+ const Yaveon_ECM_d3d_Feature_Sync_Utility_1 = require("./Yaveon.ECM.d3d.Feature.Sync.Utility");
6
+ const Yaveon_ECM_d3d_Feature_Sync_Constants_1 = require("./Yaveon.ECM.d3d.Feature.Sync.Constants");
7
+ const Yaveon_ECM_PDF_Constants_1 = require("../../constants/Yaveon.ECM.PDF.Constants");
8
+ const Yaveon_ECM_ILovePDF_Client_1 = require("../../clients/Yaveon.ECM.ILovePDF.Client");
9
+ process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '1';
10
+ const runFeature = async (objectId, envObject, req) => {
11
+ var _a, _b, _c, _d, _e, _f;
12
+ const Constants = Object.assign(Object.assign({}, Yaveon_ECM_d3d_Feature_Sync_Constants_1.Constants), Yaveon_ECM_PDF_Constants_1.Constants);
13
+ const response = {
14
+ state: 200,
15
+ success: true,
16
+ data: null,
17
+ message: '',
18
+ };
19
+ response.message += 'Creating D3dWebhookClient object... ';
20
+ const whClient = new Yaveon_ECM_d3d_Webhook_Client_1.D3dWebhookClient(envObject.baseUrl, envObject.repositoryId, envObject.authToken);
21
+ response.message += 'done\r\n';
22
+ try {
23
+ const pDocObject = await whClient.getObjectById(objectId);
24
+ response.message += 'Retrieving configuration... ';
25
+ const config = await whClient.getConfiguration();
26
+ response.message += 'done\n';
27
+ if (config.accounts !== null && config.accounts !== undefined) {
28
+ const account = config.accounts.find((a) => a.id === Constants.ConvertToPdf.WhConfigPdfConversionAccountId);
29
+ if (account !== undefined) {
30
+ response.message += 'Initializing ILovePDFClient object... ';
31
+ new Yaveon_ECM_ILovePDF_Client_1.ILovePDFClient(account.key, account.secret);
32
+ response.message += 'done\r\n';
33
+ }
34
+ }
35
+ const syncDefinitions = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getSyncConfiguration(pDocObject, config);
36
+ if (syncDefinitions.length > 0) {
37
+ let docContent = new Uint8Array();
38
+ if (((_a = pDocObject.systemProperties.find(p => p.id === Constants.d3d.PersistedObject.FileNamePropertyName)) === null || _a === void 0 ? void 0 : _a.value) !== Constants.d3d.FileNameFolder) {
39
+ docContent = await whClient.getDocumentContent(pDocObject.id);
40
+ }
41
+ for (const syncDefinition of syncDefinitions) {
42
+ const toCategoryMapping = syncDefinition.toCategoryMapping;
43
+ let linkedDocumentId = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getPersistedDocPropertyValue(pDocObject, syncDefinition.toCategoryMapping.toCategoryKey.toPropertyId)[0];
44
+ ;
45
+ let body = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getBodyPropertiesFromPersistedObject(pDocObject, toCategoryMapping.propertyMapping);
46
+ if (docContent.length > 0) {
47
+ const fileName = (_c = (_b = pDocObject.systemProperties.find(p => p.id === Constants.d3d.PersistedObject.FileNamePropertyName)) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : '';
48
+ const fileType = (_e = (_d = pDocObject.systemProperties.find(p => p.id === Constants.d3d.PersistedObject.FileTypePropertyName)) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : '';
49
+ if (toCategoryMapping.hasOwnProperty(Constants.ConvertToPdf.ConvertToPdfFieldName) && Constants.ConvertToPdf.ConvertableToPdf.includes(fileType.toLowerCase())) {
50
+ const convert = (_f = pDocObject.objectProperties.find(p => { var _a; return p.id === ((_a = toCategoryMapping.convertToPdfKey) === null || _a === void 0 ? void 0 : _a.propertyId); })) === null || _f === void 0 ? void 0 : _f.displayValue;
51
+ if (convert == Constants.ConvertToPdf.NeedsConvertion.IntYes || (convert === null || convert === void 0 ? void 0 : convert.toLowerCase()) == Constants.ConvertToPdf.NeedsConvertion.StringYes || convert == Constants.ConvertToPdf.NeedsConvertion.BoolYes) {
52
+ docContent = await Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.convertDocxToPdf(docContent, fileName);
53
+ body.filename = fileName.replace(/\.[^/.]+$/, "." + Constants.ConvertToPdf.ConvertedToFileType);
54
+ }
55
+ }
56
+ body.contentLocationUri = (await whClient.uploadChunk(docContent)).headers.get('location');
57
+ body.displayValue = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getPersistedDocPropertyValue(pDocObject, Constants.d3d.PersistedObject.CaptionPropertyName)[0];
58
+ }
59
+ if (linkedDocumentId.length > 0) {
60
+ body.alterationText = Constants.alterationText;
61
+ let putResponse = await whClient.updateObjectProperties(linkedDocumentId, body);
62
+ response.message += '\r\nSuccessfully updated remote object ' + linkedDocumentId + '.\n' + JSON.stringify(body);
63
+ console.log('Successfully updated remote object ' + linkedDocumentId + '.\n' + JSON.stringify(body));
64
+ }
65
+ else {
66
+ body.sourceCategory = toCategoryMapping.toCategoryId;
67
+ linkedDocumentId = await whClient.addObject(body);
68
+ response.message += '\r\nSuccessfully added remote object ' + linkedDocumentId + '.\n' + JSON.stringify(body);
69
+ console.log('Successfully added remote object ' + linkedDocumentId + '.\n' + JSON.stringify(body));
70
+ }
71
+ const remoteObject = await whClient.getObjectById(linkedDocumentId);
72
+ body = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getEmptyPropertiesUpdateObject();
73
+ body = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getBodyPropertiesFromPersistedObject(remoteObject, toCategoryMapping.returnMapping);
74
+ body.sourceCategory = Yaveon_ECM_d3d_Feature_Sync_Utility_1.SyncUtility.getPersistedDocPropertyValue(pDocObject, Constants.d3d.PersistedObject.CategoryPropertyName)[0];
75
+ let putResponse = await whClient.updateObjectProperties(pDocObject.id, body);
76
+ response.message += '\r\nSuccessfully updated current object ' + linkedDocumentId + '.\n' + JSON.stringify(body);
77
+ console.log('Successfully updated current object ' + linkedDocumentId + '.\n' + JSON.stringify(body));
78
+ response.data = Object.assign(Object.assign({}, body), { newObjectId: linkedDocumentId });
79
+ }
80
+ }
81
+ }
82
+ catch (ex) {
83
+ response.state = 400;
84
+ response.success = false;
85
+ response.message += 'error\n';
86
+ if (ex.response.data) {
87
+ response.message += 'response data: ' + ex.response.data + '\n';
88
+ }
89
+ if (ex.response.statusText) {
90
+ response.message += 'response status text: ' + ex.response.statusText + '\n';
91
+ }
92
+ if (ex.message) {
93
+ response.message += 'exception message: ' + ex.message + '\n';
94
+ }
95
+ response.message += ex.toString();
96
+ whClient.addNote(objectId, 'Error during processing: ' + response.message);
97
+ }
98
+ return response;
99
+ };
100
+ exports.runFeature = runFeature;
101
+ //# sourceMappingURL=Yaveon.ECM.d3d.Feature.Sync.Logic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Feature.Sync.Logic.js","sourceRoot":"","sources":["../../../source/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Logic.ts"],"names":[],"mappings":";;;AAAA,+FAA+E;AAQ/E,+FAAoE;AACpE,mGAAqF;AACrF,uFAAqF;AACrF,yFAA0E;AAG1E,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,GAAG,GAAG,CAAC;AAE3C,MAAM,UAAU,GAAG,KAAK,EAAE,QAAgB,EAAE,SAA2B,EAAE,GAAO,EAA6B,EAAE;;IAElH,MAAM,SAAS,mCACR,iDAAa,GACb,oCAAY,CAClB,CAAA;IAED,MAAM,QAAQ,GAAqB;QAC/B,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,EAAE;KACd,CAAC;IAGF,QAAQ,CAAC,OAAO,IAAI,sCAAsC,CAAC;IAC3D,MAAM,QAAQ,GAAqB,IAAI,gDAAgB,CACnD,SAAS,CAAC,OAAO,EACjB,SAAS,CAAC,YAAY,EACtB,SAAS,CAAC,SAAS,CACtB,CAAC;IACF,QAAQ,CAAC,OAAO,IAAI,UAAU,CAAC;IAE/B,IAAG;QAEC,MAAM,UAAU,GAAwB,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAG/E,QAAQ,CAAC,OAAO,IAAI,8BAA8B,CAAC;QACnD,MAAM,MAAM,GAAuB,MAAM,QAAQ,CAAC,gBAAgB,EAAsB,CAAC;QACzF,QAAQ,CAAC,OAAO,IAAI,QAAQ,CA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,wBAAwB,GAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,GAAC,IAAI,CAAC;SAC7E;QACD,IAAG,EAAE,CAAC,OAAO,EAAC;YACV,QAAQ,CAAC,OAAO,IAAI,qBAAqB,GAAE,EAAE,CAAC,OAAO,GAAC,IAAI,CAAC;SAC9D;QACD,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;QAElC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,2BAA2B,GAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KAC5E;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AA1IY,QAAA,UAAU,cA0ItB"}
@@ -0,0 +1,6 @@
1
+ import { d3dUtility } from "../../utilities/Yaveon.ECM.d3d.Utility";
2
+ import { IDocUpdateBodyObject, IPersistedDocObject, IWebhookConfigSyncToPropertyMapping, IWebhookConfigSync, IWebhookConfigSyncProperty } from "./Yaveon.ECM.d3d.Feature.Sync.Interfaces";
3
+ export declare class SyncUtility extends d3dUtility {
4
+ static getBodyPropertiesFromPersistedObject(pDoc: IPersistedDocObject, propertyMappings: IWebhookConfigSyncToPropertyMapping[]): IDocUpdateBodyObject;
5
+ static getSyncConfiguration(doc: IPersistedDocObject, config: IWebhookConfigSync): IWebhookConfigSyncProperty[];
6
+ }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SyncUtility = void 0;
4
4
  const Yaveon_ECM_d3d_Utility_1 = require("../../utilities/Yaveon.ECM.d3d.Utility");
5
- const Yaveon_ECM_d3d_Webhook_Sync_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.Sync.Constants");
5
+ const Yaveon_ECM_d3d_Feature_Sync_Constants_1 = require("./Yaveon.ECM.d3d.Feature.Sync.Constants");
6
6
  class SyncUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
7
7
  static getBodyPropertiesFromPersistedObject(pDoc, propertyMappings) {
8
8
  let updateProperties = {
@@ -12,8 +12,8 @@ class SyncUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
12
12
  properties: []
13
13
  }
14
14
  };
15
- if (Yaveon_ECM_d3d_Utility_1.d3dUtility.getPersistedDocPropertyValue(pDoc, Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.FileNameFolder)[0] !== Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.FileNameFolder) {
16
- updateProperties.filename = Yaveon_ECM_d3d_Utility_1.d3dUtility.getPersistedDocPropertyValue(pDoc, Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.PersistedObject.FileNamePropertyName)[0];
15
+ if (Yaveon_ECM_d3d_Utility_1.d3dUtility.getPersistedDocPropertyValue(pDoc, Yaveon_ECM_d3d_Feature_Sync_Constants_1.Constants.d3d.FileNameFolder)[0] !== Yaveon_ECM_d3d_Feature_Sync_Constants_1.Constants.d3d.FileNameFolder) {
16
+ updateProperties.filename = Yaveon_ECM_d3d_Utility_1.d3dUtility.getPersistedDocPropertyValue(pDoc, Yaveon_ECM_d3d_Feature_Sync_Constants_1.Constants.d3d.PersistedObject.FileNamePropertyName)[0];
17
17
  }
18
18
  for (const mappedProperty of propertyMappings) {
19
19
  updateProperties.sourceProperties.properties.push({
@@ -23,42 +23,13 @@ class SyncUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
23
23
  }
24
24
  return updateProperties;
25
25
  }
26
- static getBodyProperties(doc, categoryMapping) {
27
- let updateProperties = {
28
- sourceId: '',
29
- sourceCategory: '',
30
- sourceProperties: {
31
- properties: []
32
- }
33
- };
34
- if (doc.fileName !== Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.FileNameFolder) {
35
- updateProperties.filename = doc.fileName;
36
- }
37
- for (const mappedProperty of categoryMapping.propertyMapping) {
38
- let key = mappedProperty.toPropertyGuid;
39
- let docProperty = doc.properties.find((p) => p.id === mappedProperty.fromPropertyGuid);
40
- if (docProperty !== undefined) {
41
- let docPropertyValue = this.getDocPropertyValues(docProperty);
42
- updateProperties.sourceProperties.properties.push({
43
- "key": key,
44
- "values": docPropertyValue
45
- });
46
- }
47
- }
48
- return updateProperties;
49
- }
50
26
  static getSyncConfiguration(doc, config) {
51
27
  const syncDefinitions = config.sync.filter(p => {
52
28
  var _a;
53
29
  let categoryId;
54
30
  if ((p.fromCategoryGuid !== undefined && p.fromCategoryGuid !== '')
55
31
  || p.fromCategoryId !== undefined && p.fromCategoryId !== '') {
56
- if (doc.hasOwnProperty(Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.WebHookObject.PropertyNames.CategoryPropertyName)) {
57
- categoryId = doc.categoryId;
58
- }
59
- else {
60
- categoryId = (_a = doc.systemProperties.find(p => p.id === Yaveon_ECM_d3d_Webhook_Sync_Constants_1.Constants.d3Defaults.PersistedObject.CategoryPropertyName)) === null || _a === void 0 ? void 0 : _a.value;
61
- }
32
+ categoryId = (_a = doc.systemProperties.find(p => p.id === Yaveon_ECM_d3d_Feature_Sync_Constants_1.Constants.d3d.PersistedObject.CategoryPropertyName)) === null || _a === void 0 ? void 0 : _a.value;
62
33
  if (p.fromCategoryGuid !== categoryId && p.fromCategoryId !== categoryId) {
63
34
  return false;
64
35
  }
@@ -87,4 +58,4 @@ class SyncUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
87
58
  }
88
59
  }
89
60
  exports.SyncUtility = SyncUtility;
90
- //# sourceMappingURL=Yaveon.ECM.d3d.Webhook.Sync.Utility.js.map
61
+ //# sourceMappingURL=Yaveon.ECM.d3d.Feature.Sync.Utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Feature.Sync.Utility.js","sourceRoot":"","sources":["../../../source/features/Sync/Yaveon.ECM.d3d.Feature.Sync.Utility.ts"],"names":[],"mappings":";;;AAAA,mFAAoE;AAWpE,mGAAoE;AAIpE,MAAa,WAAY,SAAQ,mCAAU;IAEv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iDAAS,CAAC,GAAG,CAAC,eAAe,CAAC,oBAAoB,CAAC,0CAAE,KAAK,CAAC;gBAEhH,IAAI,CAAC,CAAC,gBAAgB,KAAK,UAAU,IAAI,CAAC,CAAC,cAAc,KAAK,UAAU,EAAC;oBAErE,OAAO,KAAK,CAAC;iBAChB;aACJ;YAED,IAAI,CAAC,CAAC,eAAe,KAAK,SAAS,EAAC;gBAEhC,KAAK,MAAM,cAAc,IAAI,CAAC,CAAC,eAAe,EAAC;oBAC3C,IAAI,OAAO,GAAG,cAAc,CAAC,OAAO,CAAA;oBACpC,IAAI,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAA;oBAElF,IAAG,WAAW,CAAC,MAAM,GAAG,CAAC,EAAC;wBACtB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAC;4BACjC,IAAG,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,EAAC;gCAC1B,OAAO,KAAK,CAAC;6BAChB;yBACJ;qBACJ;yBACG;wBACA,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAC;4BACnB,OAAO,KAAK,CAAC;yBAChB;qBACJ;iBACJ;aACJ;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ;AAlHD,kCAkHC"}
@@ -1,3 +1,97 @@
1
- import { Constants as _constants } from '../../constants/Yaveon.ECM.d3d.Webhook.Constants';
2
- export declare class Constants extends _constants {
3
- }
1
+ export declare const Constants: {
2
+ d3dWebhook: {
3
+ readonly defaultHeaders: import("../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
4
+ readonly StateChangeText: "by webhook";
5
+ readonly ConfigFileName: "webhookConfiguration";
6
+ readonly ConfigFileExtension: "json";
7
+ readonly ConfigFileDisplayName: "Webhook Konfiguration";
8
+ readonly ConfigFileLockedTimeout: 3000;
9
+ readonly WebhookObject: {
10
+ readonly PropertyNames: {
11
+ readonly CategoryPropertyName: "categoryId";
12
+ readonly FileNamePropertyName: "property_filename";
13
+ readonly FileStatusPropertyName: "property_state";
14
+ readonly FileTypePropertyName: "property_filetype";
15
+ readonly OwnerPropertyName: "property_owner";
16
+ };
17
+ readonly FileStatus: {
18
+ readonly Processing: "B";
19
+ readonly Released: "";
20
+ };
21
+ };
22
+ readonly FeatureNames: {
23
+ readonly CheckIn: "checkin";
24
+ readonly Contract: "contract";
25
+ readonly Enrich: "enrich";
26
+ readonly EnrichAndMove: "enrichmove";
27
+ readonly Inherit: "inherit";
28
+ readonly MoveFolder: "move";
29
+ readonly NumberRange: "numberRange";
30
+ readonly ReadReceipt: "readReceipt";
31
+ readonly Bucket: "bucket";
32
+ readonly ValueSet: "valueset";
33
+ readonly Sync: "sync";
34
+ };
35
+ readonly EventNames: {
36
+ readonly Create: "add";
37
+ readonly Read: "read";
38
+ readonly Update: "update";
39
+ readonly Remove: "delete";
40
+ };
41
+ readonly UrlParameters: {
42
+ readonly Entity: "entity";
43
+ readonly Source: "source";
44
+ readonly Event: "event";
45
+ readonly Feature: "feature";
46
+ readonly RequestType: "requesttype";
47
+ };
48
+ readonly SourceNames: {
49
+ readonly Af: "af";
50
+ readonly D3d: "d3d";
51
+ };
52
+ };
53
+ DmsObjectStates: {
54
+ States: {
55
+ readonly Processing: "processing";
56
+ readonly Verifiction: "verification";
57
+ readonly Released: "released";
58
+ readonly Archive: "archive";
59
+ readonly Block: "Block";
60
+ };
61
+ isValid: (stateValue: string) => boolean;
62
+ };
63
+ d3d: {
64
+ readonly FileNameFolder: "---dummy";
65
+ readonly FileStatus: {
66
+ readonly Released: "release";
67
+ };
68
+ readonly PersistedObject: {
69
+ readonly FileStatusPropertyName: "property_state";
70
+ readonly FileNamePropertyName: "property_filename";
71
+ readonly FileTypePropertyName: "property_filetype";
72
+ readonly CategoryPropertyName: "property_category";
73
+ readonly CaptionPropertyName: "property_caption";
74
+ };
75
+ readonly SearchObject: {
76
+ readonly FileStatusPropertyName: "property_state";
77
+ };
78
+ readonly DmsObjectTypes: {
79
+ readonly Document: "document";
80
+ readonly Folder: "folder";
81
+ };
82
+ };
83
+ RequestTypes: {
84
+ readonly Extension: "extension";
85
+ readonly Webhook: "webhook";
86
+ };
87
+ UrlParameters: {
88
+ readonly Event: "event";
89
+ readonly Feature: "feature";
90
+ readonly RequestType: "requesttype";
91
+ };
92
+ Method: {
93
+ readonly Get: "GET";
94
+ readonly Patch: "PATCH";
95
+ readonly Post: "POST";
96
+ };
97
+ };
@@ -2,7 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Constants = void 0;
4
4
  const Yaveon_ECM_d3d_Webhook_Constants_1 = require("../../constants/Yaveon.ECM.d3d.Webhook.Constants");
5
- class Constants extends Yaveon_ECM_d3d_Webhook_Constants_1.Constants {
6
- }
7
- exports.Constants = Constants;
5
+ exports.Constants = Object.assign({}, Yaveon_ECM_d3d_Webhook_Constants_1.Constants);
8
6
  //# sourceMappingURL=Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js","sourceRoot":"","sources":["../../../source/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.ts"],"names":[],"mappings":";;;AAAA,uGAA0F;AAE1F,MAAa,SAAU,SAAQ,4CAAU;CACxC;AADD,8BACC"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js","sourceRoot":"","sources":["../../../source/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.ts"],"names":[],"mappings":";;;AAAA,uGAA0F;AAE7E,QAAA,SAAS,qBACf,4CAAU,EAChB"}
@@ -1,2 +1,2 @@
1
- import { IValueSetWebhookResponse } from './Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces';
2
- export declare const handleRequest: (req: any) => Promise<IValueSetWebhookResponse>;
1
+ import { IValueSetWebhookResponse, IEnvironmtObject } from './Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces';
2
+ export declare let handleRequest: (objectId: string, envObject: IEnvironmtObject, req: any) => Promise<IValueSetWebhookResponse>;
@@ -25,17 +25,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.handleRequest = void 0;
27
27
  const Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.ValueSet.Constants");
28
- const handleRequest = async (req) => {
29
- const source = req.params[Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.UrlParameters.ParamNames.Source];
28
+ let handleRequest = async (objectId, envObject, req) => {
29
+ const source = req.params[Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.d3dWebhook.UrlParameters.Source];
30
30
  let logic;
31
31
  switch (source) {
32
- case Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.UrlParameters.SourceNames.Af:
32
+ case Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.d3dWebhook.SourceNames.Af:
33
33
  logic = await Promise.resolve().then(() => __importStar(require('./alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic')));
34
34
  break;
35
35
  default:
36
36
  return {
37
+ success: false,
37
38
  reqBody: req.json(),
38
- resultMsg: 'Source "' + source + '" unknown or not supported. Valid events: ' + Object.values(Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.UrlParameters.SourceNames).join(", ") + '"',
39
+ resultMsg: 'Source "' + source + '" unknown or not supported. Valid events: ' + Object.values(Yaveon_ECM_d3d_Webhook_ValueSet_Constants_1.Constants.d3dWebhook.SourceNames).join(", ") + '"',
39
40
  resultState: 400
40
41
  };
41
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js","sourceRoot":"","sources":["../../../source/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2GAAwE;AAEjE,MAAM,aAAa,GAAG,KAAK,EAAE,GAAQ,EAAqC,EAAE;IAE/E,MAAM,MAAM,GAAW,GAAG,CAAC,MAAM,CAAC,qDAAS,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5E,IAAI,KAAK,CAAC;IAEV,QAAO,MAAM,EAAC;QACV,KAAK,qDAAS,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE;YACvC,KAAK,GAAG,wDAAa,sDAAsD,GAAC,CAAC;YAC7E,MAAM;QACV;YACI,OAAO;gBACH,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,UAAU,GAAE,MAAM,GAAE,4CAA4C,GAAE,MAAM,CAAC,MAAM,CAAC,qDAAS,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAE,GAAG;gBAC/I,WAAW,EAAE,GAAG;aACnB,CAAA;KACR;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC,CAAA;AAlBY,QAAA,aAAa,iBAkBzB"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js","sourceRoot":"","sources":["../../../source/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2GAAwE;AAEjE,IAAI,aAAa,GAAG,KAAK,EAAE,QAAe,EAAE,SAA0B,EAAE,GAAQ,EAAqC,EAAE;IAE1H,MAAM,MAAM,GAAW,GAAG,CAAC,MAAM,CAAC,qDAAS,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IAC5E,IAAI,KAAK,CAAC;IAEV,QAAO,MAAM,EAAC;QACV,KAAK,qDAAS,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;YACpC,KAAK,GAAG,wDAAa,sDAAsD,GAAC,CAAC;YAC7E,MAAM;QACV;YACI,OAAO;gBACH,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE;gBACnB,SAAS,EAAE,UAAU,GAAE,MAAM,GAAE,4CAA4C,GAAE,MAAM,CAAC,MAAM,CAAC,qDAAS,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAE,GAAG;gBAC5I,WAAW,EAAE,GAAG;aACnB,CAAA;KACR;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC,CAAA;AAnBU,QAAA,aAAa,iBAmBvB"}
@@ -1,5 +1,5 @@
1
- import { IWebhookResponse } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
2
- export { IWebhookResponse } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
1
+ import { IWebhookResponse } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
2
+ export { IWebhookResponse, IEnvironmentObject as IEnvironmtObject } from '../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
3
3
  export interface IValueSetWebhookResponse extends IWebhookResponse {
4
4
  reqBody: IValueSetWebhookResponseRequestBody;
5
5
  }
@@ -1,9 +1,127 @@
1
- import { Constants as afConstants } from '../../../constants/Yaveon.ECM.d3d.Webhook.af.Constants';
2
- export declare class Constants extends afConstants {
3
- }
4
- export declare namespace Constants {
5
- namespace ValueSet {
6
- const ValueIdSeparator = " | ";
7
- const ValueRegEx: RegExp;
8
- }
9
- }
1
+ export declare const Constants: {
2
+ ValueSet: {
3
+ readonly ValueIdSeparator: " | ";
4
+ readonly ValueRegEx: RegExp;
5
+ };
6
+ Af: {
7
+ AlphaflowObjectIdField: {
8
+ readonly name: "alphaflowObjectID";
9
+ };
10
+ DefaultHeaders: import("../../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
11
+ ServiceEndpoints: {
12
+ readonly Accounts: "/alphaflow-user/accountservice/accounts";
13
+ readonly Entities: "/alphaflow-appstudio/entityobjectservice/entityobjects";
14
+ readonly Groups: "/alphaflow-user/groupservice/groups";
15
+ readonly Organizations: "/alphaflow-organization/organizationservice/organizations";
16
+ readonly TradingPartners: "/alphaflow-tradingpartner/tradingpartnerservice/tradingpartners";
17
+ readonly Workflows: "/alphaflow-appstudio/workflowservice";
18
+ };
19
+ Method: {
20
+ readonly Get: "GET";
21
+ readonly Patch: "PATCH";
22
+ readonly Post: "POST";
23
+ };
24
+ ValueSetEntities: {
25
+ readonly ContractTypes: "contracttypes";
26
+ readonly Groups: "groups";
27
+ readonly Organizations: "organizations";
28
+ readonly TradingPartners: "tradingpartners";
29
+ readonly Users: "users";
30
+ };
31
+ };
32
+ d3dWebhook: {
33
+ readonly defaultHeaders: import("../../../webhooks/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
34
+ readonly StateChangeText: "by webhook";
35
+ readonly ConfigFileName: "webhookConfiguration";
36
+ readonly ConfigFileExtension: "json";
37
+ readonly ConfigFileDisplayName: "Webhook Konfiguration";
38
+ readonly ConfigFileLockedTimeout: 3000;
39
+ readonly WebhookObject: {
40
+ readonly PropertyNames: {
41
+ readonly CategoryPropertyName: "categoryId";
42
+ readonly FileNamePropertyName: "property_filename";
43
+ readonly FileStatusPropertyName: "property_state";
44
+ readonly FileTypePropertyName: "property_filetype";
45
+ readonly OwnerPropertyName: "property_owner";
46
+ };
47
+ readonly FileStatus: {
48
+ readonly Processing: "B";
49
+ readonly Released: "";
50
+ };
51
+ };
52
+ readonly FeatureNames: {
53
+ readonly CheckIn: "checkin";
54
+ readonly Contract: "contract";
55
+ readonly Enrich: "enrich";
56
+ readonly EnrichAndMove: "enrichmove";
57
+ readonly Inherit: "inherit";
58
+ readonly MoveFolder: "move";
59
+ readonly NumberRange: "numberRange";
60
+ readonly ReadReceipt: "readReceipt";
61
+ readonly Bucket: "bucket";
62
+ readonly ValueSet: "valueset";
63
+ readonly Sync: "sync";
64
+ };
65
+ readonly EventNames: {
66
+ readonly Create: "add";
67
+ readonly Read: "read";
68
+ readonly Update: "update";
69
+ readonly Remove: "delete";
70
+ };
71
+ readonly UrlParameters: {
72
+ readonly Entity: "entity";
73
+ readonly Source: "source";
74
+ readonly Event: "event";
75
+ readonly Feature: "feature";
76
+ readonly RequestType: "requesttype";
77
+ };
78
+ readonly SourceNames: {
79
+ readonly Af: "af";
80
+ readonly D3d: "d3d";
81
+ };
82
+ };
83
+ DmsObjectStates: {
84
+ States: {
85
+ readonly Processing: "processing";
86
+ readonly Verifiction: "verification";
87
+ readonly Released: "released";
88
+ readonly Archive: "archive";
89
+ readonly Block: "Block";
90
+ };
91
+ isValid: (stateValue: string) => boolean;
92
+ };
93
+ d3d: {
94
+ readonly FileNameFolder: "---dummy";
95
+ readonly FileStatus: {
96
+ readonly Released: "release";
97
+ };
98
+ readonly PersistedObject: {
99
+ readonly FileStatusPropertyName: "property_state";
100
+ readonly FileNamePropertyName: "property_filename";
101
+ readonly FileTypePropertyName: "property_filetype";
102
+ readonly CategoryPropertyName: "property_category";
103
+ readonly CaptionPropertyName: "property_caption";
104
+ };
105
+ readonly SearchObject: {
106
+ readonly FileStatusPropertyName: "property_state";
107
+ };
108
+ readonly DmsObjectTypes: {
109
+ readonly Document: "document";
110
+ readonly Folder: "folder";
111
+ };
112
+ };
113
+ RequestTypes: {
114
+ readonly Extension: "extension";
115
+ readonly Webhook: "webhook";
116
+ };
117
+ UrlParameters: {
118
+ readonly Event: "event";
119
+ readonly Feature: "feature";
120
+ readonly RequestType: "requesttype";
121
+ };
122
+ Method: {
123
+ readonly Get: "GET";
124
+ readonly Patch: "PATCH";
125
+ readonly Post: "POST";
126
+ };
127
+ };
@@ -2,14 +2,8 @@
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 ValueSet;
10
- (function (ValueSet) {
11
- ValueSet.ValueIdSeparator = ' | ';
12
- ValueSet.ValueRegEx = /(?<=de:)([^;]*)/;
13
- })(ValueSet = Constants.ValueSet || (Constants.ValueSet = {}));
14
- })(Constants || (exports.Constants = Constants = {}));
5
+ exports.Constants = Object.assign(Object.assign({}, Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants), { ValueSet: {
6
+ ValueIdSeparator: ' | ',
7
+ ValueRegEx: /(?<=de:)([^;]*)/
8
+ } });
15
9
  //# sourceMappingURL=Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js","sourceRoot":"","sources":["../../../../source/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.ts"],"names":[],"mappings":";;;AAAA,gHAAiG;AAEjG,MAAa,SAAU,SAAQ,+CAAW;CAEzC;AAFD,8BAEC;AAED,WAAiB,SAAS;IACtB,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACR,yBAAgB,GAAG,KAAK,CAAC;QACzB,mBAAU,GAAG,iBAAiB,CAAC;IAChD,CAAC,EAHgB,QAAQ,GAAR,kBAAQ,KAAR,kBAAQ,QAGxB;AACL,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB"}
1
+ {"version":3,"file":"Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js","sourceRoot":"","sources":["../../../../source/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.ts"],"names":[],"mappings":";;;AAAA,gHAAiG;AAEpF,QAAA,SAAS,mCACf,+CAAW,KACd,QAAQ,EAAC;QACL,gBAAgB,EAAE,KAAK;QACvB,UAAU,EAAE,iBAAiB;KACvB,IACb"}