promote-email-templates 0.0.19

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 (38) hide show
  1. package/.eslintrc.js +22 -0
  2. package/.prettierrc.json +7 -0
  3. package/dist/index.d.mts +467 -0
  4. package/dist/index.d.ts +467 -0
  5. package/dist/index.js +1123 -0
  6. package/dist/index.mjs +1068 -0
  7. package/emails/admin/abort-order-request.tsx +58 -0
  8. package/emails/admin/index.ts +2 -0
  9. package/emails/admin/revert-payment-request-admin.tsx +54 -0
  10. package/emails/all/index.ts +1 -0
  11. package/emails/all/welcome.tsx +104 -0
  12. package/emails/brand/evidences-accepted-brand.tsx +59 -0
  13. package/emails/brand/evidences-submitted-brand.tsx +65 -0
  14. package/emails/brand/index.ts +6 -0
  15. package/emails/brand/new-order-created-brand.tsx +74 -0
  16. package/emails/brand/order-accepted-brand.tsx +63 -0
  17. package/emails/brand/order-cancelled-brand.tsx +68 -0
  18. package/emails/brand/order-rejected-brand.tsx +79 -0
  19. package/emails/creator/evidences-approved-creator.tsx +62 -0
  20. package/emails/creator/evidences-rejected-creator.tsx +74 -0
  21. package/emails/creator/index.ts +5 -0
  22. package/emails/creator/new-order-created-creator.tsx +70 -0
  23. package/emails/creator/order-cancelled-creator.tsx +69 -0
  24. package/emails/creator/order-payment-creator.tsx +58 -0
  25. package/emails/index.ts +5 -0
  26. package/emails/shared/components/base-head.tsx +19 -0
  27. package/emails/shared/components/comment-component.tsx +32 -0
  28. package/emails/shared/components/footer.tsx +84 -0
  29. package/emails/shared/components/header.tsx +24 -0
  30. package/emails/shared/components/new-order-info.tsx +60 -0
  31. package/emails/shared/components/payment-amount.tsx +37 -0
  32. package/emails/shared/components/user-Info.tsx +55 -0
  33. package/emails/shared/index.ts +3 -0
  34. package/emails/shared/styles.ts +72 -0
  35. package/emails/shared/types.ts +179 -0
  36. package/emails/shared/values.ts +19 -0
  37. package/package.json +32 -0
  38. package/readme.md +27 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,22 @@
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: 'tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin'],
9
+ extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
10
+ root: true,
11
+ env: {
12
+ node: true,
13
+ jest: true,
14
+ },
15
+ ignorePatterns: ['.eslintrc.js'],
16
+ rules: {
17
+ '@typescript-eslint/interface-name-prefix': 'off',
18
+ '@typescript-eslint/explicit-function-return-type': 'off',
19
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
20
+ '@typescript-eslint/no-explicit-any': 'off',
21
+ },
22
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "trailingComma": "es5",
3
+ "tabWidth": 2,
4
+ "semi": true,
5
+ "singleQuote": true,
6
+ "printWidth": 150
7
+ }
@@ -0,0 +1,467 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare enum USER_ROLES {
4
+ BRAND = "brand",
5
+ CREATOR = "creator"
6
+ }
7
+ interface NewOrderCreatedCreatorProps {
8
+ creator: {
9
+ name: string;
10
+ };
11
+ package: {
12
+ name: string;
13
+ price: string;
14
+ };
15
+ order: {
16
+ id: string;
17
+ createdAt: string;
18
+ };
19
+ brand: {
20
+ name: string;
21
+ photo: string;
22
+ };
23
+ }
24
+ type OrderCancelledBrandProps = {
25
+ reason?: string;
26
+ order: {
27
+ id: string;
28
+ };
29
+ brand: {
30
+ name: string;
31
+ };
32
+ };
33
+ interface EvidencesRejectedProps {
34
+ reason?: string;
35
+ evidenceLink: string;
36
+ order: {
37
+ id: string;
38
+ };
39
+ creator: {
40
+ name: string;
41
+ };
42
+ brand: {
43
+ name: string;
44
+ photo: string;
45
+ };
46
+ }
47
+ interface OrderCancelledCreatorProps {
48
+ reason?: string;
49
+ order: {
50
+ id: string;
51
+ };
52
+ creator: {
53
+ name: string;
54
+ };
55
+ }
56
+ interface OrderAcceptedBrandProps {
57
+ reason?: string;
58
+ order: {
59
+ id: string;
60
+ };
61
+ brand: {
62
+ name: string;
63
+ };
64
+ creator: {
65
+ username: string;
66
+ name: string;
67
+ photo: string;
68
+ };
69
+ }
70
+ interface OrderEvidencesAcceptedBrandProps {
71
+ order: {
72
+ id: string;
73
+ };
74
+ brand: {
75
+ name: string;
76
+ };
77
+ totalAmount: string;
78
+ }
79
+ interface AbortOrderRequestProps {
80
+ order: {
81
+ id: string;
82
+ };
83
+ requestedBy: USER_ROLES;
84
+ }
85
+ interface OrderOrderPaymentCreatorProps {
86
+ order: {
87
+ id: string;
88
+ };
89
+ creator: {
90
+ name: string;
91
+ };
92
+ totalAmount: string;
93
+ }
94
+ interface RevertPaymentRequestAdminProps {
95
+ order: {
96
+ id: string;
97
+ };
98
+ totalAmount: string;
99
+ }
100
+ interface EvidenceApprovedCreatorProps {
101
+ order: {
102
+ id: string;
103
+ };
104
+ creator: {
105
+ name: string;
106
+ };
107
+ brand: {
108
+ name: string;
109
+ photo: string;
110
+ };
111
+ evidenceLink: string;
112
+ }
113
+ interface EvidenceSubmittedBrandProps {
114
+ brand: {
115
+ name: string;
116
+ };
117
+ package: {
118
+ name: string;
119
+ };
120
+ order: {
121
+ id: string;
122
+ };
123
+ creator: {
124
+ username: string;
125
+ name: string;
126
+ photo: string;
127
+ };
128
+ }
129
+ interface OrderRejectedBrandProps {
130
+ brand: {
131
+ name: string;
132
+ };
133
+ package: {
134
+ name: string;
135
+ };
136
+ order: {
137
+ id: string;
138
+ };
139
+ creator: {
140
+ username: string;
141
+ name: string;
142
+ photo: string;
143
+ };
144
+ reason: string;
145
+ }
146
+ interface NewOrderCreatedBrandProps {
147
+ brand: {
148
+ name: string;
149
+ };
150
+ package: {
151
+ name: string;
152
+ price: string;
153
+ };
154
+ order: {
155
+ id: string;
156
+ createdAt: string;
157
+ };
158
+ creator: {
159
+ username: string;
160
+ name: string;
161
+ photo: string;
162
+ };
163
+ }
164
+ interface WelcomeTemplateProps {
165
+ name?: string;
166
+ userType: USER_ROLES;
167
+ }
168
+
169
+ declare function AbortOrderRequest(props: AbortOrderRequestProps): react_jsx_runtime.JSX.Element;
170
+ declare namespace AbortOrderRequest {
171
+ var PreviewProps: {
172
+ order: {
173
+ id: string;
174
+ };
175
+ requestedBy: USER_ROLES.CREATOR;
176
+ };
177
+ }
178
+
179
+ declare function RevertPaymentRequestAdmin(props: RevertPaymentRequestAdminProps): react_jsx_runtime.JSX.Element;
180
+ declare namespace RevertPaymentRequestAdmin {
181
+ var PreviewProps: {
182
+ order: {
183
+ id: string;
184
+ };
185
+ totalAmount: string;
186
+ };
187
+ }
188
+
189
+ declare function OrderEvidencesAcceptedBrand(props: OrderEvidencesAcceptedBrandProps): react_jsx_runtime.JSX.Element;
190
+ declare namespace OrderEvidencesAcceptedBrand {
191
+ var PreviewProps: {
192
+ order: {
193
+ id: string;
194
+ };
195
+ brand: {
196
+ name: string;
197
+ };
198
+ totalAmount: string;
199
+ };
200
+ }
201
+
202
+ declare function EvidencesSubmittedBrand(props: EvidenceSubmittedBrandProps): react_jsx_runtime.JSX.Element;
203
+ declare namespace EvidencesSubmittedBrand {
204
+ var PreviewProps: {
205
+ package: {
206
+ name: string;
207
+ };
208
+ order: {
209
+ id: string;
210
+ };
211
+ brand: {
212
+ name: string;
213
+ };
214
+ creator: {
215
+ username: string;
216
+ name: string;
217
+ photo: string;
218
+ };
219
+ };
220
+ }
221
+
222
+ declare function NewOrderCreatedBrand(props: NewOrderCreatedBrandProps): react_jsx_runtime.JSX.Element;
223
+ declare namespace NewOrderCreatedBrand {
224
+ var PreviewProps: {
225
+ package: {
226
+ name: string;
227
+ price: string;
228
+ };
229
+ order: {
230
+ id: string;
231
+ createdAt: string;
232
+ };
233
+ brand: {
234
+ name: string;
235
+ };
236
+ creator: {
237
+ username: string;
238
+ name: string;
239
+ photo: string;
240
+ };
241
+ };
242
+ }
243
+
244
+ declare function OrderAcceptedBrand(props: OrderAcceptedBrandProps): react_jsx_runtime.JSX.Element;
245
+ declare namespace OrderAcceptedBrand {
246
+ var PreviewProps: {
247
+ order: {
248
+ id: string;
249
+ };
250
+ brand: {
251
+ name: string;
252
+ };
253
+ creator: {
254
+ username: string;
255
+ name: string;
256
+ photo: string;
257
+ };
258
+ };
259
+ }
260
+
261
+ declare function OrderCancelledBrand(props: OrderCancelledBrandProps): react_jsx_runtime.JSX.Element;
262
+ declare namespace OrderCancelledBrand {
263
+ var PreviewProps: {
264
+ order: {
265
+ id: string;
266
+ };
267
+ brand: {
268
+ name: string;
269
+ };
270
+ reason: string;
271
+ };
272
+ }
273
+
274
+ declare function OrderRejectedBrand(props: OrderRejectedBrandProps): react_jsx_runtime.JSX.Element;
275
+ declare namespace OrderRejectedBrand {
276
+ var PreviewProps: {
277
+ package: {
278
+ name: string;
279
+ };
280
+ order: {
281
+ id: string;
282
+ };
283
+ brand: {
284
+ name: string;
285
+ };
286
+ creator: {
287
+ username: string;
288
+ name: string;
289
+ photo: string;
290
+ };
291
+ reason: string;
292
+ };
293
+ }
294
+
295
+ declare function EvidenceApprovedCreator(props: EvidenceApprovedCreatorProps): react_jsx_runtime.JSX.Element;
296
+ declare namespace EvidenceApprovedCreator {
297
+ var PreviewProps: {
298
+ order: {
299
+ id: string;
300
+ };
301
+ brand: {
302
+ name: string;
303
+ photo: string;
304
+ };
305
+ creator: {
306
+ name: string;
307
+ };
308
+ evidenceLink: string;
309
+ };
310
+ }
311
+
312
+ declare function EvidencesRejectedCreator(props: EvidencesRejectedProps): react_jsx_runtime.JSX.Element;
313
+ declare namespace EvidencesRejectedCreator {
314
+ var PreviewProps: {
315
+ order: {
316
+ id: string;
317
+ };
318
+ creator: {
319
+ name: string;
320
+ };
321
+ brand: {
322
+ name: string;
323
+ photo: string;
324
+ };
325
+ evidenceLink: string;
326
+ reason: string;
327
+ };
328
+ }
329
+
330
+ declare function OrderCancelledCreator(props: OrderCancelledCreatorProps): react_jsx_runtime.JSX.Element;
331
+ declare namespace OrderCancelledCreator {
332
+ var PreviewProps: {
333
+ order: {
334
+ id: string;
335
+ };
336
+ creator: {
337
+ name: string;
338
+ };
339
+ reason: string;
340
+ };
341
+ }
342
+
343
+ declare function OrderPaymentCreator(props: OrderOrderPaymentCreatorProps): react_jsx_runtime.JSX.Element;
344
+ declare namespace OrderPaymentCreator {
345
+ var PreviewProps: {
346
+ order: {
347
+ id: string;
348
+ };
349
+ creator: {
350
+ name: string;
351
+ };
352
+ totalAmount: string;
353
+ };
354
+ }
355
+
356
+ declare function NewOrderCreatedCreator(props: NewOrderCreatedCreatorProps): react_jsx_runtime.JSX.Element;
357
+ declare namespace NewOrderCreatedCreator {
358
+ var PreviewProps: {
359
+ package: {
360
+ name: string;
361
+ price: string;
362
+ };
363
+ order: {
364
+ id: string;
365
+ createdAt: string;
366
+ };
367
+ brand: {
368
+ name: string;
369
+ photo: string;
370
+ };
371
+ creator: {
372
+ name: string;
373
+ };
374
+ };
375
+ }
376
+
377
+ declare const colors: {
378
+ primary: string;
379
+ white: string;
380
+ black: string;
381
+ grey: string;
382
+ grey01: string;
383
+ };
384
+ declare const rootStyles: {
385
+ width: string;
386
+ height: string;
387
+ backgroundColor: string;
388
+ fontFamily: string;
389
+ };
390
+ declare const baseContentContainer: {
391
+ padding: string;
392
+ maxWidth: string;
393
+ };
394
+ declare const link: {
395
+ color: string;
396
+ textDecoration: string;
397
+ fontWeight: string;
398
+ opacity: number;
399
+ };
400
+ declare const main: {
401
+ backgroundColor: string;
402
+ maxWidth: string;
403
+ width: string;
404
+ height: string;
405
+ marginLeft: string;
406
+ marginRight: string;
407
+ };
408
+ declare const baseContainer: {
409
+ width: string;
410
+ height: string;
411
+ padding: string;
412
+ border: string;
413
+ borderRadius: string;
414
+ };
415
+ declare const button: {
416
+ fontSize: string;
417
+ backgroundColor: string;
418
+ display: string;
419
+ color: string;
420
+ padding: string;
421
+ width: string;
422
+ borderRadius: string;
423
+ justifyContent: string;
424
+ margin: string;
425
+ textAlign: "center";
426
+ fontWeight: string;
427
+ };
428
+ declare const baseText: {
429
+ color: string;
430
+ fontSize: string;
431
+ lineHeight: string;
432
+ };
433
+ declare const centerBlock: {
434
+ display: string;
435
+ margin: string;
436
+ };
437
+ declare const centerText: {
438
+ textAlign: "center";
439
+ };
440
+
441
+ declare const appBaseUrl = "https://promote.co.mz";
442
+ declare const assetsBasePath = "https://s3.us-east-2.amazonaws.com/promote-mz.com/assets";
443
+ declare const appRoutes: {
444
+ homePageRoute: string;
445
+ creatorsList: string;
446
+ creatorPrivateProfile: string;
447
+ termsAndConditions: string;
448
+ creatorOrderDetails: (orderId: string) => string;
449
+ brandOrderDetails: (orderId: string) => string;
450
+ adminOrderDetails: (orderId: string) => string;
451
+ creatorPublicProfile: (username: string) => string;
452
+ };
453
+ declare const socialNetworkLinks: {
454
+ linkedin: string;
455
+ instagram: string;
456
+ facebook: string;
457
+ };
458
+
459
+ declare function Welcome({ name, userType }: WelcomeTemplateProps): react_jsx_runtime.JSX.Element;
460
+ declare namespace Welcome {
461
+ var PreviewProps: {
462
+ name: string;
463
+ userType: USER_ROLES.BRAND;
464
+ };
465
+ }
466
+
467
+ export { AbortOrderRequest, type AbortOrderRequestProps, EvidenceApprovedCreator, type EvidenceApprovedCreatorProps, type EvidenceSubmittedBrandProps, EvidencesRejectedCreator, type EvidencesRejectedProps, EvidencesSubmittedBrand, NewOrderCreatedBrand, type NewOrderCreatedBrandProps, NewOrderCreatedCreator, type NewOrderCreatedCreatorProps, OrderAcceptedBrand, type OrderAcceptedBrandProps, OrderCancelledBrand, type OrderCancelledBrandProps, OrderCancelledCreator, type OrderCancelledCreatorProps, OrderEvidencesAcceptedBrand, type OrderEvidencesAcceptedBrandProps, type OrderOrderPaymentCreatorProps, OrderPaymentCreator, OrderRejectedBrand, type OrderRejectedBrandProps, RevertPaymentRequestAdmin, type RevertPaymentRequestAdminProps, USER_ROLES, Welcome, type WelcomeTemplateProps, appBaseUrl, appRoutes, assetsBasePath, baseContainer, baseContentContainer, baseText, button, centerBlock, centerText, colors, link, main, rootStyles, socialNetworkLinks };