aivilife-contracts 6.11.0 → 6.13.0
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/README.md +6 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -1
- package/dist/index.mjs.map +1 -1
- package/dist/notification/index.d.mts +44 -2
- package/dist/notification/index.d.ts +44 -2
- package/dist/notification/index.js +20 -0
- package/dist/notification/index.js.map +1 -1
- package/dist/notification/index.mjs +20 -1
- package/dist/notification/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,6 +146,12 @@ import {
|
|
|
146
146
|
} from 'aivilife-contracts/marketing';
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
+
## 6.13.0
|
|
150
|
+
|
|
151
|
+
- Added Binary and Matching bonus system-notification types.
|
|
152
|
+
- Added structured bonus-source snapshots with the calculation period, source partner and Matching level.
|
|
153
|
+
- System notification currency now accepts PV amounts.
|
|
154
|
+
|
|
149
155
|
## 6.8.0
|
|
150
156
|
|
|
151
157
|
- Added the Binary branch, payable Binary volume and rank volume impact to administrative BOX order sponsor details.
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ export { AdminWarehouseOrderSummaryQuery, AdminWarehouseOrderSummaryQuerySchema,
|
|
|
12
12
|
export { AdminWarehouseAnalyticsQuery, AdminWarehouseAnalyticsQuerySchema, AdminWarehouseAnalyticsResponse, AdminWarehouseAnalyticsSchema, AssignWarehouseUserRequest, AssignWarehouseUserRequestSchema, CreateWarehouseOperationRequest, CreateWarehouseOperationRequestSchema, CreateWarehouseRequest, CreateWarehouseRequestSchema, ExecuteWarehouseOperationRequest, ExecuteWarehouseOperationRequestSchema, RejectWarehouseOperationRequest, RejectWarehouseOperationRequestSchema, ReportWarehouseDiscrepancyRequest, ReportWarehouseDiscrepancyRequestSchema, UpdateWarehouseRequest, UpdateWarehouseRequestSchema, WarehouseAssignmentParamSchema, WarehouseAssignmentResponse, WarehouseAssignmentSchema, WarehouseAssignmentType, WarehouseDayScheduleSchema, WarehouseListQuery, WarehouseListQuerySchema, WarehouseListResponse, WarehouseMovementResponse, WarehouseMovementSchema, WarehouseMovementType, WarehouseOperationAttachmentParamSchema, WarehouseOperationAttachmentResponse, WarehouseOperationAttachmentSchema, WarehouseOperationComment, WarehouseOperationCommentSchema, WarehouseOperationEventSchema, WarehouseOperationLineSchema, WarehouseOperationListQuery, WarehouseOperationListQuerySchema, WarehouseOperationListResponse, WarehouseOperationPublicIdParamSchema, WarehouseOperationResponse, WarehouseOperationSchema, WarehousePublicIdParamSchema, WarehouseRequestLineInputSchema, WarehouseRequestStatus, WarehouseRequestType, WarehouseResponse, WarehouseSchema, WarehouseStatus, WarehouseStockListQuery, WarehouseStockListQuerySchema, WarehouseStockListResponse, WarehouseStockResponse, WarehouseStockSchema, WarehouseUserLookupListResponse, WarehouseUserLookupResponse, WarehouseUserLookupSchema, WarehouseUserSearchQuery, WarehouseUserSearchQuerySchema, WarehouseWeekday, WarehouseWeeklyScheduleSchema, WarehouseWriteOffReason } from './warehouse/index.mjs';
|
|
13
13
|
export { BoxCheckoutSnapshotResponse, BoxCheckoutSnapshotSchema, BoxCheckoutWarehouseListResponse, BoxCheckoutWarehouseListSchema, BoxCheckoutWarehouseRequest, BoxCheckoutWarehouseRequestSchema, BoxListQuery, BoxListQuerySchema, BoxListResponse, BoxListResponseSchema, BoxPublicIdParamSchema, BoxPurchaseKind, BoxPurchaseResponse, BoxPurchaseSchema, BoxPurchaseStatus, BoxResponse, BoxSchema, BoxSelection, BoxSelectionLineSchema, BoxSelectionSchema, BoxStatus, BoxStructureLevelInputSchema, BoxStructureLevelSchema, BoxTranslationInputSchema, CreateBoxOrderRequest, CreateBoxOrderRequestSchema, CreateBoxRequest, CreateBoxRequestSchema, LocalizedBoxListResponse, LocalizedBoxListResponseSchema, LocalizedBoxResponse, LocalizedBoxSchema, UpdateBoxRequest, UpdateBoxRequestSchema } from './box/index.mjs';
|
|
14
14
|
export { AppLocale, SupportedLocales } from './localization/index.mjs';
|
|
15
|
-
export { SystemNotificationListResponse, SystemNotificationListSchema, SystemNotificationResponse, SystemNotificationSchema, SystemNotificationType } from './notification/index.mjs';
|
|
15
|
+
export { SystemNotificationBonusSourceSchema, SystemNotificationListResponse, SystemNotificationListSchema, SystemNotificationResponse, SystemNotificationSchema, SystemNotificationType } from './notification/index.mjs';
|
|
16
16
|
|
|
17
17
|
declare const DateFromSchema: z.ZodOptional<z.ZodString>;
|
|
18
18
|
declare const DateToSchema: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { AdminWarehouseOrderSummaryQuery, AdminWarehouseOrderSummaryQuerySchema,
|
|
|
12
12
|
export { AdminWarehouseAnalyticsQuery, AdminWarehouseAnalyticsQuerySchema, AdminWarehouseAnalyticsResponse, AdminWarehouseAnalyticsSchema, AssignWarehouseUserRequest, AssignWarehouseUserRequestSchema, CreateWarehouseOperationRequest, CreateWarehouseOperationRequestSchema, CreateWarehouseRequest, CreateWarehouseRequestSchema, ExecuteWarehouseOperationRequest, ExecuteWarehouseOperationRequestSchema, RejectWarehouseOperationRequest, RejectWarehouseOperationRequestSchema, ReportWarehouseDiscrepancyRequest, ReportWarehouseDiscrepancyRequestSchema, UpdateWarehouseRequest, UpdateWarehouseRequestSchema, WarehouseAssignmentParamSchema, WarehouseAssignmentResponse, WarehouseAssignmentSchema, WarehouseAssignmentType, WarehouseDayScheduleSchema, WarehouseListQuery, WarehouseListQuerySchema, WarehouseListResponse, WarehouseMovementResponse, WarehouseMovementSchema, WarehouseMovementType, WarehouseOperationAttachmentParamSchema, WarehouseOperationAttachmentResponse, WarehouseOperationAttachmentSchema, WarehouseOperationComment, WarehouseOperationCommentSchema, WarehouseOperationEventSchema, WarehouseOperationLineSchema, WarehouseOperationListQuery, WarehouseOperationListQuerySchema, WarehouseOperationListResponse, WarehouseOperationPublicIdParamSchema, WarehouseOperationResponse, WarehouseOperationSchema, WarehousePublicIdParamSchema, WarehouseRequestLineInputSchema, WarehouseRequestStatus, WarehouseRequestType, WarehouseResponse, WarehouseSchema, WarehouseStatus, WarehouseStockListQuery, WarehouseStockListQuerySchema, WarehouseStockListResponse, WarehouseStockResponse, WarehouseStockSchema, WarehouseUserLookupListResponse, WarehouseUserLookupResponse, WarehouseUserLookupSchema, WarehouseUserSearchQuery, WarehouseUserSearchQuerySchema, WarehouseWeekday, WarehouseWeeklyScheduleSchema, WarehouseWriteOffReason } from './warehouse/index.js';
|
|
13
13
|
export { BoxCheckoutSnapshotResponse, BoxCheckoutSnapshotSchema, BoxCheckoutWarehouseListResponse, BoxCheckoutWarehouseListSchema, BoxCheckoutWarehouseRequest, BoxCheckoutWarehouseRequestSchema, BoxListQuery, BoxListQuerySchema, BoxListResponse, BoxListResponseSchema, BoxPublicIdParamSchema, BoxPurchaseKind, BoxPurchaseResponse, BoxPurchaseSchema, BoxPurchaseStatus, BoxResponse, BoxSchema, BoxSelection, BoxSelectionLineSchema, BoxSelectionSchema, BoxStatus, BoxStructureLevelInputSchema, BoxStructureLevelSchema, BoxTranslationInputSchema, CreateBoxOrderRequest, CreateBoxOrderRequestSchema, CreateBoxRequest, CreateBoxRequestSchema, LocalizedBoxListResponse, LocalizedBoxListResponseSchema, LocalizedBoxResponse, LocalizedBoxSchema, UpdateBoxRequest, UpdateBoxRequestSchema } from './box/index.js';
|
|
14
14
|
export { AppLocale, SupportedLocales } from './localization/index.js';
|
|
15
|
-
export { SystemNotificationListResponse, SystemNotificationListSchema, SystemNotificationResponse, SystemNotificationSchema, SystemNotificationType } from './notification/index.js';
|
|
15
|
+
export { SystemNotificationBonusSourceSchema, SystemNotificationListResponse, SystemNotificationListSchema, SystemNotificationResponse, SystemNotificationSchema, SystemNotificationType } from './notification/index.js';
|
|
16
16
|
|
|
17
17
|
declare const DateFromSchema: z.ZodOptional<z.ZodString>;
|
|
18
18
|
declare const DateToSchema: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -2209,13 +2209,32 @@ var BoxPurchaseSchema = zod.z.object({
|
|
|
2209
2209
|
// src/notification/notification.enums.ts
|
|
2210
2210
|
var SystemNotificationType = /* @__PURE__ */ ((SystemNotificationType2) => {
|
|
2211
2211
|
SystemNotificationType2["EMAIL_VERIFIED"] = "EMAIL_VERIFIED";
|
|
2212
|
+
SystemNotificationType2["WITHDRAWAL_APPROVED"] = "WITHDRAWAL_APPROVED";
|
|
2213
|
+
SystemNotificationType2["WITHDRAWAL_REJECTED"] = "WITHDRAWAL_REJECTED";
|
|
2214
|
+
SystemNotificationType2["BINARY_BONUS_CREDITED"] = "BINARY_BONUS_CREDITED";
|
|
2215
|
+
SystemNotificationType2["MATCHING_BONUS_CREDITED"] = "MATCHING_BONUS_CREDITED";
|
|
2212
2216
|
return SystemNotificationType2;
|
|
2213
2217
|
})(SystemNotificationType || {});
|
|
2214
2218
|
var PublicIdSchema8 = zod.z.uuid();
|
|
2215
2219
|
var DateTimeSchema3 = zod.z.iso.datetime();
|
|
2220
|
+
var SystemNotificationBonusSourceSchema = zod.z.object({
|
|
2221
|
+
periodStartedAt: DateTimeSchema3,
|
|
2222
|
+
periodEndedAt: DateTimeSchema3,
|
|
2223
|
+
sourceUser: zod.z.object({
|
|
2224
|
+
uuid: zod.z.string().trim().min(1).max(64),
|
|
2225
|
+
login: zod.z.string().trim().min(1).max(255),
|
|
2226
|
+
fullName: zod.z.string().trim().min(1).max(511)
|
|
2227
|
+
}).nullable(),
|
|
2228
|
+
matchingLevel: zod.z.number().int().positive().nullable()
|
|
2229
|
+
});
|
|
2216
2230
|
var SystemNotificationSchema = zod.z.object({
|
|
2217
2231
|
publicId: PublicIdSchema8,
|
|
2218
2232
|
type: zod.z.enum(SystemNotificationType),
|
|
2233
|
+
referencePublicId: PublicIdSchema8.nullable(),
|
|
2234
|
+
amount: zod.z.string().regex(/^\d{1,16}(?:\.\d{1,8})?$/).nullable(),
|
|
2235
|
+
currency: zod.z.string().regex(/^(?:[A-Z]{3}|PV)$/).nullable(),
|
|
2236
|
+
reason: zod.z.string().max(2e3).nullable(),
|
|
2237
|
+
bonusSource: SystemNotificationBonusSourceSchema.nullable(),
|
|
2219
2238
|
isRead: zod.z.boolean(),
|
|
2220
2239
|
createdAt: DateTimeSchema3
|
|
2221
2240
|
});
|
|
@@ -2541,6 +2560,7 @@ exports.SortOrderSchema = SortOrderSchema;
|
|
|
2541
2560
|
exports.SponsoredSignUpRequestSchema = SponsoredSignUpRequestSchema;
|
|
2542
2561
|
exports.SponsoredSignUpResponseSchema = SponsoredSignUpResponseSchema;
|
|
2543
2562
|
exports.SupportedLocales = SupportedLocales;
|
|
2563
|
+
exports.SystemNotificationBonusSourceSchema = SystemNotificationBonusSourceSchema;
|
|
2544
2564
|
exports.SystemNotificationListSchema = SystemNotificationListSchema;
|
|
2545
2565
|
exports.SystemNotificationSchema = SystemNotificationSchema;
|
|
2546
2566
|
exports.SystemNotificationType = SystemNotificationType;
|