@acorex-platform/module-integration-management-client 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/fesm2022/{acorex-platform-module-integration-management-client-delete-connection.command-DQ_kn8dH.mjs → acorex-platform-module-integration-management-client-delete-connection.command-CCMZwP4W.mjs} +5 -2
  2. package/fesm2022/{acorex-platform-module-integration-management-client-delete-connection.command-DQ_kn8dH.mjs.map → acorex-platform-module-integration-management-client-delete-connection.command-CCMZwP4W.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-integration-management-client-disconnect-connection.command-B4HeDA1n.mjs → acorex-platform-module-integration-management-client-disconnect-connection.command-DpVoXBdW.mjs} +5 -2
  4. package/fesm2022/{acorex-platform-module-integration-management-client-disconnect-connection.command-B4HeDA1n.mjs.map → acorex-platform-module-integration-management-client-disconnect-connection.command-DpVoXBdW.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-integration-management-client-integrations-page.component-BIDqAXx3.mjs → acorex-platform-module-integration-management-client-integrations-page.component-Bmb24K5W.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-integration-management-client-integrations-page.component-BIDqAXx3.mjs.map → acorex-platform-module-integration-management-client-integrations-page.component-Bmb24K5W.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-integration-management-client-update-connection.command-BNMR-t12.mjs → acorex-platform-module-integration-management-client-update-connection.command-Kqir73pA.mjs} +9 -3
  8. package/fesm2022/acorex-platform-module-integration-management-client-update-connection.command-Kqir73pA.mjs.map +1 -0
  9. package/fesm2022/{acorex-platform-module-integration-management-client-validate-connection.command-CGtb_GPX.mjs → acorex-platform-module-integration-management-client-validate-connection.command-D4RZ6WPP.mjs} +5 -2
  10. package/fesm2022/acorex-platform-module-integration-management-client-validate-connection.command-D4RZ6WPP.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-integration-management-client.mjs +12 -11
  12. package/fesm2022/acorex-platform-module-integration-management-client.mjs.map +1 -1
  13. package/i18n/en-AU/integration-management.json +224 -0
  14. package/i18n/en-US/integration-management.json +224 -0
  15. package/i18n/fa-IR/integration-management.json +161 -0
  16. package/package.json +1 -1
  17. package/fesm2022/acorex-platform-module-integration-management-client-update-connection.command-BNMR-t12.mjs.map +0 -1
  18. package/fesm2022/acorex-platform-module-integration-management-client-validate-connection.command-CGtb_GPX.mjs.map +0 -1
