@steedos-labs/content-compliance 0.0.17 → 0.0.18

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.
@@ -10,13 +10,13 @@ options:
10
10
  color: '#808080'
11
11
  - label: 驳回
12
12
  value: rejected
13
- color: '#274e8f'
13
+ color: '#3a7aaa'
14
14
  - label: 处理中
15
15
  value: progess
16
16
  color: '#808080'
17
17
  - label: 终止审核
18
18
  value: terminate
19
- color: '#274e8f'
19
+ color: '#3a7aaa'
20
20
  - label: 提交
21
21
  value: submit
22
22
  color: '#808080'
@@ -7,11 +7,11 @@ is_wide: false
7
7
  label: 固定人员审核通过素材数
8
8
  precision: 18
9
9
  scale: 0
10
- sort_no: 2100
10
+ sort_no: 2150
11
11
  summary_filters:
12
12
  - field: approval_status
13
13
  operation: '='
14
- value: 'true'
14
+ value: true
15
15
  summary_object: pepsico_material
16
16
  summary_type: count
17
17
  type: summary
@@ -11,7 +11,7 @@ sort_no: 2500
11
11
  summary_filters:
12
12
  - field: ca_approval_status
13
13
  operation: '='
14
- value: 'true'
14
+ value: true
15
15
  summary_object: pepsico_material
16
16
  summary_type: count
17
17
  type: summary
@@ -10,27 +10,27 @@ label: 当前步骤
10
10
  options:
11
11
  - label: 开始
12
12
  value: draft
13
- color: '#274e8f'
13
+ color: '#3a7aaa'
14
14
  - label: AI审核
15
15
  value: ai_review
16
- color: '#274e8f'
16
+ color: '#3a7aaa'
17
17
  - label: 部门复审
18
18
  value: departmental_review
19
- color: '#274e8f'
19
+ color: '#3a7aaa'
20
20
  - label: 固定人员审核
21
21
  value: personnel_review
22
- color: '#274e8f'
22
+ color: '#3a7aaa'
23
23
  - label: 提交人修改
24
24
  value: submitter_revisions
25
- color: '#274e8f'
25
+ color: '#3a7aaa'
26
26
  - label: 等待上线
27
27
  value: awaiting_deployment
28
- color: '#274e8f'
28
+ color: '#3a7aaa'
29
29
  - label: 结束
30
30
  value: conclusion
31
- color: '#274e8f'
31
+ color: '#3a7aaa'
32
32
  readonly: true
33
33
  required: false
34
- sort_no: 2000
34
+ sort_no: 2050
35
35
  type: select
36
36
  visible_on: '{}'
@@ -11,7 +11,7 @@ sort_no: 2300
11
11
  summary_filters:
12
12
  - field: legal_approval_status
13
13
  operation: '='
14
- value: 'true'
14
+ value: true
15
15
  summary_object: pepsico_material
16
16
  summary_type: count
17
17
  type: summary
@@ -11,7 +11,7 @@ sort_no: 2200
11
11
  summary_filters:
12
12
  - field: ns_approval_status
13
13
  operation: '='
14
- value: 'true'
14
+ value: true
15
15
  summary_object: pepsico_material
16
16
  summary_type: count
17
17
  type: summary
@@ -16,13 +16,13 @@ options:
16
16
  color: '#808080'
17
17
  - label: 驳回
18
18
  value: rejected
19
- color: '#274e8f'
19
+ color: '#3a7aaa'
20
20
  - label: 核准
21
21
  value: approved
22
22
  color: '#808080'
23
23
  - label: 终止
24
24
  value: terminated
25
- color: '#274e8f'
25
+ color: '#3a7aaa'
26
26
  readonly: true
27
27
  required: false
28
28
  sort_no: 2050
@@ -11,7 +11,7 @@ sort_no: 2400
11
11
  summary_filters:
12
12
  - field: sra_approval_status
13
13
  operation: '='
14
- value: 'true'
14
+ value: true
15
15
  summary_object: pepsico_material
16
16
  summary_type: count
17
17
  type: summary
