yaveon.ecm.d3dwebhooks 0.9.14 → 0.9.16
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.Utility.d.ts +1 -0
- package/js/Yaveon.ECM.d3d.Utility.js +3 -0
- package/js/Yaveon.ECM.d3d.Webhook.Constants.d.ts +61 -55
- package/js/Yaveon.ECM.d3d.Webhook.Constants.js +78 -73
- package/js/Yaveon.ECM.d3d.Webhook.Handler.js +14 -11
- package/js/Yaveon.ECM.d3d.Webhook.Interfaces.d.ts +7 -2
- package/js/clients/Yaveon.ECM.af.Client.d.ts +12 -1
- package/js/clients/Yaveon.ECM.af.Client.js +77 -1
- package/js/clients/Yaveon.ECM.af.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.af.Contracts.Client.d.ts +2 -0
- package/js/clients/Yaveon.ECM.af.Contracts.Client.js +10 -7
- package/js/clients/Yaveon.ECM.af.Contracts.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.af.QM.Client.d.ts +15 -0
- package/js/clients/Yaveon.ECM.af.QM.Client.js +37 -0
- package/js/clients/Yaveon.ECM.af.QM.Client.js.map +1 -0
- package/js/clients/Yaveon.ECM.d3d.Client.d.ts +6 -1
- package/js/clients/Yaveon.ECM.d3d.Client.js +26 -30
- package/js/clients/Yaveon.ECM.d3d.Client.js.map +1 -1
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.d.ts +2 -0
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js +17 -36
- package/js/clients/Yaveon.ECM.d3d.Webhook.Client.js.map +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.d.ts +8 -6
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js +12 -32
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Constants.js.map +1 -1
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Handler.js +5 -5
- 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 +2 -2
- package/js/features/Enrich/Yaveon.ECM.d3d.Webhook.Enrich.Utility.js +3 -26
- 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 +3 -3
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js +5 -27
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Constants.js.map +1 -1
- package/js/features/Inherit/Yaveon.ECM.d3d.Webhook.Inherit.Handler.js.map +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.js +1 -1
- 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 +5 -5
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js +7 -29
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Constants.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js +5 -5
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Handler.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Logic.js +3 -3
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Logic.js.map +1 -1
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js +2 -25
- package/js/features/Move/Yaveon.ECM.d3d.Webhook.Move.Utility.js.map +1 -1
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js +5 -5
- package/js/features/NumberRanges/Yaveon.ECM.d3d.Webhook.NumberRanges.Handler.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.d.ts +4 -4
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js +6 -28
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Constants.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js +5 -5
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Handler.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js +4 -4
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Logic.js.map +1 -1
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.js +5 -28
- package/js/features/Sync/Yaveon.ECM.d3d.Webhook.Sync.Utility.js.map +1 -1
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Handler.js +5 -5
- package/js/features/UpdateBucket/Yaveon.ECM.d3d.Webhook.UpdateBucket.Handler.js.map +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.d.ts +61 -58
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Constants.js +74 -70
- 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.js +5 -5
- 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 +7 -7
- 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.js +4 -2
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Logic.js.map +1 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.d.ts +0 -1
- package/js/features/alphaflow/Contract/Yaveon.ECM.d3d.Webhook.af.Contract.Utility.js +22 -30
- 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.Constants.d.ts +14 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js +22 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Constants.js.map +1 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.d.ts +2 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js +28 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Handler.js.map +1 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.d.ts +36 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.js +3 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Interfaces.js.map +1 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.d.ts +3 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js +106 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Logic.js.map +1 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.d.ts +6 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.js +35 -0
- package/js/features/alphaflow/QM/ReadReceipt/Yaveon.ECM.d3d.Webhook.af.ReadReceipt.Utility.js.map +1 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.d.ts +31 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js +40 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Constants.js.map +1 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.d.ts +61 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.js +3 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Interfaces.js.map +1 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.d.ts +7 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js +31 -0
- package/js/features/alphaflow/QM/Yaveon.ECM.d3d.Webhook.af.QM.Utility.js.map +1 -0
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.d.ts +22 -6
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.js +33 -36
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.js.map +1 -1
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Interfaces.d.ts +64 -0
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.d.ts +3 -0
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.js +41 -0
- package/js/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
3
|
+
exports.Constants = void 0;
|
|
4
|
+
const Yaveon_ECM_d3d_Webhook_Constants_1 = require("../../Yaveon.ECM.d3d.Webhook.Constants");
|
|
5
|
+
class Constants extends Yaveon_ECM_d3d_Webhook_Constants_1.Constants {
|
|
6
|
+
}
|
|
7
|
+
exports.Constants = Constants;
|
|
8
|
+
(function (Constants) {
|
|
9
|
+
let Af;
|
|
10
|
+
(function (Af) {
|
|
11
|
+
Af.AlphaflowObjectIdField = {
|
|
12
|
+
name: 'alphaflowObjectID'
|
|
13
|
+
};
|
|
14
|
+
Af.DefaultHeaders = {
|
|
15
|
+
Accept: 'application/json',
|
|
16
|
+
Authorization: '',
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
Host: '',
|
|
19
|
+
Origin: ''
|
|
20
|
+
};
|
|
21
|
+
let ServiceEndpoints;
|
|
22
|
+
(function (ServiceEndpoints) {
|
|
23
|
+
ServiceEndpoints["Accounts"] = "/alphaflow-user/accountservice/accounts";
|
|
24
|
+
ServiceEndpoints["Entities"] = "/alphaflow-appstudio/entityobjectservice/entityobjects";
|
|
25
|
+
ServiceEndpoints["Groups"] = "/alphaflow-user/groupservice/groups";
|
|
26
|
+
ServiceEndpoints["Workflows"] = "/alphaflow-appstudio/workflowservice";
|
|
27
|
+
})(ServiceEndpoints = Af.ServiceEndpoints || (Af.ServiceEndpoints = {}));
|
|
28
|
+
let Method;
|
|
29
|
+
(function (Method) {
|
|
30
|
+
Method["Get"] = "GET";
|
|
31
|
+
Method["Patch"] = "PATCH";
|
|
32
|
+
Method["Post"] = "POST";
|
|
33
|
+
})(Method = Af.Method || (Af.Method = {}));
|
|
34
|
+
})(Af = Constants.Af || (Constants.Af = {}));
|
|
35
|
+
})(Constants || (exports.Constants = Constants = {}));
|
|
39
36
|
//# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Constants.js","sourceRoot":"","sources":["../../../source/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Constants.js","sourceRoot":"","sources":["../../../source/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Constants.ts"],"names":[],"mappings":";;;AACA,6FAAgF;AAEhF,MAAa,SAAU,SAAQ,4CAAU;CACxC;AADD,8BACC;AAED,WAAiB,SAAS;IACtB,IAAiB,EAAE,CAyBlB;IAzBD,WAAiB,EAAE;QACF,yBAAsB,GAAG;YAClC,IAAI,EAAE,mBAAmB;SAC5B,CAAC;QAEW,iBAAc,GAAoB;YAC3C,MAAM,EAAE,kBAAkB;YAC1B,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,kBAAkB;YAClC,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;SACb,CAAC;QAEF,IAAY,gBAKX;QALD,WAAY,gBAAgB;YACxB,wEAAoD,CAAA;YACpD,uFAAmE,CAAA;YACnE,kEAA8C,CAAA;YAC9C,sEAAkD,CAAA;QACtD,CAAC,EALW,gBAAgB,GAAhB,mBAAgB,KAAhB,mBAAgB,QAK3B;QAED,IAAY,MAIX;QAJD,WAAY,MAAM;YACd,qBAAW,CAAA;YACX,yBAAe,CAAA;YACf,uBAAa,CAAA;QACjB,CAAC,EAJW,MAAM,GAAN,SAAM,KAAN,SAAM,QAIjB;IACL,CAAC,EAzBgB,EAAE,GAAF,YAAE,KAAF,YAAE,QAyBlB;AACL,CAAC,EA3BgB,SAAS,yBAAT,SAAS,QA2BzB"}
|
|
@@ -1,3 +1,67 @@
|
|
|
1
1
|
export interface IAfGenericIdProperty {
|
|
2
2
|
id: string;
|
|
3
3
|
}
|
|
4
|
+
export interface IAfObjectFieldCollection {
|
|
5
|
+
[key: string]: IAfObjectField;
|
|
6
|
+
}
|
|
7
|
+
export interface IAfObjectNewFieldCollection {
|
|
8
|
+
[key: string]: IAfObjectNewField;
|
|
9
|
+
}
|
|
10
|
+
export interface IAfObjectField {
|
|
11
|
+
value: number | string | IAfGenericIdProperty | null;
|
|
12
|
+
valueName: string | null;
|
|
13
|
+
label: string | null;
|
|
14
|
+
type: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface IAfObjectNewField {
|
|
17
|
+
value: number | string | IAfGenericIdProperty | null;
|
|
18
|
+
}
|
|
19
|
+
export interface IAfObject {
|
|
20
|
+
id: string;
|
|
21
|
+
dmsDocumentType: string | null;
|
|
22
|
+
importCode: string | null;
|
|
23
|
+
sealed: boolean;
|
|
24
|
+
created: string | null;
|
|
25
|
+
creator: string | null;
|
|
26
|
+
updatedAt: string | null;
|
|
27
|
+
deletedAt: string | null;
|
|
28
|
+
draftedAt: string | null;
|
|
29
|
+
hasDocuments: boolean;
|
|
30
|
+
hasComments: boolean;
|
|
31
|
+
displayTitle: string | null;
|
|
32
|
+
optionTitle: string | null;
|
|
33
|
+
workflow: string | null;
|
|
34
|
+
currentWorkflowResponsibles: string | null;
|
|
35
|
+
currentWorkflowResponsibleNames: string | null;
|
|
36
|
+
workflowFinishedAt: string | null;
|
|
37
|
+
workflowStatus: string | null;
|
|
38
|
+
squeezeDocumentIDs: Object;
|
|
39
|
+
field: IAfObjectFieldCollection;
|
|
40
|
+
accountingField: any[];
|
|
41
|
+
entityName: string | null;
|
|
42
|
+
markupTitle: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface IAfNewObject {
|
|
45
|
+
dmsDocumentType?: string | null;
|
|
46
|
+
importCode?: string | null;
|
|
47
|
+
sealed?: boolean;
|
|
48
|
+
created?: string | null;
|
|
49
|
+
creator?: string | null;
|
|
50
|
+
updatedAt?: string | null;
|
|
51
|
+
deletedAt?: string | null;
|
|
52
|
+
draftedAt?: string | null;
|
|
53
|
+
hasDocuments?: boolean;
|
|
54
|
+
hasComments?: boolean;
|
|
55
|
+
displayTitle?: string | null;
|
|
56
|
+
optionTitle?: string | null;
|
|
57
|
+
workflow?: string | null;
|
|
58
|
+
currentWorkflowResponsibles?: string | null;
|
|
59
|
+
currentWorkflowResponsibleNames?: string | null;
|
|
60
|
+
workflowFinishedAt?: string | null;
|
|
61
|
+
workflowStatus?: string | null;
|
|
62
|
+
squeezeDocumentIDs?: Object;
|
|
63
|
+
field: IAfObjectNewFieldCollection;
|
|
64
|
+
accountingField: any[];
|
|
65
|
+
entityName: string | null;
|
|
66
|
+
markupTitle?: string | null;
|
|
67
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { d3dUtility } from '../../Yaveon.ECM.d3d.Utility';
|
|
2
2
|
export declare class AfUtility extends d3dUtility {
|
|
3
3
|
static getValue(object: any, propertyName: string): string | null;
|
|
4
|
+
static convertDateToString(date: Date): string;
|
|
5
|
+
static resolveGroups(idArray: string[], recurse: boolean): Promise<string[]>;
|
|
6
|
+
static getUserIdsFromGroupId(groupId: string, recurse: boolean): Promise<string[]>;
|
|
4
7
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AfUtility = void 0;
|
|
4
4
|
const Yaveon_ECM_d3d_Utility_1 = require("../../Yaveon.ECM.d3d.Utility");
|
|
5
|
+
const Yaveon_ECM_af_Client_1 = require("../../clients/Yaveon.ECM.af.Client");
|
|
5
6
|
class AfUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
|
|
6
7
|
static getValue(object, propertyName) {
|
|
7
8
|
if (object[propertyName] != null && object[propertyName] != undefined) {
|
|
@@ -22,6 +23,46 @@ class AfUtility extends Yaveon_ECM_d3d_Utility_1.d3dUtility {
|
|
|
22
23
|
}
|
|
23
24
|
return null;
|
|
24
25
|
}
|
|
26
|
+
static convertDateToString(date) {
|
|
27
|
+
let returnString = '';
|
|
28
|
+
returnString += date.getFullYear();
|
|
29
|
+
returnString += '-' + (date.getMonth() + 1).toString().padStart(2, '0');
|
|
30
|
+
returnString += '-' + (date.getDate()).toString().padStart(2, '0');
|
|
31
|
+
return returnString;
|
|
32
|
+
}
|
|
33
|
+
static async resolveGroups(idArray, recurse) {
|
|
34
|
+
const afClient = Yaveon_ECM_af_Client_1.AfClient.getInstance();
|
|
35
|
+
let userIds = [];
|
|
36
|
+
for (const id of idArray) {
|
|
37
|
+
if (await afClient.isGroupId(id)) {
|
|
38
|
+
let usersInGroup = await this.getUserIdsFromGroupId(id, recurse);
|
|
39
|
+
userIds = userIds.concat(usersInGroup);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
userIds.push(id);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
userIds = this.ensureUniqueValues(userIds);
|
|
46
|
+
return userIds;
|
|
47
|
+
}
|
|
48
|
+
static async getUserIdsFromGroupId(groupId, recurse) {
|
|
49
|
+
const afClient = Yaveon_ECM_af_Client_1.AfClient.getInstance();
|
|
50
|
+
if (!(await afClient.isGroupId(groupId))) {
|
|
51
|
+
return [groupId];
|
|
52
|
+
}
|
|
53
|
+
let memberIds = [];
|
|
54
|
+
let members = await afClient.getUsersFromGroupId(groupId);
|
|
55
|
+
memberIds = memberIds.concat(members.filter(m => m.hasOwnProperty('idpUserId')).map(m => m.id));
|
|
56
|
+
if (recurse === true) {
|
|
57
|
+
members.filter(m => m.hasOwnProperty('idpGroupId')).forEach(async (m) => {
|
|
58
|
+
memberIds = memberIds.concat((await afClient.getUsersFromGroupId(m.id)).map(m => m.id));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (recurse === false) {
|
|
62
|
+
memberIds = memberIds.concat(members.filter(m => m.hasOwnProperty('idpGroupId')).map(m => m.id));
|
|
63
|
+
}
|
|
64
|
+
return memberIds;
|
|
65
|
+
}
|
|
25
66
|
}
|
|
26
67
|
exports.AfUtility = AfUtility;
|
|
27
68
|
//# sourceMappingURL=Yaveon.ECM.d3d.Webhook.af.Utility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Utility.js","sourceRoot":"","sources":["../../../source/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.ts"],"names":[],"mappings":";;;AAAA,yEAA0D;
|
|
1
|
+
{"version":3,"file":"Yaveon.ECM.d3d.Webhook.af.Utility.js","sourceRoot":"","sources":["../../../source/features/alphaflow/Yaveon.ECM.d3d.Webhook.af.Utility.ts"],"names":[],"mappings":";;;AAAA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