@@ -0,0 +1,224 @@
1
+ {
2
+ "module": {
3
+ "title": "Integration Management",
4
+ "description": "Connect external systems and manage per-user integrations."
5
+ },
6
+ "pages": {
7
+ "integrations": {
8
+ "title": "Integrations",
9
+ "description": "Connect external providers to your tenant.",
10
+ "sidebar": {
11
+ "overview": {
12
+ "title": "Overview",
13
+ "connected": "Connected",
14
+ "error": "Error",
15
+ "disabled": "Disabled",
16
+ "not-connected": "Not Connected"
17
+ },
18
+ "categories": {
19
+ "title": "Categories",
20
+ "all": "All"
21
+ },
22
+ "empty-filter": {
23
+ "title": "No Categories Selected",
24
+ "description": "Select at least one category in the side panel to show integrations.",
25
+ "action": "Select All Categories"
26
+ }
27
+ }
28
+ }
29
+ },
30
+ "settings": {
31
+ "group": {
32
+ "nav-title": "Integrations",
33
+ "title": "Integrations",
34
+ "description": "Connect external providers to your account."
35
+ },
36
+ "domains": {
37
+ "other": {
38
+ "title": "Other Integrations",
39
+ "description": "Additional integration connectors not yet grouped into a dedicated domain."
40
+ }
41
+ },
42
+ "section": {
43
+ "connections": {
44
+ "title": "Connected Accounts",
45
+ "description": "Manage your personal integration connections."
46
+ }
47
+ },
48
+ "connections-panel": {
49
+ "title": "Integration Connections",
50
+ "description": "View and manage connected external providers."
51
+ }
52
+ },
53
+ "permissions": {
54
+ "module": {
55
+ "title": "Integration Management",
56
+ "description": "Permissions for integration providers and connections."
57
+ },
58
+ "provider": {
59
+ "view": {
60
+ "title": "View providers",
61
+ "description": "View available integration providers."
62
+ }
63
+ },
64
+ "connection": {
65
+ "view": {
66
+ "title": "View connections",
67
+ "description": "View personal integration connections."
68
+ },
69
+ "management": {
70
+ "title": "Manage connections",
71
+ "description": "Connect, disconnect, and reauthorize personal integrations."
72
+ }
73
+ },
74
+ "tenant-connection": {
75
+ "management": {
76
+ "title": "Manage tenant connections",
77
+ "description": "Manage tenant-wide integration connections."
78
+ }
79
+ },
80
+ "application": {
81
+ "management": {
82
+ "title": "Manage OAuth applications",
83
+ "description": "Configure tenant OAuth application settings."
84
+ }
85
+ },
86
+ "connection-health": {
87
+ "view": {
88
+ "title": "View connection health",
89
+ "description": "View integration connection validation status."
90
+ }
91
+ }
92
+ },
93
+ "widgets": {
94
+ "integration-ref": {
95
+ "column-title": "Source",
96
+ "filter": {
97
+ "title": "Integration Source Filter",
98
+ "placeholder": "Select Sources"
99
+ },
100
+ "card": {
101
+ "title": "Integration Link",
102
+ "connection": "Connection",
103
+ "linked-at": "Linked At"
104
+ },
105
+ "page": {
106
+ "title": "Integration Info",
107
+ "summary": "Linked External System",
108
+ "badge": {
109
+ "linked": "Linked"
110
+ },
111
+ "fields": {
112
+ "connection": "Connection",
113
+ "linked-at": "Linked At",
114
+ "remote-record": "Remote Record"
115
+ },
116
+ "readonly-hint": "This information is read-only and provided for reference.",
117
+ "empty": {
118
+ "title": "Not Linked",
119
+ "description": "This record is not linked to an external integration connection."
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "connections": {
125
+ "entities": {
126
+ "connection": {
127
+ "title": "Integration Connection",
128
+ "plural": "Integration Connections",
129
+ "groups": {
130
+ "connection": "Connection",
131
+ "status": "Status"
132
+ },
133
+ "fields": {
134
+ "provider-id": { "title": "Provider" },
135
+ "connection-scope": { "title": "Scope" },
136
+ "connection-key": { "title": "Connection key" },
137
+ "auth-method-type": { "title": "Authentication method" },
138
+ "instance-url": { "title": "Instance URL" },
139
+ "external-account-name": { "title": "External account" },
140
+ "secret-ref": { "title": "Secret reference" },
141
+ "tenant-id": { "title": "Tenant" },
142
+ "user-id": { "title": "User" },
143
+ "is-revoked": { "title": "Revoked" },
144
+ "is-disabled": { "title": "Disabled" }
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "oauth-states": {
150
+ "entities": {
151
+ "oauth-state": {
152
+ "title": "OAuth State",
153
+ "plural": "OAuth States",
154
+ "fields": {
155
+ "state": { "title": "State" },
156
+ "provider-id": { "title": "Provider" },
157
+ "user-id": { "title": "User" },
158
+ "tenant-id": { "title": "Tenant" },
159
+ "expires-at": { "title": "Expires at" },
160
+ "code-verifier": { "title": "Code verifier" },
161
+ "redirect-uri": { "title": "Redirect URI" },
162
+ "consumed-at": { "title": "Consumed at" }
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "applications": {
168
+ "entities": {
169
+ "application": {
170
+ "title": "Integration Application",
171
+ "plural": "Integration Applications",
172
+ "groups": {
173
+ "oauth": "OAuth configuration"
174
+ },
175
+ "fields": {
176
+ "provider-id": { "title": "Provider" },
177
+ "tenant-id": { "title": "Tenant" },
178
+ "client-id": { "title": "Client ID" },
179
+ "client-secret-ref": { "title": "Client secret reference" },
180
+ "authorization-endpoint": { "title": "Authorization endpoint" },
181
+ "token-endpoint": { "title": "Token endpoint" },
182
+ "redirect-uri": { "title": "Redirect URI" }
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "commands": {
188
+ "connection": {
189
+ "errors": {
190
+ "no-fields-to-update": "No connection fields were provided to update.",
191
+ "not-found-or-denied": "Connection not found or access denied.",
192
+ "not-found-or-not-configured": "Connection not found or not configured."
193
+ }
194
+ }
195
+ },
196
+ "remote-records": {
197
+ "entities": {
198
+ "record": {
199
+ "title": "Remote record",
200
+ "plural": "Remote records",
201
+ "groups": {
202
+ "remote": "Remote details",
203
+ "cache": "Cache"
204
+ },
205
+ "fields": {
206
+ "provider-id": { "title": "Provider" },
207
+ "connection-display-name": { "title": "Connection" },
208
+ "resource-type": { "title": "Resource type" },
209
+ "connection-id": { "title": "Connection ID" },
210
+ "remote-id": { "title": "Remote ID" },
211
+ "order-no": { "title": "Order #" },
212
+ "stage": { "title": "Stage" },
213
+ "customer-name": { "title": "Customer" },
214
+ "site-name": { "title": "Site" },
215
+ "due-date": { "title": "Due date" },
216
+ "payload-json": { "title": "Payload" },
217
+ "remote-fetched-at": { "title": "Fetched at" },
218
+ "is-active": { "title": "Active" },
219
+ "is-linked": { "title": "Linked" }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
@@ -0,0 +1,224 @@
1
+ {
2
+ "module": {
3
+ "title": "Integration Management",
4
+ "description": "Connect external systems and manage per-user integrations."
5
+ },
6
+ "pages": {
7
+ "integrations": {
8
+ "title": "Integrations",
9
+ "description": "Connect external providers to your tenant.",
10
+ "sidebar": {
11
+ "overview": {
12
+ "title": "Overview",
13
+ "connected": "Connected",
14
+ "error": "Error",
15
+ "disabled": "Disabled",
16
+ "not-connected": "Not Connected"
17
+ },
18
+ "categories": {
19
+ "title": "Categories",
20
+ "all": "All"
21
+ },
22
+ "empty-filter": {
23
+ "title": "No Categories Selected",
24
+ "description": "Select at least one category in the side panel to show integrations.",
25
+ "action": "Select All Categories"
26
+ }
27
+ }
28
+ }
29
+ },
30
+ "settings": {
31
+ "group": {
32
+ "nav-title": "Integrations",
33
+ "title": "Integrations",
34
+ "description": "Connect external providers to your account."
35
+ },
36
+ "domains": {
37
+ "other": {
38
+ "title": "Other Integrations",
39
+ "description": "Additional integration connectors not yet grouped into a dedicated domain."
40
+ }
41
+ },
42
+ "section": {
43
+ "connections": {
44
+ "title": "Connected Accounts",
45
+ "description": "Manage your personal integration connections."
46
+ }
47
+ },
48
+ "connections-panel": {
49
+ "title": "Integration Connections",
50
+ "description": "View and manage connected external providers."
51
+ }
52
+ },
53
+ "permissions": {
54
+ "module": {
55
+ "title": "Integration Management",
56
+ "description": "Permissions for integration providers and connections."
57
+ },
58
+ "provider": {
59
+ "view": {
60
+ "title": "View providers",
61
+ "description": "View available integration providers."
62
+ }
63
+ },
64
+ "connection": {
65
+ "view": {
66
+ "title": "View connections",
67
+ "description": "View personal integration connections."
68
+ },
69
+ "management": {
70
+ "title": "Manage connections",
71
+ "description": "Connect, disconnect, and reauthorize personal integrations."
72
+ }
73
+ },
74
+ "tenant-connection": {
75
+ "management": {
76
+ "title": "Manage tenant connections",
77
+ "description": "Manage tenant-wide integration connections."
78
+ }
79
+ },
80
+ "application": {
81
+ "management": {
82
+ "title": "Manage OAuth applications",
83
+ "description": "Configure tenant OAuth application settings."
84
+ }
85
+ },
86
+ "connection-health": {
87
+ "view": {
88
+ "title": "View connection health",
89
+ "description": "View integration connection validation status."
90
+ }
91
+ }
92
+ },
93
+ "widgets": {
94
+ "integration-ref": {
95
+ "column-title": "Source",
96
+ "filter": {
97
+ "title": "Integration Source Filter",
98
+ "placeholder": "Select Sources"
99
+ },
100
+ "card": {
101
+ "title": "Integration Link",
102
+ "connection": "Connection",
103
+ "linked-at": "Linked At"
104
+ },
105
+ "page": {
106
+ "title": "Integration Info",
107
+ "summary": "Linked External System",
108
+ "badge": {
109
+ "linked": "Linked"
110
+ },
111
+ "fields": {
112
+ "connection": "Connection",
113
+ "linked-at": "Linked At",
114
+ "remote-record": "Remote Record"
115
+ },
116
+ "readonly-hint": "This information is read-only and provided for reference.",
117
+ "empty": {
118
+ "title": "Not Linked",
119
+ "description": "This record is not linked to an external integration connection."
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "connections": {
125
+ "entities": {
126
+ "connection": {
127
+ "title": "Integration Connection",
128
+ "plural": "Integration Connections",
129
+ "groups": {
130
+ "connection": "Connection",
131
+ "status": "Status"
132
+ },
133
+ "fields": {
134
+ "provider-id": { "title": "Provider" },
135
+ "connection-scope": { "title": "Scope" },
136
+ "connection-key": { "title": "Connection key" },
137
+ "auth-method-type": { "title": "Authentication method" },
138
+ "instance-url": { "title": "Instance URL" },
139
+ "external-account-name": { "title": "External account" },
140
+ "secret-ref": { "title": "Secret reference" },
141
+ "tenant-id": { "title": "Tenant" },
142
+ "user-id": { "title": "User" },
143
+ "is-revoked": { "title": "Revoked" },
144
+ "is-disabled": { "title": "Disabled" }
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "oauth-states": {
150
+ "entities": {
151
+ "oauth-state": {
152
+ "title": "OAuth State",
153
+ "plural": "OAuth States",
154
+ "fields": {
155
+ "state": { "title": "State" },
156
+ "provider-id": { "title": "Provider" },
157
+ "user-id": { "title": "User" },
158
+ "tenant-id": { "title": "Tenant" },
159
+ "expires-at": { "title": "Expires at" },
160
+ "code-verifier": { "title": "Code verifier" },
161
+ "redirect-uri": { "title": "Redirect URI" },
162
+ "consumed-at": { "title": "Consumed at" }
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "applications": {
168
+ "entities": {
169
+ "application": {
170
+ "title": "Integration Application",
171
+ "plural": "Integration Applications",
172
+ "groups": {
173
+ "oauth": "OAuth configuration"
174
+ },
175
+ "fields": {
176
+ "provider-id": { "title": "Provider" },
177
+ "tenant-id": { "title": "Tenant" },
178
+ "client-id": { "title": "Client ID" },
179
+ "client-secret-ref": { "title": "Client secret reference" },
180
+ "authorization-endpoint": { "title": "Authorization endpoint" },
181
+ "token-endpoint": { "title": "Token endpoint" },
182
+ "redirect-uri": { "title": "Redirect URI" }
183
+ }
184
+ }
185
+ }
186
+ },
187
+ "commands": {
188
+ "connection": {
189
+ "errors": {
190
+ "no-fields-to-update": "No connection fields were provided to update.",
191
+ "not-found-or-denied": "Connection not found or access denied.",
192
+ "not-found-or-not-configured": "Connection not found or not configured."
193
+ }
194
+ }
195
+ },
196
+ "remote-records": {
197
+ "entities": {
198
+ "record": {
199
+ "title": "Remote record",
200
+ "plural": "Remote records",
201
+ "groups": {
202
+ "remote": "Remote details",
203
+ "cache": "Cache"
204
+ },
205
+ "fields": {
206
+ "provider-id": { "title": "Provider" },
207
+ "connection-display-name": { "title": "Connection" },
208
+ "resource-type": { "title": "Resource type" },
209
+ "connection-id": { "title": "Connection ID" },
210
+ "remote-id": { "title": "Remote ID" },
211
+ "order-no": { "title": "Order #" },
212
+ "stage": { "title": "Stage" },
213
+ "customer-name": { "title": "Customer" },
214
+ "site-name": { "title": "Site" },
215
+ "due-date": { "title": "Due date" },
216
+ "payload-json": { "title": "Payload" },
217
+ "remote-fetched-at": { "title": "Fetched at" },
218
+ "is-active": { "title": "Active" },
219
+ "is-linked": { "title": "Linked" }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "module": {
3
+ "title": "مدیریت یکپارچه‌سازی",
4
+ "description": "اتصال سامانه‌های خارجی و مدیریت یکپارچه‌سازی‌های کاربر."
5
+ },
6
+ "pages": {
7
+ "integrations": {
8
+ "title": "یکپارچه‌سازی‌ها",
9
+ "description": "ارائه‌دهندگان خارجی را برای این مستأجر متصل کنید.",
10
+ "sidebar": {
11
+ "overview": {
12
+ "title": "نمای کلی",
13
+ "connected": "متصل",
14
+ "error": "خطا",
15
+ "disabled": "غیرفعال",
16
+ "not-connected": "متصل نیست"
17
+ },
18
+ "categories": {
19
+ "title": "دسته‌ها",
20
+ "all": "همه"
21
+ },
22
+ "empty-filter": {
23
+ "title": "دسته‌ای انتخاب نشده",
24
+ "description": "حداقل یک دسته را در پنل کناری انتخاب کنید تا یکپارچه‌سازی‌ها نمایش داده شوند.",
25
+ "action": "انتخاب همه دسته‌ها"
26
+ }
27
+ }
28
+ }
29
+ },
30
+ "settings": {
31
+ "group": {
32
+ "nav-title": "یکپارچه‌سازی‌ها",
33
+ "title": "یکپارچه‌سازی‌ها",
34
+ "description": "ارائه‌دهندگان خارجی را به حساب خود متصل کنید."
35
+ },
36
+ "domains": {
37
+ "other": {
38
+ "title": "سایر یکپارچه‌سازی‌ها",
39
+ "description": "اتصال‌هایی که هنوز در یک دامنه اختصاصی گروه‌بندی نشده‌اند."
40
+ }
41
+ },
42
+ "section": {
43
+ "connections": {
44
+ "title": "حساب‌های متصل",
45
+ "description": "یکپارچه‌سازی‌های شخصی خود را مدیریت کنید."
46
+ }
47
+ },
48
+ "connections-panel": {
49
+ "title": "اتصال‌های یکپارچه‌سازی",
50
+ "description": "ارائه‌دهندگان خارجی متصل را مشاهده و مدیریت کنید."
51
+ }
52
+ },
53
+ "permissions": {
54
+ "module": {
55
+ "title": "مدیریت یکپارچه‌سازی",
56
+ "description": "مجوزهای مربوط به ارائه‌دهندگان و اتصال‌ها."
57
+ },
58
+ "provider": {
59
+ "view": {
60
+ "title": "مشاهده ارائه‌دهندگان",
61
+ "description": "مشاهده ارائه‌دهندگان یکپارچه‌سازی موجود."
62
+ }
63
+ },
64
+ "connection": {
65
+ "view": {
66
+ "title": "مشاهده اتصال‌ها",
67
+ "description": "مشاهده اتصال‌های یکپارچه‌سازی شخصی."
68
+ },
69
+ "management": {
70
+ "title": "مدیریت اتصال‌ها",
71
+ "description": "اتصال، قطع اتصال و احراز هویت مجدد یکپارچه‌سازی‌های شخصی."
72
+ }
73
+ },
74
+ "tenant-connection": {
75
+ "management": {
76
+ "title": "مدیریت اتصال‌های سازمان",
77
+ "description": "مدیریت اتصال‌های یکپارچه‌سازی در سطح سازمان."
78
+ }
79
+ },
80
+ "application": {
81
+ "management": {
82
+ "title": "مدیریت برنامه‌های OAuth",
83
+ "description": "پیکربندی تنظیمات OAuth سازمان."
84
+ }
85
+ },
86
+ "connection-health": {
87
+ "view": {
88
+ "title": "مشاهده سلامت اتصال",
89
+ "description": "مشاهده وضعیت اعتبارسنجی اتصال یکپارچه‌سازی."
90
+ }
91
+ }
92
+ },
93
+ "widgets": {
94
+ "integration-ref": {
95
+ "column-title": "منبع",
96
+ "filter": {
97
+ "title": "فیلتر منبع یکپارچه‌سازی",
98
+ "placeholder": "انتخاب منابع"
99
+ },
100
+ "card": {
101
+ "title": "پیوند یکپارچه‌سازی",
102
+ "connection": "اتصال",
103
+ "linked-at": "تاریخ پیوند"
104
+ },
105
+ "page": {
106
+ "title": "اطلاعات یکپارچه‌سازی",
107
+ "summary": "سامانه خارجی متصل",
108
+ "badge": {
109
+ "linked": "متصل"
110
+ },
111
+ "fields": {
112
+ "connection": "اتصال",
113
+ "linked-at": "تاریخ پیوند",
114
+ "remote-record": "رکورد راه دور"
115
+ },
116
+ "readonly-hint": "این اطلاعات فقط برای مشاهده است و قابل ویرایش نیست.",
117
+ "empty": {
118
+ "title": "متصل نیست",
119
+ "description": "این رکورد به هیچ اتصال یکپارچه‌سازی خارجی پیوند داده نشده است."
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "commands": {
125
+ "connection": {
126
+ "errors": {
127
+ "no-fields-to-update": "هیچ فیلدی برای به‌روزرسانی اتصال ارسال نشده است.",
128
+ "not-found-or-denied": "اتصال یافت نشد یا دسترسی مجاز نیست.",
129
+ "not-found-or-not-configured": "اتصال یافت نشد یا پیکربندی نشده است."
130
+ }
131
+ }
132
+ },
133
+ "remote-records": {
134
+ "entities": {
135
+ "record": {
136
+ "title": "رکورد ریموت",
137
+ "plural": "رکوردهای ریموت",
138
+ "groups": {
139
+ "remote": "جزئیات ریموت",
140
+ "cache": "کش"
141
+ },
142
+ "fields": {
143
+ "provider-id": { "title": "ارائه‌دهنده" },
144
+ "connection-display-name": { "title": "اتصال" },
145
+ "resource-type": { "title": "نوع منبع" },
146
+ "connection-id": { "title": "شناسه اتصال" },
147
+ "remote-id": { "title": "شناسه ریموت" },
148
+ "order-no": { "title": "شماره سفارش" },
149
+ "stage": { "title": "مرحله" },
150
+ "customer-name": { "title": "مشتری" },
151
+ "site-name": { "title": "سایت" },
152
+ "due-date": { "title": "تاریخ سررسید" },
153
+ "payload-json": { "title": "Payload" },
154
+ "remote-fetched-at": { "title": "زمان دریافت" },
155
+ "is-active": { "title": "فعال" },
156
+ "is-linked": { "title": "پیوندخورده" }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-integration-management-client",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0 || ^22.0.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-integration-management-client-update-connection.command-BNMR-t12.mjs","sources":["../../../../libs/modules/integration-management/client/src/lib/features/commands/update-connection.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { type AXPSafeIntegrationConnectionDto } from '@acorex-platform/framework-shared/core';\nimport { Injectable, inject } from '@angular/core';\nimport {\n AXMIntegrationConnectionManager,\n toSafeIntegrationConnectionDto,\n} from '../shared/integration-connection.manager';\nimport { AXMIntegrationConnectionLifecycleDispatcher } from '../shared/integration-connection-lifecycle.dispatcher';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface UpdateConnectionCommandInput {\n connectionId: string;\n isDisabled?: boolean;\n}\n\n//#endregion\n\n@Injectable({ providedIn: 'root' })\nexport class UpdateConnectionCommand\n implements AXPCommand<UpdateConnectionCommandInput, AXPSafeIntegrationConnectionDto>\n{\n private readonly connectionManager = inject(AXMIntegrationConnectionManager);\n private readonly lifecycle = inject(AXMIntegrationConnectionLifecycleDispatcher);\n\n async execute(\n input: UpdateConnectionCommandInput,\n ): AXPCommandExecuteResultPromise<AXPSafeIntegrationConnectionDto> {\n try {\n if (input.isDisabled === undefined) {\n return { success: false, message: { text: 'No connection fields were provided to update.' } };\n }\n\n const connection = await this.connectionManager.getByIdForCurrentUser(input.connectionId);\n if (!connection) {\n return { success: false, message: { text: 'Connection not found or access denied.' } };\n }\n\n const updated = await this.connectionManager.updateConnection(connection.id, {\n isDisabled: input.isDisabled,\n });\n\n const safe = toSafeIntegrationConnectionDto(updated);\n await this.lifecycle.dispatchEnabledChanged(safe, !input.isDisabled);\n\n return { success: true, kind: 'object', data: safe };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Failed to update integration connection.';\n return { success: false, message: { text: message } };\n }\n }\n}\n"],"names":[],"mappings":";;;;;AAoBA;MAGa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAImB,QAA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BAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;;2FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-module-integration-management-client-validate-connection.command-CGtb_GPX.mjs","sources":["../../../../libs/modules/integration-management/client/src/lib/features/commands/validate-connection.command.ts"],"sourcesContent":["import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXP_INTEGRATION_CONNECTION_STATUS, type AXPRuntimeCommandResult, type AXPIntegrationValidationResult, type AXPSafeIntegrationConnectionDto } from '@acorex-platform/framework-shared/core';\nimport {\n AXP_INTEGRATION_RUNTIME_PROVIDER,\n} from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo } from 'lodash';\nimport {\n AXMIntegrationConnectionManager,\n toSafeIntegrationConnectionDto,\n} from '../shared/integration-connection.manager';\n\n//#region ---- Types ----\n\nexport interface ValidateConnectionCommandInput {\n connectionId: string;\n}\n\n//#endregion\n\n@Injectable({ providedIn: 'root' })\nexport class ValidateConnectionCommand\n implements AXPCommand<ValidateConnectionCommandInput, AXPSafeIntegrationConnectionDto>\n{\n private readonly connectionManager = inject(AXMIntegrationConnectionManager);\n private readonly runtimeProviders = inject(AXP_INTEGRATION_RUNTIME_PROVIDER, { optional: true });\n\n async execute(\n input: ValidateConnectionCommandInput,\n ): AXPCommandExecuteResultPromise<AXPSafeIntegrationConnectionDto> {\n try {\n const connection = await this.connectionManager.getByIdForCurrentUser(input.connectionId);\n if (!connection || !connection.secretRef) {\n return { success: false, message: { text: 'Connection not found or not configured.' } };\n }\n\n const hooks = await this.resolveRuntimeHooks(connection.providerId);\n\n let validation: AXPIntegrationValidationResult = {\n valid: true,\n status: AXP_INTEGRATION_CONNECTION_STATUS.Connected,\n };\n if (hooks?.validateConnection) {\n const { tenantId, applicationId, userId } = this.connectionManager.getSessionContext();\n validation = await hooks.validateConnection({\n tenantId,\n applicationId,\n userId,\n connectionId: connection.id,\n providerId: connection.providerId,\n connectionScope: connection.connectionScope,\n connectionKey: connection.connectionKey,\n authMethodType: connection.authMethodType,\n instanceUrl: connection.instanceUrl,\n config: connection.config,\n secretRef: connection.secretRef,\n });\n }\n\n const updated = await this.connectionManager.updateConnection(connection.id, {\n status: defaultTo(validation.status, validation.valid ? AXP_INTEGRATION_CONNECTION_STATUS.Connected : AXP_INTEGRATION_CONNECTION_STATUS.Invalid),\n lastValidatedAt: new Date().toISOString(),\n externalAccountId: validation.externalAccountId,\n externalAccountName: validation.externalAccountName,\n grantedScopes: validation.grantedScopes,\n expiresAt: validation.expiresAt,\n lastErrorCode: validation.valid ? null : validation.errorCode,\n lastErrorMessage: validation.valid ? null : validation.errorMessage,\n });\n\n if (!validation.valid) {\n return {\n success: false,\n message: { details: toSafeIntegrationConnectionDto(updated), text: validation.errorMessage ?? 'Connection validation failed.' },\n \n };\n }\n\n return { success: true, kind: 'object', data: toSafeIntegrationConnectionDto(updated) };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Validation failed.';\n return { success: false, message: { text: message } };\n }\n }\n\n private async resolveRuntimeHooks(providerId: string) {\n const providers = this.runtimeProviders ?? [];\n for (const provider of providers) {\n const resolved = provider instanceof Promise ? await provider : provider;\n if (resolved.providerId === providerId) {\n return resolved.getHooks();\n }\n }\n return null;\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAmBA;MAGa,yBAAyB,CAAA;AADtC,IAAA,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