yaveon.ecm.d3dwebhooks 0.10.0 → 0.10.2
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.
- package/js/Yaveon.ECM.d3d.Webhook.Handler.d.ts +1 -1
- package/js/Yaveon.ECM.d3d.Webhook.Handler.js +6 -3
- package/js/clients/Yaveon.ECM.af.Client.d.ts +9 -2
- package/js/clients/Yaveon.ECM.af.Client.js +58 -19
- package/js/clients/Yaveon.ECM.af.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.af.Contracts.Client.d.ts +4 -2
- package/js/clients/Yaveon.ECM.af.Contracts.Client.js +15 -29
- package/js/clients/Yaveon.ECM.af.Contracts.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.af.QM.Client.d.ts +2 -2
- package/js/clients/Yaveon.ECM.af.QM.Client.js +1 -1
- package/js/clients/Yaveon.ECM.af.QM.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.d3d.Client.d.ts +1 -1
- package/js/clients/Yaveon.ECM.d3d.Client.js +1 -1
- package/js/clients/Yaveon.ECM.d3d.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.d.ts +1 -1
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js +1 -1
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js.map +1 -1
- package/js/{Yaveon.ECM.d3d.Webhook.Constants.d.ts → constants/Yaveon.ECM.d3d.Webhook.Constants.d.ts} +12 -4
- package/js/{Yaveon.ECM.d3d.Webhook.Constants.js → constants/Yaveon.ECM.d3d.Webhook.Constants.js} +11 -2
- package/js/constants/Yaveon.ECM.d3d.Webhook.Constants.js.map +1 -0
- package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.d.ts +39 -0
- package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.js +54 -0
- package/js/constants/Yaveon.ECM.d3d.Webhook.af.Constants.js.map +1 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.d.ts +78 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js +92 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js.map +1 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.d.ts +2 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js +28 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js.map +1 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.d.ts +115 -0
- package/js/features/{ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Interfaces.js → Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js} +2 -1
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js.map +1 -0
- package/js/features/{ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Logic.d.ts → Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.d.ts} +1 -1
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js +80 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js.map +1 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.d.ts +14 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js +267 -0
- package/js/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js.map +1 -0
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.d.ts +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js.map +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.d.ts +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.js +2 -2
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.js.map +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Interfaces.d.ts +1 -0
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Logic.d.ts +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Utility.d.ts +2 -2
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Utility.js +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Utility.js.map +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.d.ts +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js.map +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Handler.d.ts +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Interfaces.d.ts +1 -0
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Interfaces.js +3 -0
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Interfaces.js.map +1 -0
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Logic.d.ts +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Logic.js.map +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Utility.d.ts +2 -2
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Utility.js +2 -2
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Utility.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.d.ts +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.d.ts +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js +2 -2
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Interfaces.d.ts +1 -0
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Logic.d.ts +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.d.ts +2 -2
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js.map +1 -1
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.d.ts +1 -1
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js +3 -3
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js.map +1 -1
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Interfaces.d.ts +1 -0
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Logic.d.ts +1 -1
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.d.ts +14 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js +22 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js.map +1 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.d.ts +2 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js +28 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js.map +1 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.d.ts +37 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.js +3 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.js.map +1 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.d.ts +3 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js +106 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js.map +1 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.d.ts +6 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.js +35 -0
- package/js/features/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.js.map +1 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.d.ts +31 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js +40 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js.map +1 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.d.ts +62 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.js +3 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.js.map +1 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.d.ts +7 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js +31 -0
- package/js/features/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js.map +1 -0
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.d.ts +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.d.ts +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js +2 -2
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Interfaces.d.ts +1 -0
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.d.ts +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.d.ts +2 -2
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.js +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.js.map +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Handler.d.ts +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Handler.js +3 -3
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Handler.js.map +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Interfaces.d.ts +2 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Logic.d.ts +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Utility.d.ts +2 -2
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Utility.js +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Utility.js.map +1 -1
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.d.ts +3 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js +8 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Constants.js.map +1 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.d.ts +2 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js +45 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Handler.js.map +1 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces.d.ts +40 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces.js +3 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Interfaces.js.map +1 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Utility.d.ts +3 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Utility.js +8 -0
- package/js/features/ValueSet/Yaveon.ECM.d3d.Webhook.ValueSet.Utility.js.map +1 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.d.ts +9 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js +15 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Constants.js.map +1 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Interfaces.d.ts +1 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Interfaces.js +3 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Interfaces.js.map +1 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic.d.ts +2 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic.js +71 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Logic.js.map +1 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Utility.d.ts +10 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Utility.js +40 -0
- package/js/features/ValueSet/alphaflow/Yaveon.ECM.d3d.Webhook.ValueSet.Af.Utility.js.map +1 -0
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.d.ts +4 -3
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js +11 -10
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js.map +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.d.ts +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js +2 -2
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js.map +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.d.ts +5 -3
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces.js.map +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.d.ts +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.d.ts +2 -2
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js +15 -9
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js.map +1 -1
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.d.ts +1 -1
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js +2 -2
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js.map +1 -1
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.d.ts +3 -2
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.d.ts +1 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.d.ts +1 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js +1 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js.map +1 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.d.ts +2 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.d.ts +2 -2
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js +1 -1
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js.map +1 -1
- package/js/{Yaveon.ECM.d3d.Webhook.Interfaces.d.ts → interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.d.ts} +1 -1
- package/js/interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.js.map +1 -0
- package/js/interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces.js.map +1 -0
- package/js/{Yaveon.ECM.d3d.Utility.d.ts → utilities/Yaveon.ECM.d3d.Utility.d.ts} +2 -2
- package/js/{Yaveon.ECM.d3d.Utility.js → utilities/Yaveon.ECM.d3d.Utility.js} +2 -2
- package/js/utilities/Yaveon.ECM.d3d.Utility.js.map +1 -0
- package/js/{features/alphaflow → utilities}/Yaveon.ECM.d3d.Webhook.af.Utility.d.ts +1 -1
- package/js/{features/alphaflow → utilities}/Yaveon.ECM.d3d.Webhook.af.Utility.js +2 -2
- package/js/utilities/Yaveon.ECM.d3d.Webhook.af.Utility.js.map +1 -0
- package/package.json +1 -1
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Handler.d.ts +0 -2
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Handler.js +0 -28
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Handler.js.map +0 -1
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Interfaces.d.ts +0 -29
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Interfaces.js.map +0 -1
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Logic.js +0 -111
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Logic.js.map +0 -1
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Utility.d.ts +0 -8
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Utility.js +0 -61
- package/js/features/ConvertFolder/Yaveon.ECM.d3d.Webhook.ProcessFolder.Utility.js.map +0 -1
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.d.ts +0 -23
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.js +0 -36
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.js.map +0 -1
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Interfaces.js.map +0 -1
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.js.map +0 -1
- /package/js/{Yaveon.ECM.d3d.Webhook.Interfaces.js → interfaces/Yaveon.ECM.d3d.Webhook.Interfaces.js} +0 -0
- /package/js/{features/alphaflow → interfaces}/Yaveon.ECM.d3d.Webhook.af.Interfaces.d.ts +0 -0
- /package/js/{features/alphaflow → interfaces}/Yaveon.ECM.d3d.Webhook.af.Interfaces.js +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
enum TerminationUnit {
|
|
47
|
+
Days = "DAYS",
|
|
48
|
+
Weeks = "WEEKS",
|
|
49
|
+
Months = "MONTHS",
|
|
50
|
+
Years = "YEARS"
|
|
51
|
+
}
|
|
52
|
+
enum ToType {
|
|
53
|
+
boolean = "boolean",
|
|
54
|
+
Date = "date",
|
|
55
|
+
IAfAutomaticRenewalProperty = "IAfAutomaticRenewalProperty",
|
|
56
|
+
IAfContractStatusProperty = "IAfContractStatusProperty",
|
|
57
|
+
IAfCustomFieldProperty = "IAfCustomFieldProperty",
|
|
58
|
+
IAfGenericIdProperty = "IAfGenericIdProperty",
|
|
59
|
+
IAfOwnRoleProperty = "IAfOwnRoleProperty",
|
|
60
|
+
IAfTerminationCalendarEventProperty = "IAfTerminationCalendarEventProperty",
|
|
61
|
+
IAfTerminationUnitProperty = "IAfTerminationUnitProperty",
|
|
62
|
+
number = "number",
|
|
63
|
+
string = "string"
|
|
64
|
+
}
|
|
65
|
+
enum IdNeeding {
|
|
66
|
+
ContractType = "contractType",
|
|
67
|
+
Organization = "organization",
|
|
68
|
+
TradingPartner = "tradingPartner"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const AlphaflowObjectIdField: {
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
const DefaultHeaders: import("../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces").IDefaultHeaders;
|
|
75
|
+
const ServiceEndpoints: typeof _constants.Af.ServiceEndpoints;
|
|
76
|
+
const Method: typeof _constants.Af.Method;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Constants = void 0;
|
|
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
|
+
let TerminationUnit;
|
|
59
|
+
(function (TerminationUnit) {
|
|
60
|
+
TerminationUnit["Days"] = "DAYS";
|
|
61
|
+
TerminationUnit["Weeks"] = "WEEKS";
|
|
62
|
+
TerminationUnit["Months"] = "MONTHS";
|
|
63
|
+
TerminationUnit["Years"] = "YEARS";
|
|
64
|
+
})(TerminationUnit = Contracts.TerminationUnit || (Contracts.TerminationUnit = {}));
|
|
65
|
+
let ToType;
|
|
66
|
+
(function (ToType) {
|
|
67
|
+
ToType["boolean"] = "boolean";
|
|
68
|
+
ToType["Date"] = "date";
|
|
69
|
+
ToType["IAfAutomaticRenewalProperty"] = "IAfAutomaticRenewalProperty";
|
|
70
|
+
ToType["IAfContractStatusProperty"] = "IAfContractStatusProperty";
|
|
71
|
+
ToType["IAfCustomFieldProperty"] = "IAfCustomFieldProperty";
|
|
72
|
+
ToType["IAfGenericIdProperty"] = "IAfGenericIdProperty";
|
|
73
|
+
ToType["IAfOwnRoleProperty"] = "IAfOwnRoleProperty";
|
|
74
|
+
ToType["IAfTerminationCalendarEventProperty"] = "IAfTerminationCalendarEventProperty";
|
|
75
|
+
ToType["IAfTerminationUnitProperty"] = "IAfTerminationUnitProperty";
|
|
76
|
+
ToType["number"] = "number";
|
|
77
|
+
ToType["string"] = "string";
|
|
78
|
+
})(ToType = Contracts.ToType || (Contracts.ToType = {}));
|
|
79
|
+
let IdNeeding;
|
|
80
|
+
(function (IdNeeding) {
|
|
81
|
+
IdNeeding["ContractType"] = "contractType";
|
|
82
|
+
IdNeeding["Organization"] = "organization";
|
|
83
|
+
IdNeeding["TradingPartner"] = "tradingPartner";
|
|
84
|
+
})(IdNeeding = Contracts.IdNeeding || (Contracts.IdNeeding = {}));
|
|
85
|
+
})(Contracts = Af.Contracts || (Af.Contracts = {}));
|
|
86
|
+
Af.AlphaflowObjectIdField = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.AlphaflowObjectIdField;
|
|
87
|
+
Af.DefaultHeaders = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.DefaultHeaders;
|
|
88
|
+
Af.ServiceEndpoints = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.ServiceEndpoints;
|
|
89
|
+
Af.Method = Yaveon_ECM_d3d_Webhook_af_Constants_1.Constants.Af.Method;
|
|
90
|
+
})(Af = Constants.Af || (Constants.Af = {}));
|
|
91
|
+
})(Constants || (exports.Constants = Constants = {}));
|
|
92
|
+
//# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js.map
|
|
@@ -0,0 +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":";;;AAAA,6GAA6F;AAE7F,MAAa,SAAU,SAAQ,+CAAU;CACxC;AADD,8BACC;A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+
const Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Constants");
|
|
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];
|
|
8
|
+
switch (event) {
|
|
9
|
+
case Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.UrlParameters.EventNames.Create:
|
|
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:
|
|
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:
|
|
14
|
+
return {
|
|
15
|
+
reqBody: req.json(),
|
|
16
|
+
resultMsg: 'Event "' + event + '" does not require any custom logic.',
|
|
17
|
+
resultState: 200
|
|
18
|
+
};
|
|
19
|
+
default:
|
|
20
|
+
return {
|
|
21
|
+
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(", ") + '"',
|
|
23
|
+
resultState: 400
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.handleRequest = handleRequest;
|
|
28
|
+
//# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Contract.Handler.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { IAfGenericIdProperty } from '../../interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
|
|
2
|
+
import { Constants } from './Yaveon.ECM.d3d.Webhook.af.Contract.Constants';
|
|
3
|
+
export { IAfGenericIdProperty } from '../../interfaces/Yaveon.ECM.d3d.Webhook.af.Interfaces';
|
|
4
|
+
export { IWebhookResponse } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
|
|
5
|
+
export interface IAfNewContract {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
responsible: IAfGenericIdProperty | null;
|
|
8
|
+
contractType: IAfGenericIdProperty | null;
|
|
9
|
+
subject: string;
|
|
10
|
+
contractStatus: IAfContractStatusProperty | null;
|
|
11
|
+
externalNumber: string;
|
|
12
|
+
relatedFrameContract: IAfGenericIdProperty | null;
|
|
13
|
+
frameContract: boolean;
|
|
14
|
+
organization: IAfGenericIdProperty | null;
|
|
15
|
+
ownRole: IAfOwnRoleProperty | null;
|
|
16
|
+
tradingPartner: IAfGenericIdProperty | null;
|
|
17
|
+
contact: IAfGenericIdProperty | null;
|
|
18
|
+
ownSignature: Date | null;
|
|
19
|
+
partnerSignature: Date | null;
|
|
20
|
+
startDate: Date | null;
|
|
21
|
+
endDate: Date | null;
|
|
22
|
+
duration: number | null;
|
|
23
|
+
renewalDate: Date | null;
|
|
24
|
+
followingContractPeriod: string;
|
|
25
|
+
automaticRenewal: IAfAutomaticRenewalProperty | null;
|
|
26
|
+
terminationValue: number | null;
|
|
27
|
+
terminationUnit: IAfTerminationUnitProperty | null;
|
|
28
|
+
terminationCalendarEvent: IAfTerminationCalendarEventProperty | null;
|
|
29
|
+
firstTermination: Date | null;
|
|
30
|
+
nextTermination: Date | null;
|
|
31
|
+
terminationDate: Date | null;
|
|
32
|
+
terminationBy: IAfGenericIdProperty | null;
|
|
33
|
+
terminationRemark: string;
|
|
34
|
+
customFields: {
|
|
35
|
+
[key: string]: IAfCustomFieldProperty;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface IAfContract extends IAfNewContract {
|
|
39
|
+
id: string;
|
|
40
|
+
internalNumber: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IAfContractStatusProperty {
|
|
43
|
+
value: Constants.Af.Contracts.ContractStates;
|
|
44
|
+
}
|
|
45
|
+
export interface IAfOwnRoleProperty {
|
|
46
|
+
value: Constants.Af.Contracts.OwnRole;
|
|
47
|
+
}
|
|
48
|
+
export interface IAfAutomaticRenewalProperty {
|
|
49
|
+
value: Constants.Af.Contracts.AutomaticRenewal;
|
|
50
|
+
}
|
|
51
|
+
export interface IAfTerminationUnitProperty {
|
|
52
|
+
value: Constants.Af.Contracts.TerminationUnit;
|
|
53
|
+
}
|
|
54
|
+
export interface IAfTerminationCalendarEventProperty {
|
|
55
|
+
value: Constants.Af.Contracts.TerminationCalendarEvent;
|
|
56
|
+
}
|
|
57
|
+
export interface IAfCustomFieldProperty {
|
|
58
|
+
value: string;
|
|
59
|
+
configID: string;
|
|
60
|
+
}
|
|
61
|
+
export interface IWebhookConfigAfContract {
|
|
62
|
+
contract: IWebhhokConfigAfContractProperty;
|
|
63
|
+
}
|
|
64
|
+
export interface IWebhhokConfigAfContractProperty {
|
|
65
|
+
translations: IWebhookConfigAfContractTranslation[];
|
|
66
|
+
mappings: IWebhookConfigAfContractMapping[];
|
|
67
|
+
}
|
|
68
|
+
export interface IWebhookConfigAfContractMapping {
|
|
69
|
+
fromCategoryGuid: string;
|
|
70
|
+
fromCategoryId?: string;
|
|
71
|
+
fromCategoryName?: string;
|
|
72
|
+
propertyMapping: (IWebhookConfigAfContractPropertyMapping | IWebhookConfigAfContractCustomPropertyMapping)[];
|
|
73
|
+
toContractKeys: IWebhookConfigAfContractKey[];
|
|
74
|
+
returnMapping: IWebhookConfigAfContractReturnMapping[];
|
|
75
|
+
}
|
|
76
|
+
export interface IWebhookConfigAfContractKey {
|
|
77
|
+
toPropertyName: string;
|
|
78
|
+
subProperty?: string;
|
|
79
|
+
}
|
|
80
|
+
interface IWebhookConfigAfContractPropertyMappingBase {
|
|
81
|
+
fromPropertyGuid: string;
|
|
82
|
+
fromPropertyId?: string;
|
|
83
|
+
fromPropertyName: string;
|
|
84
|
+
toType: Constants.Af.Contracts.ToType;
|
|
85
|
+
default?: any;
|
|
86
|
+
mandatory?: boolean;
|
|
87
|
+
static?: any;
|
|
88
|
+
translation?: string;
|
|
89
|
+
regex?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface IWebhookConfigAfContractPropertyMapping extends IWebhookConfigAfContractPropertyMappingBase {
|
|
92
|
+
toPropertyName: string;
|
|
93
|
+
}
|
|
94
|
+
export interface IWebhookConfigAfContractCustomPropertyMapping extends IWebhookConfigAfContractPropertyMappingBase {
|
|
95
|
+
toCustomPropertyId: string;
|
|
96
|
+
}
|
|
97
|
+
export interface IWebhookConfigAfContractReturnMapping {
|
|
98
|
+
fromPropertyName: string;
|
|
99
|
+
toPropertyGuid: string;
|
|
100
|
+
toPropertyId?: string;
|
|
101
|
+
toPropertyName?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface IWebhookConfigAfContractTranslation {
|
|
104
|
+
id: string;
|
|
105
|
+
keyValues: TGenericObject;
|
|
106
|
+
}
|
|
107
|
+
export type TSearchProperty = TGenericObject;
|
|
108
|
+
export type TTenantMapping = TGenericObject;
|
|
109
|
+
type TGenericObject = {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
};
|
|
112
|
+
export type TCheckMandatoryResult = {
|
|
113
|
+
outcome: boolean;
|
|
114
|
+
missing: string[];
|
|
115
|
+
};
|
|
@@ -0,0 +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":";;AA8CC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IWebhookResponse } from '../../Yaveon.ECM.d3d.Webhook.Interfaces';
|
|
1
|
+
import { IWebhookResponse } from '../../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>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = exports.add = void 0;
|
|
4
|
+
const Yaveon_ECM_af_Contracts_Client_1 = require("../../clients/Yaveon.ECM.af.Contracts.Client");
|
|
5
|
+
const Yaveon_ECM_d3d_Webhook_Client_1 = require("../../clients/Yaveon.ECM.d3d.Webhook.Client");
|
|
6
|
+
const Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Utility");
|
|
7
|
+
const Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1 = require("./Yaveon.ECM.d3d.Webhook.af.Contract.Constants");
|
|
8
|
+
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '1';
|
|
9
|
+
let add = async (req) => { return runWebHook(req); };
|
|
10
|
+
exports.add = add;
|
|
11
|
+
let update = async (req) => { return runWebHook(req); };
|
|
12
|
+
exports.update = update;
|
|
13
|
+
let runWebHook = async (req) => {
|
|
14
|
+
var _a;
|
|
15
|
+
let webHookResponse = {
|
|
16
|
+
reqBody: req.json(),
|
|
17
|
+
resultMsg: '',
|
|
18
|
+
resultState: 200
|
|
19
|
+
};
|
|
20
|
+
let doc = webHookResponse.reqBody.doc;
|
|
21
|
+
try {
|
|
22
|
+
webHookResponse.resultMsg += 'Creating D3dWebhookClient object... ';
|
|
23
|
+
const whClient = new Yaveon_ECM_d3d_Webhook_Client_1.D3dWebhookClient(req.get('x-dv-baseuri'), req.get('x-dv-repository-id'), 'Bearer ' + req.get('Authorization').replace('Bearer ', ''));
|
|
24
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
25
|
+
webHookResponse.resultMsg += 'Creating AfClient object... ';
|
|
26
|
+
const afContractsClient = new Yaveon_ECM_af_Contracts_Client_1.AfContractsClient(req.get('x-dv-baseuri'), 'Bearer ' + req.get('Authorization').replace('Bearer ', ''));
|
|
27
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
28
|
+
webHookResponse.resultMsg += 'Fetching configuration... ';
|
|
29
|
+
const config = await whClient.getConfiguration();
|
|
30
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
31
|
+
webHookResponse.resultMsg += 'Selecting contract definition... ';
|
|
32
|
+
const contractDefinitions = Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getContractDefinitions(doc, config);
|
|
33
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
34
|
+
const afFieldId = (_a = (await whClient.getFieldDefinitionByName(Yaveon_ECM_d3d_Webhook_af_Contract_Constants_1.Constants.Af.AlphaflowObjectIdField.name))) === null || _a === void 0 ? void 0 : _a.key;
|
|
35
|
+
for (const contractMapping of contractDefinitions.mappings) {
|
|
36
|
+
const contracts = await Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getContract(afContractsClient, doc, contractMapping);
|
|
37
|
+
const contract = contracts.length > 0 ? contracts[0] : Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getEmptyContractBody();
|
|
38
|
+
let contractId = '';
|
|
39
|
+
if (!contract.hasOwnProperty('id')) {
|
|
40
|
+
webHookResponse.resultMsg += 'Preparing contract body... ';
|
|
41
|
+
const updateBody = await Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.getPreparedUpdateBody(afContractsClient, contractMapping.propertyMapping, config.contract.translations, doc, contract);
|
|
42
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
43
|
+
webHookResponse.resultMsg += 'Checking mandatory properties... ';
|
|
44
|
+
const mandCheck = Yaveon_ECM_d3d_Webhook_af_Contract_Utility_1.ContractUtility.checkMandatory(updateBody, contractMapping.propertyMapping);
|
|
45
|
+
if (mandCheck.outcome === false) {
|
|
46
|
+
throw "The following fields are mandatory and need to be populated:\r\n\t" + mandCheck.missing.join('\r\n\t');
|
|
47
|
+
}
|
|
48
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
49
|
+
webHookResponse.resultMsg += 'Adding/updating contract body... ';
|
|
50
|
+
const response = await afContractsClient.setContract(updateBody);
|
|
51
|
+
webHookResponse.resultMsg += ' done\r\n';
|
|
52
|
+
contractId = response.id;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
contractId = contract.id;
|
|
56
|
+
}
|
|
57
|
+
webHookResponse.reqBody.doc.properties.find((p) => p.id === afFieldId).value = contractId;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (ex) {
|
|
61
|
+
webHookResponse.resultState = 400;
|
|
62
|
+
webHookResponse.resultMsg += 'error\r\n';
|
|
63
|
+
if (ex.hasOwnProperty('response')) {
|
|
64
|
+
if (ex.response.hasOwnProperty('data')) {
|
|
65
|
+
webHookResponse.resultMsg += ex.response.data;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
webHookResponse.resultMsg += ex.response;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else if (ex.Message) {
|
|
72
|
+
webHookResponse.resultMsg += ex.Message;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
webHookResponse.resultMsg += ex.toString();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return webHookResponse;
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js","sourceRoot":"","sources":["../../../source/features/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.ts"],"names":[],"mappings":";;;AAAA,iGAAiF;AACjF,+FAA+E;AAG/E,6GAA+E;AAC/E,iHAA2E;AAG3E,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,GAAG,GAAG,CAAC;AAE3C,IAAI,GAAG,GAAG,KAAK,EAAE,GAAQ,EAA6B,EAAE,GAAG,OAAO,UAAU,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,CAAA;AAA/E,QAAA,GAAG,OAA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,IAAI,WAAW,CAAC;gBAEzC,eAAe,CAAC,SAAS,IAAI,mCAAmC,CAAC;gBACjE,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;gBACjE,eAAe,CAAC,SAAS,IAAI,WAAW,CAAC;gBAEzC,UAAU,GAAI,QAAwB,CAAC,EAAE,CAAC;aAC7C;iBACG;gBACA,UAAU,GAAI,QAAwB,CAAC,EAAE,CAAC;aAC7C;YAWD,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAqB,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC;SACjH;KACJ;IACD,OAAM,EAAO,EAAC;QACV,eAAe,CAAC,WAAW,GAAG,GAAG,CAAC;QAClC,eAAe,CAAC,SAAS,IAAI,WAAW,CAAC;QAEzC,IAAG,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,EAAC;YAC7B,IAAI,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,EAAC;gBACnC,eAAe,CAAC,SAAS,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;aACjD;iBACG;gBACA,eAAe,CAAC,SAAS,IAAI,EAAE,CAAC,QAAQ,CAAC;aAC5C;SACJ;aACI,IAAG,EAAE,CAAC,OAAO,EAAC;YACf,eAAe,CAAC,SAAS,IAAI,EAAE,CAAC,OAAO,CAAC;SAC3C;aACG;YACA,eAAe,CAAC,SAAS,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;SAC9C;KACJ;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDocUpdateBodyObject, IWhDocObject } from '../../interfaces/Yaveon.ECM.d3d.Webhook.Interfaces';
|
|
2
|
+
import { AfContractsClient } from '../../clients/Yaveon.ECM.af.Contracts.Client';
|
|
3
|
+
import { AfUtility } from '../../utilities/Yaveon.ECM.d3d.Webhook.af.Utility';
|
|
4
|
+
import { IAfContract, IAfNewContract, IWebhhokConfigAfContractProperty, IWebhookConfigAfContract, IWebhookConfigAfContractCustomPropertyMapping, IWebhookConfigAfContractMapping, IWebhookConfigAfContractPropertyMapping, IWebhookConfigAfContractReturnMapping, IWebhookConfigAfContractTranslation, TCheckMandatoryResult } from './Yaveon.ECM.d3d.Webhook.af.Contract.Interfaces';
|
|
5
|
+
export declare class ContractUtility extends AfUtility {
|
|
6
|
+
static getContract(afContractsClient: AfContractsClient, doc: IWhDocObject, contractMapping: IWebhookConfigAfContractMapping): Promise<IAfContract[]>;
|
|
7
|
+
static checkMandatory(updateBody: IAfContract | IAfNewContract, propertyMapping: (IWebhookConfigAfContractPropertyMapping | IWebhookConfigAfContractCustomPropertyMapping)[]): TCheckMandatoryResult;
|
|
8
|
+
static getContractDefinitions(doc: IWhDocObject, config: IWebhookConfigAfContract): IWebhhokConfigAfContractProperty;
|
|
9
|
+
static getSearchProperties(doc: IWhDocObject, contractMapping: IWebhookConfigAfContractMapping): Map<string, any>;
|
|
10
|
+
static getTranslation(translationId: string, valueKey: string, translations: IWebhookConfigAfContractTranslation[]): string;
|
|
11
|
+
static getPreparedUpdateBody(afContractsClient: AfContractsClient, propertyMappings: (IWebhookConfigAfContractPropertyMapping | IWebhookConfigAfContractCustomPropertyMapping)[], translations: IWebhookConfigAfContractTranslation[], doc: IWhDocObject, body: IAfContract | IAfNewContract): Promise<IAfContract | IAfNewContract>;
|
|
12
|
+
static getEmptyContractBody(): IAfNewContract;
|
|
13
|
+
static getBodyPropertiesFromContractObject(contract: IAfContract, returnMappings: IWebhookConfigAfContractReturnMapping[]): IDocUpdateBodyObject;
|
|
14
|
+
}
|