@coopenomics/notifications 2026.9.4 → 2026.9.8-1
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.cjs +6 -3
- package/dist/index.d.cts +72 -67
- package/dist/index.d.mts +72 -67
- package/dist/index.d.ts +72 -67
- package/dist/index.mjs +6 -3
- package/package.json +2 -2
- package/src/workflows/email-verification/index.ts +10 -5
package/dist/index.d.ts
CHANGED
|
@@ -182,19 +182,19 @@ declare const newAgendaItemPayloadSchema: z.ZodObject<{
|
|
|
182
182
|
agendaUrl: z.ZodOptional<z.ZodString>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
184
|
coopname: string;
|
|
185
|
-
decision_id: string;
|
|
186
185
|
coopShortName: string;
|
|
187
186
|
itemTitle: string;
|
|
188
187
|
itemDescription: string;
|
|
189
188
|
authorName: string;
|
|
189
|
+
decision_id: string;
|
|
190
190
|
agendaUrl?: string | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
coopname: string;
|
|
193
|
-
decision_id: string;
|
|
194
193
|
coopShortName: string;
|
|
195
194
|
itemTitle: string;
|
|
196
195
|
itemDescription: string;
|
|
197
196
|
authorName: string;
|
|
197
|
+
decision_id: string;
|
|
198
198
|
agendaUrl?: string | undefined;
|
|
199
199
|
}>;
|
|
200
200
|
type IPayload$U = z.infer<typeof newAgendaItemPayloadSchema>;
|
|
@@ -276,15 +276,15 @@ declare const decisionApprovedPayloadSchema: z.ZodObject<{
|
|
|
276
276
|
decisionUrl: z.ZodOptional<z.ZodString>;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
userName: string;
|
|
279
|
-
decisionTitle: string;
|
|
280
279
|
coopname: string;
|
|
281
280
|
decision_id: string;
|
|
281
|
+
decisionTitle: string;
|
|
282
282
|
decisionUrl?: string | undefined;
|
|
283
283
|
}, {
|
|
284
284
|
userName: string;
|
|
285
|
-
decisionTitle: string;
|
|
286
285
|
coopname: string;
|
|
287
286
|
decision_id: string;
|
|
287
|
+
decisionTitle: string;
|
|
288
288
|
decisionUrl?: string | undefined;
|
|
289
289
|
}>;
|
|
290
290
|
type IPayload$R = z.infer<typeof decisionApprovedPayloadSchema>;
|
|
@@ -343,15 +343,15 @@ declare const paymentCancelledPayloadSchema: z.ZodObject<{
|
|
|
343
343
|
userName: string;
|
|
344
344
|
paymentAmount: string;
|
|
345
345
|
paymentCurrency: string;
|
|
346
|
-
paymentId: string;
|
|
347
346
|
paymentDate: string;
|
|
347
|
+
paymentId: string;
|
|
348
348
|
paymentUrl?: string | undefined;
|
|
349
349
|
}, {
|
|
350
350
|
userName: string;
|
|
351
351
|
paymentAmount: string;
|
|
352
352
|
paymentCurrency: string;
|
|
353
|
-
paymentId: string;
|
|
354
353
|
paymentDate: string;
|
|
354
|
+
paymentId: string;
|
|
355
355
|
paymentUrl?: string | undefined;
|
|
356
356
|
}>;
|
|
357
357
|
type IPayload$P = z.infer<typeof paymentCancelledPayloadSchema>;
|
|
@@ -414,20 +414,20 @@ declare const meetInitialPayloadSchema: z.ZodObject<{
|
|
|
414
414
|
meetId: number;
|
|
415
415
|
meetDate: string;
|
|
416
416
|
meetTime: string;
|
|
417
|
-
meetUrl: string;
|
|
418
417
|
meetEndDate: string;
|
|
419
418
|
meetEndTime: string;
|
|
420
419
|
timezone: string;
|
|
420
|
+
meetUrl: string;
|
|
421
421
|
details?: string | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
coopShortName: string;
|
|
424
424
|
meetId: number;
|
|
425
425
|
meetDate: string;
|
|
426
426
|
meetTime: string;
|
|
427
|
-
meetUrl: string;
|
|
428
427
|
meetEndDate: string;
|
|
429
428
|
meetEndTime: string;
|
|
430
429
|
timezone: string;
|
|
430
|
+
meetUrl: string;
|
|
431
431
|
details?: string | undefined;
|
|
432
432
|
}>;
|
|
433
433
|
type IPayload$N = z.infer<typeof meetInitialPayloadSchema>;
|
|
@@ -456,16 +456,16 @@ declare const meetReminderStartPayloadSchema: z.ZodObject<{
|
|
|
456
456
|
meetId: number;
|
|
457
457
|
meetDate: string;
|
|
458
458
|
meetTime: string;
|
|
459
|
-
timeDescription: string;
|
|
460
459
|
meetUrl: string;
|
|
460
|
+
timeDescription: string;
|
|
461
461
|
details?: string | undefined;
|
|
462
462
|
}, {
|
|
463
463
|
coopShortName: string;
|
|
464
464
|
meetId: number;
|
|
465
465
|
meetDate: string;
|
|
466
466
|
meetTime: string;
|
|
467
|
-
timeDescription: string;
|
|
468
467
|
meetUrl: string;
|
|
468
|
+
timeDescription: string;
|
|
469
469
|
details?: string | undefined;
|
|
470
470
|
}>;
|
|
471
471
|
type IPayload$M = z.infer<typeof meetReminderStartPayloadSchema>;
|
|
@@ -492,18 +492,18 @@ declare const meetStartedPayloadSchema: z.ZodObject<{
|
|
|
492
492
|
}, "strip", z.ZodTypeAny, {
|
|
493
493
|
coopShortName: string;
|
|
494
494
|
meetId: number;
|
|
495
|
-
meetUrl: string;
|
|
496
495
|
meetEndDate: string;
|
|
497
496
|
meetEndTime: string;
|
|
498
497
|
timezone: string;
|
|
498
|
+
meetUrl: string;
|
|
499
499
|
details?: string | undefined;
|
|
500
500
|
}, {
|
|
501
501
|
coopShortName: string;
|
|
502
502
|
meetId: number;
|
|
503
|
-
meetUrl: string;
|
|
504
503
|
meetEndDate: string;
|
|
505
504
|
meetEndTime: string;
|
|
506
505
|
timezone: string;
|
|
506
|
+
meetUrl: string;
|
|
507
507
|
details?: string | undefined;
|
|
508
508
|
}>;
|
|
509
509
|
type IPayload$L = z.infer<typeof meetStartedPayloadSchema>;
|
|
@@ -530,19 +530,19 @@ declare const meetReminderEndPayloadSchema: z.ZodObject<{
|
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
531
|
coopShortName: string;
|
|
532
532
|
meetId: number;
|
|
533
|
-
timeDescription: string;
|
|
534
|
-
meetUrl: string;
|
|
535
533
|
meetEndDate: string;
|
|
536
534
|
meetEndTime: string;
|
|
537
535
|
timezone: string;
|
|
536
|
+
meetUrl: string;
|
|
537
|
+
timeDescription: string;
|
|
538
538
|
}, {
|
|
539
539
|
coopShortName: string;
|
|
540
540
|
meetId: number;
|
|
541
|
-
timeDescription: string;
|
|
542
|
-
meetUrl: string;
|
|
543
541
|
meetEndDate: string;
|
|
544
542
|
meetEndTime: string;
|
|
545
543
|
timezone: string;
|
|
544
|
+
meetUrl: string;
|
|
545
|
+
timeDescription: string;
|
|
546
546
|
}>;
|
|
547
547
|
type IPayload$K = z.infer<typeof meetReminderEndPayloadSchema>;
|
|
548
548
|
interface IWorkflow$K extends BaseWorkflowPayload, IPayload$K {
|
|
@@ -571,19 +571,19 @@ declare const meetRestartPayloadSchema: z.ZodObject<{
|
|
|
571
571
|
meetId: number;
|
|
572
572
|
meetDate: string;
|
|
573
573
|
meetTime: string;
|
|
574
|
-
meetUrl: string;
|
|
575
574
|
meetEndDate: string;
|
|
576
575
|
meetEndTime: string;
|
|
577
576
|
timezone: string;
|
|
577
|
+
meetUrl: string;
|
|
578
578
|
}, {
|
|
579
579
|
coopShortName: string;
|
|
580
580
|
meetId: number;
|
|
581
581
|
meetDate: string;
|
|
582
582
|
meetTime: string;
|
|
583
|
-
meetUrl: string;
|
|
584
583
|
meetEndDate: string;
|
|
585
584
|
meetEndTime: string;
|
|
586
585
|
timezone: string;
|
|
586
|
+
meetUrl: string;
|
|
587
587
|
}>;
|
|
588
588
|
type IPayload$J = z.infer<typeof meetRestartPayloadSchema>;
|
|
589
589
|
interface IWorkflow$J extends BaseWorkflowPayload, IPayload$J {
|
|
@@ -690,17 +690,17 @@ declare const newInitialPaymentRequestPayloadSchema: z.ZodObject<{
|
|
|
690
690
|
paymentUrl: z.ZodOptional<z.ZodString>;
|
|
691
691
|
}, "strip", z.ZodTypeAny, {
|
|
692
692
|
coopname: string;
|
|
693
|
+
chairmanName: string;
|
|
693
694
|
paymentAmount: string;
|
|
694
695
|
paymentCurrency: string;
|
|
695
|
-
chairmanName: string;
|
|
696
696
|
participantName: string;
|
|
697
697
|
paymentType: string;
|
|
698
698
|
paymentUrl?: string | undefined;
|
|
699
699
|
}, {
|
|
700
700
|
coopname: string;
|
|
701
|
+
chairmanName: string;
|
|
701
702
|
paymentAmount: string;
|
|
702
703
|
paymentCurrency: string;
|
|
703
|
-
chairmanName: string;
|
|
704
704
|
participantName: string;
|
|
705
705
|
paymentType: string;
|
|
706
706
|
paymentUrl?: string | undefined;
|
|
@@ -728,17 +728,17 @@ declare const newDepositPaymentRequestPayloadSchema: z.ZodObject<{
|
|
|
728
728
|
paymentUrl: z.ZodOptional<z.ZodString>;
|
|
729
729
|
}, "strip", z.ZodTypeAny, {
|
|
730
730
|
coopname: string;
|
|
731
|
+
chairmanName: string;
|
|
731
732
|
paymentAmount: string;
|
|
732
733
|
paymentCurrency: string;
|
|
733
|
-
chairmanName: string;
|
|
734
734
|
participantName: string;
|
|
735
735
|
paymentType: string;
|
|
736
736
|
paymentUrl?: string | undefined;
|
|
737
737
|
}, {
|
|
738
738
|
coopname: string;
|
|
739
|
+
chairmanName: string;
|
|
739
740
|
paymentAmount: string;
|
|
740
741
|
paymentCurrency: string;
|
|
741
|
-
chairmanName: string;
|
|
742
742
|
participantName: string;
|
|
743
743
|
paymentType: string;
|
|
744
744
|
paymentUrl?: string | undefined;
|
|
@@ -904,11 +904,16 @@ declare namespace index$B {
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
declare const emailVerificationPayloadSchema: z.ZodObject<{
|
|
907
|
-
|
|
907
|
+
/** Шестизначный код подтверждения. */
|
|
908
|
+
code: z.ZodString;
|
|
909
|
+
/** Срок действия кода человеческими словами («15 минут»). */
|
|
910
|
+
ttl: z.ZodString;
|
|
908
911
|
}, "strip", z.ZodTypeAny, {
|
|
909
|
-
|
|
912
|
+
code: string;
|
|
913
|
+
ttl: string;
|
|
910
914
|
}, {
|
|
911
|
-
|
|
915
|
+
code: string;
|
|
916
|
+
ttl: string;
|
|
912
917
|
}>;
|
|
913
918
|
type IPayload$z = z.infer<typeof emailVerificationPayloadSchema>;
|
|
914
919
|
interface IWorkflow$z extends BaseWorkflowPayload, IPayload$z {
|
|
@@ -978,16 +983,16 @@ declare const decisionExpiredPayloadSchema: z.ZodObject<{
|
|
|
978
983
|
name: z.ZodString;
|
|
979
984
|
}, "strip", z.ZodTypeAny, {
|
|
980
985
|
userName: string;
|
|
981
|
-
decisionTitle: string;
|
|
982
986
|
coopname: string;
|
|
983
987
|
decision_id: string;
|
|
988
|
+
decisionTitle: string;
|
|
984
989
|
short_abbr: string;
|
|
985
990
|
name: string;
|
|
986
991
|
}, {
|
|
987
992
|
userName: string;
|
|
988
|
-
decisionTitle: string;
|
|
989
993
|
coopname: string;
|
|
990
994
|
decision_id: string;
|
|
995
|
+
decisionTitle: string;
|
|
991
996
|
short_abbr: string;
|
|
992
997
|
name: string;
|
|
993
998
|
}>;
|
|
@@ -1219,19 +1224,19 @@ declare const marketplaceCashierNewPaymentPayloadSchema: z.ZodObject<{
|
|
|
1219
1224
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1220
1225
|
}, "strip", z.ZodTypeAny, {
|
|
1221
1226
|
coopname: string;
|
|
1227
|
+
cashierName: string;
|
|
1222
1228
|
supplierName: string;
|
|
1223
1229
|
amount: string;
|
|
1224
1230
|
apl_reception_id: string;
|
|
1225
1231
|
payment_request_id: string;
|
|
1226
|
-
cashierName: string;
|
|
1227
1232
|
deepLinkUrl?: string | undefined;
|
|
1228
1233
|
}, {
|
|
1229
1234
|
coopname: string;
|
|
1235
|
+
cashierName: string;
|
|
1230
1236
|
supplierName: string;
|
|
1231
1237
|
amount: string;
|
|
1232
1238
|
apl_reception_id: string;
|
|
1233
1239
|
payment_request_id: string;
|
|
1234
|
-
cashierName: string;
|
|
1235
1240
|
deepLinkUrl?: string | undefined;
|
|
1236
1241
|
}>;
|
|
1237
1242
|
type IPayload$q = z.infer<typeof marketplaceCashierNewPaymentPayloadSchema>;
|
|
@@ -1297,17 +1302,17 @@ declare const marketplaceSupplierPaymentDeclinedPayloadSchema: z.ZodObject<{
|
|
|
1297
1302
|
coopname: string;
|
|
1298
1303
|
supplierName: string;
|
|
1299
1304
|
amount: string;
|
|
1300
|
-
reason: string;
|
|
1301
1305
|
apl_reception_id: string;
|
|
1302
1306
|
payment_request_id: string;
|
|
1307
|
+
reason: string;
|
|
1303
1308
|
deepLinkUrl?: string | undefined;
|
|
1304
1309
|
}, {
|
|
1305
1310
|
coopname: string;
|
|
1306
1311
|
supplierName: string;
|
|
1307
1312
|
amount: string;
|
|
1308
|
-
reason: string;
|
|
1309
1313
|
apl_reception_id: string;
|
|
1310
1314
|
payment_request_id: string;
|
|
1315
|
+
reason: string;
|
|
1311
1316
|
deepLinkUrl?: string | undefined;
|
|
1312
1317
|
}>;
|
|
1313
1318
|
type IPayload$o = z.infer<typeof marketplaceSupplierPaymentDeclinedPayloadSchema>;
|
|
@@ -1333,16 +1338,16 @@ declare const marketplaceOrderReadyPayloadSchema: z.ZodObject<{
|
|
|
1333
1338
|
passportReminder: z.ZodOptional<z.ZodString>;
|
|
1334
1339
|
}, "strip", z.ZodTypeAny, {
|
|
1335
1340
|
coopname: string;
|
|
1336
|
-
kuName: string;
|
|
1337
1341
|
ordererName: string;
|
|
1338
1342
|
order_id: string;
|
|
1343
|
+
kuName: string;
|
|
1339
1344
|
deepLinkUrl?: string | undefined;
|
|
1340
1345
|
passportReminder?: string | undefined;
|
|
1341
1346
|
}, {
|
|
1342
1347
|
coopname: string;
|
|
1343
|
-
kuName: string;
|
|
1344
1348
|
ordererName: string;
|
|
1345
1349
|
order_id: string;
|
|
1350
|
+
kuName: string;
|
|
1346
1351
|
deepLinkUrl?: string | undefined;
|
|
1347
1352
|
passportReminder?: string | undefined;
|
|
1348
1353
|
}>;
|
|
@@ -1370,20 +1375,20 @@ declare const marketplaceReturnClaimSubmittedPayloadSchema: z.ZodObject<{
|
|
|
1370
1375
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1371
1376
|
}, "strip", z.ZodTypeAny, {
|
|
1372
1377
|
coopname: string;
|
|
1378
|
+
recipientName: string;
|
|
1373
1379
|
ordererName: string;
|
|
1374
1380
|
brananame: string;
|
|
1375
1381
|
claim_id: string;
|
|
1376
1382
|
order_id: string;
|
|
1377
|
-
recipientName: string;
|
|
1378
1383
|
reasonExcerpt: string;
|
|
1379
1384
|
deepLinkUrl?: string | undefined;
|
|
1380
1385
|
}, {
|
|
1381
1386
|
coopname: string;
|
|
1387
|
+
recipientName: string;
|
|
1382
1388
|
ordererName: string;
|
|
1383
1389
|
brananame: string;
|
|
1384
1390
|
claim_id: string;
|
|
1385
1391
|
order_id: string;
|
|
1386
|
-
recipientName: string;
|
|
1387
1392
|
reasonExcerpt: string;
|
|
1388
1393
|
deepLinkUrl?: string | undefined;
|
|
1389
1394
|
}>;
|
|
@@ -1412,19 +1417,19 @@ declare const marketplaceReturnClaimDecidedPayloadSchema: z.ZodObject<{
|
|
|
1412
1417
|
}, "strip", z.ZodTypeAny, {
|
|
1413
1418
|
coopname: string;
|
|
1414
1419
|
ordererName: string;
|
|
1415
|
-
decisionHuman: string;
|
|
1416
1420
|
brananame: string;
|
|
1417
1421
|
claim_id: string;
|
|
1418
1422
|
order_id: string;
|
|
1423
|
+
decisionHuman: string;
|
|
1419
1424
|
comment: string;
|
|
1420
1425
|
deepLinkUrl?: string | undefined;
|
|
1421
1426
|
}, {
|
|
1422
1427
|
coopname: string;
|
|
1423
1428
|
ordererName: string;
|
|
1424
|
-
decisionHuman: string;
|
|
1425
1429
|
brananame: string;
|
|
1426
1430
|
claim_id: string;
|
|
1427
1431
|
order_id: string;
|
|
1432
|
+
decisionHuman: string;
|
|
1428
1433
|
comment: string;
|
|
1429
1434
|
deepLinkUrl?: string | undefined;
|
|
1430
1435
|
}>;
|
|
@@ -1503,17 +1508,17 @@ declare const marketplaceWriteoffDraftBuiltPayloadSchema: z.ZodObject<{
|
|
|
1503
1508
|
coopname: string;
|
|
1504
1509
|
chairmanName: string;
|
|
1505
1510
|
proposal_id: string;
|
|
1511
|
+
trigger: string;
|
|
1506
1512
|
itemsCount: number;
|
|
1507
1513
|
totalAmount: string;
|
|
1508
|
-
trigger: string;
|
|
1509
1514
|
deepLinkUrl?: string | undefined;
|
|
1510
1515
|
}, {
|
|
1511
1516
|
coopname: string;
|
|
1512
1517
|
chairmanName: string;
|
|
1513
1518
|
proposal_id: string;
|
|
1519
|
+
trigger: string;
|
|
1514
1520
|
itemsCount: number;
|
|
1515
1521
|
totalAmount: string;
|
|
1516
|
-
trigger: string;
|
|
1517
1522
|
deepLinkUrl?: string | undefined;
|
|
1518
1523
|
}>;
|
|
1519
1524
|
type IPayload$j = z.infer<typeof marketplaceWriteoffDraftBuiltPayloadSchema>;
|
|
@@ -1541,17 +1546,17 @@ declare const marketplaceWriteoffProposedPayloadSchema: z.ZodObject<{
|
|
|
1541
1546
|
coopname: string;
|
|
1542
1547
|
recipientName: string;
|
|
1543
1548
|
proposal_id: string;
|
|
1544
|
-
proposal_hash: string;
|
|
1545
1549
|
itemsCount: number;
|
|
1546
1550
|
totalAmount: string;
|
|
1551
|
+
proposal_hash: string;
|
|
1547
1552
|
deepLinkUrl?: string | undefined;
|
|
1548
1553
|
}, {
|
|
1549
1554
|
coopname: string;
|
|
1550
1555
|
recipientName: string;
|
|
1551
1556
|
proposal_id: string;
|
|
1552
|
-
proposal_hash: string;
|
|
1553
1557
|
itemsCount: number;
|
|
1554
1558
|
totalAmount: string;
|
|
1559
|
+
proposal_hash: string;
|
|
1555
1560
|
deepLinkUrl?: string | undefined;
|
|
1556
1561
|
}>;
|
|
1557
1562
|
type IPayload$i = z.infer<typeof marketplaceWriteoffProposedPayloadSchema>;
|
|
@@ -1579,17 +1584,17 @@ declare const marketplaceWriteoffAuthorizedPayloadSchema: z.ZodObject<{
|
|
|
1579
1584
|
coopname: string;
|
|
1580
1585
|
recipientName: string;
|
|
1581
1586
|
proposal_id: string;
|
|
1582
|
-
proposal_hash: string;
|
|
1583
1587
|
itemsCount: number;
|
|
1584
1588
|
totalAmount: string;
|
|
1589
|
+
proposal_hash: string;
|
|
1585
1590
|
deepLinkUrl?: string | undefined;
|
|
1586
1591
|
}, {
|
|
1587
1592
|
coopname: string;
|
|
1588
1593
|
recipientName: string;
|
|
1589
1594
|
proposal_id: string;
|
|
1590
|
-
proposal_hash: string;
|
|
1591
1595
|
itemsCount: number;
|
|
1592
1596
|
totalAmount: string;
|
|
1597
|
+
proposal_hash: string;
|
|
1593
1598
|
deepLinkUrl?: string | undefined;
|
|
1594
1599
|
}>;
|
|
1595
1600
|
type IPayload$h = z.infer<typeof marketplaceWriteoffAuthorizedPayloadSchema>;
|
|
@@ -1617,17 +1622,17 @@ declare const marketplaceWriteoffExecutedPayloadSchema: z.ZodObject<{
|
|
|
1617
1622
|
coopname: string;
|
|
1618
1623
|
recipientName: string;
|
|
1619
1624
|
proposal_id: string;
|
|
1620
|
-
proposal_hash: string;
|
|
1621
1625
|
itemsCount: number;
|
|
1622
1626
|
totalAmount: string;
|
|
1627
|
+
proposal_hash: string;
|
|
1623
1628
|
deepLinkUrl?: string | undefined;
|
|
1624
1629
|
}, {
|
|
1625
1630
|
coopname: string;
|
|
1626
1631
|
recipientName: string;
|
|
1627
1632
|
proposal_id: string;
|
|
1628
|
-
proposal_hash: string;
|
|
1629
1633
|
itemsCount: number;
|
|
1630
1634
|
totalAmount: string;
|
|
1635
|
+
proposal_hash: string;
|
|
1631
1636
|
deepLinkUrl?: string | undefined;
|
|
1632
1637
|
}>;
|
|
1633
1638
|
type IPayload$g = z.infer<typeof marketplaceWriteoffExecutedPayloadSchema>;
|
|
@@ -1652,17 +1657,17 @@ declare const marketplaceWriteoffRejectedPayloadSchema: z.ZodObject<{
|
|
|
1652
1657
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1653
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1654
1659
|
coopname: string;
|
|
1655
|
-
reason: string;
|
|
1656
1660
|
recipientName: string;
|
|
1657
1661
|
proposal_id: string;
|
|
1658
1662
|
proposal_hash: string;
|
|
1663
|
+
reason: string;
|
|
1659
1664
|
deepLinkUrl?: string | undefined;
|
|
1660
1665
|
}, {
|
|
1661
1666
|
coopname: string;
|
|
1662
|
-
reason: string;
|
|
1663
1667
|
recipientName: string;
|
|
1664
1668
|
proposal_id: string;
|
|
1665
1669
|
proposal_hash: string;
|
|
1670
|
+
reason: string;
|
|
1666
1671
|
deepLinkUrl?: string | undefined;
|
|
1667
1672
|
}>;
|
|
1668
1673
|
type IPayload$f = z.infer<typeof marketplaceWriteoffRejectedPayloadSchema>;
|
|
@@ -1687,19 +1692,19 @@ declare const marketplaceNewOrderForSupplierPayloadSchema: z.ZodObject<{
|
|
|
1687
1692
|
order_id: z.ZodString;
|
|
1688
1693
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1689
1694
|
}, "strip", z.ZodTypeAny, {
|
|
1690
|
-
coopname: string;
|
|
1691
1695
|
quantity: number;
|
|
1692
|
-
|
|
1696
|
+
coopname: string;
|
|
1693
1697
|
ordererName: string;
|
|
1694
1698
|
order_id: string;
|
|
1699
|
+
supplierName: string;
|
|
1695
1700
|
totalCost: string;
|
|
1696
1701
|
deepLinkUrl?: string | undefined;
|
|
1697
1702
|
}, {
|
|
1698
|
-
coopname: string;
|
|
1699
1703
|
quantity: number;
|
|
1700
|
-
|
|
1704
|
+
coopname: string;
|
|
1701
1705
|
ordererName: string;
|
|
1702
1706
|
order_id: string;
|
|
1707
|
+
supplierName: string;
|
|
1703
1708
|
totalCost: string;
|
|
1704
1709
|
deepLinkUrl?: string | undefined;
|
|
1705
1710
|
}>;
|
|
@@ -1726,19 +1731,19 @@ declare const marketplaceReturnAcceptedSupplierPayloadSchema: z.ZodObject<{
|
|
|
1726
1731
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1727
1732
|
}, "strip", z.ZodTypeAny, {
|
|
1728
1733
|
coopname: string;
|
|
1729
|
-
supplierName: string;
|
|
1730
|
-
kuName: string;
|
|
1731
1734
|
claim_id: string;
|
|
1732
1735
|
order_id: string;
|
|
1733
1736
|
reasonExcerpt: string;
|
|
1737
|
+
supplierName: string;
|
|
1738
|
+
kuName: string;
|
|
1734
1739
|
deepLinkUrl?: string | undefined;
|
|
1735
1740
|
}, {
|
|
1736
1741
|
coopname: string;
|
|
1737
|
-
supplierName: string;
|
|
1738
|
-
kuName: string;
|
|
1739
1742
|
claim_id: string;
|
|
1740
1743
|
order_id: string;
|
|
1741
1744
|
reasonExcerpt: string;
|
|
1745
|
+
supplierName: string;
|
|
1746
|
+
kuName: string;
|
|
1742
1747
|
deepLinkUrl?: string | undefined;
|
|
1743
1748
|
}>;
|
|
1744
1749
|
type IPayload$d = z.infer<typeof marketplaceReturnAcceptedSupplierPayloadSchema>;
|
|
@@ -1764,18 +1769,18 @@ declare const marketplaceOrderDeclinedBySupplierPayloadSchema: z.ZodObject<{
|
|
|
1764
1769
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1765
1770
|
}, "strip", z.ZodTypeAny, {
|
|
1766
1771
|
coopname: string;
|
|
1767
|
-
kuName: string;
|
|
1768
1772
|
ordererName: string;
|
|
1769
1773
|
order_id: string;
|
|
1770
1774
|
reasonExcerpt: string;
|
|
1775
|
+
kuName: string;
|
|
1771
1776
|
productName: string;
|
|
1772
1777
|
deepLinkUrl?: string | undefined;
|
|
1773
1778
|
}, {
|
|
1774
1779
|
coopname: string;
|
|
1775
|
-
kuName: string;
|
|
1776
1780
|
ordererName: string;
|
|
1777
1781
|
order_id: string;
|
|
1778
1782
|
reasonExcerpt: string;
|
|
1783
|
+
kuName: string;
|
|
1779
1784
|
productName: string;
|
|
1780
1785
|
deepLinkUrl?: string | undefined;
|
|
1781
1786
|
}>;
|
|
@@ -1832,14 +1837,14 @@ declare const marketplaceOfferOnModerationPayloadSchema: z.ZodObject<{
|
|
|
1832
1837
|
deepLinkUrl: z.ZodOptional<z.ZodString>;
|
|
1833
1838
|
}, "strip", z.ZodTypeAny, {
|
|
1834
1839
|
coopname: string;
|
|
1835
|
-
supplierName: string;
|
|
1836
1840
|
recipientName: string;
|
|
1841
|
+
supplierName: string;
|
|
1837
1842
|
productName: string;
|
|
1838
1843
|
deepLinkUrl?: string | undefined;
|
|
1839
1844
|
}, {
|
|
1840
1845
|
coopname: string;
|
|
1841
|
-
supplierName: string;
|
|
1842
1846
|
recipientName: string;
|
|
1847
|
+
supplierName: string;
|
|
1843
1848
|
productName: string;
|
|
1844
1849
|
deepLinkUrl?: string | undefined;
|
|
1845
1850
|
}>;
|
|
@@ -2095,13 +2100,13 @@ declare const branchVotingStartedPayloadSchema: z.ZodObject<{
|
|
|
2095
2100
|
}, "strip", z.ZodTypeAny, {
|
|
2096
2101
|
coopShortName: string;
|
|
2097
2102
|
meetPlace: string;
|
|
2098
|
-
closeAtTime: string;
|
|
2099
2103
|
meetingUrl: string;
|
|
2104
|
+
closeAtTime: string;
|
|
2100
2105
|
}, {
|
|
2101
2106
|
coopShortName: string;
|
|
2102
2107
|
meetPlace: string;
|
|
2103
|
-
closeAtTime: string;
|
|
2104
2108
|
meetingUrl: string;
|
|
2109
|
+
closeAtTime: string;
|
|
2105
2110
|
}>;
|
|
2106
2111
|
type IPayload$3 = z.infer<typeof branchVotingStartedPayloadSchema>;
|
|
2107
2112
|
interface IWorkflow$3 extends BaseWorkflowPayload, IPayload$3 {
|
|
@@ -2124,13 +2129,13 @@ declare const branchMeetingReminderPayloadSchema: z.ZodObject<{
|
|
|
2124
2129
|
}, "strip", z.ZodTypeAny, {
|
|
2125
2130
|
coopShortName: string;
|
|
2126
2131
|
meetPlace: string;
|
|
2127
|
-
meetingUrl: string;
|
|
2128
2132
|
meetAtTime: string;
|
|
2133
|
+
meetingUrl: string;
|
|
2129
2134
|
}, {
|
|
2130
2135
|
coopShortName: string;
|
|
2131
2136
|
meetPlace: string;
|
|
2132
|
-
meetingUrl: string;
|
|
2133
2137
|
meetAtTime: string;
|
|
2138
|
+
meetingUrl: string;
|
|
2134
2139
|
}>;
|
|
2135
2140
|
type IPayload$2 = z.infer<typeof branchMeetingReminderPayloadSchema>;
|
|
2136
2141
|
interface IWorkflow$2 extends BaseWorkflowPayload, IPayload$2 {
|
|
@@ -2151,12 +2156,12 @@ declare const branchTrustedRequestedPayloadSchema: z.ZodObject<{
|
|
|
2151
2156
|
branchUrl: z.ZodString;
|
|
2152
2157
|
}, "strip", z.ZodTypeAny, {
|
|
2153
2158
|
coopShortName: string;
|
|
2154
|
-
branchUrl: string;
|
|
2155
2159
|
applicantName: string;
|
|
2160
|
+
branchUrl: string;
|
|
2156
2161
|
}, {
|
|
2157
2162
|
coopShortName: string;
|
|
2158
|
-
branchUrl: string;
|
|
2159
2163
|
applicantName: string;
|
|
2164
|
+
branchUrl: string;
|
|
2160
2165
|
}>;
|
|
2161
2166
|
type IPayload$1 = z.infer<typeof branchTrustedRequestedPayloadSchema>;
|
|
2162
2167
|
interface IWorkflow$1 extends BaseWorkflowPayload, IPayload$1 {
|
|
@@ -2177,12 +2182,12 @@ declare const branchTrustedResolvedPayloadSchema: z.ZodObject<{
|
|
|
2177
2182
|
branchUrl: z.ZodString;
|
|
2178
2183
|
}, "strip", z.ZodTypeAny, {
|
|
2179
2184
|
coopShortName: string;
|
|
2180
|
-
resolution: string;
|
|
2181
2185
|
branchUrl: string;
|
|
2186
|
+
resolution: string;
|
|
2182
2187
|
}, {
|
|
2183
2188
|
coopShortName: string;
|
|
2184
|
-
resolution: string;
|
|
2185
2189
|
branchUrl: string;
|
|
2190
|
+
resolution: string;
|
|
2186
2191
|
}>;
|
|
2187
2192
|
type IPayload = z.infer<typeof branchTrustedResolvedPayloadSchema>;
|
|
2188
2193
|
interface IWorkflow extends BaseWorkflowPayload, IPayload {
|
package/dist/index.mjs
CHANGED
|
@@ -3054,15 +3054,18 @@ const index$B = {
|
|
|
3054
3054
|
};
|
|
3055
3055
|
|
|
3056
3056
|
const emailVerificationPayloadSchema = z.object({
|
|
3057
|
-
|
|
3057
|
+
/** Шестизначный код подтверждения. */
|
|
3058
|
+
code: z.string(),
|
|
3059
|
+
/** Срок действия кода человеческими словами («15 минут»). */
|
|
3060
|
+
ttl: z.string()
|
|
3058
3061
|
});
|
|
3059
3062
|
const name$z = "\u0412\u0435\u0440\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F Email";
|
|
3060
3063
|
const id$z = slugify(name$z);
|
|
3061
3064
|
const workflow$z = WorkflowBuilder.create().name(name$z).workflowId(id$z).description("\u0412\u0435\u0440\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F email \u0430\u0434\u0440\u0435\u0441\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F").payloadSchema(emailVerificationPayloadSchema).tags(["auth"]).addSteps([
|
|
3062
3065
|
createEmailStep(
|
|
3063
3066
|
"email-verification-email",
|
|
3064
|
-
"
|
|
3065
|
-
'
|
|
3067
|
+
"\u041A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043F\u043E\u0447\u0442\u044B",
|
|
3068
|
+
'\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043E \u044D\u0442\u043E\u0442 \u0430\u0434\u0440\u0435\u0441 \u043F\u0440\u0438\u043D\u0430\u0434\u043B\u0435\u0436\u0438\u0442 \u0432\u0430\u043C.<br><br>\u041A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F: <b style="font-size:20px;letter-spacing:3px">{{payload.code}}</b><br><br>\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0435\u0433\u043E \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435, \u0433\u0434\u0435 \u0437\u0430\u043F\u0440\u0430\u0448\u0438\u0432\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435. \u0412\u0440\u0435\u043C\u044F \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043A\u043E\u0434\u0430 - {{payload.ttl}}.<br><br>\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430 \u043D\u0443\u0436\u043D\u0430, \u0447\u0442\u043E\u0431\u044B \u0432\u044B \u043C\u043E\u0433\u043B\u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043B\u0438\u0447\u043D\u043E\u043C\u0443 \u043A\u0430\u0431\u0438\u043D\u0435\u0442\u0443 \u0438 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430.<br><br>\u0415\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0437\u0430\u043F\u0440\u0430\u0448\u0438\u0432\u0430\u043B\u0438 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u0435 - \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.'
|
|
3066
3069
|
)
|
|
3067
3070
|
]).build();
|
|
3068
3071
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/notifications",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.8-1",
|
|
4
4
|
"description": "Каталог типобезопасных типов уведомлений и шаблонов Центра уведомлений",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"require": "./dist/index.cjs"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "b123c4bd8d4fc234ccb2a15105832390e8fa4fbc"
|
|
49
49
|
}
|
|
@@ -6,7 +6,10 @@ import { slugify } from '../../utils';
|
|
|
6
6
|
|
|
7
7
|
// Схема для email-verification воркфлоу
|
|
8
8
|
export const emailVerificationPayloadSchema = z.object({
|
|
9
|
-
|
|
9
|
+
/** Шестизначный код подтверждения. */
|
|
10
|
+
code: z.string(),
|
|
11
|
+
/** Срок действия кода человеческими словами («15 минут»). */
|
|
12
|
+
ttl: z.string(),
|
|
10
13
|
});
|
|
11
14
|
|
|
12
15
|
export type IPayload = z.infer<typeof emailVerificationPayloadSchema>;
|
|
@@ -26,10 +29,12 @@ export const workflow: WorkflowDefinition<IWorkflow> = WorkflowBuilder
|
|
|
26
29
|
.addSteps([
|
|
27
30
|
createEmailStep(
|
|
28
31
|
'email-verification-email',
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
32
|
+
'Код подтверждения почты',
|
|
33
|
+
'Подтвердите, что этот адрес принадлежит вам.<br><br>' +
|
|
34
|
+
'Код подтверждения: <b style="font-size:20px;letter-spacing:3px">{{payload.code}}</b><br><br>' +
|
|
35
|
+
'Введите его на странице, где запрашивалось подтверждение. Время действия кода - {{payload.ttl}}.<br><br>' +
|
|
36
|
+
'Подтверждённая почта нужна, чтобы вы могли вернуть доступ к личному кабинету и получать уведомления кооператива.<br><br>' +
|
|
37
|
+
'Если вы не запрашивали подтверждение - проигнорируйте это сообщение.'
|
|
33
38
|
),
|
|
34
39
|
])
|
|
35
40
|
.build();
|