@@ -12,54 +12,60 @@
12
12
  {
13
13
  "type": "container",
14
14
  "body": [
15
- {
16
- "type": "tpl",
17
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-pink-600 text-base font-medium text-white\">NS</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ns_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
18
- "inline": true,
19
- "wrapperComponent": "",
20
- "id": "u:65eac8efca60",
21
- "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}"
22
- },
23
- {
24
- "type": "tpl",
25
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-purple-600 text-base font-medium text-white\">Legal</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.legal_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
26
- "inline": true,
27
- "wrapperComponent": "",
28
- "id": "u:1b743b2be88d",
29
- "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}"
30
- },
31
- {
32
- "type": "tpl",
33
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-blue-600 text-base font-medium text-white\">SRA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-blue-900 hover:text-gray-600\">${_display.sra_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
34
- "inline": true,
35
- "wrapperComponent": "",
36
- "id": "u:912d54a43263",
37
- "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}"
38
- },
39
- {
40
- "type": "tpl",
41
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-yellow-600 text-base font-medium text-white\">CA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ca_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
42
- "inline": true,
43
- "wrapperComponent": "",
44
- "id": "u:3dd4613d67ae",
45
- "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}"
46
- },
47
- {
48
- "type": "tpl",
49
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-indigo-600 text-base font-medium text-white\">固定</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
50
- "inline": true,
51
- "wrapperComponent": "",
52
- "id": "u:ec5fe1e3ac08",
53
- "visibleOn": "${approval_type === 'personnel_review' && review_status != 'draft'}"
54
- },
55
- {
56
- "type": "tpl",
57
- "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-green-600 text-base font-medium text-white\">Kids</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.kids_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, '')}</p>\n </div>\n </div>\n</li>",
58
- "inline": true,
59
- "wrapperComponent": "",
60
- "id": "u:41fda075cc8b",
61
- "visibleOn": "${child_files === 'yes' && review_status != 'draft'}"
62
- }
15
+ {
16
+ "type": "tpl",
17
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">NS</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ns_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ns_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
18
+ "inline": true,
19
+ "wrapperComponent": "",
20
+ "id": "u:65eac8efca60",
21
+ "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
22
+ "editorState": "default"
23
+ },
24
+ {
25
+ "type": "tpl",
26
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">Legal</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.legal_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(legal_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
27
+ "inline": true,
28
+ "wrapperComponent": "",
29
+ "id": "u:1b743b2be88d",
30
+ "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
31
+ "editorState": "default"
32
+ },
33
+ {
34
+ "type": "tpl",
35
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">SRA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-blue-900 hover:text-gray-600\">${_display.sra_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(sra_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
36
+ "inline": true,
37
+ "wrapperComponent": "",
38
+ "id": "u:912d54a43263",
39
+ "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
40
+ "editorState": "default"
41
+ },
42
+ {
43
+ "type": "tpl",
44
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">CA</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.ca_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(ca_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
45
+ "inline": true,
46
+ "wrapperComponent": "",
47
+ "id": "u:3dd4613d67ae",
48
+ "visibleOn": "${approval_type === 'departmental_review' && review_status != 'draft'}",
49
+ "editorState": "default"
50
+ },
51
+ {
52
+ "type": "tpl",
53
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">固定</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, ' ')}</p>\n </div>\n </div>\n</li>",
54
+ "inline": true,
55
+ "wrapperComponent": "",
56
+ "id": "u:ec5fe1e3ac08",
57
+ "visibleOn": "${approval_type === 'personnel_review' && review_status != 'draft'}",
58
+ "editorState": "default"
59
+ },
60
+ {
61
+ "type": "tpl",
62
+ "tpl": "<li class=\"col-span-1 flex rounded-md shadow-sm\">\n <div class=\"flex w-16 shrink-0 items-center justify-center rounded-l-md bg-black text-base font-medium text-white\">Kids</div>\n <div class=\"flex flex-1 items-center justify-between truncate rounded-r-md border-b border-r border-t border-gray-200 bg-white\">\n <div class=\"flex-1 truncate px-4 py-2 text-sm\">\n <a href=\"#\" class=\"font-medium text-gray-900 hover:text-gray-600\">${_display.kids_reviewer|pick:label}</a>\n <p class=\"text-gray-500 m-0 h-5\">${IFS(kids_approval_status === true, '<i class=\"fa-solid fa-check\"></i>', ns_approval_status === false, '<i class=\"fa-solid fa-xmark\"></i>', !ns_approval_status, '')}</p>\n </div>\n </div>\n</li>",
63
+ "inline": true,
64
+ "wrapperComponent": "",
65
+ "id": "u:41fda075cc8b",
66
+ "visibleOn": "${child_files === 'yes' && review_status != 'draft'}",
67
+ "editorState": "default"
68
+ }
63
69
  ],
64
70
  "size": "none",
65
71
  "wrapperBody": false,
@@ -116,21 +122,6 @@
116
122
  }
