feat: 优化微信订阅消息体系并新增约课取消通知与开课前1小时提醒
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -58,5 +58,7 @@ export enum SubscriptionMessageScene {
|
||||
CLASS_REVIEW = 'CLASS_REVIEW',
|
||||
ORDER_PAID = 'ORDER_PAID',
|
||||
BOOKING_CREATED = 'BOOKING_CREATED',
|
||||
BOOKING_CANCELLED = 'BOOKING_CANCELLED',
|
||||
CLASS_REMINDER = 'CLASS_REMINDER',
|
||||
ADMIN_BOOKING_CREATED = 'ADMIN_BOOKING_CREATED',
|
||||
}
|
||||
|
||||
@@ -111,6 +111,8 @@ export type {
|
||||
SubscriptionMessageTemplateConfig,
|
||||
ReportSubscriptionMessageRequestDto,
|
||||
SubscriptionMessageConsentSummary,
|
||||
SubscriptionQuotaItem,
|
||||
SubscriptionQuotasResponse,
|
||||
} from './types/index'
|
||||
|
||||
export * from './types/member-care'
|
||||
|
||||
@@ -19,6 +19,8 @@ export type {
|
||||
SubscriptionMessageTemplateConfig,
|
||||
ReportSubscriptionMessageRequestDto,
|
||||
SubscriptionMessageConsentSummary,
|
||||
SubscriptionQuotaItem,
|
||||
SubscriptionQuotasResponse,
|
||||
} from './subscription'
|
||||
export type { CardType, CreateCardTypeDto, UpdateCardTypeDto } from './card-type'
|
||||
export type { Membership, MembershipWithCardType } from './membership'
|
||||
|
||||
@@ -40,3 +40,17 @@ export interface SubscriptionMessageConsentSummary {
|
||||
readonly createdAt: string
|
||||
readonly updatedAt: string
|
||||
}
|
||||
|
||||
export interface SubscriptionQuotaItem {
|
||||
readonly scene: SubscriptionMessageScene
|
||||
readonly templateId: string
|
||||
readonly description: string
|
||||
readonly remainingQuota: number
|
||||
readonly acceptCount: number
|
||||
readonly sentCount: number
|
||||
readonly lastResult: SubscriptionMessageRequestResult | null
|
||||
}
|
||||
|
||||
export interface SubscriptionQuotasResponse {
|
||||
readonly quotas: SubscriptionQuotaItem[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user