@vicacha-devs/strapi-plugin-certificates 0.0.0-stage → 1.1.0
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/LICENSE.md +21 -0
- package/README.md +17 -2
- package/dist/admin/CertificatesPage-CFDIEBN_.js +783 -0
- package/dist/admin/CertificatesPage-DeGmoX7h.cjs +783 -0
- package/dist/admin/SettingsPage-CsWFO1XB.js +447 -0
- package/dist/admin/SettingsPage-D7Ob1gV0.cjs +447 -0
- package/dist/admin/ar-Bv3T0_7C.cjs +258 -0
- package/dist/admin/ar-CDFHNnFd.js +258 -0
- package/dist/admin/de-BjMxn-Lt.js +258 -0
- package/dist/admin/de-DB5eW-yI.cjs +258 -0
- package/dist/admin/en-BI5Z3lPW.js +258 -0
- package/dist/admin/en-CsYV0VDf.cjs +258 -0
- package/dist/admin/es-B7uy9a-2.js +258 -0
- package/dist/admin/es-DEp3j3kD.cjs +258 -0
- package/dist/admin/fr-D7y038Pm.cjs +258 -0
- package/dist/admin/fr-DxbtdEIA.js +258 -0
- package/dist/admin/id-DfW4ARVm.js +258 -0
- package/dist/admin/id-Wuw9jl-Y.cjs +258 -0
- package/dist/admin/index-BQdS3gc3.cjs +707 -0
- package/dist/admin/index-BYO34da4.js +708 -0
- package/dist/admin/index.cjs +5 -0
- package/dist/admin/index.js +5 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/pt-C0QaikKS.js +258 -0
- package/dist/admin/pt-Dj2oc3Ga.cjs +258 -0
- package/dist/admin/src/components/IssueCertificateModal.d.ts +9 -0
- package/dist/admin/src/components/SettingsTabHelpers.d.ts +13 -0
- package/dist/admin/src/index.d.ts +11 -0
- package/dist/admin/src/pages/CertificatesPage.d.ts +3 -0
- package/dist/admin/src/pages/SettingsPage.d.ts +3 -0
- package/dist/admin/src/translations/cmLabels.d.ts +1 -0
- package/dist/admin/src/translations/cmPlaceholders.d.ts +1 -0
- package/dist/admin/tr-BbeagXRY.js +258 -0
- package/dist/admin/tr-DlGl_XMF.cjs +258 -0
- package/dist/admin/ur-Bwn4TrjF.js +258 -0
- package/dist/admin/ur-qIlUtgqb.cjs +258 -0
- package/dist/admin/zh-Cmg5mEvP.js +258 -0
- package/dist/admin/zh-D-3QDsuQ.cjs +258 -0
- package/dist/package.json +3 -0
- package/dist/server/index.cjs +2282 -0
- package/dist/server/index.js +2282 -0
- package/dist/server/index.mjs +2282 -0
- package/dist/server/src/bootstrap.d.ts +5 -0
- package/dist/server/src/content-types/certificate/schema.json.d.ts +165 -0
- package/dist/server/src/content-types/index.d.ts +277 -0
- package/dist/server/src/content-types/template/schema.json.d.ts +118 -0
- package/dist/server/src/controllers/admin.d.ts +31 -0
- package/dist/server/src/controllers/content-api.d.ts +28 -0
- package/dist/server/src/controllers/index.d.ts +30 -0
- package/dist/server/src/index.d.ts +413 -0
- package/dist/server/src/register.d.ts +5 -0
- package/dist/server/src/routes/admin.d.ts +12 -0
- package/dist/server/src/routes/content-api.d.ts +12 -0
- package/dist/server/src/routes/index.d.ts +25 -0
- package/dist/server/src/services/docusign.d.ts +76 -0
- package/dist/server/src/services/index.d.ts +76 -0
- package/dist/server/src/services/issuance.d.ts +54 -0
- package/dist/server/src/services/issuanceHelpers.d.ts +47 -0
- package/dist/server/src/services/settings.d.ts +17 -0
- package/dist/server/src/services/urlHelpers.d.ts +2 -0
- package/dist/shared/calendarSystems.d.ts +3 -0
- package/dist/shared/cryptoEngine.d.ts +27 -0
- package/dist/shared/documentRenderer.d.ts +12 -0
- package/dist/shared/index.cjs +636 -0
- package/dist/shared/index.d.ts +5 -0
- package/dist/shared/index.js +613 -0
- package/dist/shared/index.mjs +613 -0
- package/dist/shared/pluginId.d.ts +2 -0
- package/dist/shared/types.d.ts +194 -0
- package/package.json +112 -3
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"kind": "collectionType",
|
|
3
|
+
"collectionName": "certificates_records",
|
|
4
|
+
"info": {
|
|
5
|
+
"singularName": "certificate",
|
|
6
|
+
"pluralName": "certificates",
|
|
7
|
+
"displayName": "Issued Certificate",
|
|
8
|
+
"description": "Cryptographically signed official certificate record with signatory and witness attestation"
|
|
9
|
+
},
|
|
10
|
+
"options": {
|
|
11
|
+
"draftAndPublish": false
|
|
12
|
+
},
|
|
13
|
+
"pluginOptions": {
|
|
14
|
+
"content-manager": {
|
|
15
|
+
"visible": true
|
|
16
|
+
},
|
|
17
|
+
"content-type-builder": {
|
|
18
|
+
"visible": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"attributes": {
|
|
22
|
+
"serialNumber": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"required": true,
|
|
25
|
+
"unique": true,
|
|
26
|
+
"maxLength": 64
|
|
27
|
+
},
|
|
28
|
+
"templateDocumentId": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": true,
|
|
31
|
+
"maxLength": 120
|
|
32
|
+
},
|
|
33
|
+
"templateSlug": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": true,
|
|
36
|
+
"maxLength": 120
|
|
37
|
+
},
|
|
38
|
+
"templateName": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"required": true,
|
|
41
|
+
"maxLength": 160
|
|
42
|
+
},
|
|
43
|
+
"status": {
|
|
44
|
+
"type": "enumeration",
|
|
45
|
+
"enum": ["pending_approval", "issued", "revoked", "expired"],
|
|
46
|
+
"default": "pending_approval",
|
|
47
|
+
"required": true
|
|
48
|
+
},
|
|
49
|
+
"recipientFullName": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"required": true,
|
|
52
|
+
"maxLength": 200
|
|
53
|
+
},
|
|
54
|
+
"recipientChosenName": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"maxLength": 200
|
|
57
|
+
},
|
|
58
|
+
"recipientEmail": {
|
|
59
|
+
"type": "email"
|
|
60
|
+
},
|
|
61
|
+
"recipientPhone": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"maxLength": 64
|
|
64
|
+
},
|
|
65
|
+
"recipientNationality": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"maxLength": 120
|
|
68
|
+
},
|
|
69
|
+
"nationalIdMasked": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"maxLength": 32
|
|
72
|
+
},
|
|
73
|
+
"nationalIdHash": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"private": true,
|
|
76
|
+
"maxLength": 128
|
|
77
|
+
},
|
|
78
|
+
"issuedAt": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"required": true,
|
|
81
|
+
"maxLength": 40
|
|
82
|
+
},
|
|
83
|
+
"expiresAt": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"maxLength": 40
|
|
86
|
+
},
|
|
87
|
+
"revokedAt": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"maxLength": 40
|
|
90
|
+
},
|
|
91
|
+
"revocationReason": {
|
|
92
|
+
"type": "text"
|
|
93
|
+
},
|
|
94
|
+
"signatories": {
|
|
95
|
+
"type": "json",
|
|
96
|
+
"default": []
|
|
97
|
+
},
|
|
98
|
+
"witnesses": {
|
|
99
|
+
"type": "json",
|
|
100
|
+
"default": []
|
|
101
|
+
},
|
|
102
|
+
"customData": {
|
|
103
|
+
"type": "json",
|
|
104
|
+
"default": {}
|
|
105
|
+
},
|
|
106
|
+
"secondaryDates": {
|
|
107
|
+
"type": "json",
|
|
108
|
+
"default": {}
|
|
109
|
+
},
|
|
110
|
+
"canonicalPayloadHash": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"required": true,
|
|
113
|
+
"maxLength": 128
|
|
114
|
+
},
|
|
115
|
+
"cryptographicSignature": {
|
|
116
|
+
"type": "text",
|
|
117
|
+
"required": true
|
|
118
|
+
},
|
|
119
|
+
"publicKeyFingerprint": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"required": true,
|
|
122
|
+
"maxLength": 96
|
|
123
|
+
},
|
|
124
|
+
"verificationToken": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"private": true,
|
|
127
|
+
"maxLength": 128
|
|
128
|
+
},
|
|
129
|
+
"esignProvider": {
|
|
130
|
+
"type": "enumeration",
|
|
131
|
+
"enum": ["none", "docusign", "webhook"],
|
|
132
|
+
"default": "none"
|
|
133
|
+
},
|
|
134
|
+
"esignEnvelopeId": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"maxLength": 128
|
|
137
|
+
},
|
|
138
|
+
"esignEnvelopeStatus": {
|
|
139
|
+
"type": "enumeration",
|
|
140
|
+
"enum": [
|
|
141
|
+
"not_sent",
|
|
142
|
+
"sent",
|
|
143
|
+
"delivered",
|
|
144
|
+
"completed",
|
|
145
|
+
"declined",
|
|
146
|
+
"voided"
|
|
147
|
+
],
|
|
148
|
+
"default": "not_sent"
|
|
149
|
+
},
|
|
150
|
+
"esignCompletedAt": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"maxLength": 40
|
|
153
|
+
},
|
|
154
|
+
"linkedBookingCode": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"maxLength": 64
|
|
157
|
+
},
|
|
158
|
+
"notes": {
|
|
159
|
+
"type": "text"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
;
|
|
164
|
+
|
|
165
|
+
export default _default;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
template: {
|
|
3
|
+
schema: {
|
|
4
|
+
kind: string;
|
|
5
|
+
collectionName: string;
|
|
6
|
+
info: {
|
|
7
|
+
singularName: string;
|
|
8
|
+
pluralName: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
draftAndPublish: boolean;
|
|
14
|
+
};
|
|
15
|
+
pluginOptions: {
|
|
16
|
+
"content-manager": {
|
|
17
|
+
visible: boolean;
|
|
18
|
+
};
|
|
19
|
+
"content-type-builder": {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
attributes: {
|
|
24
|
+
name: {
|
|
25
|
+
type: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
maxLength: number;
|
|
28
|
+
};
|
|
29
|
+
slug: {
|
|
30
|
+
type: string;
|
|
31
|
+
targetField: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
serialPrefix: {
|
|
38
|
+
type: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
default: string;
|
|
41
|
+
maxLength: number;
|
|
42
|
+
};
|
|
43
|
+
defaultValidityDays: {
|
|
44
|
+
type: string;
|
|
45
|
+
min: number;
|
|
46
|
+
};
|
|
47
|
+
requiresWitnesses: {
|
|
48
|
+
type: string;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
minWitnesses: {
|
|
52
|
+
type: string;
|
|
53
|
+
default: number;
|
|
54
|
+
min: number;
|
|
55
|
+
max: number;
|
|
56
|
+
};
|
|
57
|
+
requiresApproval: {
|
|
58
|
+
type: string;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
esignEnabled: {
|
|
62
|
+
type: string;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
esignProvider: {
|
|
66
|
+
type: string;
|
|
67
|
+
enum: string[];
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
organizationName: {
|
|
71
|
+
type: string;
|
|
72
|
+
required: boolean;
|
|
73
|
+
maxLength: number;
|
|
74
|
+
};
|
|
75
|
+
organizationSubheader: {
|
|
76
|
+
type: string;
|
|
77
|
+
maxLength: number;
|
|
78
|
+
};
|
|
79
|
+
headerText: {
|
|
80
|
+
type: string;
|
|
81
|
+
maxLength: number;
|
|
82
|
+
};
|
|
83
|
+
titleText: {
|
|
84
|
+
type: string;
|
|
85
|
+
required: boolean;
|
|
86
|
+
maxLength: number;
|
|
87
|
+
};
|
|
88
|
+
bodyTemplate: {
|
|
89
|
+
type: string;
|
|
90
|
+
required: boolean;
|
|
91
|
+
};
|
|
92
|
+
footerText: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
defaultSignatories: {
|
|
96
|
+
type: string;
|
|
97
|
+
default: never[];
|
|
98
|
+
};
|
|
99
|
+
customFieldsSchema: {
|
|
100
|
+
type: string;
|
|
101
|
+
default: never[];
|
|
102
|
+
};
|
|
103
|
+
secondaryCalendars: {
|
|
104
|
+
type: string;
|
|
105
|
+
default: never[];
|
|
106
|
+
};
|
|
107
|
+
accentColor: {
|
|
108
|
+
type: string;
|
|
109
|
+
default: string;
|
|
110
|
+
maxLength: number;
|
|
111
|
+
};
|
|
112
|
+
active: {
|
|
113
|
+
type: string;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
certificate: {
|
|
120
|
+
schema: {
|
|
121
|
+
kind: string;
|
|
122
|
+
collectionName: string;
|
|
123
|
+
info: {
|
|
124
|
+
singularName: string;
|
|
125
|
+
pluralName: string;
|
|
126
|
+
displayName: string;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
options: {
|
|
130
|
+
draftAndPublish: boolean;
|
|
131
|
+
};
|
|
132
|
+
pluginOptions: {
|
|
133
|
+
"content-manager": {
|
|
134
|
+
visible: boolean;
|
|
135
|
+
};
|
|
136
|
+
"content-type-builder": {
|
|
137
|
+
visible: boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
attributes: {
|
|
141
|
+
serialNumber: {
|
|
142
|
+
type: string;
|
|
143
|
+
required: boolean;
|
|
144
|
+
unique: boolean;
|
|
145
|
+
maxLength: number;
|
|
146
|
+
};
|
|
147
|
+
templateDocumentId: {
|
|
148
|
+
type: string;
|
|
149
|
+
required: boolean;
|
|
150
|
+
maxLength: number;
|
|
151
|
+
};
|
|
152
|
+
templateSlug: {
|
|
153
|
+
type: string;
|
|
154
|
+
required: boolean;
|
|
155
|
+
maxLength: number;
|
|
156
|
+
};
|
|
157
|
+
templateName: {
|
|
158
|
+
type: string;
|
|
159
|
+
required: boolean;
|
|
160
|
+
maxLength: number;
|
|
161
|
+
};
|
|
162
|
+
status: {
|
|
163
|
+
type: string;
|
|
164
|
+
enum: string[];
|
|
165
|
+
default: string;
|
|
166
|
+
required: boolean;
|
|
167
|
+
};
|
|
168
|
+
recipientFullName: {
|
|
169
|
+
type: string;
|
|
170
|
+
required: boolean;
|
|
171
|
+
maxLength: number;
|
|
172
|
+
};
|
|
173
|
+
recipientChosenName: {
|
|
174
|
+
type: string;
|
|
175
|
+
maxLength: number;
|
|
176
|
+
};
|
|
177
|
+
recipientEmail: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
recipientPhone: {
|
|
181
|
+
type: string;
|
|
182
|
+
maxLength: number;
|
|
183
|
+
};
|
|
184
|
+
recipientNationality: {
|
|
185
|
+
type: string;
|
|
186
|
+
maxLength: number;
|
|
187
|
+
};
|
|
188
|
+
nationalIdMasked: {
|
|
189
|
+
type: string;
|
|
190
|
+
maxLength: number;
|
|
191
|
+
};
|
|
192
|
+
nationalIdHash: {
|
|
193
|
+
type: string;
|
|
194
|
+
private: boolean;
|
|
195
|
+
maxLength: number;
|
|
196
|
+
};
|
|
197
|
+
issuedAt: {
|
|
198
|
+
type: string;
|
|
199
|
+
required: boolean;
|
|
200
|
+
maxLength: number;
|
|
201
|
+
};
|
|
202
|
+
expiresAt: {
|
|
203
|
+
type: string;
|
|
204
|
+
maxLength: number;
|
|
205
|
+
};
|
|
206
|
+
revokedAt: {
|
|
207
|
+
type: string;
|
|
208
|
+
maxLength: number;
|
|
209
|
+
};
|
|
210
|
+
revocationReason: {
|
|
211
|
+
type: string;
|
|
212
|
+
};
|
|
213
|
+
signatories: {
|
|
214
|
+
type: string;
|
|
215
|
+
default: never[];
|
|
216
|
+
};
|
|
217
|
+
witnesses: {
|
|
218
|
+
type: string;
|
|
219
|
+
default: never[];
|
|
220
|
+
};
|
|
221
|
+
customData: {
|
|
222
|
+
type: string;
|
|
223
|
+
default: {};
|
|
224
|
+
};
|
|
225
|
+
secondaryDates: {
|
|
226
|
+
type: string;
|
|
227
|
+
default: {};
|
|
228
|
+
};
|
|
229
|
+
canonicalPayloadHash: {
|
|
230
|
+
type: string;
|
|
231
|
+
required: boolean;
|
|
232
|
+
maxLength: number;
|
|
233
|
+
};
|
|
234
|
+
cryptographicSignature: {
|
|
235
|
+
type: string;
|
|
236
|
+
required: boolean;
|
|
237
|
+
};
|
|
238
|
+
publicKeyFingerprint: {
|
|
239
|
+
type: string;
|
|
240
|
+
required: boolean;
|
|
241
|
+
maxLength: number;
|
|
242
|
+
};
|
|
243
|
+
verificationToken: {
|
|
244
|
+
type: string;
|
|
245
|
+
private: boolean;
|
|
246
|
+
maxLength: number;
|
|
247
|
+
};
|
|
248
|
+
esignProvider: {
|
|
249
|
+
type: string;
|
|
250
|
+
enum: string[];
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
esignEnvelopeId: {
|
|
254
|
+
type: string;
|
|
255
|
+
maxLength: number;
|
|
256
|
+
};
|
|
257
|
+
esignEnvelopeStatus: {
|
|
258
|
+
type: string;
|
|
259
|
+
enum: string[];
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
esignCompletedAt: {
|
|
263
|
+
type: string;
|
|
264
|
+
maxLength: number;
|
|
265
|
+
};
|
|
266
|
+
linkedBookingCode: {
|
|
267
|
+
type: string;
|
|
268
|
+
maxLength: number;
|
|
269
|
+
};
|
|
270
|
+
notes: {
|
|
271
|
+
type: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"kind": "collectionType",
|
|
3
|
+
"collectionName": "certificates_templates",
|
|
4
|
+
"info": {
|
|
5
|
+
"singularName": "template",
|
|
6
|
+
"pluralName": "templates",
|
|
7
|
+
"displayName": "Certificate Template",
|
|
8
|
+
"description": "Reusable official certificate template with signatory rules, witness requirements, and body statement"
|
|
9
|
+
},
|
|
10
|
+
"options": {
|
|
11
|
+
"draftAndPublish": false
|
|
12
|
+
},
|
|
13
|
+
"pluginOptions": {
|
|
14
|
+
"content-manager": {
|
|
15
|
+
"visible": true
|
|
16
|
+
},
|
|
17
|
+
"content-type-builder": {
|
|
18
|
+
"visible": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"attributes": {
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"required": true,
|
|
25
|
+
"maxLength": 160
|
|
26
|
+
},
|
|
27
|
+
"slug": {
|
|
28
|
+
"type": "uid",
|
|
29
|
+
"targetField": "name",
|
|
30
|
+
"required": true
|
|
31
|
+
},
|
|
32
|
+
"description": {
|
|
33
|
+
"type": "text"
|
|
34
|
+
},
|
|
35
|
+
"serialPrefix": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"required": true,
|
|
38
|
+
"default": "CERT",
|
|
39
|
+
"maxLength": 8
|
|
40
|
+
},
|
|
41
|
+
"defaultValidityDays": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"min": 0
|
|
44
|
+
},
|
|
45
|
+
"requiresWitnesses": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
"minWitnesses": {
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"default": 0,
|
|
52
|
+
"min": 0,
|
|
53
|
+
"max": 10
|
|
54
|
+
},
|
|
55
|
+
"requiresApproval": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": true
|
|
58
|
+
},
|
|
59
|
+
"esignEnabled": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"default": false
|
|
62
|
+
},
|
|
63
|
+
"esignProvider": {
|
|
64
|
+
"type": "enumeration",
|
|
65
|
+
"enum": ["none", "docusign", "webhook"],
|
|
66
|
+
"default": "none"
|
|
67
|
+
},
|
|
68
|
+
"organizationName": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"required": true,
|
|
71
|
+
"maxLength": 200
|
|
72
|
+
},
|
|
73
|
+
"organizationSubheader": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"maxLength": 240
|
|
76
|
+
},
|
|
77
|
+
"headerText": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"maxLength": 240
|
|
80
|
+
},
|
|
81
|
+
"titleText": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"required": true,
|
|
84
|
+
"maxLength": 200
|
|
85
|
+
},
|
|
86
|
+
"bodyTemplate": {
|
|
87
|
+
"type": "text",
|
|
88
|
+
"required": true
|
|
89
|
+
},
|
|
90
|
+
"footerText": {
|
|
91
|
+
"type": "text"
|
|
92
|
+
},
|
|
93
|
+
"defaultSignatories": {
|
|
94
|
+
"type": "json",
|
|
95
|
+
"default": []
|
|
96
|
+
},
|
|
97
|
+
"customFieldsSchema": {
|
|
98
|
+
"type": "json",
|
|
99
|
+
"default": []
|
|
100
|
+
},
|
|
101
|
+
"secondaryCalendars": {
|
|
102
|
+
"type": "json",
|
|
103
|
+
"default": []
|
|
104
|
+
},
|
|
105
|
+
"accentColor": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"default": "#14532d",
|
|
108
|
+
"maxLength": 16
|
|
109
|
+
},
|
|
110
|
+
"active": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": true
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
;
|
|
117
|
+
|
|
118
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Core } from '@strapi/strapi';
|
|
2
|
+
export interface KoaContext {
|
|
3
|
+
query: Record<string, string | undefined>;
|
|
4
|
+
params: Record<string, string | undefined>;
|
|
5
|
+
request: {
|
|
6
|
+
body?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
body: unknown;
|
|
9
|
+
status: number;
|
|
10
|
+
set(header: string, value: string): void;
|
|
11
|
+
badRequest(message: string): void;
|
|
12
|
+
notFound(message: string): void;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: ({ strapi }: {
|
|
15
|
+
strapi: Core.Strapi;
|
|
16
|
+
}) => {
|
|
17
|
+
getSettings(ctx: KoaContext): Promise<void>;
|
|
18
|
+
updateSettings(ctx: KoaContext): Promise<void>;
|
|
19
|
+
rotateKeys(ctx: KoaContext): Promise<void>;
|
|
20
|
+
listTemplates(ctx: KoaContext): Promise<void>;
|
|
21
|
+
createTemplate(ctx: KoaContext): Promise<void>;
|
|
22
|
+
seedTemplates(ctx: KoaContext): Promise<void>;
|
|
23
|
+
listCertificates(ctx: KoaContext): Promise<void>;
|
|
24
|
+
issueCertificate(ctx: KoaContext): Promise<void>;
|
|
25
|
+
sendDocuSignEnvelope(ctx: KoaContext): Promise<void>;
|
|
26
|
+
approveCertificate(ctx: KoaContext): Promise<void>;
|
|
27
|
+
revokeCertificate(ctx: KoaContext): Promise<void>;
|
|
28
|
+
printCertificate(ctx: KoaContext): Promise<void>;
|
|
29
|
+
exportCsv(ctx: KoaContext): Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Core } from '@strapi/strapi';
|
|
2
|
+
export interface KoaContext {
|
|
3
|
+
ip?: string;
|
|
4
|
+
query: Record<string, string | undefined>;
|
|
5
|
+
params: Record<string, string | undefined>;
|
|
6
|
+
headers?: Record<string, string | undefined>;
|
|
7
|
+
request: {
|
|
8
|
+
body?: Record<string, unknown>;
|
|
9
|
+
rawBody?: string;
|
|
10
|
+
};
|
|
11
|
+
body: unknown;
|
|
12
|
+
status: number;
|
|
13
|
+
set(header: string, value: string): void;
|
|
14
|
+
badRequest(message: string): void;
|
|
15
|
+
notFound(message: string): void;
|
|
16
|
+
forbidden(message: string): void;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: ({ strapi }: {
|
|
19
|
+
strapi: Core.Strapi;
|
|
20
|
+
}) => {
|
|
21
|
+
listPublicTemplates(ctx: KoaContext): Promise<void>;
|
|
22
|
+
getPublicKey(ctx: KoaContext): Promise<void>;
|
|
23
|
+
applyCertificate(ctx: KoaContext): Promise<void>;
|
|
24
|
+
verifyBySerial(ctx: KoaContext): Promise<void>;
|
|
25
|
+
downloadPrintableHtml(ctx: KoaContext): Promise<void>;
|
|
26
|
+
docusignWebhook(ctx: KoaContext): Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
admin: ({ strapi }: {
|
|
3
|
+
strapi: import("@strapi/strapi").Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
getSettings(ctx: import('./admin').KoaContext): Promise<void>;
|
|
6
|
+
updateSettings(ctx: import('./admin').KoaContext): Promise<void>;
|
|
7
|
+
rotateKeys(ctx: import('./admin').KoaContext): Promise<void>;
|
|
8
|
+
listTemplates(ctx: import('./admin').KoaContext): Promise<void>;
|
|
9
|
+
createTemplate(ctx: import('./admin').KoaContext): Promise<void>;
|
|
10
|
+
seedTemplates(ctx: import('./admin').KoaContext): Promise<void>;
|
|
11
|
+
listCertificates(ctx: import('./admin').KoaContext): Promise<void>;
|
|
12
|
+
issueCertificate(ctx: import('./admin').KoaContext): Promise<void>;
|
|
13
|
+
sendDocuSignEnvelope(ctx: import('./admin').KoaContext): Promise<void>;
|
|
14
|
+
approveCertificate(ctx: import('./admin').KoaContext): Promise<void>;
|
|
15
|
+
revokeCertificate(ctx: import('./admin').KoaContext): Promise<void>;
|
|
16
|
+
printCertificate(ctx: import('./admin').KoaContext): Promise<void>;
|
|
17
|
+
exportCsv(ctx: import('./admin').KoaContext): Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
"content-api": ({ strapi }: {
|
|
20
|
+
strapi: import("@strapi/strapi").Core.Strapi;
|
|
21
|
+
}) => {
|
|
22
|
+
listPublicTemplates(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
23
|
+
getPublicKey(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
24
|
+
applyCertificate(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
25
|
+
verifyBySerial(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
26
|
+
downloadPrintableHtml(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
27
|
+
docusignWebhook(ctx: import('./content-api').KoaContext): Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|