@hed-hog/core 0.0.303 → 0.0.304
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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/hedhog/data/mail.yaml +147 -0
- package/package.json +4 -4
- package/src/index.ts +10 -7
package/dist/index.d.ts
CHANGED
|
@@ -31,4 +31,5 @@ export * from './integration/types';
|
|
|
31
31
|
export * from './validators/is-email-with-settings.validator';
|
|
32
32
|
export * from './validators/is-pin-code-with-setting.validator';
|
|
33
33
|
export * from './validators/is-strong-password-with-settings.validator';
|
|
34
|
+
export * from './utils/locale-context';
|
|
34
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAG9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,0DAA0D,CAAC;AACzE,cAAc,iDAAiD,CAAC;AAChE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cAAc,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -55,4 +55,6 @@ __exportStar(require("./integration/types"), exports);
|
|
|
55
55
|
__exportStar(require("./validators/is-email-with-settings.validator"), exports);
|
|
56
56
|
__exportStar(require("./validators/is-pin-code-with-setting.validator"), exports);
|
|
57
57
|
__exportStar(require("./validators/is-strong-password-with-settings.validator"), exports);
|
|
58
|
+
// Utilities
|
|
59
|
+
__exportStar(require("./utils/locale-context"), exports);
|
|
58
60
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AAEpC,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAE1C,iDAA+B;AAC/B,kDAAgC;AAEhC,qBAAqB;AACrB,mEAAiD;AACjD,gFAA8D;AAC9D,mFAAiE;AACjE,uEAAqD;AACrD,2FAAyE;AACzE,kFAAgE;AAChE,sFAAoE;AACpE,oFAAkE;AAClE,yEAAuD;AACvD,0EAAwD;AACxD,8EAA4D;AAC5D,wEAAsD;AACtD,sDAAoC;AAEpC,aAAa;AACb,gFAA8D;AAC9D,kFAAgE;AAChE,0FAAwE;AAExE,YAAY;AACZ,yDAAuC"}
|
package/hedhog/data/mail.yaml
CHANGED
|
@@ -323,4 +323,151 @@
|
|
|
323
323
|
- name: email
|
|
324
324
|
- name: message
|
|
325
325
|
- name: datetime
|
|
326
|
+
|
|
327
|
+
- slug: billing-payment-receipt
|
|
328
|
+
subject:
|
|
329
|
+
en: Payment confirmed for {{amount}}
|
|
330
|
+
pt: Pagamento confirmado de {{amount}}
|
|
331
|
+
body:
|
|
332
|
+
en: |
|
|
333
|
+
Hello {{name}},<br>
|
|
334
|
+
Your payment has been confirmed successfully.<br>
|
|
335
|
+
<strong>Amount:</strong> {{amount}}<br>
|
|
336
|
+
<strong>Provider:</strong> {{provider}}<br>
|
|
337
|
+
<strong>Paid at:</strong> {{paidAt}}<br>
|
|
338
|
+
<strong>Transaction ID:</strong> {{transactionId}}<br>
|
|
339
|
+
Thank you for your payment.<br>
|
|
340
|
+
Best regards,<br>
|
|
341
|
+
The HedHog Team
|
|
342
|
+
pt: |
|
|
343
|
+
Olá {{name}},<br>
|
|
344
|
+
Seu pagamento foi confirmado com sucesso.<br>
|
|
345
|
+
<strong>Valor:</strong> {{amount}}<br>
|
|
346
|
+
<strong>Provedor:</strong> {{provider}}<br>
|
|
347
|
+
<strong>Pago em:</strong> {{paidAt}}<br>
|
|
348
|
+
<strong>ID da Transação:</strong> {{transactionId}}<br>
|
|
349
|
+
Obrigado pelo seu pagamento.<br>
|
|
350
|
+
Atenciosamente,<br>
|
|
351
|
+
A equipe HedHog
|
|
352
|
+
relations:
|
|
353
|
+
mail_var:
|
|
354
|
+
- name: name
|
|
355
|
+
- name: amount
|
|
356
|
+
- name: provider
|
|
357
|
+
- name: paidAt
|
|
358
|
+
- name: transactionId
|
|
359
|
+
|
|
360
|
+
- slug: billing-payment-failed
|
|
361
|
+
subject:
|
|
362
|
+
en: We could not process your payment
|
|
363
|
+
pt: Não foi possível processar seu pagamento
|
|
364
|
+
body:
|
|
365
|
+
en: |
|
|
366
|
+
Hello {{name}},<br>
|
|
367
|
+
We could not process your payment for invoice <strong>{{invoiceNumber}}</strong>.<br>
|
|
368
|
+
<strong>Amount:</strong> {{amount}}<br>
|
|
369
|
+
Please review your payment method and complete the payment using the link below:<br>
|
|
370
|
+
<a href="{{paymentUrl}}">{{paymentUrl}}</a><br>
|
|
371
|
+
Best regards,<br>
|
|
372
|
+
The HedHog Team
|
|
373
|
+
pt: |
|
|
374
|
+
Olá {{name}},<br>
|
|
375
|
+
Não foi possível processar seu pagamento para a fatura <strong>{{invoiceNumber}}</strong>.<br>
|
|
376
|
+
<strong>Valor:</strong> {{amount}}<br>
|
|
377
|
+
Revise sua forma de pagamento e conclua o pagamento usando o link abaixo:<br>
|
|
378
|
+
<a href="{{paymentUrl}}">{{paymentUrl}}</a><br>
|
|
379
|
+
Atenciosamente,<br>
|
|
380
|
+
A equipe HedHog
|
|
381
|
+
relations:
|
|
382
|
+
mail_var:
|
|
383
|
+
- name: name
|
|
384
|
+
- name: invoiceNumber
|
|
385
|
+
- name: amount
|
|
386
|
+
- name: paymentUrl
|
|
387
|
+
|
|
388
|
+
- slug: billing-invoice-created
|
|
389
|
+
subject:
|
|
390
|
+
en: Your invoice {{invoiceNumber}} is now available
|
|
391
|
+
pt: Sua fatura {{invoiceNumber}} já está disponível
|
|
392
|
+
body:
|
|
393
|
+
en: |
|
|
394
|
+
Hello {{name}},<br>
|
|
395
|
+
A new invoice has been generated for your account.<br>
|
|
396
|
+
<strong>Invoice:</strong> {{invoiceNumber}}<br>
|
|
397
|
+
<strong>Amount:</strong> {{amount}}<br>
|
|
398
|
+
<strong>Due date:</strong> {{dueDate}}<br>
|
|
399
|
+
You can view the invoice here:<br>
|
|
400
|
+
<a href="{{invoiceUrl}}">{{invoiceUrl}}</a><br>
|
|
401
|
+
Best regards,<br>
|
|
402
|
+
The HedHog Team
|
|
403
|
+
pt: |
|
|
404
|
+
Olá {{name}},<br>
|
|
405
|
+
Uma nova fatura foi gerada para sua conta.<br>
|
|
406
|
+
<strong>Fatura:</strong> {{invoiceNumber}}<br>
|
|
407
|
+
<strong>Valor:</strong> {{amount}}<br>
|
|
408
|
+
<strong>Vencimento:</strong> {{dueDate}}<br>
|
|
409
|
+
Você pode visualizar a fatura aqui:<br>
|
|
410
|
+
<a href="{{invoiceUrl}}">{{invoiceUrl}}</a><br>
|
|
411
|
+
Atenciosamente,<br>
|
|
412
|
+
A equipe HedHog
|
|
413
|
+
relations:
|
|
414
|
+
mail_var:
|
|
415
|
+
- name: name
|
|
416
|
+
- name: invoiceNumber
|
|
417
|
+
- name: amount
|
|
418
|
+
- name: dueDate
|
|
419
|
+
- name: invoiceUrl
|
|
420
|
+
|
|
421
|
+
- slug: billing-subscription-canceled
|
|
422
|
+
subject:
|
|
423
|
+
en: Your subscription to {{productName}} has been canceled
|
|
424
|
+
pt: Sua assinatura de {{productName}} foi cancelada
|
|
425
|
+
body:
|
|
426
|
+
en: |
|
|
427
|
+
Hello {{name}},<br>
|
|
428
|
+
Your subscription to <strong>{{productName}}</strong> has been canceled.<br>
|
|
429
|
+
<strong>Access until:</strong> {{endsAt}}<br>
|
|
430
|
+
If this was not expected, please contact our team.<br>
|
|
431
|
+
Best regards,<br>
|
|
432
|
+
The HedHog Team
|
|
433
|
+
pt: |
|
|
434
|
+
Olá {{name}},<br>
|
|
435
|
+
Sua assinatura de <strong>{{productName}}</strong> foi cancelada.<br>
|
|
436
|
+
<strong>Acesso até:</strong> {{endsAt}}<br>
|
|
437
|
+
Se isso não era esperado, entre em contato com nossa equipe.<br>
|
|
438
|
+
Atenciosamente,<br>
|
|
439
|
+
A equipe HedHog
|
|
440
|
+
relations:
|
|
441
|
+
mail_var:
|
|
442
|
+
- name: name
|
|
443
|
+
- name: productName
|
|
444
|
+
- name: endsAt
|
|
445
|
+
|
|
446
|
+
- slug: billing-refund-confirmed
|
|
447
|
+
subject:
|
|
448
|
+
en: Your refund of {{amount}} has been confirmed
|
|
449
|
+
pt: Seu reembolso de {{amount}} foi confirmado
|
|
450
|
+
body:
|
|
451
|
+
en: |
|
|
452
|
+
Hello {{name}},<br>
|
|
453
|
+
Your refund has been confirmed successfully.<br>
|
|
454
|
+
<strong>Amount:</strong> {{amount}}<br>
|
|
455
|
+
<strong>Refund ID:</strong> {{refundId}}<br>
|
|
456
|
+
<strong>Processed at:</strong> {{processedAt}}<br>
|
|
457
|
+
Best regards,<br>
|
|
458
|
+
The HedHog Team
|
|
459
|
+
pt: |
|
|
460
|
+
Olá {{name}},<br>
|
|
461
|
+
Seu reembolso foi confirmado com sucesso.<br>
|
|
462
|
+
<strong>Valor:</strong> {{amount}}<br>
|
|
463
|
+
<strong>ID do Reembolso:</strong> {{refundId}}<br>
|
|
464
|
+
<strong>Processado em:</strong> {{processedAt}}<br>
|
|
465
|
+
Atenciosamente,<br>
|
|
466
|
+
A equipe HedHog
|
|
467
|
+
relations:
|
|
468
|
+
mail_var:
|
|
469
|
+
- name: name
|
|
470
|
+
- name: amount
|
|
471
|
+
- name: refundId
|
|
472
|
+
- name: processedAt
|
|
326
473
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.304",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"speakeasy": "^2.0.0",
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
33
|
"@hed-hog/api": "0.0.6",
|
|
34
|
-
"@hed-hog/api-locale": "0.0.14",
|
|
35
34
|
"@hed-hog/api-mail": "0.0.9",
|
|
36
|
-
"@hed-hog/api-
|
|
35
|
+
"@hed-hog/api-pagination": "0.0.7",
|
|
37
36
|
"@hed-hog/api-types": "0.0.1",
|
|
38
|
-
"@hed-hog/api-
|
|
37
|
+
"@hed-hog/api-locale": "0.0.14",
|
|
38
|
+
"@hed-hog/api-prisma": "0.0.6"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
".": {
|
package/src/index.ts
CHANGED
|
@@ -19,13 +19,13 @@ export * from './screen/screen.service';
|
|
|
19
19
|
export * from './user/constants/user.constants';
|
|
20
20
|
export * from './user/user.service';
|
|
21
21
|
|
|
22
|
-
export * from './mail/mail.module';
|
|
23
|
-
export * from './mail/mail.service';
|
|
24
|
-
|
|
25
|
-
export * from './file/file.module';
|
|
26
|
-
export * from './file/file.service';
|
|
27
|
-
export * from './setting/setting.module';
|
|
28
|
-
export * from './setting/setting.service';
|
|
22
|
+
export * from './mail/mail.module';
|
|
23
|
+
export * from './mail/mail.service';
|
|
24
|
+
|
|
25
|
+
export * from './file/file.module';
|
|
26
|
+
export * from './file/file.service';
|
|
27
|
+
export * from './setting/setting.module';
|
|
28
|
+
export * from './setting/setting.service';
|
|
29
29
|
|
|
30
30
|
export * from './ai/ai.module';
|
|
31
31
|
export * from './ai/ai.service';
|
|
@@ -50,3 +50,6 @@ export * from './validators/is-email-with-settings.validator';
|
|
|
50
50
|
export * from './validators/is-pin-code-with-setting.validator';
|
|
51
51
|
export * from './validators/is-strong-password-with-settings.validator';
|
|
52
52
|
|
|
53
|
+
// Utilities
|
|
54
|
+
export * from './utils/locale-context';
|
|
55
|
+
|