@wenex/sdk 0.7.6 → 0.7.8
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/common/enums/common/action.enum.d.ts +5 -0
- package/common/enums/common/action.enum.js +5 -0
- package/common/enums/common/action.enum.js.map +1 -1
- package/common/enums/common/resource.enum.d.ts +7 -5
- package/common/enums/common/resource.enum.js +7 -5
- package/common/enums/common/resource.enum.js.map +1 -1
- package/common/enums/common/scope.enum.d.ts +121 -105
- package/common/enums/common/scope.enum.js +121 -105
- package/common/enums/common/scope.enum.js.map +1 -1
- package/common/interfaces/special/saga/history.interface.d.ts +1 -1
- package/common/interfaces/special/saga/saga.interface.d.ts +1 -1
- package/common/utils/transform.util.d.ts +1 -0
- package/common/utils/transform.util.js +9 -0
- package/common/utils/transform.util.js.map +1 -1
- package/package.json +1 -1
- package/services/special/sagas/sagas.service.d.ts +6 -2
- package/services/special/sagas/sagas.service.js +30 -1
- package/services/special/sagas/sagas.service.js.map +1 -1
|
@@ -7,12 +7,17 @@ export declare enum Action {
|
|
|
7
7
|
Restore = "restore",
|
|
8
8
|
Destroy = "destroy",
|
|
9
9
|
Collect = "collect",
|
|
10
|
+
Resolve = "resolve",
|
|
10
11
|
Emit = "emit",
|
|
11
12
|
Send = "send",
|
|
12
13
|
Init = "init",
|
|
13
14
|
Verify = "verify",
|
|
14
15
|
Upload = "upload",
|
|
15
16
|
Download = "download",
|
|
17
|
+
Start = "start",
|
|
18
|
+
Append = "append",
|
|
19
|
+
Commit = "commit",
|
|
20
|
+
Abort = "abort",
|
|
16
21
|
CreateOwn = "create:own",
|
|
17
22
|
ReadOwn = "read:own",
|
|
18
23
|
UpdateOwn = "update:own",
|
|
@@ -18,12 +18,17 @@ var Action;
|
|
|
18
18
|
// Special Actions
|
|
19
19
|
// ----------------------------
|
|
20
20
|
Action["Collect"] = "collect";
|
|
21
|
+
Action["Resolve"] = "resolve";
|
|
21
22
|
Action["Emit"] = "emit";
|
|
22
23
|
Action["Send"] = "send";
|
|
23
24
|
Action["Init"] = "init";
|
|
24
25
|
Action["Verify"] = "verify";
|
|
25
26
|
Action["Upload"] = "upload";
|
|
26
27
|
Action["Download"] = "download";
|
|
28
|
+
Action["Start"] = "start";
|
|
29
|
+
Action["Append"] = "append";
|
|
30
|
+
Action["Commit"] = "commit";
|
|
31
|
+
Action["Abort"] = "abort";
|
|
27
32
|
// ----------------------------
|
|
28
33
|
// Scoped Actions
|
|
29
34
|
// ----------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"action.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAmEX;AAnED,WAAY,MAAM;IAChB,UAAU;IACV,qBAAW,CAAA;IAEX,+BAA+B;IAC/B,iBAAiB;IACjB,+BAA+B;IAE/B,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,2BAAiB,CAAA;IACjB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IAEnB,+BAA+B;IAC/B,kBAAkB;IAClB,+BAA+B;IAE/B,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IAEnB,uBAAa,CAAA;IACb,uBAAa,CAAA;IAEb,uBAAa,CAAA;IACb,2BAAiB,CAAA;IAEjB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IAErB,yBAAe,CAAA;IACf,2BAAiB,CAAA;IACjB,2BAAiB,CAAA;IACjB,yBAAe,CAAA;IAEf,+BAA+B;IAC/B,iBAAiB;IACjB,+BAA+B;IAE/B,kCAAwB,CAAA;IACxB,8BAAoB,CAAA;IACpB,kCAAwB,CAAA;IACxB,kCAAwB,CAAA;IACxB,oCAA0B,CAAA;IAC1B,oCAA0B,CAAA;IAE1B,sCAA4B,CAAA;IAC5B,kCAAwB,CAAA;IACxB,sCAA4B,CAAA;IAC5B,sCAA4B,CAAA;IAC5B,wCAA8B,CAAA;IAC9B,wCAA8B,CAAA;IAE9B,sCAA4B,CAAA;IAC5B,kCAAwB,CAAA;IACxB,sCAA4B,CAAA;IAC5B,sCAA4B,CAAA;IAC5B,wCAA8B,CAAA;IAC9B,wCAA8B,CAAA;IAE9B,wCAA8B,CAAA;IAC9B,oCAA0B,CAAA;IAC1B,wCAA8B,CAAA;IAC9B,wCAA8B,CAAA;IAC9B,0CAAgC,CAAA;IAChC,0CAAgC,CAAA;AAClC,CAAC,EAnEW,MAAM,sBAAN,MAAM,QAmEjB"}
|
|
@@ -2,12 +2,12 @@ export declare enum Resource {
|
|
|
2
2
|
All = "all",
|
|
3
3
|
Auth = "auth:all",
|
|
4
4
|
AuthGrants = "auth:grants",
|
|
5
|
-
Config = "config:all",
|
|
6
|
-
ConfigConfigs = "config:configs",
|
|
7
|
-
ConfigSettings = "config:settings",
|
|
8
5
|
Domain = "domain:all",
|
|
9
6
|
DomainApps = "domain:apps",
|
|
10
7
|
DomainClients = "domain:clients",
|
|
8
|
+
Context = "context:all",
|
|
9
|
+
ContextConfigs = "context:configs",
|
|
10
|
+
ContextSettings = "context:settings",
|
|
11
11
|
Identity = "identity:all",
|
|
12
12
|
IdentityUsers = "identity:users",
|
|
13
13
|
IdentityProfiles = "identity:profiles",
|
|
@@ -21,12 +21,14 @@ export declare enum Resource {
|
|
|
21
21
|
Special = "special:all",
|
|
22
22
|
SpecialFiles = "special:files",
|
|
23
23
|
SpecialStats = "special:stats",
|
|
24
|
+
SpecialSagas = "special:sagas",
|
|
25
|
+
SpecialSagaHistories = "special:saga.histories",
|
|
24
26
|
General = "general:all",
|
|
25
27
|
GeneralArtifacts = "general:artifacts",
|
|
26
28
|
GeneralWorkflows = "general:workflows",
|
|
27
29
|
Touch = "touch:all",
|
|
28
|
-
|
|
29
|
-
TouchPushHistories = "touch:push
|
|
30
|
+
TouchPushes = "touch:pushes",
|
|
31
|
+
TouchPushHistories = "touch:push.histories",
|
|
30
32
|
TouchMails = "touch:mails",
|
|
31
33
|
Financial = "financial:all",
|
|
32
34
|
FinancialCoins = "financial:coins",
|
|
@@ -10,12 +10,12 @@ var Resource;
|
|
|
10
10
|
// ----------------------------
|
|
11
11
|
Resource["Auth"] = "auth:all";
|
|
12
12
|
Resource["AuthGrants"] = "auth:grants";
|
|
13
|
-
Resource["Config"] = "config:all";
|
|
14
|
-
Resource["ConfigConfigs"] = "config:configs";
|
|
15
|
-
Resource["ConfigSettings"] = "config:settings";
|
|
16
13
|
Resource["Domain"] = "domain:all";
|
|
17
14
|
Resource["DomainApps"] = "domain:apps";
|
|
18
15
|
Resource["DomainClients"] = "domain:clients";
|
|
16
|
+
Resource["Context"] = "context:all";
|
|
17
|
+
Resource["ContextConfigs"] = "context:configs";
|
|
18
|
+
Resource["ContextSettings"] = "context:settings";
|
|
19
19
|
Resource["Identity"] = "identity:all";
|
|
20
20
|
Resource["IdentityUsers"] = "identity:users";
|
|
21
21
|
Resource["IdentityProfiles"] = "identity:profiles";
|
|
@@ -29,12 +29,14 @@ var Resource;
|
|
|
29
29
|
Resource["Special"] = "special:all";
|
|
30
30
|
Resource["SpecialFiles"] = "special:files";
|
|
31
31
|
Resource["SpecialStats"] = "special:stats";
|
|
32
|
+
Resource["SpecialSagas"] = "special:sagas";
|
|
33
|
+
Resource["SpecialSagaHistories"] = "special:saga.histories";
|
|
32
34
|
Resource["General"] = "general:all";
|
|
33
35
|
Resource["GeneralArtifacts"] = "general:artifacts";
|
|
34
36
|
Resource["GeneralWorkflows"] = "general:workflows";
|
|
35
37
|
Resource["Touch"] = "touch:all";
|
|
36
|
-
Resource["
|
|
37
|
-
Resource["TouchPushHistories"] = "touch:push
|
|
38
|
+
Resource["TouchPushes"] = "touch:pushes";
|
|
39
|
+
Resource["TouchPushHistories"] = "touch:push.histories";
|
|
38
40
|
Resource["TouchMails"] = "touch:mails";
|
|
39
41
|
Resource["Financial"] = "financial:all";
|
|
40
42
|
Resource["FinancialCoins"] = "financial:coins";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/resource.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"resource.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/resource.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAmDX;AAnDD,WAAY,QAAQ;IAClB,UAAU;IACV,uBAAW,CAAA;IAEX,+BAA+B;IAC/B,mBAAmB;IACnB,+BAA+B;IAE/B,6BAAiB,CAAA;IACjB,sCAA0B,CAAA;IAE1B,iCAAqB,CAAA;IACrB,sCAA0B,CAAA;IAC1B,4CAAgC,CAAA;IAEhC,mCAAuB,CAAA;IACvB,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IAEpC,qCAAyB,CAAA;IACzB,4CAAgC,CAAA;IAChC,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IAEtC,qCAAyB,CAAA;IACzB,gDAAoC,CAAA;IACpC,gDAAoC,CAAA;IACpC,gDAAoC,CAAA;IACpC,kDAAsC,CAAA;IACtC,oDAAwC,CAAA;IAExC,mCAAuB,CAAA;IACvB,0CAA8B,CAAA;IAC9B,0CAA8B,CAAA;IAC9B,0CAA8B,CAAA;IAC9B,2DAA+C,CAAA;IAE/C,mCAAuB,CAAA;IACvB,kDAAsC,CAAA;IACtC,kDAAsC,CAAA;IAEtC,+BAAmB,CAAA;IACnB,wCAA4B,CAAA;IAC5B,uDAA2C,CAAA;IAC3C,sCAA0B,CAAA;IAE1B,uCAA2B,CAAA;IAC3B,8CAAkC,CAAA;IAClC,kDAAsC,CAAA;IACtC,oDAAwC,CAAA;IACxC,4DAAgD,CAAA;AAClD,CAAC,EAnDW,QAAQ,wBAAR,QAAQ,QAmDnB"}
|
|
@@ -4,115 +4,131 @@ export declare enum Scope {
|
|
|
4
4
|
Write = "write",
|
|
5
5
|
Manage = "manage",
|
|
6
6
|
Collect = "collect",
|
|
7
|
+
Resolve = "resolve",
|
|
7
8
|
Emit = "emit",
|
|
8
9
|
Send = "send",
|
|
9
10
|
Init = "init",
|
|
10
11
|
Verify = "verify",
|
|
11
12
|
Upload = "upload",
|
|
12
13
|
Download = "download",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
14
|
+
Start = "start",
|
|
15
|
+
Append = "append",
|
|
16
|
+
Commit = "commit",
|
|
17
|
+
Abort = "abort",
|
|
18
|
+
ReadAuth = "read:auth",
|
|
19
|
+
WriteAuth = "write:auth",
|
|
20
|
+
ManageAuth = "manage:auth",
|
|
21
|
+
ReadAuthGrants = "read:auth:grants",
|
|
22
|
+
WriteAuthGrants = "write:auth:grants",
|
|
23
|
+
ManageAuthGrants = "manage:auth:grants",
|
|
24
|
+
ReadDomain = "read:domain",
|
|
25
|
+
WriteDomain = "write:domain",
|
|
26
|
+
ManageDomain = "manage:domain",
|
|
27
|
+
ReadDomainApps = "read:domain:apps",
|
|
28
|
+
WriteDomainApps = "write:domain:apps",
|
|
29
|
+
ManageDomainApps = "manage:domain:apps",
|
|
30
|
+
ReadDomainClients = "read:domain:clients",
|
|
31
|
+
WriteDomainClients = "write:domain:clients",
|
|
32
|
+
ManageDomainClients = "manage:domain:clients",
|
|
33
|
+
ReadContext = "read:context",
|
|
34
|
+
WriteContext = "write:context",
|
|
35
|
+
ManageContext = "manage:context",
|
|
36
|
+
ReadContextConfigs = "read:context:configs",
|
|
37
|
+
WriteContextConfigs = "write:context:configs",
|
|
38
|
+
ManageContextConfigs = "manage:context:configs",
|
|
39
|
+
ReadContextSettings = "read:context:settings",
|
|
40
|
+
WriteContextSettings = "write:context:settings",
|
|
41
|
+
ManageContextSettings = "manage:context:settings",
|
|
42
|
+
ReadIdentity = "read:identity",
|
|
43
|
+
WriteIdentity = "write:identity",
|
|
44
|
+
ManageIdentity = "manage:identity",
|
|
45
|
+
ReadIdentityUsers = "read:identity:users",
|
|
46
|
+
WriteIdentityUsers = "write:identity:users",
|
|
47
|
+
ManageIdentityUsers = "manage:identity:users",
|
|
48
|
+
ReadIdentityProfiles = "read:identity:profiles",
|
|
49
|
+
WriteIdentityProfiles = "write:identity:profiles",
|
|
50
|
+
ManageIdentityProfiles = "manage:identity:profiles",
|
|
51
|
+
ReadIdentitySessions = "read:identity:sessions",
|
|
52
|
+
WriteIdentitySessions = "write:identity:sessions",
|
|
53
|
+
ManageIdentitySessions = "manage:identity:sessions",
|
|
54
|
+
ReadLogistic = "read:logistic",
|
|
55
|
+
WriteLogistic = "write:logistic",
|
|
56
|
+
ManageLogistic = "manage:logistic",
|
|
57
|
+
ReadLogisticCargoes = "read:logistic:cargoes",
|
|
58
|
+
WriteLogisticCargoes = "write:logistic:cargoes",
|
|
59
|
+
ManageLogisticCargoes = "manage:logistic:cargoes",
|
|
60
|
+
ReadLogisticDrivers = "read:logistic:drivers",
|
|
61
|
+
WriteLogisticDrivers = "write:logistic:drivers",
|
|
62
|
+
ManageLogisticDrivers = "manage:logistic:drivers",
|
|
63
|
+
ReadLogisticTravels = "read:logistic:travels",
|
|
64
|
+
WriteLogisticTravels = "write:logistic:travels",
|
|
65
|
+
ManageLogisticTravels = "manage:logistic:travels",
|
|
66
|
+
ReadLogisticVehicles = "read:logistic:vehicles",
|
|
67
|
+
WriteLogisticVehicles = "write:logistic:vehicles",
|
|
68
|
+
ManageLogisticVehicles = "manage:logistic:vehicles",
|
|
69
|
+
ReadLogisticLocations = "read:logistic:locations",
|
|
70
|
+
WriteLogisticLocations = "write:logistic:locations",
|
|
71
|
+
ManageLogisticLocations = "manage:logistic:locations",
|
|
72
|
+
ResolveLogisticLocations = "resolve:logistic:locations",
|
|
73
|
+
ReadSpecial = "read:special",
|
|
74
|
+
WriteSpecial = "write:special",
|
|
75
|
+
ManageSpecial = "manage:special",
|
|
76
|
+
ReadSpecialFiles = "read:special:files",
|
|
77
|
+
WriteSpecialFiles = "write:special:files",
|
|
78
|
+
ManageSpecialFiles = "manage:special:files",
|
|
79
|
+
UploadSpecialFiles = "upload:special:files",
|
|
80
|
+
DownloadSpecialFiles = "download:special:files",
|
|
81
|
+
ReadSpecialStats = "read:special:stats",
|
|
82
|
+
WriteSpecialStats = "write:special:stats",
|
|
83
|
+
ManageSpecialStats = "manage:special:stats",
|
|
84
|
+
CollectSpecialStats = "collect:special:stats",
|
|
85
|
+
ReadSpecialSagas = "read:special:sagas",
|
|
86
|
+
WriteSpecialSagas = "write:special:sagas",
|
|
87
|
+
ManageSpecialSagas = "manage:special:sagas",
|
|
88
|
+
StartSpecialSagas = "start:special:sagas",
|
|
89
|
+
AppendSpecialSagas = "append:special:sagas",
|
|
90
|
+
CommitSpecialSagas = "commit:special:sagas",
|
|
91
|
+
AbortSpecialSagas = "abort:special:sagas",
|
|
92
|
+
ReadSpecialSagaHistories = "read:special:saga.histories",
|
|
93
|
+
WriteSpecialSagaHistories = "write:special:saga.histories",
|
|
94
|
+
ManageSpecialSagaHistories = "manage:special:saga.histories",
|
|
95
|
+
ReadGeneral = "read:general",
|
|
96
|
+
WriteGeneral = "write:general",
|
|
97
|
+
ManageGeneral = "manage:general",
|
|
98
|
+
ReadGeneralArtifacts = "read:general:artifacts",
|
|
99
|
+
WriteGeneralArtifacts = "write:general:artifacts",
|
|
100
|
+
ManageGeneralArtifacts = "manage:general:artifacts",
|
|
101
|
+
ReadGeneralWorkflows = "read:general:workflows",
|
|
102
|
+
WriteGeneralWorkflows = "write:general:workflows",
|
|
103
|
+
ManageGeneralWorkflows = "manage:general:workflows",
|
|
104
|
+
ReadTouch = "read:touch",
|
|
105
|
+
WriteTouch = "write:touch",
|
|
106
|
+
ManageTouch = "manage:touch",
|
|
107
|
+
ReadTouchPushes = "read:touch:pushes",
|
|
108
|
+
WriteTouchPushes = "write:touch:pushes",
|
|
109
|
+
ManageTouchPushes = "manage:touch:pushes",
|
|
110
|
+
SendTouchPushes = "send:touch:pushes",
|
|
111
|
+
ReadTouchPushHistories = "read:touch:push.histories",
|
|
112
|
+
WriteTouchPushHistories = "write:touch:push.histories",
|
|
113
|
+
ManageTouchPushHistories = "manage:touch:push.histories",
|
|
114
|
+
SendTouchPushHistories = "send:touch:push.histories",
|
|
115
|
+
ReadTouchMails = "read:touch:mails",
|
|
116
|
+
WriteTouchMails = "write:touch:mails",
|
|
117
|
+
ManageTouchMails = "manage:touch:mails",
|
|
118
|
+
SendTouchMails = "send:touch:mails",
|
|
119
|
+
ReadFinancial = "read:financial",
|
|
120
|
+
WriteFinancial = "write:financial",
|
|
121
|
+
ManageFinancial = "manage:financial",
|
|
122
|
+
ReadFinancialCoins = "read:financial:coins",
|
|
123
|
+
WriteFinancialCoins = "write:financial:coins",
|
|
124
|
+
ManageFinancialCoins = "manage:financial:coins",
|
|
125
|
+
ReadFinancialWallets = "read:financial:wallets",
|
|
126
|
+
WriteFinancialWallets = "write:financial:wallets",
|
|
127
|
+
ManageFinancialWallets = "manage:financial:wallets",
|
|
128
|
+
ReadFinancialAccounts = "read:financial:accounts",
|
|
129
|
+
WriteFinancialAccounts = "write:financial:accounts",
|
|
130
|
+
ManageFinancialAccounts = "manage:financial:accounts",
|
|
131
|
+
ReadFinancialTransactions = "read:financial:transactions",
|
|
132
|
+
WriteFinancialTransactions = "write:financial:transactions",
|
|
133
|
+
ManageFinancialTransactions = "manage:financial:transactions"
|
|
118
134
|
}
|
|
@@ -15,119 +15,135 @@ var Scope;
|
|
|
15
15
|
// Special Actions
|
|
16
16
|
// ----------------------------
|
|
17
17
|
Scope["Collect"] = "collect";
|
|
18
|
+
Scope["Resolve"] = "resolve";
|
|
18
19
|
Scope["Emit"] = "emit";
|
|
19
20
|
Scope["Send"] = "send";
|
|
20
21
|
Scope["Init"] = "init";
|
|
21
22
|
Scope["Verify"] = "verify";
|
|
22
23
|
Scope["Upload"] = "upload";
|
|
23
24
|
Scope["Download"] = "download";
|
|
25
|
+
Scope["Start"] = "start";
|
|
26
|
+
Scope["Append"] = "append";
|
|
27
|
+
Scope["Commit"] = "commit";
|
|
28
|
+
Scope["Abort"] = "abort";
|
|
24
29
|
// ----------------------------
|
|
25
30
|
// Scoped Actions
|
|
26
31
|
// ----------------------------
|
|
27
|
-
Scope["ReadAuth"] = "
|
|
28
|
-
Scope["WriteAuth"] = "
|
|
29
|
-
Scope["ManageAuth"] = "
|
|
30
|
-
Scope["ReadAuthGrants"] = "
|
|
31
|
-
Scope["WriteAuthGrants"] = "
|
|
32
|
-
Scope["ManageAuthGrants"] = "
|
|
33
|
-
Scope["
|
|
34
|
-
Scope["
|
|
35
|
-
Scope["
|
|
36
|
-
Scope["
|
|
37
|
-
Scope["
|
|
38
|
-
Scope["
|
|
39
|
-
Scope["
|
|
40
|
-
Scope["
|
|
41
|
-
Scope["
|
|
42
|
-
Scope["
|
|
43
|
-
Scope["
|
|
44
|
-
Scope["
|
|
45
|
-
Scope["
|
|
46
|
-
Scope["
|
|
47
|
-
Scope["
|
|
48
|
-
Scope["
|
|
49
|
-
Scope["
|
|
50
|
-
Scope["
|
|
51
|
-
Scope["ReadIdentity"] = "
|
|
52
|
-
Scope["WriteIdentity"] = "
|
|
53
|
-
Scope["ManageIdentity"] = "
|
|
54
|
-
Scope["ReadIdentityUsers"] = "
|
|
55
|
-
Scope["WriteIdentityUsers"] = "
|
|
56
|
-
Scope["ManageIdentityUsers"] = "
|
|
57
|
-
Scope["ReadIdentityProfiles"] = "
|
|
58
|
-
Scope["WriteIdentityProfiles"] = "
|
|
59
|
-
Scope["ManageIdentityProfiles"] = "
|
|
60
|
-
Scope["ReadIdentitySessions"] = "
|
|
61
|
-
Scope["WriteIdentitySessions"] = "
|
|
62
|
-
Scope["ManageIdentitySessions"] = "
|
|
63
|
-
Scope["ReadLogistic"] = "
|
|
64
|
-
Scope["WriteLogistic"] = "
|
|
65
|
-
Scope["ManageLogistic"] = "
|
|
66
|
-
Scope["ReadLogisticCargoes"] = "
|
|
67
|
-
Scope["WriteLogisticCargoes"] = "
|
|
68
|
-
Scope["ManageLogisticCargoes"] = "
|
|
69
|
-
Scope["ReadLogisticDrivers"] = "
|
|
70
|
-
Scope["WriteLogisticDrivers"] = "
|
|
71
|
-
Scope["ManageLogisticDrivers"] = "
|
|
72
|
-
Scope["ReadLogisticTravels"] = "
|
|
73
|
-
Scope["WriteLogisticTravels"] = "
|
|
74
|
-
Scope["ManageLogisticTravels"] = "
|
|
75
|
-
Scope["ReadLogisticVehicles"] = "
|
|
76
|
-
Scope["WriteLogisticVehicles"] = "
|
|
77
|
-
Scope["ManageLogisticVehicles"] = "
|
|
78
|
-
Scope["ReadLogisticLocations"] = "
|
|
79
|
-
Scope["WriteLogisticLocations"] = "
|
|
80
|
-
Scope["ManageLogisticLocations"] = "
|
|
81
|
-
Scope["
|
|
82
|
-
Scope["
|
|
83
|
-
Scope["
|
|
84
|
-
Scope["
|
|
85
|
-
Scope["
|
|
86
|
-
Scope["
|
|
87
|
-
Scope["
|
|
88
|
-
Scope["
|
|
89
|
-
Scope["
|
|
90
|
-
Scope["
|
|
91
|
-
Scope["
|
|
92
|
-
Scope["
|
|
93
|
-
Scope["
|
|
94
|
-
Scope["
|
|
95
|
-
Scope["
|
|
96
|
-
Scope["
|
|
97
|
-
Scope["
|
|
98
|
-
Scope["
|
|
99
|
-
Scope["
|
|
100
|
-
Scope["
|
|
101
|
-
Scope["
|
|
102
|
-
Scope["
|
|
103
|
-
Scope["
|
|
104
|
-
Scope["
|
|
105
|
-
Scope["
|
|
106
|
-
Scope["
|
|
107
|
-
Scope["
|
|
108
|
-
Scope["
|
|
109
|
-
Scope["
|
|
110
|
-
Scope["
|
|
111
|
-
Scope["
|
|
112
|
-
Scope["
|
|
113
|
-
Scope["
|
|
114
|
-
Scope["
|
|
115
|
-
Scope["
|
|
116
|
-
Scope["
|
|
117
|
-
Scope["
|
|
118
|
-
Scope["
|
|
119
|
-
Scope["
|
|
120
|
-
Scope["
|
|
121
|
-
Scope["
|
|
122
|
-
Scope["
|
|
123
|
-
Scope["
|
|
124
|
-
Scope["
|
|
125
|
-
Scope["
|
|
126
|
-
Scope["
|
|
127
|
-
Scope["
|
|
128
|
-
Scope["
|
|
129
|
-
Scope["
|
|
130
|
-
Scope["
|
|
131
|
-
Scope["
|
|
32
|
+
Scope["ReadAuth"] = "read:auth";
|
|
33
|
+
Scope["WriteAuth"] = "write:auth";
|
|
34
|
+
Scope["ManageAuth"] = "manage:auth";
|
|
35
|
+
Scope["ReadAuthGrants"] = "read:auth:grants";
|
|
36
|
+
Scope["WriteAuthGrants"] = "write:auth:grants";
|
|
37
|
+
Scope["ManageAuthGrants"] = "manage:auth:grants";
|
|
38
|
+
Scope["ReadDomain"] = "read:domain";
|
|
39
|
+
Scope["WriteDomain"] = "write:domain";
|
|
40
|
+
Scope["ManageDomain"] = "manage:domain";
|
|
41
|
+
Scope["ReadDomainApps"] = "read:domain:apps";
|
|
42
|
+
Scope["WriteDomainApps"] = "write:domain:apps";
|
|
43
|
+
Scope["ManageDomainApps"] = "manage:domain:apps";
|
|
44
|
+
Scope["ReadDomainClients"] = "read:domain:clients";
|
|
45
|
+
Scope["WriteDomainClients"] = "write:domain:clients";
|
|
46
|
+
Scope["ManageDomainClients"] = "manage:domain:clients";
|
|
47
|
+
Scope["ReadContext"] = "read:context";
|
|
48
|
+
Scope["WriteContext"] = "write:context";
|
|
49
|
+
Scope["ManageContext"] = "manage:context";
|
|
50
|
+
Scope["ReadContextConfigs"] = "read:context:configs";
|
|
51
|
+
Scope["WriteContextConfigs"] = "write:context:configs";
|
|
52
|
+
Scope["ManageContextConfigs"] = "manage:context:configs";
|
|
53
|
+
Scope["ReadContextSettings"] = "read:context:settings";
|
|
54
|
+
Scope["WriteContextSettings"] = "write:context:settings";
|
|
55
|
+
Scope["ManageContextSettings"] = "manage:context:settings";
|
|
56
|
+
Scope["ReadIdentity"] = "read:identity";
|
|
57
|
+
Scope["WriteIdentity"] = "write:identity";
|
|
58
|
+
Scope["ManageIdentity"] = "manage:identity";
|
|
59
|
+
Scope["ReadIdentityUsers"] = "read:identity:users";
|
|
60
|
+
Scope["WriteIdentityUsers"] = "write:identity:users";
|
|
61
|
+
Scope["ManageIdentityUsers"] = "manage:identity:users";
|
|
62
|
+
Scope["ReadIdentityProfiles"] = "read:identity:profiles";
|
|
63
|
+
Scope["WriteIdentityProfiles"] = "write:identity:profiles";
|
|
64
|
+
Scope["ManageIdentityProfiles"] = "manage:identity:profiles";
|
|
65
|
+
Scope["ReadIdentitySessions"] = "read:identity:sessions";
|
|
66
|
+
Scope["WriteIdentitySessions"] = "write:identity:sessions";
|
|
67
|
+
Scope["ManageIdentitySessions"] = "manage:identity:sessions";
|
|
68
|
+
Scope["ReadLogistic"] = "read:logistic";
|
|
69
|
+
Scope["WriteLogistic"] = "write:logistic";
|
|
70
|
+
Scope["ManageLogistic"] = "manage:logistic";
|
|
71
|
+
Scope["ReadLogisticCargoes"] = "read:logistic:cargoes";
|
|
72
|
+
Scope["WriteLogisticCargoes"] = "write:logistic:cargoes";
|
|
73
|
+
Scope["ManageLogisticCargoes"] = "manage:logistic:cargoes";
|
|
74
|
+
Scope["ReadLogisticDrivers"] = "read:logistic:drivers";
|
|
75
|
+
Scope["WriteLogisticDrivers"] = "write:logistic:drivers";
|
|
76
|
+
Scope["ManageLogisticDrivers"] = "manage:logistic:drivers";
|
|
77
|
+
Scope["ReadLogisticTravels"] = "read:logistic:travels";
|
|
78
|
+
Scope["WriteLogisticTravels"] = "write:logistic:travels";
|
|
79
|
+
Scope["ManageLogisticTravels"] = "manage:logistic:travels";
|
|
80
|
+
Scope["ReadLogisticVehicles"] = "read:logistic:vehicles";
|
|
81
|
+
Scope["WriteLogisticVehicles"] = "write:logistic:vehicles";
|
|
82
|
+
Scope["ManageLogisticVehicles"] = "manage:logistic:vehicles";
|
|
83
|
+
Scope["ReadLogisticLocations"] = "read:logistic:locations";
|
|
84
|
+
Scope["WriteLogisticLocations"] = "write:logistic:locations";
|
|
85
|
+
Scope["ManageLogisticLocations"] = "manage:logistic:locations";
|
|
86
|
+
Scope["ResolveLogisticLocations"] = "resolve:logistic:locations";
|
|
87
|
+
Scope["ReadSpecial"] = "read:special";
|
|
88
|
+
Scope["WriteSpecial"] = "write:special";
|
|
89
|
+
Scope["ManageSpecial"] = "manage:special";
|
|
90
|
+
Scope["ReadSpecialFiles"] = "read:special:files";
|
|
91
|
+
Scope["WriteSpecialFiles"] = "write:special:files";
|
|
92
|
+
Scope["ManageSpecialFiles"] = "manage:special:files";
|
|
93
|
+
Scope["UploadSpecialFiles"] = "upload:special:files";
|
|
94
|
+
Scope["DownloadSpecialFiles"] = "download:special:files";
|
|
95
|
+
Scope["ReadSpecialStats"] = "read:special:stats";
|
|
96
|
+
Scope["WriteSpecialStats"] = "write:special:stats";
|
|
97
|
+
Scope["ManageSpecialStats"] = "manage:special:stats";
|
|
98
|
+
Scope["CollectSpecialStats"] = "collect:special:stats";
|
|
99
|
+
Scope["ReadSpecialSagas"] = "read:special:sagas";
|
|
100
|
+
Scope["WriteSpecialSagas"] = "write:special:sagas";
|
|
101
|
+
Scope["ManageSpecialSagas"] = "manage:special:sagas";
|
|
102
|
+
Scope["StartSpecialSagas"] = "start:special:sagas";
|
|
103
|
+
Scope["AppendSpecialSagas"] = "append:special:sagas";
|
|
104
|
+
Scope["CommitSpecialSagas"] = "commit:special:sagas";
|
|
105
|
+
Scope["AbortSpecialSagas"] = "abort:special:sagas";
|
|
106
|
+
Scope["ReadSpecialSagaHistories"] = "read:special:saga.histories";
|
|
107
|
+
Scope["WriteSpecialSagaHistories"] = "write:special:saga.histories";
|
|
108
|
+
Scope["ManageSpecialSagaHistories"] = "manage:special:saga.histories";
|
|
109
|
+
Scope["ReadGeneral"] = "read:general";
|
|
110
|
+
Scope["WriteGeneral"] = "write:general";
|
|
111
|
+
Scope["ManageGeneral"] = "manage:general";
|
|
112
|
+
Scope["ReadGeneralArtifacts"] = "read:general:artifacts";
|
|
113
|
+
Scope["WriteGeneralArtifacts"] = "write:general:artifacts";
|
|
114
|
+
Scope["ManageGeneralArtifacts"] = "manage:general:artifacts";
|
|
115
|
+
Scope["ReadGeneralWorkflows"] = "read:general:workflows";
|
|
116
|
+
Scope["WriteGeneralWorkflows"] = "write:general:workflows";
|
|
117
|
+
Scope["ManageGeneralWorkflows"] = "manage:general:workflows";
|
|
118
|
+
Scope["ReadTouch"] = "read:touch";
|
|
119
|
+
Scope["WriteTouch"] = "write:touch";
|
|
120
|
+
Scope["ManageTouch"] = "manage:touch";
|
|
121
|
+
Scope["ReadTouchPushes"] = "read:touch:pushes";
|
|
122
|
+
Scope["WriteTouchPushes"] = "write:touch:pushes";
|
|
123
|
+
Scope["ManageTouchPushes"] = "manage:touch:pushes";
|
|
124
|
+
Scope["SendTouchPushes"] = "send:touch:pushes";
|
|
125
|
+
Scope["ReadTouchPushHistories"] = "read:touch:push.histories";
|
|
126
|
+
Scope["WriteTouchPushHistories"] = "write:touch:push.histories";
|
|
127
|
+
Scope["ManageTouchPushHistories"] = "manage:touch:push.histories";
|
|
128
|
+
Scope["SendTouchPushHistories"] = "send:touch:push.histories";
|
|
129
|
+
Scope["ReadTouchMails"] = "read:touch:mails";
|
|
130
|
+
Scope["WriteTouchMails"] = "write:touch:mails";
|
|
131
|
+
Scope["ManageTouchMails"] = "manage:touch:mails";
|
|
132
|
+
Scope["SendTouchMails"] = "send:touch:mails";
|
|
133
|
+
Scope["ReadFinancial"] = "read:financial";
|
|
134
|
+
Scope["WriteFinancial"] = "write:financial";
|
|
135
|
+
Scope["ManageFinancial"] = "manage:financial";
|
|
136
|
+
Scope["ReadFinancialCoins"] = "read:financial:coins";
|
|
137
|
+
Scope["WriteFinancialCoins"] = "write:financial:coins";
|
|
138
|
+
Scope["ManageFinancialCoins"] = "manage:financial:coins";
|
|
139
|
+
Scope["ReadFinancialWallets"] = "read:financial:wallets";
|
|
140
|
+
Scope["WriteFinancialWallets"] = "write:financial:wallets";
|
|
141
|
+
Scope["ManageFinancialWallets"] = "manage:financial:wallets";
|
|
142
|
+
Scope["ReadFinancialAccounts"] = "read:financial:accounts";
|
|
143
|
+
Scope["WriteFinancialAccounts"] = "write:financial:accounts";
|
|
144
|
+
Scope["ManageFinancialAccounts"] = "manage:financial:accounts";
|
|
145
|
+
Scope["ReadFinancialTransactions"] = "read:financial:transactions";
|
|
146
|
+
Scope["WriteFinancialTransactions"] = "write:financial:transactions";
|
|
147
|
+
Scope["ManageFinancialTransactions"] = "manage:financial:transactions";
|
|
132
148
|
})(Scope || (exports.Scope = Scope = {}));
|
|
133
149
|
//# sourceMappingURL=scope.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/scope.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"scope.enum.js","sourceRoot":"","sources":["../../../src/common/enums/common/scope.enum.ts"],"names":[],"mappings":"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"}
|
|
@@ -10,4 +10,4 @@ export interface SagaHistory<Req = any, Res = any> extends Core {
|
|
|
10
10
|
}
|
|
11
11
|
export type SagaHistoryDoc<Req = any, Res = any> = SagaHistory<Req, Res> & Document;
|
|
12
12
|
export type SagaHistoryDto<Req = any, Res = any> = Dto<SagaHistory<Req, Res>>;
|
|
13
|
-
export type
|
|
13
|
+
export type SagaHistoryAppendDto<Req = any, Res = any> = Dto<MakeOptional<SagaHistory<Req, Res>, 'res'>>;
|
|
@@ -12,4 +12,4 @@ export interface Saga extends Core {
|
|
|
12
12
|
export type SagaDoc = Saga & Document;
|
|
13
13
|
export type SagaDto = Dto<MakeOptional<Saga, 'state'>>;
|
|
14
14
|
export type SagaId = Pick<Saga, 'id'>;
|
|
15
|
-
export type
|
|
15
|
+
export type SagaStartDto = Dto<MakeOptional<Saga, 'job' | 'state' | 'session'>>;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.toJSON = toJSON;
|
|
5
5
|
exports.toDate = toDate;
|
|
6
|
+
exports.toString = toString;
|
|
6
7
|
function toJSON(val) {
|
|
7
8
|
try {
|
|
8
9
|
return JSON.parse(val);
|
|
@@ -19,4 +20,12 @@ function toDate(val) {
|
|
|
19
20
|
return val;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
function toString(val) {
|
|
24
|
+
try {
|
|
25
|
+
return typeof val === 'string' ? val : JSON.stringify(val);
|
|
26
|
+
}
|
|
27
|
+
catch (_a) {
|
|
28
|
+
return String(val);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
22
31
|
//# sourceMappingURL=transform.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.util.js","sourceRoot":"","sources":["../../src/common/utils/transform.util.ts"],"names":[],"mappings":";AAAA,uDAAuD;;AAEvD,wBAMC;AAED,wBAMC;
|
|
1
|
+
{"version":3,"file":"transform.util.js","sourceRoot":"","sources":["../../src/common/utils/transform.util.ts"],"names":[],"mappings":";AAAA,uDAAuD;;AAEvD,wBAMC;AAED,wBAMC;AAED,4BAMC;AAtBD,SAAgB,MAAM,CAAU,GAAW;IACzC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,GAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED,SAAgB,MAAM,CAAC,GAA2B;IAChD,IAAI,CAAC;QACH,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,GAAW,CAAC;IACrB,CAAC;AACH,CAAC;AAED,SAAgB,QAAQ,CAAU,GAAM;IACtC,IAAI,CAAC;QACH,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7D,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { Saga, SagaDto, SagaHistory, SagaHistoryAppendDto, SagaStartDto, Serializer } from '../../../common/interfaces';
|
|
3
3
|
import { SagaHistoriesService } from './history.service';
|
|
4
|
-
import {
|
|
4
|
+
import { RequestConfig, RestfulService } from '../../../common/classes';
|
|
5
5
|
export declare class SagasService extends RestfulService<Saga, SagaDto> {
|
|
6
6
|
protected axios: AxiosInstance;
|
|
7
7
|
protected $histories?: SagaHistoriesService;
|
|
8
8
|
constructor(axios: AxiosInstance);
|
|
9
9
|
get histories(): SagaHistoriesService;
|
|
10
|
+
start(data: SagaStartDto, config?: RequestConfig<Saga>): Promise<Serializer<Saga>>;
|
|
11
|
+
append(data: SagaHistoryAppendDto, config?: RequestConfig<SagaHistory>): Promise<Serializer<SagaHistory>>;
|
|
12
|
+
commit(id: string, config?: RequestConfig<Saga>): Promise<Serializer<Saga>>;
|
|
13
|
+
abort(id: string, config?: RequestConfig<Saga>): Promise<Serializer<Saga>>;
|
|
10
14
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.SagasService = void 0;
|
|
4
|
-
const classes_1 = require("../../../common/classes");
|
|
5
13
|
const history_service_1 = require("./history.service");
|
|
14
|
+
const classes_1 = require("../../../common/classes");
|
|
6
15
|
class SagasService extends classes_1.RestfulService {
|
|
7
16
|
constructor(axios) {
|
|
8
17
|
super('sagas', axios);
|
|
@@ -12,6 +21,26 @@ class SagasService extends classes_1.RestfulService {
|
|
|
12
21
|
var _a;
|
|
13
22
|
return (this.$histories = (_a = this.$histories) !== null && _a !== void 0 ? _a : new history_service_1.SagaHistoriesService(this.axios));
|
|
14
23
|
}
|
|
24
|
+
start(data, config) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return (yield this.post(this.url('start'), data, config)).data;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
append(data, config) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
return (yield this.post(this.url('append'), data, config)).data;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
commit(id, config) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return (yield this.patch(this.url(`${id}/commit`), undefined, config)).data;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
abort(id, config) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return (yield this.patch(this.url(`${id}/abort`), undefined, config)).data;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
15
44
|
}
|
|
16
45
|
exports.SagasService = SagasService;
|
|
17
46
|
//# sourceMappingURL=sagas.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sagas.service.js","sourceRoot":"","sources":["../../../src/services/special/sagas/sagas.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sagas.service.js","sourceRoot":"","sources":["../../../src/services/special/sagas/sagas.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,uDAAyD;AACzD,qDAAwE;AAExE,MAAa,YAAa,SAAQ,wBAA6B;IAG7D,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,SAAS;;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,sCAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,CAAC;IAEK,KAAK,CACT,IAAkB,EAClB,MAA4B;;YAE5B,OAAO,CACL,MAAM,IAAI,CAAC,IAAI,CACb,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EACjB,IAAI,EACJ,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,MAAM,CACV,IAA0B,EAC1B,MAAmC;;YAEnC,OAAO,CACL,MAAM,IAAI,CAAC,IAAI,CACb,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAClB,IAAI,EACJ,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,MAA4B;;YACnD,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CACd,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,EACxB,SAAS,EACT,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;IAEK,KAAK,CAAC,EAAU,EAAE,MAA4B;;YAClD,OAAO,CACL,MAAM,IAAI,CAAC,KAAK,CACd,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,EACvB,SAAS,EACT,MAAM,CACP,CACF,CAAC,IAAI,CAAC;QACT,CAAC;KAAA;CACF;AAxDD,oCAwDC"}
|