@mohasinac/appkit 4.14.0 → 4.15.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/dist/_internal/server/features/auctions/actions.js +2 -2
- package/dist/_internal/server/features/cart/service.d.ts +3 -3
- package/dist/_internal/server/features/checkout/actions.js +19 -0
- package/dist/_internal/server/features/checkout/source-context.d.ts +5 -0
- package/dist/_internal/server/features/checkout/source-context.js +157 -0
- package/dist/_internal/server/features/offers/adapters.d.ts +103 -0
- package/dist/_internal/server/features/offers/adapters.js +88 -0
- package/dist/_internal/server/features/offers/index.d.ts +2 -0
- package/dist/_internal/server/features/offers/index.js +1 -0
- package/dist/_internal/server/features/orders/adapters.js +24 -0
- package/dist/_internal/server/jobs/core/offerExpiry.js +10 -10
- package/dist/_internal/shared/actions/action-registry.js +3 -1
- package/dist/_internal/shared/features/auctions/schema.d.ts +14 -2
- package/dist/_internal/shared/features/auctions/schema.js +13 -1
- package/dist/_internal/shared/features/cart/schema.d.ts +14 -9
- package/dist/_internal/shared/features/cart/schema.js +15 -0
- package/dist/_internal/shared/features/products/schema.d.ts +2 -2
- package/dist/_internal/shared/history/history.d.ts +22 -0
- package/dist/_internal/shared/history/history.js +41 -1
- package/dist/client.d.ts +13 -2
- package/dist/client.js +20 -2
- package/dist/constants/field-names.d.ts +8 -6
- package/dist/constants/field-names.js +48 -6
- package/dist/features/account/components/UserBidsView.js +12 -4
- package/dist/features/account/components/UserReturnsView.d.ts +3 -0
- package/dist/features/account/components/UserReturnsView.js +17 -1
- package/dist/features/admin/components/AdminAuditLogView.js +1 -0
- package/dist/features/admin/components/AdminBidsView.js +15 -2
- package/dist/features/admin/components/AdminBlogEditorView.js +65 -33
- package/dist/features/admin/components/AdminFeatureEditorView.js +35 -6
- package/dist/features/admin/components/AdminNavEditorView.js +15 -5
- package/dist/features/admin/components/AdminNewsletterView.js +18 -2
- package/dist/features/admin/components/AdminOffersView.js +62 -18
- package/dist/features/admin/components/AdminPaymentMethodsView.js +24 -4
- package/dist/features/admin/components/AdminScammerEditorView.d.ts +2 -1
- package/dist/features/admin/components/AdminScammerEditorView.js +3 -13
- package/dist/features/admin/components/AdminScammersView.js +3 -8
- package/dist/features/admin/components/AdminSectionsView.js +32 -23
- package/dist/features/admin/components/AdminSessionsView.js +17 -2
- package/dist/features/admin/components/ViewAuditLogEntryModal.js +1 -0
- package/dist/features/admin/components/sections/adminSectionsTypes.d.ts +4 -2
- package/dist/features/admin/components/sections/adminSectionsTypes.js +45 -27
- package/dist/features/admin/constants/filter-tabs.d.ts +3 -0
- package/dist/features/admin/constants/filter-tabs.js +1 -0
- package/dist/features/admin/schemas/homepage-section-form.d.ts +22 -0
- package/dist/features/admin/schemas/homepage-section-form.js +68 -0
- package/dist/features/admin/schemas/nav-item-form.d.ts +74 -0
- package/dist/features/admin/schemas/nav-item-form.js +72 -0
- package/dist/features/auctions/components/AuctionBidsTable.d.ts +10 -1
- package/dist/features/auctions/components/AuctionBidsTable.js +22 -4
- package/dist/features/auctions/components/bid-detail-fields.d.ts +29 -0
- package/dist/features/auctions/components/bid-detail-fields.js +103 -0
- package/dist/features/audit-log/schemas/firestore.d.ts +14 -0
- package/dist/features/audit-log/schemas/firestore.js +7 -0
- package/dist/features/blog/schemas/blog-form.d.ts +80 -0
- package/dist/features/blog/schemas/blog-form.js +100 -0
- package/dist/features/events/components/AdminEventEditorView.js +32 -54
- package/dist/features/events/components/AdminEventEntriesView.js +22 -3
- package/dist/features/events/schemas/event-form.d.ts +113 -0
- package/dist/features/events/schemas/event-form.js +82 -0
- package/dist/features/grouped/schemas/grouped-listing-form.d.ts +101 -0
- package/dist/features/grouped/schemas/grouped-listing-form.js +89 -0
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +11 -3
- package/dist/features/homepage/actions/homepage-section-actions.js +33 -1
- package/dist/features/homepage/schemas/index.d.ts +31 -0
- package/dist/features/homepage/schemas/index.js +24 -0
- package/dist/features/orders/components/OrderStatusTimeline.d.ts +5 -1
- package/dist/features/orders/components/OrderStatusTimeline.js +39 -20
- package/dist/features/orders/repository/orders.repository.js +5 -0
- package/dist/features/orders/schemas/firestore.d.ts +36 -1
- package/dist/features/orders/types/index.d.ts +35 -7
- package/dist/features/products/components/GroupSettingsPanel.js +5 -1
- package/dist/features/products/schemas/index.d.ts +2 -2
- package/dist/features/products/schemas/product-features.validators.d.ts +73 -0
- package/dist/features/products/schemas/product-features.validators.js +63 -0
- package/dist/features/scams/constants/scammer-status-display.d.ts +28 -0
- package/dist/features/scams/constants/scammer-status-display.js +79 -0
- package/dist/features/seller/actions/offer-actions.js +32 -2
- package/dist/features/seller/components/OfferPhaseTimeline.d.ts +59 -0
- package/dist/features/seller/components/OfferPhaseTimeline.js +107 -0
- package/dist/features/seller/components/SellerBidsView.js +11 -4
- package/dist/features/seller/components/SellerCouponEditorView.js +17 -17
- package/dist/features/seller/components/SellerOffersView.js +2 -1
- package/dist/features/seller/components/SellerPayoutSettingsView.js +38 -14
- package/dist/features/seller/repository/offer.repository.d.ts +69 -8
- package/dist/features/seller/repository/offer.repository.js +127 -23
- package/dist/features/seller/schemas/coupon-form.d.ts +72 -0
- package/dist/features/seller/schemas/coupon-form.js +116 -0
- package/dist/features/seller/schemas/firestore.d.ts +56 -2
- package/dist/features/seller/schemas/firestore.js +27 -0
- package/dist/features/seller/schemas/offer-forms.d.ts +21 -0
- package/dist/features/seller/schemas/offer-forms.js +21 -0
- package/dist/features/shell/build-sections.d.ts +63 -0
- package/dist/features/shell/build-sections.js +207 -0
- package/dist/features/shell/field-ui-meta.d.ts +115 -0
- package/dist/features/shell/field-ui-meta.js +324 -0
- package/dist/features/shell/index.d.ts +4 -0
- package/dist/features/shell/index.js +2 -0
- package/dist/features/status-history/components/StatusTimeline.d.ts +74 -0
- package/dist/features/status-history/components/StatusTimeline.js +46 -0
- package/dist/features/status-history/index.d.ts +11 -0
- package/dist/features/status-history/index.js +10 -0
- package/dist/features/store-extensions/components/ReviewDecisionModal.d.ts +27 -0
- package/dist/features/store-extensions/components/ReviewDecisionModal.js +82 -0
- package/dist/features/store-extensions/index.d.ts +12 -0
- package/dist/features/store-extensions/index.js +12 -0
- package/dist/features/store-extensions/schemas/admin-notification-form.d.ts +36 -0
- package/dist/features/store-extensions/schemas/admin-notification-form.js +114 -0
- package/dist/features/store-extensions/schemas/analytics-forms.d.ts +57 -0
- package/dist/features/store-extensions/schemas/analytics-forms.js +158 -0
- package/dist/features/store-extensions/schemas/custom-role-form.d.ts +85 -0
- package/dist/features/store-extensions/schemas/custom-role-form.js +118 -0
- package/dist/features/store-extensions/schemas/firestore.d.ts +21 -1
- package/dist/features/store-extensions/schemas/firestore.js +60 -0
- package/dist/features/store-extensions/schemas/google-config-form.d.ts +53 -0
- package/dist/features/store-extensions/schemas/google-config-form.js +105 -0
- package/dist/features/store-extensions/schemas/item-request-create-form.d.ts +28 -0
- package/dist/features/store-extensions/schemas/item-request-create-form.js +80 -0
- package/dist/features/store-extensions/schemas/listing-template-form.d.ts +78 -0
- package/dist/features/store-extensions/schemas/listing-template-form.js +87 -0
- package/dist/features/store-extensions/schemas/moderation-review-form.d.ts +49 -0
- package/dist/features/store-extensions/schemas/moderation-review-form.js +101 -0
- package/dist/features/store-extensions/schemas/payout-method-form.d.ts +153 -0
- package/dist/features/store-extensions/schemas/payout-method-form.js +155 -0
- package/dist/features/store-extensions/schemas/report-create-form.d.ts +25 -0
- package/dist/features/store-extensions/schemas/report-create-form.js +79 -0
- package/dist/features/store-extensions/schemas/report-review-form.d.ts +47 -0
- package/dist/features/store-extensions/schemas/report-review-form.js +111 -0
- package/dist/features/store-extensions/schemas/shipping-config-form.d.ts +148 -0
- package/dist/features/store-extensions/schemas/shipping-config-form.js +104 -0
- package/dist/features/store-extensions/schemas/store-category-form.d.ts +54 -0
- package/dist/features/store-extensions/schemas/store-category-form.js +73 -0
- package/dist/features/tester/seed-data/tester-checklist-seed-data.js +326 -0
- package/dist/index.d.ts +12 -2
- package/dist/index.js +12 -2
- package/dist/next/routing/route-map.d.ts +16 -2
- package/dist/next/routing/route-map.js +9 -2
- package/dist/schemas/firestore-value.d.ts +8 -0
- package/dist/schemas/firestore-value.js +44 -0
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/registry.d.ts +634 -1
- package/dist/schemas/registry.js +64 -1
- package/dist/seed/bids-seed-data.js +30 -0
- package/dist/seed/offers-seed-data.js +212 -7
- package/dist/seed/orders-seed-data.js +336 -1
- package/dist/seed/products-auctions-seed-data.js +41 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/RecordDetailModal.d.ts +10 -1
- package/dist/ui/components/RecordDetailModal.js +2 -2
- package/package.json +2 -1
- package/scripts/node-esm-loader.mjs +65 -0
- package/scripts/seed-cli-loader.mjs +6 -49
- package/scripts/seed-cli.mjs +1 -1
|
@@ -4254,7 +4254,632 @@ export declare const SCHEMAS: {
|
|
|
4254
4254
|
readonly "POST /api/media/finalize": import("./types").ApiRouteSchema<import("zod").ZodTypeAny, import("zod").ZodTypeAny, import("zod").ZodTypeAny, import("zod").ZodTypeAny>;
|
|
4255
4255
|
readonly "GET /api/search/suggestions": import("./types").ApiRouteSchema<import("zod").ZodTypeAny, import("zod").ZodTypeAny, import("zod").ZodTypeAny, import("zod").ZodTypeAny>;
|
|
4256
4256
|
};
|
|
4257
|
-
readonly forms: {
|
|
4257
|
+
readonly forms: {
|
|
4258
|
+
readonly blog: import("zod").ZodObject<{
|
|
4259
|
+
title: import("zod").ZodString;
|
|
4260
|
+
slug: import("zod").ZodString;
|
|
4261
|
+
excerpt: import("zod").ZodString;
|
|
4262
|
+
content: import("zod").ZodString;
|
|
4263
|
+
coverImage: import("zod").ZodString;
|
|
4264
|
+
youtubeId: import("zod").ZodString;
|
|
4265
|
+
category: import("zod").ZodEnum<["news", "tips", "guides", "updates", "community"]>;
|
|
4266
|
+
tags: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4267
|
+
metaTitle: import("zod").ZodString;
|
|
4268
|
+
metaDescription: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodLiteral<"">]>;
|
|
4269
|
+
status: import("zod").ZodEnum<["draft", "published", "archived"]>;
|
|
4270
|
+
publishedAt: import("zod").ZodString;
|
|
4271
|
+
authorName: import("zod").ZodString;
|
|
4272
|
+
isFeatured: import("zod").ZodBoolean;
|
|
4273
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4274
|
+
status: "draft" | "published" | "archived";
|
|
4275
|
+
title: string;
|
|
4276
|
+
content: string;
|
|
4277
|
+
youtubeId: string;
|
|
4278
|
+
slug: string;
|
|
4279
|
+
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
4280
|
+
tags: string[];
|
|
4281
|
+
publishedAt: string;
|
|
4282
|
+
isFeatured: boolean;
|
|
4283
|
+
excerpt: string;
|
|
4284
|
+
coverImage: string;
|
|
4285
|
+
authorName: string;
|
|
4286
|
+
metaTitle: string;
|
|
4287
|
+
metaDescription: string;
|
|
4288
|
+
}, {
|
|
4289
|
+
status: "draft" | "published" | "archived";
|
|
4290
|
+
title: string;
|
|
4291
|
+
content: string;
|
|
4292
|
+
youtubeId: string;
|
|
4293
|
+
slug: string;
|
|
4294
|
+
category: "news" | "tips" | "guides" | "updates" | "community";
|
|
4295
|
+
tags: string[];
|
|
4296
|
+
publishedAt: string;
|
|
4297
|
+
isFeatured: boolean;
|
|
4298
|
+
excerpt: string;
|
|
4299
|
+
coverImage: string;
|
|
4300
|
+
authorName: string;
|
|
4301
|
+
metaTitle: string;
|
|
4302
|
+
metaDescription: string;
|
|
4303
|
+
}>;
|
|
4304
|
+
readonly event: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4305
|
+
type: import("zod").ZodString;
|
|
4306
|
+
title: import("zod").ZodString;
|
|
4307
|
+
startsAt: import("zod").ZodString;
|
|
4308
|
+
endsAt: import("zod").ZodString;
|
|
4309
|
+
couponId: import("zod").ZodString;
|
|
4310
|
+
displayCode: import("zod").ZodString;
|
|
4311
|
+
pollOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4312
|
+
id: import("zod").ZodString;
|
|
4313
|
+
label: import("zod").ZodString;
|
|
4314
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4315
|
+
id: string;
|
|
4316
|
+
label: string;
|
|
4317
|
+
}, {
|
|
4318
|
+
id: string;
|
|
4319
|
+
label: string;
|
|
4320
|
+
}>, "many">;
|
|
4321
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
4322
|
+
type: import("zod").ZodString;
|
|
4323
|
+
title: import("zod").ZodString;
|
|
4324
|
+
startsAt: import("zod").ZodString;
|
|
4325
|
+
endsAt: import("zod").ZodString;
|
|
4326
|
+
couponId: import("zod").ZodString;
|
|
4327
|
+
displayCode: import("zod").ZodString;
|
|
4328
|
+
pollOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4329
|
+
id: import("zod").ZodString;
|
|
4330
|
+
label: import("zod").ZodString;
|
|
4331
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4332
|
+
id: string;
|
|
4333
|
+
label: string;
|
|
4334
|
+
}, {
|
|
4335
|
+
id: string;
|
|
4336
|
+
label: string;
|
|
4337
|
+
}>, "many">;
|
|
4338
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
4339
|
+
type: import("zod").ZodString;
|
|
4340
|
+
title: import("zod").ZodString;
|
|
4341
|
+
startsAt: import("zod").ZodString;
|
|
4342
|
+
endsAt: import("zod").ZodString;
|
|
4343
|
+
couponId: import("zod").ZodString;
|
|
4344
|
+
displayCode: import("zod").ZodString;
|
|
4345
|
+
pollOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4346
|
+
id: import("zod").ZodString;
|
|
4347
|
+
label: import("zod").ZodString;
|
|
4348
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4349
|
+
id: string;
|
|
4350
|
+
label: string;
|
|
4351
|
+
}, {
|
|
4352
|
+
id: string;
|
|
4353
|
+
label: string;
|
|
4354
|
+
}>, "many">;
|
|
4355
|
+
}, import("zod").ZodTypeAny, "passthrough">>, import("zod").objectOutputType<{
|
|
4356
|
+
type: import("zod").ZodString;
|
|
4357
|
+
title: import("zod").ZodString;
|
|
4358
|
+
startsAt: import("zod").ZodString;
|
|
4359
|
+
endsAt: import("zod").ZodString;
|
|
4360
|
+
couponId: import("zod").ZodString;
|
|
4361
|
+
displayCode: import("zod").ZodString;
|
|
4362
|
+
pollOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4363
|
+
id: import("zod").ZodString;
|
|
4364
|
+
label: import("zod").ZodString;
|
|
4365
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4366
|
+
id: string;
|
|
4367
|
+
label: string;
|
|
4368
|
+
}, {
|
|
4369
|
+
id: string;
|
|
4370
|
+
label: string;
|
|
4371
|
+
}>, "many">;
|
|
4372
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
4373
|
+
type: import("zod").ZodString;
|
|
4374
|
+
title: import("zod").ZodString;
|
|
4375
|
+
startsAt: import("zod").ZodString;
|
|
4376
|
+
endsAt: import("zod").ZodString;
|
|
4377
|
+
couponId: import("zod").ZodString;
|
|
4378
|
+
displayCode: import("zod").ZodString;
|
|
4379
|
+
pollOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4380
|
+
id: import("zod").ZodString;
|
|
4381
|
+
label: import("zod").ZodString;
|
|
4382
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4383
|
+
id: string;
|
|
4384
|
+
label: string;
|
|
4385
|
+
}, {
|
|
4386
|
+
id: string;
|
|
4387
|
+
label: string;
|
|
4388
|
+
}>, "many">;
|
|
4389
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
4390
|
+
readonly productFeature: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4391
|
+
label: import("zod").ZodString;
|
|
4392
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4393
|
+
icon: import("zod").ZodString;
|
|
4394
|
+
iconColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4395
|
+
category: import("zod").ZodEnum<["shipping", "seller", "condition", "platform", "auction", "preorder", "custom"]>;
|
|
4396
|
+
scope: import("zod").ZodEnum<["platform", "store"]>;
|
|
4397
|
+
productTypes: import("zod").ZodArray<import("zod").ZodEnum<["product", "auction", "preorder", "prize-draw", "classified", "digital-code", "live", "all"]>, "many">;
|
|
4398
|
+
storeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4399
|
+
isActive: import("zod").ZodBoolean;
|
|
4400
|
+
displayOrder: import("zod").ZodNumber;
|
|
4401
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4402
|
+
label: string;
|
|
4403
|
+
scope: "store" | "platform";
|
|
4404
|
+
icon: string;
|
|
4405
|
+
category: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder";
|
|
4406
|
+
isActive: boolean;
|
|
4407
|
+
displayOrder: number;
|
|
4408
|
+
productTypes: ("all" | "classified" | "auction" | "prize-draw" | "digital-code" | "live" | "product" | "preorder")[];
|
|
4409
|
+
storeId?: string | undefined;
|
|
4410
|
+
description?: string | undefined;
|
|
4411
|
+
iconColor?: string | undefined;
|
|
4412
|
+
}, {
|
|
4413
|
+
label: string;
|
|
4414
|
+
scope: "store" | "platform";
|
|
4415
|
+
icon: string;
|
|
4416
|
+
category: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder";
|
|
4417
|
+
isActive: boolean;
|
|
4418
|
+
displayOrder: number;
|
|
4419
|
+
productTypes: ("all" | "classified" | "auction" | "prize-draw" | "digital-code" | "live" | "product" | "preorder")[];
|
|
4420
|
+
storeId?: string | undefined;
|
|
4421
|
+
description?: string | undefined;
|
|
4422
|
+
iconColor?: string | undefined;
|
|
4423
|
+
}>, {
|
|
4424
|
+
label: string;
|
|
4425
|
+
scope: "store" | "platform";
|
|
4426
|
+
icon: string;
|
|
4427
|
+
category: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder";
|
|
4428
|
+
isActive: boolean;
|
|
4429
|
+
displayOrder: number;
|
|
4430
|
+
productTypes: ("all" | "classified" | "auction" | "prize-draw" | "digital-code" | "live" | "product" | "preorder")[];
|
|
4431
|
+
storeId?: string | undefined;
|
|
4432
|
+
description?: string | undefined;
|
|
4433
|
+
iconColor?: string | undefined;
|
|
4434
|
+
}, {
|
|
4435
|
+
label: string;
|
|
4436
|
+
scope: "store" | "platform";
|
|
4437
|
+
icon: string;
|
|
4438
|
+
category: "shipping" | "custom" | "seller" | "condition" | "auction" | "platform" | "preorder";
|
|
4439
|
+
isActive: boolean;
|
|
4440
|
+
displayOrder: number;
|
|
4441
|
+
productTypes: ("all" | "classified" | "auction" | "prize-draw" | "digital-code" | "live" | "product" | "preorder")[];
|
|
4442
|
+
storeId?: string | undefined;
|
|
4443
|
+
description?: string | undefined;
|
|
4444
|
+
iconColor?: string | undefined;
|
|
4445
|
+
}>;
|
|
4446
|
+
readonly storeCategory: import("zod").ZodObject<{
|
|
4447
|
+
label: import("zod").ZodString;
|
|
4448
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4449
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4450
|
+
coverImageUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4451
|
+
displayOrder: import("zod").ZodNumber;
|
|
4452
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4453
|
+
label: string;
|
|
4454
|
+
displayOrder: number;
|
|
4455
|
+
description?: string | undefined;
|
|
4456
|
+
slug?: string | undefined;
|
|
4457
|
+
coverImageUrl?: string | undefined;
|
|
4458
|
+
}, {
|
|
4459
|
+
label: string;
|
|
4460
|
+
displayOrder: number;
|
|
4461
|
+
description?: string | undefined;
|
|
4462
|
+
slug?: string | undefined;
|
|
4463
|
+
coverImageUrl?: string | undefined;
|
|
4464
|
+
}>;
|
|
4465
|
+
readonly listingTemplate: import("zod").ZodObject<{
|
|
4466
|
+
name: import("zod").ZodString;
|
|
4467
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4468
|
+
listingType: import("zod").ZodEnum<["standard", "auction", "pre-order", "prize-draw", "bundle", "classified", "digital-code", "live", "art", "stickers"]>;
|
|
4469
|
+
defaults: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("./types").FirestoreValue, import("zod").ZodTypeDef, import("./types").FirestoreValue>>;
|
|
4470
|
+
isShared: import("zod").ZodBoolean;
|
|
4471
|
+
isActive: import("zod").ZodBoolean;
|
|
4472
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4473
|
+
name: string;
|
|
4474
|
+
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
4475
|
+
isActive: boolean;
|
|
4476
|
+
isShared: boolean;
|
|
4477
|
+
defaults: Record<string, import("./types").FirestoreValue>;
|
|
4478
|
+
description?: string | undefined;
|
|
4479
|
+
}, {
|
|
4480
|
+
name: string;
|
|
4481
|
+
listingType: "art" | "stickers" | "classified" | "standard" | "auction" | "pre-order" | "prize-draw" | "digital-code" | "live" | "bundle";
|
|
4482
|
+
isActive: boolean;
|
|
4483
|
+
isShared: boolean;
|
|
4484
|
+
defaults: Record<string, import("./types").FirestoreValue>;
|
|
4485
|
+
description?: string | undefined;
|
|
4486
|
+
}>;
|
|
4487
|
+
readonly payoutMethod: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4488
|
+
type: import("zod").ZodEnum<["upi", "bank", "card", "other"]>;
|
|
4489
|
+
label: import("zod").ZodString;
|
|
4490
|
+
upiVpa: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4491
|
+
accountHolderName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4492
|
+
accountNumber: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4493
|
+
ifscCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4494
|
+
bankName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4495
|
+
isDefault: import("zod").ZodBoolean;
|
|
4496
|
+
isActive: import("zod").ZodBoolean;
|
|
4497
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4498
|
+
type: "card" | "other" | "upi" | "bank";
|
|
4499
|
+
label: string;
|
|
4500
|
+
isDefault: boolean;
|
|
4501
|
+
isActive: boolean;
|
|
4502
|
+
accountHolderName?: string | undefined;
|
|
4503
|
+
ifscCode?: string | undefined;
|
|
4504
|
+
bankName?: string | undefined;
|
|
4505
|
+
accountNumber?: string | undefined;
|
|
4506
|
+
upiVpa?: string | undefined;
|
|
4507
|
+
}, {
|
|
4508
|
+
type: "card" | "other" | "upi" | "bank";
|
|
4509
|
+
label: string;
|
|
4510
|
+
isDefault: boolean;
|
|
4511
|
+
isActive: boolean;
|
|
4512
|
+
accountHolderName?: string | undefined;
|
|
4513
|
+
ifscCode?: string | undefined;
|
|
4514
|
+
bankName?: string | undefined;
|
|
4515
|
+
accountNumber?: string | undefined;
|
|
4516
|
+
upiVpa?: string | undefined;
|
|
4517
|
+
}>, {
|
|
4518
|
+
type: "card" | "other" | "upi" | "bank";
|
|
4519
|
+
label: string;
|
|
4520
|
+
isDefault: boolean;
|
|
4521
|
+
isActive: boolean;
|
|
4522
|
+
accountHolderName?: string | undefined;
|
|
4523
|
+
ifscCode?: string | undefined;
|
|
4524
|
+
bankName?: string | undefined;
|
|
4525
|
+
accountNumber?: string | undefined;
|
|
4526
|
+
upiVpa?: string | undefined;
|
|
4527
|
+
}, {
|
|
4528
|
+
type: "card" | "other" | "upi" | "bank";
|
|
4529
|
+
label: string;
|
|
4530
|
+
isDefault: boolean;
|
|
4531
|
+
isActive: boolean;
|
|
4532
|
+
accountHolderName?: string | undefined;
|
|
4533
|
+
ifscCode?: string | undefined;
|
|
4534
|
+
bankName?: string | undefined;
|
|
4535
|
+
accountNumber?: string | undefined;
|
|
4536
|
+
upiVpa?: string | undefined;
|
|
4537
|
+
}>;
|
|
4538
|
+
readonly shippingConfig: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4539
|
+
label: import("zod").ZodString;
|
|
4540
|
+
method: import("zod").ZodEnum<["free", "flat", "weight", "express", "pickup", "custom"]>;
|
|
4541
|
+
flatRate: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4542
|
+
pricePerKg: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4543
|
+
freeAbove: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4544
|
+
expressSurcharge: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4545
|
+
estimatedDays: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4546
|
+
isDefault: import("zod").ZodBoolean;
|
|
4547
|
+
isActive: import("zod").ZodBoolean;
|
|
4548
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4549
|
+
label: string;
|
|
4550
|
+
isDefault: boolean;
|
|
4551
|
+
isActive: boolean;
|
|
4552
|
+
method: "flat" | "weight" | "custom" | "free" | "express" | "pickup";
|
|
4553
|
+
estimatedDays?: number | undefined;
|
|
4554
|
+
freeAbove?: number | undefined;
|
|
4555
|
+
flatRate?: number | undefined;
|
|
4556
|
+
pricePerKg?: number | undefined;
|
|
4557
|
+
expressSurcharge?: number | undefined;
|
|
4558
|
+
}, {
|
|
4559
|
+
label: string;
|
|
4560
|
+
isDefault: boolean;
|
|
4561
|
+
isActive: boolean;
|
|
4562
|
+
method: "flat" | "weight" | "custom" | "free" | "express" | "pickup";
|
|
4563
|
+
estimatedDays?: number | undefined;
|
|
4564
|
+
freeAbove?: number | undefined;
|
|
4565
|
+
flatRate?: number | undefined;
|
|
4566
|
+
pricePerKg?: number | undefined;
|
|
4567
|
+
expressSurcharge?: number | undefined;
|
|
4568
|
+
}>, {
|
|
4569
|
+
label: string;
|
|
4570
|
+
isDefault: boolean;
|
|
4571
|
+
isActive: boolean;
|
|
4572
|
+
method: "flat" | "weight" | "custom" | "free" | "express" | "pickup";
|
|
4573
|
+
estimatedDays?: number | undefined;
|
|
4574
|
+
freeAbove?: number | undefined;
|
|
4575
|
+
flatRate?: number | undefined;
|
|
4576
|
+
pricePerKg?: number | undefined;
|
|
4577
|
+
expressSurcharge?: number | undefined;
|
|
4578
|
+
}, {
|
|
4579
|
+
label: string;
|
|
4580
|
+
isDefault: boolean;
|
|
4581
|
+
isActive: boolean;
|
|
4582
|
+
method: "flat" | "weight" | "custom" | "free" | "express" | "pickup";
|
|
4583
|
+
estimatedDays?: number | undefined;
|
|
4584
|
+
freeAbove?: number | undefined;
|
|
4585
|
+
flatRate?: number | undefined;
|
|
4586
|
+
pricePerKg?: number | undefined;
|
|
4587
|
+
expressSurcharge?: number | undefined;
|
|
4588
|
+
}>;
|
|
4589
|
+
readonly groupedListing: import("zod").ZodObject<{
|
|
4590
|
+
title: import("zod").ZodString;
|
|
4591
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4592
|
+
groupTheme: import("zod").ZodEnum<["related", "character", "lineage", "set", "generic"]>;
|
|
4593
|
+
productIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4594
|
+
minActiveMembers: import("zod").ZodNumber;
|
|
4595
|
+
coverImage: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4596
|
+
isActive: import("zod").ZodBoolean;
|
|
4597
|
+
isFeatured: import("zod").ZodBoolean;
|
|
4598
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4599
|
+
title: string;
|
|
4600
|
+
isActive: boolean;
|
|
4601
|
+
isFeatured: boolean;
|
|
4602
|
+
productIds: string[];
|
|
4603
|
+
groupTheme: "set" | "related" | "character" | "lineage" | "generic";
|
|
4604
|
+
minActiveMembers: number;
|
|
4605
|
+
description?: string | undefined;
|
|
4606
|
+
coverImage?: string | undefined;
|
|
4607
|
+
}, {
|
|
4608
|
+
title: string;
|
|
4609
|
+
isActive: boolean;
|
|
4610
|
+
isFeatured: boolean;
|
|
4611
|
+
productIds: string[];
|
|
4612
|
+
groupTheme: "set" | "related" | "character" | "lineage" | "generic";
|
|
4613
|
+
minActiveMembers: number;
|
|
4614
|
+
description?: string | undefined;
|
|
4615
|
+
coverImage?: string | undefined;
|
|
4616
|
+
}>;
|
|
4617
|
+
readonly sellerCoupon: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4618
|
+
code: import("zod").ZodString;
|
|
4619
|
+
type: import("zod").ZodEnum<["percentage", "fixed", "free_shipping"]>;
|
|
4620
|
+
value: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
4621
|
+
minPurchase: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
4622
|
+
maxDiscount: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
4623
|
+
totalLimit: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
4624
|
+
perUserLimit: import("zod").ZodEffects<import("zod").ZodString, string, string>;
|
|
4625
|
+
startDate: import("zod").ZodString;
|
|
4626
|
+
endDate: import("zod").ZodString;
|
|
4627
|
+
isActive: import("zod").ZodBoolean;
|
|
4628
|
+
applicableProducts: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4629
|
+
applicableCategories: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
4630
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4631
|
+
value: string;
|
|
4632
|
+
code: string;
|
|
4633
|
+
type: "fixed" | "percentage" | "free_shipping";
|
|
4634
|
+
isActive: boolean;
|
|
4635
|
+
endDate: string;
|
|
4636
|
+
maxDiscount: string;
|
|
4637
|
+
minPurchase: string;
|
|
4638
|
+
applicableProducts: string[];
|
|
4639
|
+
applicableCategories: string[];
|
|
4640
|
+
totalLimit: string;
|
|
4641
|
+
perUserLimit: string;
|
|
4642
|
+
startDate: string;
|
|
4643
|
+
}, {
|
|
4644
|
+
value: string;
|
|
4645
|
+
code: string;
|
|
4646
|
+
type: "fixed" | "percentage" | "free_shipping";
|
|
4647
|
+
isActive: boolean;
|
|
4648
|
+
endDate: string;
|
|
4649
|
+
maxDiscount: string;
|
|
4650
|
+
minPurchase: string;
|
|
4651
|
+
applicableProducts: string[];
|
|
4652
|
+
applicableCategories: string[];
|
|
4653
|
+
totalLimit: string;
|
|
4654
|
+
perUserLimit: string;
|
|
4655
|
+
startDate: string;
|
|
4656
|
+
}>, {
|
|
4657
|
+
value: string;
|
|
4658
|
+
code: string;
|
|
4659
|
+
type: "fixed" | "percentage" | "free_shipping";
|
|
4660
|
+
isActive: boolean;
|
|
4661
|
+
endDate: string;
|
|
4662
|
+
maxDiscount: string;
|
|
4663
|
+
minPurchase: string;
|
|
4664
|
+
applicableProducts: string[];
|
|
4665
|
+
applicableCategories: string[];
|
|
4666
|
+
totalLimit: string;
|
|
4667
|
+
perUserLimit: string;
|
|
4668
|
+
startDate: string;
|
|
4669
|
+
}, {
|
|
4670
|
+
value: string;
|
|
4671
|
+
code: string;
|
|
4672
|
+
type: "fixed" | "percentage" | "free_shipping";
|
|
4673
|
+
isActive: boolean;
|
|
4674
|
+
endDate: string;
|
|
4675
|
+
maxDiscount: string;
|
|
4676
|
+
minPurchase: string;
|
|
4677
|
+
applicableProducts: string[];
|
|
4678
|
+
applicableCategories: string[];
|
|
4679
|
+
totalLimit: string;
|
|
4680
|
+
perUserLimit: string;
|
|
4681
|
+
startDate: string;
|
|
4682
|
+
}>;
|
|
4683
|
+
readonly customRole: import("zod").ZodObject<{
|
|
4684
|
+
name: import("zod").ZodString;
|
|
4685
|
+
slug: import("zod").ZodString;
|
|
4686
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4687
|
+
scope: import("zod").ZodEnum<["global", "store"]>;
|
|
4688
|
+
permissions: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
|
|
4689
|
+
inheritsFrom: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4690
|
+
isActive: import("zod").ZodBoolean;
|
|
4691
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4692
|
+
scope: "store" | "global";
|
|
4693
|
+
name: string;
|
|
4694
|
+
slug: string;
|
|
4695
|
+
isActive: boolean;
|
|
4696
|
+
permissions: string[];
|
|
4697
|
+
description?: string | undefined;
|
|
4698
|
+
inheritsFrom?: string | undefined;
|
|
4699
|
+
}, {
|
|
4700
|
+
scope: "store" | "global";
|
|
4701
|
+
name: string;
|
|
4702
|
+
slug: string;
|
|
4703
|
+
isActive: boolean;
|
|
4704
|
+
permissions: string[];
|
|
4705
|
+
description?: string | undefined;
|
|
4706
|
+
inheritsFrom?: string | undefined;
|
|
4707
|
+
}>;
|
|
4708
|
+
readonly moderationReview: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4709
|
+
status: import("zod").ZodEnum<["approved", "rejected"]>;
|
|
4710
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4711
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4712
|
+
status: "approved" | "rejected";
|
|
4713
|
+
reason?: string | undefined;
|
|
4714
|
+
}, {
|
|
4715
|
+
status: "approved" | "rejected";
|
|
4716
|
+
reason?: string | undefined;
|
|
4717
|
+
}>, {
|
|
4718
|
+
status: "approved" | "rejected";
|
|
4719
|
+
reason?: string | undefined;
|
|
4720
|
+
}, {
|
|
4721
|
+
status: "approved" | "rejected";
|
|
4722
|
+
reason?: string | undefined;
|
|
4723
|
+
}>;
|
|
4724
|
+
readonly reportReview: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
4725
|
+
status: import("zod").ZodEnum<["under-review", "actioned", "dismissed"]>;
|
|
4726
|
+
resolution: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4727
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4728
|
+
status: "dismissed" | "under-review" | "actioned";
|
|
4729
|
+
resolution?: string | undefined;
|
|
4730
|
+
}, {
|
|
4731
|
+
status: "dismissed" | "under-review" | "actioned";
|
|
4732
|
+
resolution?: string | undefined;
|
|
4733
|
+
}>, {
|
|
4734
|
+
status: "dismissed" | "under-review" | "actioned";
|
|
4735
|
+
resolution?: string | undefined;
|
|
4736
|
+
}, {
|
|
4737
|
+
status: "dismissed" | "under-review" | "actioned";
|
|
4738
|
+
resolution?: string | undefined;
|
|
4739
|
+
}>;
|
|
4740
|
+
readonly reportCreate: import("zod").ZodObject<{
|
|
4741
|
+
entityType: import("zod").ZodEnum<[import("..").ReportEntityType, ...import("..").ReportEntityType[]]>;
|
|
4742
|
+
entityId: import("zod").ZodString;
|
|
4743
|
+
reason: import("zod").ZodEnum<[import("..").ReportReason, ...import("..").ReportReason[]]>;
|
|
4744
|
+
detail: import("zod").ZodString;
|
|
4745
|
+
evidenceUrls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
4746
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4747
|
+
reason: import("..").ReportReason;
|
|
4748
|
+
entityId: string;
|
|
4749
|
+
entityType: import("..").ReportEntityType;
|
|
4750
|
+
detail: string;
|
|
4751
|
+
evidenceUrls?: string[] | undefined;
|
|
4752
|
+
}, {
|
|
4753
|
+
reason: import("..").ReportReason;
|
|
4754
|
+
entityId: string;
|
|
4755
|
+
entityType: import("..").ReportEntityType;
|
|
4756
|
+
detail: string;
|
|
4757
|
+
evidenceUrls?: string[] | undefined;
|
|
4758
|
+
}>;
|
|
4759
|
+
readonly itemRequest: import("zod").ZodObject<{
|
|
4760
|
+
title: import("zod").ZodString;
|
|
4761
|
+
description: import("zod").ZodString;
|
|
4762
|
+
category: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4763
|
+
brand: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4764
|
+
maxBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4765
|
+
imageUrls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
4766
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4767
|
+
title: string;
|
|
4768
|
+
description: string;
|
|
4769
|
+
brand?: string | undefined;
|
|
4770
|
+
category?: string | undefined;
|
|
4771
|
+
imageUrls?: string[] | undefined;
|
|
4772
|
+
maxBudget?: number | undefined;
|
|
4773
|
+
}, {
|
|
4774
|
+
title: string;
|
|
4775
|
+
description: string;
|
|
4776
|
+
brand?: string | undefined;
|
|
4777
|
+
category?: string | undefined;
|
|
4778
|
+
imageUrls?: string[] | undefined;
|
|
4779
|
+
maxBudget?: number | undefined;
|
|
4780
|
+
}>;
|
|
4781
|
+
readonly analyticsAlert: import("zod").ZodObject<{
|
|
4782
|
+
label: import("zod").ZodString;
|
|
4783
|
+
metric: import("zod").ZodString;
|
|
4784
|
+
operator: import("zod").ZodEnum<[import("..").AlertOperator, ...import("..").AlertOperator[]]>;
|
|
4785
|
+
threshold: import("zod").ZodNumber;
|
|
4786
|
+
windowHours: import("zod").ZodNumber;
|
|
4787
|
+
isActive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4788
|
+
notifyChannels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["in-app", "email", "whatsapp"]>, "many">>;
|
|
4789
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4790
|
+
label: string;
|
|
4791
|
+
operator: import("..").AlertOperator;
|
|
4792
|
+
threshold: number;
|
|
4793
|
+
metric: string;
|
|
4794
|
+
windowHours: number;
|
|
4795
|
+
isActive?: boolean | undefined;
|
|
4796
|
+
notifyChannels?: ("email" | "whatsapp" | "in-app")[] | undefined;
|
|
4797
|
+
}, {
|
|
4798
|
+
label: string;
|
|
4799
|
+
operator: import("..").AlertOperator;
|
|
4800
|
+
threshold: number;
|
|
4801
|
+
metric: string;
|
|
4802
|
+
windowHours: number;
|
|
4803
|
+
isActive?: boolean | undefined;
|
|
4804
|
+
notifyChannels?: ("email" | "whatsapp" | "in-app")[] | undefined;
|
|
4805
|
+
}>;
|
|
4806
|
+
readonly analyticsCard: import("zod").ZodObject<{
|
|
4807
|
+
title: import("zod").ZodString;
|
|
4808
|
+
type: import("zod").ZodEnum<[import("..").AnalyticsCardType, ...import("..").AnalyticsCardType[]]>;
|
|
4809
|
+
metric: import("zod").ZodString;
|
|
4810
|
+
filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("./types").FirestoreValue, import("zod").ZodTypeDef, import("./types").FirestoreValue>>>;
|
|
4811
|
+
position: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4812
|
+
isVisible: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4813
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4814
|
+
type: import("..").AnalyticsCardType;
|
|
4815
|
+
title: string;
|
|
4816
|
+
metric: string;
|
|
4817
|
+
position?: number | undefined;
|
|
4818
|
+
filters?: Record<string, import("./types").FirestoreValue> | undefined;
|
|
4819
|
+
isVisible?: boolean | undefined;
|
|
4820
|
+
}, {
|
|
4821
|
+
type: import("..").AnalyticsCardType;
|
|
4822
|
+
title: string;
|
|
4823
|
+
metric: string;
|
|
4824
|
+
position?: number | undefined;
|
|
4825
|
+
filters?: Record<string, import("./types").FirestoreValue> | undefined;
|
|
4826
|
+
isVisible?: boolean | undefined;
|
|
4827
|
+
}>;
|
|
4828
|
+
readonly storeGoogleConfig: import("zod").ZodObject<{
|
|
4829
|
+
isConnected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4830
|
+
placeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4831
|
+
businessName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4832
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4833
|
+
placeId?: string | undefined;
|
|
4834
|
+
isConnected?: boolean | undefined;
|
|
4835
|
+
businessName?: string | undefined;
|
|
4836
|
+
}, {
|
|
4837
|
+
placeId?: string | undefined;
|
|
4838
|
+
isConnected?: boolean | undefined;
|
|
4839
|
+
businessName?: string | undefined;
|
|
4840
|
+
}>;
|
|
4841
|
+
readonly adminNotification: import("zod").ZodObject<{
|
|
4842
|
+
title: import("zod").ZodString;
|
|
4843
|
+
body: import("zod").ZodString;
|
|
4844
|
+
category: import("zod").ZodEnum<[import("..").AdminNotificationCategory, ...import("..").AdminNotificationCategory[]]>;
|
|
4845
|
+
severity: import("zod").ZodEnum<["warning" | "error" | "info", ...("warning" | "error" | "info")[]]>;
|
|
4846
|
+
audienceUserIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
4847
|
+
entityType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4848
|
+
entityId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4849
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
4850
|
+
title: string;
|
|
4851
|
+
body: string;
|
|
4852
|
+
category: import("..").AdminNotificationCategory;
|
|
4853
|
+
severity: "warning" | "error" | "info";
|
|
4854
|
+
entityId?: string | undefined;
|
|
4855
|
+
entityType?: string | undefined;
|
|
4856
|
+
audienceUserIds?: string[] | undefined;
|
|
4857
|
+
}, {
|
|
4858
|
+
title: string;
|
|
4859
|
+
body: string;
|
|
4860
|
+
category: import("..").AdminNotificationCategory;
|
|
4861
|
+
severity: "warning" | "error" | "info";
|
|
4862
|
+
entityId?: string | undefined;
|
|
4863
|
+
entityType?: string | undefined;
|
|
4864
|
+
audienceUserIds?: string[] | undefined;
|
|
4865
|
+
}>;
|
|
4866
|
+
readonly homepageSection: import("zod").ZodObject<{
|
|
4867
|
+
type: import("zod").ZodEnum<["welcome", "carousel", "stats", "trust-indicators", "categories", "brands", "products", "pre-orders", "auctions", "banner", "features", "reviews", "whatsapp-community", "faq", "blog-articles", "newsletter", "stores", "events", "social-feed", "custom-cards", "google-reviews", "featured-bundles", "prize-draws", "event-raffles", "collection-cards"]>;
|
|
4868
|
+
enabled: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
4869
|
+
order: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4870
|
+
config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<import("./types").JsonValue, import("zod").ZodTypeDef, import("./types").JsonValue>>;
|
|
4871
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4872
|
+
type: "banner" | "stores" | "products" | "pre-orders" | "prize-draws" | "auctions" | "reviews" | "events" | "categories" | "brands" | "carousel" | "newsletter" | "features" | "stats" | "welcome" | "trust-indicators" | "whatsapp-community" | "faq" | "blog-articles" | "social-feed" | "custom-cards" | "google-reviews" | "featured-bundles" | "event-raffles" | "collection-cards";
|
|
4873
|
+
enabled: boolean;
|
|
4874
|
+
config: Record<string, import("./types").JsonValue>;
|
|
4875
|
+
order?: number | undefined;
|
|
4876
|
+
}, {
|
|
4877
|
+
type: "banner" | "stores" | "products" | "pre-orders" | "prize-draws" | "auctions" | "reviews" | "events" | "categories" | "brands" | "carousel" | "newsletter" | "features" | "stats" | "welcome" | "trust-indicators" | "whatsapp-community" | "faq" | "blog-articles" | "social-feed" | "custom-cards" | "google-reviews" | "featured-bundles" | "event-raffles" | "collection-cards";
|
|
4878
|
+
config: Record<string, import("./types").JsonValue>;
|
|
4879
|
+
enabled?: boolean | undefined;
|
|
4880
|
+
order?: number | undefined;
|
|
4881
|
+
}>;
|
|
4882
|
+
};
|
|
4258
4883
|
readonly sieve: {};
|
|
4259
4884
|
readonly webhook: {
|
|
4260
4885
|
readonly razorpay: {
|
|
@@ -6812,4 +7437,12 @@ export type RegisteredWebhookProvider = keyof SchemasShape["webhook"];
|
|
|
6812
7437
|
export type RegisteredRtdbChannel = keyof SchemasShape["rtdb"];
|
|
6813
7438
|
export type RegisteredStorageOp = keyof SchemasShape["storage"];
|
|
6814
7439
|
export declare function lookupApiSchema<K extends RegisteredApiRouteKey>(key: K): SchemasShape["api"][K];
|
|
7440
|
+
/**
|
|
7441
|
+
* The form schema for an entity.
|
|
7442
|
+
*
|
|
7443
|
+
* Throws rather than returning undefined: a caller asking for a schema it
|
|
7444
|
+
* expects to exist should fail loudly at the call site, not silently skip
|
|
7445
|
+
* validation and strip every field on the next save.
|
|
7446
|
+
*/
|
|
7447
|
+
export declare function lookupFormSchema<K extends RegisteredFormId>(entity: K): SchemasShape["forms"][K];
|
|
6815
7448
|
export declare function lookupFirestoreSchema<K extends RegisteredFirestoreCollection>(collection: K): SchemasShape["firestore"][K];
|