117
123
  ],
118
124
  "id": "u:1d23240a23f8"
119
- },
120
- {
121
- "title": "审计日志",
122
- "reload": true,
123
- "body": [
124
- {
125
- "type": "steedos-object-related-listview",
126
- "label": "相关表",
127
- "objectApiName": "${objectName}",
128
- "recordId": "${recordId}",
129
- "id": "u:aa4c193c215e",
130
- "relatedObjectApiName": "audit_records"
131
- }
132
- ],
133
- "id": "u:e53cafbcea1a"
134
125
  }
135
126
  ],
136
127
  "id": "u:96792c78f723",
@@ -204,13 +204,9 @@
204
204
  {
205
205
  "type": "image",
206
206
  "id": "u:562456f79aca",
207
- "enlargeAble": true,
208
- "editorState": "default",
209
207
  "imageMode": "original",
210
208
  "src": "${_display.material.url}",
211
209
  "visibleOn": "${extension_type === 'jpg' || extension_type === 'jpeg' || extension_type === 'png' || extension_type === 'gif' || extension_type === 'bmp' || extension_type === 'tiff' || extension_type === 'tif' || extension_type === 'svg' || extension_type === 'webp' || extension_type === 'ico' || extension_type === 'heif' || extension_type === 'heic'}",
212
- "maxScale": 200,
213
- "minScale": 50,
214
210
  "style": {
215
211
  "display": "inline-block"
216
212
  }
@@ -225,21 +221,13 @@
225
221
  "aspectRatio": "auto"
226
222
  },
227
223
  {
228
- "type": "iframe",
229
- "id": "pdf-viewer",
230
- "src": "${context.rootUrl}/api/page/public/pdf_view?fileUrl=/api/files/files/${_display.material.value}",
231
- "visibleOn": "${extension_type === 'pdf'}"
232
- }
233
- ],
234
- "body": [
235
- {
236
- "type": "rooms-comments",
237
- "id": "u:bb3f4d0c23f9",
238
- "roomId": "objects:pepsico_material:${recordId}",
239
- "className": "flex flex-col m-3 gap-3",
240
- "baseUrl": "${context.rootUrl}"
224
+ "type": "iframe",
225
+ "id": "pdf-viewer",
226
+ "src": "${context.rootUrl}/api/page/public/pdf_view?fileUrl=/api/files/files/${_display.material.value}",
227
+ "visibleOn": "${extension_type === 'pdf'}"
241
228
  }
242
229
  ],
230
+ "body": [],
243
231
  "pullRefresh": {
244
232
  "disabled": true
245
233
  },
@@ -272,6 +260,13 @@
272
260
  }
273
261
  ],
274
262
  "id": "u:2bda634e52ac"
263
+ },
264
+ {
265
+ "type": "rooms-comments",
266
+ "id": "u:bb3f4d0c23f9",
267
+ "roomId": "objects:pepsico_material:${recordId}",
268
+ "className": "flex flex-col m-3 gap-3",
269
+ "baseUrl": "${context.rootUrl}"
275
270
  }
276
271
  ],
277
272
  "regions": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/content-compliance",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "内容审核系统",
5
5
  "main": "package.service.js",
6
6
  "scripts": {
@@ -8,6 +8,9 @@
8
8
  "build:watch": "webpack --config webpack.config.js --watch"
9
9
  },
10
10
  "dependencies": {
11
+ "@azure/identity": "^2.1.0",
12
+ "@microsoft/microsoft-graph-client": "^3.0.7",
13
+ "isomorphic-fetch": "^3.0.0",
11
14
  "amis-formula": "~6.3.0",
12
15
  "mime-types": "2.1.35"
13
16
  },