@adobedjangir/commerce-admin-management 0.0.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/README.md +637 -0
- package/actions/commerce-creds.js +262 -0
- package/actions/configurations/commerce/index.js +41 -0
- package/actions/configurations/commerce-connection-save/index.js +53 -0
- package/actions/configurations/commerce-connection-status/index.js +27 -0
- package/actions/configurations/commerce-connection-test/index.js +47 -0
- package/actions/configurations/export-config/index.js +256 -0
- package/actions/configurations/ext.config.yaml +192 -0
- package/actions/configurations/import-config/index.js +541 -0
- package/actions/configurations/registration/index.js +37 -0
- package/actions/configurations/sync-store-mappings-from-commerce/index.js +190 -0
- package/actions/configurations/system-config-list/index.js +127 -0
- package/actions/configurations/system-config-save/index.js +160 -0
- package/actions/configurations/system-config-schema/index.js +327 -0
- package/actions/utils.js +73 -0
- package/package.json +80 -0
- package/scripts/build-web.js +58 -0
- package/scripts/setup.js +445 -0
- package/src/abdb-config.js +8 -0
- package/src/abdb-helper.js +8 -0
- package/src/index.js +22 -0
- package/src/oauth1a.js +8 -0
- package/src/system-config-crypto.js +8 -0
- package/src/system-config-shared.js +8 -0
- package/web/dist/index.css +305 -0
- package/web/dist/index.js +2986 -0
- package/web/index.js +7 -0
- package/web/src/components/App.js +54 -0
- package/web/src/components/AppSectionNav.js +49 -0
- package/web/src/components/CommerceSetupWizard.js +160 -0
- package/web/src/components/ExtensionRegistration.js +33 -0
- package/web/src/components/MainPage.js +147 -0
- package/web/src/components/SystemConfig.js +1464 -0
- package/web/src/components/SystemConfigSchemaEditor.js +459 -0
- package/web/src/hooks/useConfirm.js +355 -0
- package/web/src/hooks/useSystemConfig.js +238 -0
- package/web/src/hooks/useSystemConfigSchema.js +102 -0
- package/web/src/index.js +46 -0
- package/web/src/nav-icons.js +30 -0
- package/web/src/nav.json +10 -0
- package/web/src/pages/index.js +17 -0
- package/web/src/schema/systemConfigSchema.js +82 -0
- package/web/src/settings.js +101 -0
- package/web/src/styles/index.css +337 -0
- package/web/src/theme.js +104 -0
- package/web/src/utils/storeMappingsFromCommerceRest.js +73 -0
- package/web/src/utils.js +52 -0
- package/web/styles.css +337 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
operations:
|
|
2
|
+
view:
|
|
3
|
+
- type: web
|
|
4
|
+
impl: index.html
|
|
5
|
+
# Action sources live alongside this manifest (same directory).
|
|
6
|
+
actions: .
|
|
7
|
+
# Host App Builder apps override `web` to point at their UI shell (see README).
|
|
8
|
+
web: ../../../../web-src
|
|
9
|
+
runtimeManifest:
|
|
10
|
+
database:
|
|
11
|
+
auto-provision: true
|
|
12
|
+
region: emea
|
|
13
|
+
packages:
|
|
14
|
+
admin-ui-sdk:
|
|
15
|
+
license: Apache-2.0
|
|
16
|
+
actions:
|
|
17
|
+
registration:
|
|
18
|
+
function: registration/index.js
|
|
19
|
+
web: 'yes'
|
|
20
|
+
runtime: 'nodejs:20'
|
|
21
|
+
inputs:
|
|
22
|
+
LOG_LEVEL: debug
|
|
23
|
+
annotations:
|
|
24
|
+
require-adobe-auth: true
|
|
25
|
+
final: true
|
|
26
|
+
CommerceAdminManagement:
|
|
27
|
+
license: Apache-2.0
|
|
28
|
+
actions:
|
|
29
|
+
# Commerce REST creds are NOT injected here — they live encrypted in
|
|
30
|
+
# ABDB and are loaded per-call by actions/commerce-creds.js.
|
|
31
|
+
commerce-rest-get:
|
|
32
|
+
function: commerce/index.js
|
|
33
|
+
web: 'yes'
|
|
34
|
+
runtime: 'nodejs:20'
|
|
35
|
+
inputs:
|
|
36
|
+
LOG_LEVEL: debug
|
|
37
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
38
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
39
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
40
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
41
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
42
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
43
|
+
annotations:
|
|
44
|
+
require-adobe-auth: false
|
|
45
|
+
include-ims-credentials: true
|
|
46
|
+
final: true
|
|
47
|
+
system-config-list:
|
|
48
|
+
function: system-config-list/index.js
|
|
49
|
+
web: 'yes'
|
|
50
|
+
runtime: 'nodejs:20'
|
|
51
|
+
inputs:
|
|
52
|
+
LOG_LEVEL: debug
|
|
53
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
54
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
55
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
56
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
57
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
58
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
59
|
+
annotations:
|
|
60
|
+
require-adobe-auth: false
|
|
61
|
+
include-ims-credentials: true
|
|
62
|
+
final: true
|
|
63
|
+
system-config-save:
|
|
64
|
+
function: system-config-save/index.js
|
|
65
|
+
web: 'yes'
|
|
66
|
+
runtime: 'nodejs:20'
|
|
67
|
+
inputs:
|
|
68
|
+
LOG_LEVEL: debug
|
|
69
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
70
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
71
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
72
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
73
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
74
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
75
|
+
annotations:
|
|
76
|
+
require-adobe-auth: false
|
|
77
|
+
include-ims-credentials: true
|
|
78
|
+
final: true
|
|
79
|
+
system-config-schema:
|
|
80
|
+
function: system-config-schema/index.js
|
|
81
|
+
web: 'yes'
|
|
82
|
+
runtime: 'nodejs:20'
|
|
83
|
+
inputs:
|
|
84
|
+
LOG_LEVEL: debug
|
|
85
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
86
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
87
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
88
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
89
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
90
|
+
annotations:
|
|
91
|
+
require-adobe-auth: false
|
|
92
|
+
include-ims-credentials: true
|
|
93
|
+
final: true
|
|
94
|
+
export-config:
|
|
95
|
+
function: export-config/index.js
|
|
96
|
+
web: 'yes'
|
|
97
|
+
runtime: 'nodejs:20'
|
|
98
|
+
inputs:
|
|
99
|
+
LOG_LEVEL: debug
|
|
100
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
101
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
102
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
103
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
104
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
105
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
106
|
+
annotations:
|
|
107
|
+
require-adobe-auth: false
|
|
108
|
+
include-ims-credentials: true
|
|
109
|
+
final: true
|
|
110
|
+
import-config:
|
|
111
|
+
function: import-config/index.js
|
|
112
|
+
web: 'yes'
|
|
113
|
+
runtime: 'nodejs:20'
|
|
114
|
+
limits:
|
|
115
|
+
timeout: 300000
|
|
116
|
+
memory: 512
|
|
117
|
+
inputs:
|
|
118
|
+
LOG_LEVEL: debug
|
|
119
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
120
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
121
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
122
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
123
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
124
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
125
|
+
annotations:
|
|
126
|
+
require-adobe-auth: false
|
|
127
|
+
include-ims-credentials: true
|
|
128
|
+
final: true
|
|
129
|
+
sync-store-mappings-from-commerce:
|
|
130
|
+
function: sync-store-mappings-from-commerce/index.js
|
|
131
|
+
web: 'yes'
|
|
132
|
+
runtime: 'nodejs:20'
|
|
133
|
+
inputs:
|
|
134
|
+
LOG_LEVEL: debug
|
|
135
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
136
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
137
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
138
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
139
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
140
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
141
|
+
annotations:
|
|
142
|
+
require-adobe-auth: false
|
|
143
|
+
include-ims-credentials: true
|
|
144
|
+
final: true
|
|
145
|
+
commerce-connection-status:
|
|
146
|
+
function: commerce-connection-status/index.js
|
|
147
|
+
web: 'yes'
|
|
148
|
+
runtime: 'nodejs:20'
|
|
149
|
+
inputs:
|
|
150
|
+
LOG_LEVEL: debug
|
|
151
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
152
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
153
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
154
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
155
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
156
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
157
|
+
annotations:
|
|
158
|
+
require-adobe-auth: false
|
|
159
|
+
include-ims-credentials: true
|
|
160
|
+
final: true
|
|
161
|
+
commerce-connection-test:
|
|
162
|
+
function: commerce-connection-test/index.js
|
|
163
|
+
web: 'yes'
|
|
164
|
+
runtime: 'nodejs:20'
|
|
165
|
+
inputs:
|
|
166
|
+
LOG_LEVEL: debug
|
|
167
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
168
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
169
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
170
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
171
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
172
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
173
|
+
annotations:
|
|
174
|
+
require-adobe-auth: false
|
|
175
|
+
include-ims-credentials: true
|
|
176
|
+
final: true
|
|
177
|
+
commerce-connection-save:
|
|
178
|
+
function: commerce-connection-save/index.js
|
|
179
|
+
web: 'yes'
|
|
180
|
+
runtime: 'nodejs:20'
|
|
181
|
+
inputs:
|
|
182
|
+
LOG_LEVEL: debug
|
|
183
|
+
SYSTEM_CONFIG_CRYPT_KEY: $SYSTEM_CONFIG_CRYPT_KEY
|
|
184
|
+
OAUTH_CLIENT_ID: $OAUTH_CLIENT_ID
|
|
185
|
+
OAUTH_CLIENT_SECRET: $OAUTH_CLIENT_SECRET
|
|
186
|
+
OAUTH_ORG_ID: $OAUTH_ORG_ID
|
|
187
|
+
OAUTH_SCOPES: $OAUTH_SCOPES
|
|
188
|
+
AIO_DB_REGION: $AIO_DB_REGION
|
|
189
|
+
annotations:
|
|
190
|
+
require-adobe-auth: false
|
|
191
|
+
include-ims-credentials: true
|
|
192
|
+
final: true
|