@onylab/common-api 0.1.224 → 0.1.225
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/common-api.d.ts +22 -5
- package/package.json +1 -1
package/dist/common-api.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ declare module "service/sender/SmsSenderServiceContract" {
|
|
|
254
254
|
}
|
|
255
255
|
declare module "tool/Retry" {
|
|
256
256
|
export class Retry {
|
|
257
|
-
static request(process: () => Promise<void>, retries
|
|
257
|
+
static request(process: () => Promise<void>, retries: number, logger: (error: Error) => void): Promise<any>;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
declare module "util/ValidatorUtil" {
|
|
@@ -410,8 +410,16 @@ declare module "service/sender/EmailSenderServiceContract" {
|
|
|
410
410
|
export interface EmailSenderServiceContract {
|
|
411
411
|
sendDeliveryDelay(sender: SenderContract, recipient: RecipientContract, data: ViewEmailDeliveryDelayContract): Promise<void>;
|
|
412
412
|
sendTrackDelivery(sender: SenderContract, recipient: RecipientContract, data: ViewEmailTrackDeliveryContract): Promise<void>;
|
|
413
|
-
sendUserNotification(sender: SenderContract, recipient: RecipientContract, data: ViewEmailUserNotificationContract, isCommercial?: boolean): Promise<void>;
|
|
414
|
-
|
|
413
|
+
sendUserNotification(sender: SenderContract, recipient: RecipientContract, data: ViewEmailUserNotificationContract, isCommercial?: boolean, customId?: string): Promise<void>;
|
|
414
|
+
sendUsersNotifications(sender: SenderContract, messages: {
|
|
415
|
+
recipient: RecipientContract;
|
|
416
|
+
data: ViewEmailUserNotificationContract;
|
|
417
|
+
}[], isCommercial?: boolean, customId?: string): Promise<void>;
|
|
418
|
+
sendDiscount(sender: SenderContract, recipient: RecipientContract, data: ViewEmailDiscountContract, isCommercial?: boolean, customId?: string): Promise<void>;
|
|
419
|
+
sendDiscounts(sender: SenderContract, messages: {
|
|
420
|
+
recipient: RecipientContract;
|
|
421
|
+
data: ViewEmailDiscountContract;
|
|
422
|
+
}[], isCommercial?: boolean, customId?: string): Promise<void>;
|
|
415
423
|
}
|
|
416
424
|
}
|
|
417
425
|
declare module "templating/TemplateEngineContract" {
|
|
@@ -510,8 +518,16 @@ declare module "service/sender/EmailSenderService" {
|
|
|
510
518
|
constructor(apiPublicKey: string, apiSecretKey: string, mode: Environment);
|
|
511
519
|
sendDeliveryDelay(sender: SenderContract, recipient: RecipientContract, data: ViewEmailTrackDeliveryContract): Promise<void>;
|
|
512
520
|
sendTrackDelivery(sender: SenderContract, recipient: RecipientContract, data: ViewEmailTrackDeliveryContract): Promise<void>;
|
|
513
|
-
sendUserNotification(sender: SenderContract, recipient: RecipientContract, data: ViewEmailUserNotificationContract, isCommercial?: boolean): Promise<void>;
|
|
514
|
-
|
|
521
|
+
sendUserNotification(sender: SenderContract, recipient: RecipientContract, data: ViewEmailUserNotificationContract, isCommercial?: boolean, customId?: string): Promise<void>;
|
|
522
|
+
sendUsersNotifications(sender: SenderContract, messages: {
|
|
523
|
+
recipient: RecipientContract;
|
|
524
|
+
data: ViewEmailUserNotificationContract;
|
|
525
|
+
}[], isCommercial?: boolean, customId?: string): Promise<void>;
|
|
526
|
+
sendDiscount(sender: SenderContract, recipient: RecipientContract, data: ViewEmailDiscountContract, isCommercial?: boolean, customId?: string): Promise<void>;
|
|
527
|
+
sendDiscounts(sender: SenderContract, messages: {
|
|
528
|
+
recipient: RecipientContract;
|
|
529
|
+
data: ViewEmailDiscountContract;
|
|
530
|
+
}[], isCommercial?: boolean, customId?: string): Promise<void>;
|
|
515
531
|
private sendNotification;
|
|
516
532
|
}
|
|
517
533
|
}
|
|
@@ -621,6 +637,7 @@ declare module "util/HelperUtil" {
|
|
|
621
637
|
declare module "util/StringUtil" {
|
|
622
638
|
export class StringUtil {
|
|
623
639
|
static escapeRegExp(str: string): string;
|
|
640
|
+
static hash(str: string, seed?: number): string;
|
|
624
641
|
static nullable(str: string): string;
|
|
625
642
|
static removeMultiSpaces(data: string): string;
|
|
626
643
|
static removeText(data: string, text: string): string;
|