@steedos-labs/content-compliance 0.8.7 → 0.8.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/dist/index.js +1 -1
- package/main/default/objects/pepsico_material/buttons/pepsico_material_spot_check.button.yml +1 -1
- package/main/default/objects/pepsico_material/fields/kol_classification.field.yml +2 -1
- package/main/default/objects/pepsico_material/listviews/dco_spot_check.listview.yml +31 -0
- package/main/default/objects/pepsico_material/listviews/kol_midtier.listview.yml +31 -0
- package/main/default/objects/pepsico_material/listviews/spot_check.listview.yml +31 -0
- package/main/default/objects/pepsico_material_approval/fields/classification.field.yml +12 -12
- package/main/default/objects/pepsico_material_approval/fields/followers.field.yml +4 -4
- package/main/default/objects/pepsico_material_approval/fields/internal_collaborator.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/internal_collaborator_edit.field.yml +1 -1
- package/main/default/objects/pepsico_material_approval/fields/kol_classification.field.yml +2 -1
- package/main/default/objects/pepsico_material_approval/fields/product.field.yml +11 -11
- package/main/default/objects/pepsico_material_approval/fields/social_media.field.yml +2 -2
- package/package.json +1 -1
package/main/default/objects/pepsico_material/buttons/pepsico_material_spot_check.button.yml
CHANGED
|
@@ -153,7 +153,7 @@ amis_schema: |-
|
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
"visibleOn": "${(is_skip_approver == true || (kol_classification == 'Mid-tier'&& approval_status == true)) && ARRAYINCLUDES(global.user.roles, \"pepsico_spot_check\")}"
|
|
156
|
+
"visibleOn": "${(is_skip_approver == true || (kol_classification == 'Mid-tier'&& approval_status == true)) && ARRAYINCLUDES((curRoles || global.user.roles), \"pepsico_spot_check\")}"
|
|
157
157
|
}
|
|
158
158
|
],
|
|
159
159
|
"regions": [
|
|
@@ -3,6 +3,7 @@ amis:
|
|
|
3
3
|
id: 'u:937b11b9daq1'
|
|
4
4
|
type: tree-select
|
|
5
5
|
multiple: false
|
|
6
|
+
joinValues: true
|
|
6
7
|
enableNodePath: false
|
|
7
8
|
hideRoot: true
|
|
8
9
|
showIcon: true
|
|
@@ -77,7 +78,7 @@ amis:
|
|
|
77
78
|
return {approve_role: ''}
|
|
78
79
|
}
|
|
79
80
|
messages: {}
|
|
80
|
-
- ignoreError:
|
|
81
|
+
- ignoreError: true
|
|
81
82
|
actionType: setValue
|
|
82
83
|
componentId: 'u:e524cfef769289'
|
|
83
84
|
args:
|
|
@@ -3,6 +3,37 @@ columns:
|
|
|
3
3
|
- field: name
|
|
4
4
|
width: '400'
|
|
5
5
|
wrap: true
|
|
6
|
+
amis:
|
|
7
|
+
tpl: "<a class='antd-Link' style='color:var(--primary);cursor:pointer'>${name}</a>"
|
|
8
|
+
onEvent:
|
|
9
|
+
click:
|
|
10
|
+
actions:
|
|
11
|
+
- actionType: drawer
|
|
12
|
+
drawer:
|
|
13
|
+
type: drawer
|
|
14
|
+
position: right
|
|
15
|
+
size: lg
|
|
16
|
+
width: "75%"
|
|
17
|
+
title: " "
|
|
18
|
+
headerClassName: hidden
|
|
19
|
+
bodyClassName: p-0 m-0 bg-gray-100
|
|
20
|
+
closeOnEsc: true
|
|
21
|
+
closeOnOutside: true
|
|
22
|
+
resizable: true
|
|
23
|
+
actions: []
|
|
24
|
+
className: steedos-record-detail-drawer app-popover
|
|
25
|
+
data:
|
|
26
|
+
recordId: "${_id}"
|
|
27
|
+
curUser: "${context.userId}"
|
|
28
|
+
curRoles: "${context.user.roles}"
|
|
29
|
+
body:
|
|
30
|
+
- type: service
|
|
31
|
+
className: h-full
|
|
32
|
+
messages: {}
|
|
33
|
+
schemaApi:
|
|
34
|
+
url: "/api/pageSchema/record?objectApiName=pepsico_material&formFactor=LARGE"
|
|
35
|
+
method: get
|
|
36
|
+
adaptor: "const rid = context.recordId || context._id; const schema = JSON.parse(payload.schema); schema.objectApiName='pepsico_material'; schema.appId='pepsico_content_review'; schema.recordId=rid; schema.data={objectName: 'pepsico_material', recordId: rid, appId: 'pepsico_content_review', _inDrawer: true, recordLoaded: false}; return {data: schema};"
|
|
6
37
|
- field: pepsico_material_approval
|
|
7
38
|
width: '400'
|
|
8
39
|
wrap: true
|
|
@@ -3,6 +3,37 @@ columns:
|
|
|
3
3
|
- field: name
|
|
4
4
|
width: '400'
|
|
5
5
|
wrap: true
|
|
6
|
+
amis:
|
|
7
|
+
tpl: "<a class='antd-Link' style='color:var(--primary);cursor:pointer'>${name}</a>"
|
|
8
|
+
onEvent:
|
|
9
|
+
click:
|
|
10
|
+
actions:
|
|
11
|
+
- actionType: drawer
|
|
12
|
+
drawer:
|
|
13
|
+
type: drawer
|
|
14
|
+
position: right
|
|
15
|
+
size: lg
|
|
16
|
+
width: "75%"
|
|
17
|
+
title: " "
|
|
18
|
+
headerClassName: hidden
|
|
19
|
+
bodyClassName: p-0 m-0 bg-gray-100
|
|
20
|
+
closeOnEsc: true
|
|
21
|
+
closeOnOutside: true
|
|
22
|
+
resizable: true
|
|
23
|
+
actions: []
|
|
24
|
+
className: steedos-record-detail-drawer app-popover
|
|
25
|
+
data:
|
|
26
|
+
recordId: "${_id}"
|
|
27
|
+
curUser: "${context.userId}"
|
|
28
|
+
curRoles: "${context.user.roles}"
|
|
29
|
+
body:
|
|
30
|
+
- type: service
|
|
31
|
+
className: h-full
|
|
32
|
+
messages: {}
|
|
33
|
+
schemaApi:
|
|
34
|
+
url: "/api/pageSchema/record?objectApiName=pepsico_material&formFactor=LARGE"
|
|
35
|
+
method: get
|
|
36
|
+
adaptor: "const rid = context.recordId || context._id; const schema = JSON.parse(payload.schema); schema.objectApiName='pepsico_material'; schema.appId='pepsico_content_review'; schema.recordId=rid; schema.data={objectName: 'pepsico_material', recordId: rid, appId: 'pepsico_content_review', _inDrawer: true, recordLoaded: false}; return {data: schema};"
|
|
6
37
|
- field: pepsico_material_approval
|
|
7
38
|
width: '400'
|
|
8
39
|
wrap: true
|
|
@@ -3,6 +3,37 @@ columns:
|
|
|
3
3
|
- field: name
|
|
4
4
|
width: '400'
|
|
5
5
|
wrap: true
|
|
6
|
+
amis:
|
|
7
|
+
tpl: "<a class='antd-Link' style='color:var(--primary);cursor:pointer'>${name}</a>"
|
|
8
|
+
onEvent:
|
|
9
|
+
click:
|
|
10
|
+
actions:
|
|
11
|
+
- actionType: drawer
|
|
12
|
+
drawer:
|
|
13
|
+
type: drawer
|
|
14
|
+
position: right
|
|
15
|
+
size: lg
|
|
16
|
+
width: "75%"
|
|
17
|
+
title: " "
|
|
18
|
+
headerClassName: hidden
|
|
19
|
+
bodyClassName: p-0 m-0 bg-gray-100
|
|
20
|
+
closeOnEsc: true
|
|
21
|
+
closeOnOutside: true
|
|
22
|
+
resizable: true
|
|
23
|
+
actions: []
|
|
24
|
+
className: steedos-record-detail-drawer app-popover
|
|
25
|
+
data:
|
|
26
|
+
recordId: "${_id}"
|
|
27
|
+
curUser: "${context.userId}"
|
|
28
|
+
curRoles: "${context.user.roles}"
|
|
29
|
+
body:
|
|
30
|
+
- type: service
|
|
31
|
+
className: h-full
|
|
32
|
+
messages: {}
|
|
33
|
+
schemaApi:
|
|
34
|
+
url: "/api/pageSchema/record?objectApiName=pepsico_material&formFactor=LARGE"
|
|
35
|
+
method: get
|
|
36
|
+
adaptor: "const rid = context.recordId || context._id; const schema = JSON.parse(payload.schema); schema.objectApiName='pepsico_material'; schema.appId='pepsico_content_review'; schema.recordId=rid; schema.data={objectName: 'pepsico_material', recordId: rid, appId: 'pepsico_content_review', _inDrawer: true, recordLoaded: false}; return {data: schema};"
|
|
6
37
|
- field: pepsico_material_approval
|
|
7
38
|
width: '400'
|
|
8
39
|
wrap: true
|
|
@@ -78,7 +78,7 @@ amis:
|
|
|
78
78
|
return {approve_role: ''}
|
|
79
79
|
}
|
|
80
80
|
messages: {}
|
|
81
|
-
- ignoreError:
|
|
81
|
+
- ignoreError: true
|
|
82
82
|
actionType: setValue
|
|
83
83
|
componentId: 'u:e524cfef769289'
|
|
84
84
|
args:
|
|
@@ -97,57 +97,57 @@ amis:
|
|
|
97
97
|
adaptor: |
|
|
98
98
|
return payload.data.items.length > 0 ? payload.data.items[0] : {}
|
|
99
99
|
messages: {}
|
|
100
|
-
- ignoreError:
|
|
100
|
+
- ignoreError: true
|
|
101
101
|
actionType: setValue
|
|
102
102
|
componentId: 'u:d14645d114e7'
|
|
103
103
|
args:
|
|
104
104
|
value: '${event.data.responseResult.reviewer}'
|
|
105
|
-
- ignoreError:
|
|
105
|
+
- ignoreError: true
|
|
106
106
|
actionType: setValue
|
|
107
107
|
componentId: 'u:c09f111960dd'
|
|
108
108
|
args:
|
|
109
109
|
value: '${event.data.responseResult.assistance}'
|
|
110
|
-
- ignoreError:
|
|
110
|
+
- ignoreError: true
|
|
111
111
|
actionType: setValue
|
|
112
112
|
componentId: 'u:e0e11371cb19'
|
|
113
113
|
args:
|
|
114
114
|
value: '${event.data.responseResult.ns_reviewer}'
|
|
115
|
-
- ignoreError:
|
|
115
|
+
- ignoreError: true
|
|
116
116
|
actionType: setValue
|
|
117
117
|
componentId: 'u:f011bda192a8'
|
|
118
118
|
args:
|
|
119
119
|
value: '${event.data.responseResult.ns_assistance}'
|
|
120
|
-
- ignoreError:
|
|
120
|
+
- ignoreError: true
|
|
121
121
|
actionType: setValue
|
|
122
122
|
componentId: 'u:017c2205a8cc'
|
|
123
123
|
args:
|
|
124
124
|
value: '${event.data.responseResult.legal_reviewer}'
|
|
125
|
-
- ignoreError:
|
|
125
|
+
- ignoreError: true
|
|
126
126
|
actionType: setValue
|
|
127
127
|
componentId: 'u:7229905df43c'
|
|
128
128
|
args:
|
|
129
129
|
value: '${event.data.responseResult.legal_assistance}'
|
|
130
|
-
- ignoreError:
|
|
130
|
+
- ignoreError: true
|
|
131
131
|
actionType: setValue
|
|
132
132
|
componentId: 'u:249e3e33a089'
|
|
133
133
|
args:
|
|
134
134
|
value: '${event.data.responseResult.sra_reviewer}'
|
|
135
|
-
- ignoreError:
|
|
135
|
+
- ignoreError: true
|
|
136
136
|
actionType: setValue
|
|
137
137
|
componentId: 'u:29e33c43dd93'
|
|
138
138
|
args:
|
|
139
139
|
value: '${event.data.responseResult.sra_assistance}'
|
|
140
|
-
- ignoreError:
|
|
140
|
+
- ignoreError: true
|
|
141
141
|
actionType: setValue
|
|
142
142
|
componentId: 'u:5c7bb14490b3f'
|
|
143
143
|
args:
|
|
144
144
|
value: '${event.data.responseResult.ca_reviewer}'
|
|
145
|
-
- ignoreError:
|
|
145
|
+
- ignoreError: true
|
|
146
146
|
actionType: setValue
|
|
147
147
|
componentId: 'u:a5b3744b6a35'
|
|
148
148
|
args:
|
|
149
149
|
value: '${event.data.responseResult.ca_assistance}'
|
|
150
|
-
- ignoreError:
|
|
150
|
+
- ignoreError: true
|
|
151
151
|
actionType: setValue
|
|
152
152
|
componentId: 'u:can_pass_users'
|
|
153
153
|
args:
|
|
@@ -10,7 +10,7 @@ amis:
|
|
|
10
10
|
weight: 0
|
|
11
11
|
actions:
|
|
12
12
|
- componentId: 'u:937b21b9daq1'
|
|
13
|
-
ignoreError:
|
|
13
|
+
ignoreError: true
|
|
14
14
|
actionType: setValue
|
|
15
15
|
args:
|
|
16
16
|
value: |-
|
|
@@ -84,7 +84,7 @@ amis:
|
|
|
84
84
|
return {approve_role: ''}
|
|
85
85
|
}
|
|
86
86
|
messages: {}
|
|
87
|
-
- ignoreError:
|
|
87
|
+
- ignoreError: true
|
|
88
88
|
actionType: setValue
|
|
89
89
|
componentId: 'u:e524cfef769289'
|
|
90
90
|
args:
|
|
@@ -93,7 +93,7 @@ amis:
|
|
|
93
93
|
weight: 0
|
|
94
94
|
actions:
|
|
95
95
|
- componentId: 'u:937b21b9daq1'
|
|
96
|
-
ignoreError:
|
|
96
|
+
ignoreError: true
|
|
97
97
|
actionType: setValue
|
|
98
98
|
args:
|
|
99
99
|
value: |-
|
|
@@ -167,7 +167,7 @@ amis:
|
|
|
167
167
|
return {approve_role: ''}
|
|
168
168
|
}
|
|
169
169
|
messages: {}
|
|
170
|
-
- ignoreError:
|
|
170
|
+
- ignoreError: true
|
|
171
171
|
actionType: setValue
|
|
172
172
|
componentId: 'u:e524cfef769289'
|
|
173
173
|
args:
|
|
@@ -3,6 +3,7 @@ amis:
|
|
|
3
3
|
id: 'u:937b21b9daq1'
|
|
4
4
|
type: tree-select
|
|
5
5
|
multiple: false
|
|
6
|
+
joinValues: true
|
|
6
7
|
enableNodePath: false
|
|
7
8
|
hideRoot: true
|
|
8
9
|
showIcon: true
|
|
@@ -77,7 +78,7 @@ amis:
|
|
|
77
78
|
return {approve_role: ''}
|
|
78
79
|
}
|
|
79
80
|
messages: {}
|
|
80
|
-
- ignoreError:
|
|
81
|
+
- ignoreError: true
|
|
81
82
|
actionType: setValue
|
|
82
83
|
componentId: 'u:e524cfef769289'
|
|
83
84
|
args:
|
|
@@ -75,57 +75,57 @@ amis:
|
|
|
75
75
|
adaptor: |
|
|
76
76
|
return payload.data.items.length > 0 ? payload.data.items[0] : {}
|
|
77
77
|
messages: {}
|
|
78
|
-
- ignoreError:
|
|
78
|
+
- ignoreError: true
|
|
79
79
|
actionType: setValue
|
|
80
80
|
componentId: 'u:d14645d114e7'
|
|
81
81
|
args:
|
|
82
82
|
value: '${event.data.responseResult.reviewer}'
|
|
83
|
-
- ignoreError:
|
|
83
|
+
- ignoreError: true
|
|
84
84
|
actionType: setValue
|
|
85
85
|
componentId: 'u:c09f111960dd'
|
|
86
86
|
args:
|
|
87
87
|
value: '${event.data.responseResult.assistance}'
|
|
88
|
-
- ignoreError:
|
|
88
|
+
- ignoreError: true
|
|
89
89
|
actionType: setValue
|
|
90
90
|
componentId: 'u:e0e11371cb19'
|
|
91
91
|
args:
|
|
92
92
|
value: '${event.data.responseResult.ns_reviewer}'
|
|
93
|
-
- ignoreError:
|
|
93
|
+
- ignoreError: true
|
|
94
94
|
actionType: setValue
|
|
95
95
|
componentId: 'u:f011bda192a8'
|
|
96
96
|
args:
|
|
97
97
|
value: '${event.data.responseResult.ns_assistance}'
|
|
98
|
-
- ignoreError:
|
|
98
|
+
- ignoreError: true
|
|
99
99
|
actionType: setValue
|
|
100
100
|
componentId: 'u:017c2205a8cc'
|
|
101
101
|
args:
|
|
102
102
|
value: '${event.data.responseResult.legal_reviewer}'
|
|
103
|
-
- ignoreError:
|
|
103
|
+
- ignoreError: true
|
|
104
104
|
actionType: setValue
|
|
105
105
|
componentId: 'u:7229905df43c'
|
|
106
106
|
args:
|
|
107
107
|
value: '${event.data.responseResult.legal_assistance}'
|
|
108
|
-
- ignoreError:
|
|
108
|
+
- ignoreError: true
|
|
109
109
|
actionType: setValue
|
|
110
110
|
componentId: 'u:249e3e33a089'
|
|
111
111
|
args:
|
|
112
112
|
value: '${event.data.responseResult.sra_reviewer}'
|
|
113
|
-
- ignoreError:
|
|
113
|
+
- ignoreError: true
|
|
114
114
|
actionType: setValue
|
|
115
115
|
componentId: 'u:29e33c43dd93'
|
|
116
116
|
args:
|
|
117
117
|
value: '${event.data.responseResult.sra_assistance}'
|
|
118
|
-
- ignoreError:
|
|
118
|
+
- ignoreError: true
|
|
119
119
|
actionType: setValue
|
|
120
120
|
componentId: 'u:5c7bb14490b3f'
|
|
121
121
|
args:
|
|
122
122
|
value: '${event.data.responseResult.ca_reviewer}'
|
|
123
|
-
- ignoreError:
|
|
123
|
+
- ignoreError: true
|
|
124
124
|
actionType: setValue
|
|
125
125
|
componentId: 'u:a5b3744b6a35'
|
|
126
126
|
args:
|
|
127
127
|
value: '${event.data.responseResult.ca_assistance}'
|
|
128
|
-
- ignoreError:
|
|
128
|
+
- ignoreError: true
|
|
129
129
|
actionType: setValue
|
|
130
130
|
componentId: 'u:can_pass_users'
|
|
131
131
|
args:
|
|
@@ -60,7 +60,7 @@ amis:
|
|
|
60
60
|
weight: 0
|
|
61
61
|
actions:
|
|
62
62
|
- componentId: 'u:937b21b9daq1'
|
|
63
|
-
ignoreError:
|
|
63
|
+
ignoreError: true
|
|
64
64
|
actionType: setValue
|
|
65
65
|
args:
|
|
66
66
|
value: |-
|
|
@@ -134,7 +134,7 @@ amis:
|
|
|
134
134
|
return {approve_role: ''}
|
|
135
135
|
}
|
|
136
136
|
messages: {}
|
|
137
|
-
- ignoreError:
|
|
137
|
+
- ignoreError: true
|
|
138
138
|
actionType: setValue
|
|
139
139
|
componentId: 'u:e524cfef769289'
|
|
140
140
|
args:
|