@axova/shared 1.0.2 → 1.1.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/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/lib/db.d.ts +34406 -1
- package/dist/lib/db.js +21 -1
- package/dist/middleware/storeOwnership.js +22 -3
- package/dist/middleware/storeValidationMiddleware.js +16 -39
- package/dist/schemas/admin/admin-schema.d.ts +2 -2
- package/dist/schemas/ai-moderation/ai-moderation-schema.d.ts +6 -6
- package/dist/schemas/common/common-schemas.d.ts +71 -71
- package/dist/schemas/compliance/compliance-schema.d.ts +20 -20
- package/dist/schemas/compliance/kyc-schema.d.ts +8 -8
- package/dist/schemas/customer/customer-schema.d.ts +18 -18
- package/dist/schemas/index.d.ts +28 -0
- package/dist/schemas/index.js +134 -3
- package/dist/schemas/inventory/inventory-tables.d.ts +188 -188
- package/dist/schemas/inventory/lot-tables.d.ts +102 -102
- package/dist/schemas/order/cart-schema.d.ts +2865 -0
- package/dist/schemas/order/cart-schema.js +396 -0
- package/dist/schemas/order/order-schema.d.ts +19 -19
- package/dist/schemas/order/order-schema.js +8 -2
- package/dist/schemas/product/discount-schema.d.ts +3 -3
- package/dist/schemas/product/product-schema.d.ts +3 -3
- package/dist/schemas/store/store-audit-schema.d.ts +20 -20
- package/dist/schemas/store/store-schema.d.ts +182 -2
- package/dist/schemas/store/store-schema.js +19 -0
- package/dist/schemas/store/storefront-config-schema.d.ts +434 -823
- package/dist/schemas/store/storefront-config-schema.js +35 -62
- package/dist/utils/subdomain.d.ts +1 -1
- package/dist/utils/subdomain.js +10 -15
- package/package.json +1 -1
- package/src/configs/index.ts +654 -654
- package/src/index.ts +26 -23
- package/src/interfaces/customer-events.ts +106 -106
- package/src/interfaces/inventory-events.ts +545 -545
- package/src/interfaces/inventory-types.ts +1004 -1004
- package/src/interfaces/order-events.ts +381 -381
- package/src/lib/auditLogger.ts +1117 -1117
- package/src/lib/authOrganization.ts +153 -153
- package/src/lib/db.ts +84 -64
- package/src/middleware/serviceAuth.ts +328 -328
- package/src/middleware/storeOwnership.ts +199 -181
- package/src/middleware/storeValidationMiddleware.ts +17 -50
- package/src/middleware/userAuth.ts +248 -248
- package/src/schemas/admin/admin-schema.ts +208 -208
- package/src/schemas/ai-moderation/ai-moderation-schema.ts +180 -180
- package/src/schemas/common/common-schemas.ts +108 -108
- package/src/schemas/compliance/compliance-schema.ts +927 -0
- package/src/schemas/compliance/kyc-schema.ts +649 -0
- package/src/schemas/customer/customer-schema.ts +576 -0
- package/src/schemas/index.ts +202 -3
- package/src/schemas/inventory/inventory-tables.ts +1927 -0
- package/src/schemas/inventory/lot-tables.ts +799 -0
- package/src/schemas/order/cart-schema.ts +652 -0
- package/src/schemas/order/order-schema.ts +1406 -0
- package/src/schemas/product/discount-relations.ts +44 -0
- package/src/schemas/product/discount-schema.ts +464 -0
- package/src/schemas/product/product-relations.ts +187 -0
- package/src/schemas/product/product-schema.ts +955 -0
- package/src/schemas/store/ethiopian_business_api.md.resolved +212 -0
- package/src/schemas/store/store-audit-schema.ts +1257 -0
- package/src/schemas/store/store-schema.ts +682 -0
- package/src/schemas/store/store-settings-schema.ts +231 -0
- package/src/schemas/store/storefront-config-schema.ts +382 -0
- package/src/schemas/types.ts +67 -67
- package/src/types/events.ts +646 -646
- package/src/utils/errorHandler.ts +44 -44
- package/src/utils/subdomain.ts +19 -23
- package/tsconfig.json +21 -21
|
@@ -517,7 +517,7 @@ export declare const storeCompliance: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
517
517
|
tableName: "store_compliance";
|
|
518
518
|
dataType: "string";
|
|
519
519
|
columnType: "PgVarchar";
|
|
520
|
-
data: "D" | "A" | "B" | "C" | "
|
|
520
|
+
data: "D" | "A" | "B" | "C" | "F" | "A+";
|
|
521
521
|
driverParam: string;
|
|
522
522
|
notNull: false;
|
|
523
523
|
hasDefault: true;
|
|
@@ -530,7 +530,7 @@ export declare const storeCompliance: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
530
530
|
generated: undefined;
|
|
531
531
|
}, {}, {
|
|
532
532
|
length: 10;
|
|
533
|
-
$type: "D" | "A" | "B" | "C" | "
|
|
533
|
+
$type: "D" | "A" | "B" | "C" | "F" | "A+";
|
|
534
534
|
}>;
|
|
535
535
|
nextReviewDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
536
536
|
name: "next_review_date";
|
|
@@ -763,7 +763,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
763
763
|
tableName: "compliance_violations";
|
|
764
764
|
dataType: "string";
|
|
765
765
|
columnType: "PgVarchar";
|
|
766
|
-
data: "OTHER" | "
|
|
766
|
+
data: "OTHER" | "FRAUD" | "PROHIBITED_CONTENT" | "MISLEADING_INFO" | "COPYRIGHT" | "TRADEMARK" | "SPAM" | "HARASSMENT" | "PRIVACY" | "SAFETY";
|
|
767
767
|
driverParam: string;
|
|
768
768
|
notNull: false;
|
|
769
769
|
hasDefault: false;
|
|
@@ -776,7 +776,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
776
776
|
generated: undefined;
|
|
777
777
|
}, {}, {
|
|
778
778
|
length: 50;
|
|
779
|
-
$type: "OTHER" | "
|
|
779
|
+
$type: "OTHER" | "FRAUD" | "PROHIBITED_CONTENT" | "MISLEADING_INFO" | "COPYRIGHT" | "TRADEMARK" | "SPAM" | "HARASSMENT" | "PRIVACY" | "SAFETY";
|
|
780
780
|
}>;
|
|
781
781
|
severity: import("drizzle-orm/pg-core").PgColumn<{
|
|
782
782
|
name: "severity";
|
|
@@ -919,7 +919,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
919
919
|
tableName: "compliance_violations";
|
|
920
920
|
dataType: "string";
|
|
921
921
|
columnType: "PgVarchar";
|
|
922
|
-
data: "SYSTEM" | "
|
|
922
|
+
data: "SYSTEM" | "COMPLIANCE_AUDIT" | "AI_MODERATION" | "USER_REPORT" | "ADMIN_REVIEW" | "AUTOMATED_SCAN";
|
|
923
923
|
driverParam: string;
|
|
924
924
|
notNull: true;
|
|
925
925
|
hasDefault: false;
|
|
@@ -932,7 +932,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
932
932
|
generated: undefined;
|
|
933
933
|
}, {}, {
|
|
934
934
|
length: 50;
|
|
935
|
-
$type: "SYSTEM" | "
|
|
935
|
+
$type: "SYSTEM" | "COMPLIANCE_AUDIT" | "AI_MODERATION" | "USER_REPORT" | "ADMIN_REVIEW" | "AUTOMATED_SCAN";
|
|
936
936
|
}>;
|
|
937
937
|
detectorId: import("drizzle-orm/pg-core").PgColumn<{
|
|
938
938
|
name: "detector_id";
|
|
@@ -993,7 +993,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
993
993
|
tableName: "compliance_violations";
|
|
994
994
|
dataType: "string";
|
|
995
995
|
columnType: "PgVarchar";
|
|
996
|
-
data: "PENDING" | "
|
|
996
|
+
data: "PENDING" | "CLOSED" | "UNDER_REVIEW" | "RESOLVED" | "ESCALATED" | "DISMISSED" | "APPEALED";
|
|
997
997
|
driverParam: string;
|
|
998
998
|
notNull: true;
|
|
999
999
|
hasDefault: true;
|
|
@@ -1006,7 +1006,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
1006
1006
|
generated: undefined;
|
|
1007
1007
|
}, {}, {
|
|
1008
1008
|
length: 20;
|
|
1009
|
-
$type: "PENDING" | "
|
|
1009
|
+
$type: "PENDING" | "CLOSED" | "UNDER_REVIEW" | "RESOLVED" | "ESCALATED" | "DISMISSED" | "APPEALED";
|
|
1010
1010
|
}>;
|
|
1011
1011
|
actionTaken: import("drizzle-orm/pg-core").PgColumn<{
|
|
1012
1012
|
name: "action_taken";
|
|
@@ -1118,7 +1118,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
1118
1118
|
tableName: "compliance_violations";
|
|
1119
1119
|
dataType: "string";
|
|
1120
1120
|
columnType: "PgVarchar";
|
|
1121
|
-
data: "
|
|
1121
|
+
data: "MANUAL" | "AUTOMATED" | "ESCALATED" | "APPEALED" | "ADMIN_OVERRIDE";
|
|
1122
1122
|
driverParam: string;
|
|
1123
1123
|
notNull: false;
|
|
1124
1124
|
hasDefault: false;
|
|
@@ -1131,7 +1131,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
1131
1131
|
generated: undefined;
|
|
1132
1132
|
}, {}, {
|
|
1133
1133
|
length: 30;
|
|
1134
|
-
$type: "
|
|
1134
|
+
$type: "MANUAL" | "AUTOMATED" | "ESCALATED" | "APPEALED" | "ADMIN_OVERRIDE";
|
|
1135
1135
|
}>;
|
|
1136
1136
|
impactScore: import("drizzle-orm/pg-core").PgColumn<{
|
|
1137
1137
|
name: "impact_score";
|
|
@@ -1172,7 +1172,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
1172
1172
|
tableName: "compliance_violations";
|
|
1173
1173
|
dataType: "string";
|
|
1174
1174
|
columnType: "PgVarchar";
|
|
1175
|
-
data: "LOW" | "HIGH" | "
|
|
1175
|
+
data: "LOW" | "HIGH" | "MODERATE" | "SEVERE" | "MINIMAL";
|
|
1176
1176
|
driverParam: string;
|
|
1177
1177
|
notNull: false;
|
|
1178
1178
|
hasDefault: false;
|
|
@@ -1185,7 +1185,7 @@ export declare const complianceViolations: import("drizzle-orm/pg-core").PgTable
|
|
|
1185
1185
|
generated: undefined;
|
|
1186
1186
|
}, {}, {
|
|
1187
1187
|
length: 20;
|
|
1188
|
-
$type: "LOW" | "HIGH" | "
|
|
1188
|
+
$type: "LOW" | "HIGH" | "MODERATE" | "SEVERE" | "MINIMAL";
|
|
1189
1189
|
}>;
|
|
1190
1190
|
followUpRequired: import("drizzle-orm/pg-core").PgColumn<{
|
|
1191
1191
|
name: "follow_up_required";
|
|
@@ -1375,7 +1375,7 @@ export declare const complianceActions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
1375
1375
|
tableName: "compliance_actions";
|
|
1376
1376
|
dataType: "string";
|
|
1377
1377
|
columnType: "PgVarchar";
|
|
1378
|
-
data: "CRITICAL" | "
|
|
1378
|
+
data: "CRITICAL" | "MINOR" | "MODERATE" | "SEVERE" | "MAJOR";
|
|
1379
1379
|
driverParam: string;
|
|
1380
1380
|
notNull: true;
|
|
1381
1381
|
hasDefault: false;
|
|
@@ -1388,7 +1388,7 @@ export declare const complianceActions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
1388
1388
|
generated: undefined;
|
|
1389
1389
|
}, {}, {
|
|
1390
1390
|
length: 20;
|
|
1391
|
-
$type: "CRITICAL" | "
|
|
1391
|
+
$type: "CRITICAL" | "MINOR" | "MODERATE" | "SEVERE" | "MAJOR";
|
|
1392
1392
|
}>;
|
|
1393
1393
|
reason: import("drizzle-orm/pg-core").PgColumn<{
|
|
1394
1394
|
name: "reason";
|
|
@@ -1771,7 +1771,7 @@ export declare const complianceActions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
1771
1771
|
tableName: "compliance_actions";
|
|
1772
1772
|
dataType: "string";
|
|
1773
1773
|
columnType: "PgVarchar";
|
|
1774
|
-
data: "PENDING" | "
|
|
1774
|
+
data: "PENDING" | "FAILED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "REVERSED";
|
|
1775
1775
|
driverParam: string;
|
|
1776
1776
|
notNull: true;
|
|
1777
1777
|
hasDefault: true;
|
|
@@ -1784,7 +1784,7 @@ export declare const complianceActions: import("drizzle-orm/pg-core").PgTableWit
|
|
|
1784
1784
|
generated: undefined;
|
|
1785
1785
|
}, {}, {
|
|
1786
1786
|
length: 20;
|
|
1787
|
-
$type: "PENDING" | "
|
|
1787
|
+
$type: "PENDING" | "FAILED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "REVERSED";
|
|
1788
1788
|
}>;
|
|
1789
1789
|
executionNotes: import("drizzle-orm/pg-core").PgColumn<{
|
|
1790
1790
|
name: "execution_notes";
|
|
@@ -2097,7 +2097,7 @@ export declare const storePolicies: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
2097
2097
|
tableName: "store_policies";
|
|
2098
2098
|
dataType: "string";
|
|
2099
2099
|
columnType: "PgVarchar";
|
|
2100
|
-
data: "APPROVED" | "
|
|
2100
|
+
data: "APPROVED" | "ACTIVE" | "ARCHIVED" | "DRAFT" | "PENDING_REVIEW" | "SUPERSEDED" | "DEPRECATED";
|
|
2101
2101
|
driverParam: string;
|
|
2102
2102
|
notNull: true;
|
|
2103
2103
|
hasDefault: true;
|
|
@@ -2110,7 +2110,7 @@ export declare const storePolicies: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
2110
2110
|
generated: undefined;
|
|
2111
2111
|
}, {}, {
|
|
2112
2112
|
length: 20;
|
|
2113
|
-
$type: "APPROVED" | "
|
|
2113
|
+
$type: "APPROVED" | "ACTIVE" | "ARCHIVED" | "DRAFT" | "PENDING_REVIEW" | "SUPERSEDED" | "DEPRECATED";
|
|
2114
2114
|
}>;
|
|
2115
2115
|
isActive: import("drizzle-orm/pg-core").PgColumn<{
|
|
2116
2116
|
name: "is_active";
|
|
@@ -2862,7 +2862,7 @@ export declare const appeals: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
2862
2862
|
tableName: "appeals";
|
|
2863
2863
|
dataType: "string";
|
|
2864
2864
|
columnType: "PgVarchar";
|
|
2865
|
-
data: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED" | "
|
|
2865
|
+
data: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED" | "EXPIRED" | "UNDER_REVIEW" | "ESCALATED" | "SUBMITTED" | "PENDING_DOCUMENTS" | "WITHDRAWN";
|
|
2866
2866
|
driverParam: string;
|
|
2867
2867
|
notNull: true;
|
|
2868
2868
|
hasDefault: true;
|
|
@@ -2875,7 +2875,7 @@ export declare const appeals: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
2875
2875
|
generated: undefined;
|
|
2876
2876
|
}, {}, {
|
|
2877
2877
|
length: 20;
|
|
2878
|
-
$type: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED" | "
|
|
2878
|
+
$type: "APPROVED" | "REJECTED" | "PARTIALLY_APPROVED" | "EXPIRED" | "UNDER_REVIEW" | "ESCALATED" | "SUBMITTED" | "PENDING_DOCUMENTS" | "WITHDRAWN";
|
|
2879
2879
|
}>;
|
|
2880
2880
|
assignedTo: import("drizzle-orm/pg-core").PgColumn<{
|
|
2881
2881
|
name: "assigned_to";
|
|
@@ -109,7 +109,7 @@ export declare const storeKyc: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
109
109
|
tableName: "store_kyc";
|
|
110
110
|
dataType: "string";
|
|
111
111
|
columnType: "PgVarchar";
|
|
112
|
-
data: "APPROVED" | "REJECTED" | "
|
|
112
|
+
data: "APPROVED" | "REJECTED" | "EXPIRED" | "IN_PROGRESS" | "CANCELLED" | "PENDING_REVIEW" | "NOT_STARTED" | "REQUIRES_RESUBMISSION";
|
|
113
113
|
driverParam: string;
|
|
114
114
|
notNull: true;
|
|
115
115
|
hasDefault: true;
|
|
@@ -122,7 +122,7 @@ export declare const storeKyc: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
122
122
|
generated: undefined;
|
|
123
123
|
}, {}, {
|
|
124
124
|
length: 30;
|
|
125
|
-
$type: "APPROVED" | "REJECTED" | "
|
|
125
|
+
$type: "APPROVED" | "REJECTED" | "EXPIRED" | "IN_PROGRESS" | "CANCELLED" | "PENDING_REVIEW" | "NOT_STARTED" | "REQUIRES_RESUBMISSION";
|
|
126
126
|
}>;
|
|
127
127
|
kycLevel: import("drizzle-orm/pg-core").PgColumn<{
|
|
128
128
|
name: "kyc_level";
|
|
@@ -803,7 +803,7 @@ export declare const storeKyc: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
803
803
|
tableName: "store_kyc";
|
|
804
804
|
dataType: "string";
|
|
805
805
|
columnType: "PgVarchar";
|
|
806
|
-
data: "PENDING" | "
|
|
806
|
+
data: "PENDING" | "COMPLIANT" | "NON_COMPLIANT" | "UNDER_REVIEW";
|
|
807
807
|
driverParam: string;
|
|
808
808
|
notNull: false;
|
|
809
809
|
hasDefault: true;
|
|
@@ -816,7 +816,7 @@ export declare const storeKyc: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
816
816
|
generated: undefined;
|
|
817
817
|
}, {}, {
|
|
818
818
|
length: 30;
|
|
819
|
-
$type: "PENDING" | "
|
|
819
|
+
$type: "PENDING" | "COMPLIANT" | "NON_COMPLIANT" | "UNDER_REVIEW";
|
|
820
820
|
}>;
|
|
821
821
|
attemptCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
822
822
|
name: "attempt_count";
|
|
@@ -1107,7 +1107,7 @@ export declare const kycVerificationHistory: import("drizzle-orm/pg-core").PgTab
|
|
|
1107
1107
|
tableName: "kyc_verification_history";
|
|
1108
1108
|
dataType: "string";
|
|
1109
1109
|
columnType: "PgVarchar";
|
|
1110
|
-
data: "APPROVED" | "REJECTED" | "
|
|
1110
|
+
data: "APPROVED" | "REJECTED" | "EXPIRED" | "CANCELLED" | "VERIFICATION_STARTED" | "VERIFICATION_SUBMITTED" | "STATUS_CHANGED" | "DOCUMENT_UPLOADED" | "REVIEW_COMPLETED" | "RESUBMISSION_REQUESTED" | "RENEWED";
|
|
1111
1111
|
driverParam: string;
|
|
1112
1112
|
notNull: true;
|
|
1113
1113
|
hasDefault: false;
|
|
@@ -1120,7 +1120,7 @@ export declare const kycVerificationHistory: import("drizzle-orm/pg-core").PgTab
|
|
|
1120
1120
|
generated: undefined;
|
|
1121
1121
|
}, {}, {
|
|
1122
1122
|
length: 50;
|
|
1123
|
-
$type: "APPROVED" | "REJECTED" | "
|
|
1123
|
+
$type: "APPROVED" | "REJECTED" | "EXPIRED" | "CANCELLED" | "VERIFICATION_STARTED" | "VERIFICATION_SUBMITTED" | "STATUS_CHANGED" | "DOCUMENT_UPLOADED" | "REVIEW_COMPLETED" | "RESUBMISSION_REQUESTED" | "RENEWED";
|
|
1124
1124
|
}>;
|
|
1125
1125
|
previousStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
1126
1126
|
name: "previous_status";
|
|
@@ -2464,7 +2464,7 @@ export declare const kycWebhooksLog: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
2464
2464
|
tableName: "kyc_webhooks_log";
|
|
2465
2465
|
dataType: "string";
|
|
2466
2466
|
columnType: "PgVarchar";
|
|
2467
|
-
data: "PENDING" | "
|
|
2467
|
+
data: "PENDING" | "FAILED" | "PROCESSING" | "PROCESSED" | "RETRYING";
|
|
2468
2468
|
driverParam: string;
|
|
2469
2469
|
notNull: true;
|
|
2470
2470
|
hasDefault: true;
|
|
@@ -2477,7 +2477,7 @@ export declare const kycWebhooksLog: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
2477
2477
|
generated: undefined;
|
|
2478
2478
|
}, {}, {
|
|
2479
2479
|
length: 30;
|
|
2480
|
-
$type: "PENDING" | "
|
|
2480
|
+
$type: "PENDING" | "FAILED" | "PROCESSING" | "PROCESSED" | "RETRYING";
|
|
2481
2481
|
}>;
|
|
2482
2482
|
processedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2483
2483
|
name: "processed_at";
|
|
@@ -134,7 +134,7 @@ export declare const customers: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
134
134
|
tableName: "customers";
|
|
135
135
|
dataType: "string";
|
|
136
136
|
columnType: "PgVarchar";
|
|
137
|
-
data: "
|
|
137
|
+
data: "SUSPENDED" | "ACTIVE" | "INACTIVE" | "BANNED";
|
|
138
138
|
driverParam: string;
|
|
139
139
|
notNull: true;
|
|
140
140
|
hasDefault: true;
|
|
@@ -147,14 +147,14 @@ export declare const customers: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
147
147
|
generated: undefined;
|
|
148
148
|
}, {}, {
|
|
149
149
|
length: 20;
|
|
150
|
-
$type: "
|
|
150
|
+
$type: "SUSPENDED" | "ACTIVE" | "INACTIVE" | "BANNED";
|
|
151
151
|
}>;
|
|
152
152
|
customerType: import("drizzle-orm/pg-core").PgColumn<{
|
|
153
153
|
name: "customer_type";
|
|
154
154
|
tableName: "customers";
|
|
155
155
|
dataType: "string";
|
|
156
156
|
columnType: "PgVarchar";
|
|
157
|
-
data: "BUSINESS" | "
|
|
157
|
+
data: "BUSINESS" | "WHOLESALE" | "RETAIL" | "VIP";
|
|
158
158
|
driverParam: string;
|
|
159
159
|
notNull: true;
|
|
160
160
|
hasDefault: true;
|
|
@@ -167,14 +167,14 @@ export declare const customers: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
167
167
|
generated: undefined;
|
|
168
168
|
}, {}, {
|
|
169
169
|
length: 30;
|
|
170
|
-
$type: "BUSINESS" | "
|
|
170
|
+
$type: "BUSINESS" | "WHOLESALE" | "RETAIL" | "VIP";
|
|
171
171
|
}>;
|
|
172
172
|
registrationSource: import("drizzle-orm/pg-core").PgColumn<{
|
|
173
173
|
name: "registration_source";
|
|
174
174
|
tableName: "customers";
|
|
175
175
|
dataType: "string";
|
|
176
176
|
columnType: "PgVarchar";
|
|
177
|
-
data: "PHONE" | "ONLINE" | "
|
|
177
|
+
data: "PHONE" | "ONLINE" | "SOCIAL_MEDIA" | "REFERRAL" | "WALK_IN";
|
|
178
178
|
driverParam: string;
|
|
179
179
|
notNull: true;
|
|
180
180
|
hasDefault: true;
|
|
@@ -187,7 +187,7 @@ export declare const customers: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
187
187
|
generated: undefined;
|
|
188
188
|
}, {}, {
|
|
189
189
|
length: 30;
|
|
190
|
-
$type: "PHONE" | "ONLINE" | "
|
|
190
|
+
$type: "PHONE" | "ONLINE" | "SOCIAL_MEDIA" | "REFERRAL" | "WALK_IN";
|
|
191
191
|
}>;
|
|
192
192
|
storeLocationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
193
193
|
name: "store_location_id";
|
|
@@ -601,7 +601,7 @@ export declare const customerAddresses: import("drizzle-orm/pg-core").PgTableWit
|
|
|
601
601
|
tableName: "customer_addresses";
|
|
602
602
|
dataType: "string";
|
|
603
603
|
columnType: "PgVarchar";
|
|
604
|
-
data: "
|
|
604
|
+
data: "SHIPPING" | "BILLING" | "BOTH";
|
|
605
605
|
driverParam: string;
|
|
606
606
|
notNull: true;
|
|
607
607
|
hasDefault: false;
|
|
@@ -614,7 +614,7 @@ export declare const customerAddresses: import("drizzle-orm/pg-core").PgTableWit
|
|
|
614
614
|
generated: undefined;
|
|
615
615
|
}, {}, {
|
|
616
616
|
length: 20;
|
|
617
|
-
$type: "
|
|
617
|
+
$type: "SHIPPING" | "BILLING" | "BOTH";
|
|
618
618
|
}>;
|
|
619
619
|
label: import("drizzle-orm/pg-core").PgColumn<{
|
|
620
620
|
name: "label";
|
|
@@ -1064,7 +1064,7 @@ export declare const customerSupportTickets: import("drizzle-orm/pg-core").PgTab
|
|
|
1064
1064
|
tableName: "customer_support_tickets";
|
|
1065
1065
|
dataType: "string";
|
|
1066
1066
|
columnType: "PgVarchar";
|
|
1067
|
-
data: "IN_PROGRESS" | "
|
|
1067
|
+
data: "IN_PROGRESS" | "CLOSED" | "OPEN" | "PENDING_CUSTOMER" | "RESOLVED";
|
|
1068
1068
|
driverParam: string;
|
|
1069
1069
|
notNull: true;
|
|
1070
1070
|
hasDefault: true;
|
|
@@ -1077,7 +1077,7 @@ export declare const customerSupportTickets: import("drizzle-orm/pg-core").PgTab
|
|
|
1077
1077
|
generated: undefined;
|
|
1078
1078
|
}, {}, {
|
|
1079
1079
|
length: 20;
|
|
1080
|
-
$type: "IN_PROGRESS" | "
|
|
1080
|
+
$type: "IN_PROGRESS" | "CLOSED" | "OPEN" | "PENDING_CUSTOMER" | "RESOLVED";
|
|
1081
1081
|
}>;
|
|
1082
1082
|
assignedTo: import("drizzle-orm/pg-core").PgColumn<{
|
|
1083
1083
|
name: "assigned_to";
|
|
@@ -1622,7 +1622,7 @@ export declare const customerVisitHistory: import("drizzle-orm/pg-core").PgTable
|
|
|
1622
1622
|
tableName: "customer_visit_history";
|
|
1623
1623
|
dataType: "string";
|
|
1624
1624
|
columnType: "PgVarchar";
|
|
1625
|
-
data: "EMAIL" | "
|
|
1625
|
+
data: "EMAIL" | "SOCIAL_MEDIA" | "CHAT" | "WEBSITE" | "STORE_VISIT" | "PHONE_CALL";
|
|
1626
1626
|
driverParam: string;
|
|
1627
1627
|
notNull: true;
|
|
1628
1628
|
hasDefault: false;
|
|
@@ -1635,7 +1635,7 @@ export declare const customerVisitHistory: import("drizzle-orm/pg-core").PgTable
|
|
|
1635
1635
|
generated: undefined;
|
|
1636
1636
|
}, {}, {
|
|
1637
1637
|
length: 30;
|
|
1638
|
-
$type: "EMAIL" | "
|
|
1638
|
+
$type: "EMAIL" | "SOCIAL_MEDIA" | "CHAT" | "WEBSITE" | "STORE_VISIT" | "PHONE_CALL";
|
|
1639
1639
|
}>;
|
|
1640
1640
|
storeLocationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1641
1641
|
name: "store_location_id";
|
|
@@ -1928,7 +1928,7 @@ export declare const customerInteractionHistory: import("drizzle-orm/pg-core").P
|
|
|
1928
1928
|
tableName: "customer_interaction_history";
|
|
1929
1929
|
dataType: "string";
|
|
1930
1930
|
columnType: "PgVarchar";
|
|
1931
|
-
data: "COMPLAINT" | "PRODUCT_VIEW" | "PRODUCT_INQUIRY" | "ADD_TO_CART" | "WISHLIST_ADD" | "
|
|
1931
|
+
data: "SEARCH" | "COMPLAINT" | "PRODUCT_VIEW" | "PRODUCT_INQUIRY" | "ADD_TO_CART" | "WISHLIST_ADD" | "FILTER_USE" | "SUPPORT_REQUEST" | "FEEDBACK" | "NEWSLETTER_SIGNUP";
|
|
1932
1932
|
driverParam: string;
|
|
1933
1933
|
notNull: true;
|
|
1934
1934
|
hasDefault: false;
|
|
@@ -1941,14 +1941,14 @@ export declare const customerInteractionHistory: import("drizzle-orm/pg-core").P
|
|
|
1941
1941
|
generated: undefined;
|
|
1942
1942
|
}, {}, {
|
|
1943
1943
|
length: 30;
|
|
1944
|
-
$type: "COMPLAINT" | "PRODUCT_VIEW" | "PRODUCT_INQUIRY" | "ADD_TO_CART" | "WISHLIST_ADD" | "
|
|
1944
|
+
$type: "SEARCH" | "COMPLAINT" | "PRODUCT_VIEW" | "PRODUCT_INQUIRY" | "ADD_TO_CART" | "WISHLIST_ADD" | "FILTER_USE" | "SUPPORT_REQUEST" | "FEEDBACK" | "NEWSLETTER_SIGNUP";
|
|
1945
1945
|
}>;
|
|
1946
1946
|
targetType: import("drizzle-orm/pg-core").PgColumn<{
|
|
1947
1947
|
name: "target_type";
|
|
1948
1948
|
tableName: "customer_interaction_history";
|
|
1949
1949
|
dataType: "string";
|
|
1950
1950
|
columnType: "PgVarchar";
|
|
1951
|
-
data: "PRODUCT" | "
|
|
1951
|
+
data: "PRODUCT" | "CATEGORY" | "SUPPORT" | "BRAND" | "PAGE" | "FEATURE";
|
|
1952
1952
|
driverParam: string;
|
|
1953
1953
|
notNull: false;
|
|
1954
1954
|
hasDefault: false;
|
|
@@ -1961,7 +1961,7 @@ export declare const customerInteractionHistory: import("drizzle-orm/pg-core").P
|
|
|
1961
1961
|
generated: undefined;
|
|
1962
1962
|
}, {}, {
|
|
1963
1963
|
length: 30;
|
|
1964
|
-
$type: "PRODUCT" | "
|
|
1964
|
+
$type: "PRODUCT" | "CATEGORY" | "SUPPORT" | "BRAND" | "PAGE" | "FEATURE";
|
|
1965
1965
|
}>;
|
|
1966
1966
|
targetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1967
1967
|
name: "target_id";
|
|
@@ -2135,7 +2135,7 @@ export declare const customerNotes: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
2135
2135
|
tableName: "customer_notes";
|
|
2136
2136
|
dataType: "string";
|
|
2137
2137
|
columnType: "PgVarchar";
|
|
2138
|
-
data: "
|
|
2138
|
+
data: "GENERAL" | "FOLLOW_UP" | "COMPLAINT" | "PREFERENCE" | "COMPLIMENT" | "SPECIAL_REQUEST" | "VIP_NOTE" | "ALERT";
|
|
2139
2139
|
driverParam: string;
|
|
2140
2140
|
notNull: true;
|
|
2141
2141
|
hasDefault: false;
|
|
@@ -2148,7 +2148,7 @@ export declare const customerNotes: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
2148
2148
|
generated: undefined;
|
|
2149
2149
|
}, {}, {
|
|
2150
2150
|
length: 30;
|
|
2151
|
-
$type: "
|
|
2151
|
+
$type: "GENERAL" | "FOLLOW_UP" | "COMPLAINT" | "PREFERENCE" | "COMPLIMENT" | "SPECIAL_REQUEST" | "VIP_NOTE" | "ALERT";
|
|
2152
2152
|
}>;
|
|
2153
2153
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
2154
2154
|
name: "title";
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1 +1,29 @@
|
|
|
1
|
+
export { type AxovaKafkaConfig, createKafkaInstance, getKafkaConfigFromEnv, getKafkaInstance, } from "../events/kafka";
|
|
2
|
+
export { CustomerServiceConfig, CustomerServiceEvents, } from "../interfaces/customer-events";
|
|
3
|
+
export { ServiceConfig, ServiceEvents } from "../interfaces/inventory-events";
|
|
4
|
+
export type { ABCClassification, AIRecommendation, AutomationRule, AutomationRuleFilter, BatchFilter, BatchInfo, CountItemRequest, CreateAutomationRuleRequest, CreateBatchRequest, CreateCycleCountRequest, CreateInventoryItemRequest, CreatePOSLocationRequest, CreateWarehouseRequest, CycleCount, CycleCountFilter, CycleCountItem, DashboardMetrics, ExpiryReport, ForecastData, InventoryFilter, InventoryInsight, InventoryItem, InventoryOverview, InventorySnapshot, LowStockAlert, OperationResult, PaginatedResult, POSLocation, QuantityUpdate, ReorderRecommendation, StockMovementReport, StockValuation, TenantContext, TransferFilter, TransferItem, TransferRequest, UpdateInventoryItemRequest, UserContext, VelocityAnalysis, Warehouse, } from "../interfaces/inventory-types";
|
|
5
|
+
export * from "../types/events";
|
|
6
|
+
export * from "./admin/admin-schema";
|
|
7
|
+
export * from "./ai-moderation/ai-moderation-schema";
|
|
8
|
+
export * from "./common/common-schemas";
|
|
9
|
+
export * from "./compliance/compliance-schema";
|
|
10
|
+
export * from "./compliance/kyc-schema";
|
|
11
|
+
export { storeKyc, kycVerificationHistory, kycDocuments, kycAnalytics, kycWebhooksLog, } from "./compliance/kyc-schema";
|
|
12
|
+
export * from "./customer/customer-schema";
|
|
13
|
+
export { customerAddresses, customerInteractionHistory, customerNotes, customerPreferences, customerReviews, customerSupportTickets, customers, customerVisitHistory, } from "./customer/customer-schema";
|
|
14
|
+
export * from "./inventory/inventory-tables";
|
|
15
|
+
export { inventory, inventoryMovements, inventoryTransferItems, inventoryTransfers, posLocations, productSuppliers, purchaseOrderItems, purchaseOrders, qualityControls, qualityTemplates, supplierQualityRatings, suppliers, warehouses, } from "./inventory/inventory-tables";
|
|
16
|
+
export { alertSeverityEnum, alertStatusEnum, alertTypeEnum, inventoryLotAlerts, inventoryLotMerges, inventoryLotMovements, inventoryLots, inventoryLotSplits, lotMovementTypeEnum, lotStatusEnum, LotSchema, InitializeProductInventorySchema, CreateLotSchema, ReserveLotQuantitySchema, ReleaseLotReservationSchema, AdjustLotQuantitySchema, TransferLotSchema, MergeLotsSchema, SplitLotSchema, GetLotsQuerySchema, GetAvailableLotsSchema, LotAnalyticsSchema, } from "./inventory/lot-tables";
|
|
17
|
+
export { addressTypeEnum, discountTypeEnum, fulfillmentStatusEnum, orderAddresses, orderAddressesRelations, orderDiscounts, orderDiscountsRelations, orderFulfillments, orderFulfillmentsRelations, orderHistory, orderHistoryRelations, orderItems, orderItemsRelations, orderNotes, orderNotesRelations, orderPayments, orderPaymentsRelations, orderPriorityEnum, orderStatusEnum, orders, ordersRelations, orderTypeEnum, paymentMethodEnum, paymentStatusEnum, refundReasonEnum, } from "./order/order-schema";
|
|
18
|
+
export { cartActivityLog, cartActivityLogRelations, cartAddresses, cartAddressesRelations, cartItems, cartItemsRelations, cartStatusEnum, cartTypeEnum, shoppingCarts, shoppingCartsRelations, } from "./order/cart-schema";
|
|
19
|
+
export * from "./product/product-relations";
|
|
20
|
+
export * from "./product/product-schema";
|
|
21
|
+
export * from "./product/product-relations";
|
|
22
|
+
export * from "./product/discount-schema";
|
|
23
|
+
export * from "./product/discount-relations";
|
|
24
|
+
export * from "./store/store-schema";
|
|
25
|
+
export * from "./store/store-settings-schema";
|
|
26
|
+
export * from "./store/store-audit-schema";
|
|
27
|
+
export * from "./store/storefront-config-schema";
|
|
28
|
+
export { storeSettings, marketRegions, storeSettingsRelations, marketRegionsRelations, } from "./store/store-settings-schema";
|
|
1
29
|
export * from "./types";
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Each service now maintains its own schemas in their src/[service-name]-schema folder
|
|
2
|
+
// Export the ACTUAL Drizzle table objects for database operations
|
|
4
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
4
|
if (k2 === undefined) k2 = k;
|
|
6
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -16,5 +15,137 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
16
|
};
|
|
18
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
|
|
18
|
+
exports.GetAvailableLotsSchema = exports.GetLotsQuerySchema = exports.SplitLotSchema = exports.MergeLotsSchema = exports.TransferLotSchema = exports.AdjustLotQuantitySchema = exports.ReleaseLotReservationSchema = exports.ReserveLotQuantitySchema = exports.CreateLotSchema = exports.InitializeProductInventorySchema = exports.LotSchema = exports.lotStatusEnum = exports.lotMovementTypeEnum = exports.inventoryLotSplits = exports.inventoryLots = exports.inventoryLotMovements = exports.inventoryLotMerges = exports.inventoryLotAlerts = exports.alertTypeEnum = exports.alertStatusEnum = exports.alertSeverityEnum = exports.warehouses = exports.suppliers = exports.supplierQualityRatings = exports.qualityTemplates = exports.qualityControls = exports.purchaseOrders = exports.purchaseOrderItems = exports.productSuppliers = exports.posLocations = exports.inventoryTransfers = exports.inventoryTransferItems = exports.inventoryMovements = exports.inventory = exports.customerVisitHistory = exports.customers = exports.customerSupportTickets = exports.customerReviews = exports.customerPreferences = exports.customerNotes = exports.customerInteractionHistory = exports.customerAddresses = exports.kycWebhooksLog = exports.kycAnalytics = exports.kycDocuments = exports.kycVerificationHistory = exports.storeKyc = exports.getKafkaInstance = exports.getKafkaConfigFromEnv = exports.createKafkaInstance = void 0;
|
|
19
|
+
exports.marketRegionsRelations = exports.storeSettingsRelations = exports.marketRegions = exports.storeSettings = exports.shoppingCartsRelations = exports.shoppingCarts = exports.cartTypeEnum = exports.cartStatusEnum = exports.cartItemsRelations = exports.cartItems = exports.cartAddressesRelations = exports.cartAddresses = exports.cartActivityLogRelations = exports.cartActivityLog = exports.refundReasonEnum = exports.paymentStatusEnum = exports.paymentMethodEnum = exports.orderTypeEnum = exports.ordersRelations = exports.orders = exports.orderStatusEnum = exports.orderPriorityEnum = exports.orderPaymentsRelations = exports.orderPayments = exports.orderNotesRelations = exports.orderNotes = exports.orderItemsRelations = exports.orderItems = exports.orderHistoryRelations = exports.orderHistory = exports.orderFulfillmentsRelations = exports.orderFulfillments = exports.orderDiscountsRelations = exports.orderDiscounts = exports.orderAddressesRelations = exports.orderAddresses = exports.fulfillmentStatusEnum = exports.discountTypeEnum = exports.addressTypeEnum = exports.LotAnalyticsSchema = void 0;
|
|
20
|
+
// Export event and Kafka functionality
|
|
21
|
+
var kafka_1 = require("../events/kafka");
|
|
22
|
+
Object.defineProperty(exports, "createKafkaInstance", { enumerable: true, get: function () { return kafka_1.createKafkaInstance; } });
|
|
23
|
+
Object.defineProperty(exports, "getKafkaConfigFromEnv", { enumerable: true, get: function () { return kafka_1.getKafkaConfigFromEnv; } });
|
|
24
|
+
Object.defineProperty(exports, "getKafkaInstance", { enumerable: true, get: function () { return kafka_1.getKafkaInstance; } });
|
|
25
|
+
__exportStar(require("../types/events"), exports);
|
|
26
|
+
// Admin Management
|
|
27
|
+
__exportStar(require("./admin/admin-schema"), exports);
|
|
28
|
+
// AI Moderation
|
|
29
|
+
__exportStar(require("./ai-moderation/ai-moderation-schema"), exports);
|
|
30
|
+
// Common Schemas
|
|
31
|
+
__exportStar(require("./common/common-schemas"), exports);
|
|
32
|
+
// Compliance Schemas
|
|
33
|
+
__exportStar(require("./compliance/compliance-schema"), exports);
|
|
34
|
+
__exportStar(require("./compliance/kyc-schema"), exports);
|
|
35
|
+
var kyc_schema_1 = require("./compliance/kyc-schema");
|
|
36
|
+
Object.defineProperty(exports, "storeKyc", { enumerable: true, get: function () { return kyc_schema_1.storeKyc; } });
|
|
37
|
+
Object.defineProperty(exports, "kycVerificationHistory", { enumerable: true, get: function () { return kyc_schema_1.kycVerificationHistory; } });
|
|
38
|
+
Object.defineProperty(exports, "kycDocuments", { enumerable: true, get: function () { return kyc_schema_1.kycDocuments; } });
|
|
39
|
+
Object.defineProperty(exports, "kycAnalytics", { enumerable: true, get: function () { return kyc_schema_1.kycAnalytics; } });
|
|
40
|
+
Object.defineProperty(exports, "kycWebhooksLog", { enumerable: true, get: function () { return kyc_schema_1.kycWebhooksLog; } });
|
|
41
|
+
// Customer Management Schemas
|
|
42
|
+
__exportStar(require("./customer/customer-schema"), exports);
|
|
43
|
+
// Customer Schema Exports
|
|
44
|
+
var customer_schema_1 = require("./customer/customer-schema");
|
|
45
|
+
Object.defineProperty(exports, "customerAddresses", { enumerable: true, get: function () { return customer_schema_1.customerAddresses; } });
|
|
46
|
+
Object.defineProperty(exports, "customerInteractionHistory", { enumerable: true, get: function () { return customer_schema_1.customerInteractionHistory; } });
|
|
47
|
+
Object.defineProperty(exports, "customerNotes", { enumerable: true, get: function () { return customer_schema_1.customerNotes; } });
|
|
48
|
+
Object.defineProperty(exports, "customerPreferences", { enumerable: true, get: function () { return customer_schema_1.customerPreferences; } });
|
|
49
|
+
Object.defineProperty(exports, "customerReviews", { enumerable: true, get: function () { return customer_schema_1.customerReviews; } });
|
|
50
|
+
Object.defineProperty(exports, "customerSupportTickets", { enumerable: true, get: function () { return customer_schema_1.customerSupportTickets; } });
|
|
51
|
+
Object.defineProperty(exports, "customers", { enumerable: true, get: function () { return customer_schema_1.customers; } });
|
|
52
|
+
Object.defineProperty(exports, "customerVisitHistory", { enumerable: true, get: function () { return customer_schema_1.customerVisitHistory; } });
|
|
53
|
+
// Core Inventory tables and co-located schemas
|
|
54
|
+
__exportStar(require("./inventory/inventory-tables"), exports);
|
|
55
|
+
var inventory_tables_1 = require("./inventory/inventory-tables");
|
|
56
|
+
Object.defineProperty(exports, "inventory", { enumerable: true, get: function () { return inventory_tables_1.inventory; } });
|
|
57
|
+
Object.defineProperty(exports, "inventoryMovements", { enumerable: true, get: function () { return inventory_tables_1.inventoryMovements; } });
|
|
58
|
+
Object.defineProperty(exports, "inventoryTransferItems", { enumerable: true, get: function () { return inventory_tables_1.inventoryTransferItems; } });
|
|
59
|
+
Object.defineProperty(exports, "inventoryTransfers", { enumerable: true, get: function () { return inventory_tables_1.inventoryTransfers; } });
|
|
60
|
+
Object.defineProperty(exports, "posLocations", { enumerable: true, get: function () { return inventory_tables_1.posLocations; } });
|
|
61
|
+
Object.defineProperty(exports, "productSuppliers", { enumerable: true, get: function () { return inventory_tables_1.productSuppliers; } });
|
|
62
|
+
Object.defineProperty(exports, "purchaseOrderItems", { enumerable: true, get: function () { return inventory_tables_1.purchaseOrderItems; } });
|
|
63
|
+
Object.defineProperty(exports, "purchaseOrders", { enumerable: true, get: function () { return inventory_tables_1.purchaseOrders; } });
|
|
64
|
+
Object.defineProperty(exports, "qualityControls", { enumerable: true, get: function () { return inventory_tables_1.qualityControls; } });
|
|
65
|
+
Object.defineProperty(exports, "qualityTemplates", { enumerable: true, get: function () { return inventory_tables_1.qualityTemplates; } });
|
|
66
|
+
Object.defineProperty(exports, "supplierQualityRatings", { enumerable: true, get: function () { return inventory_tables_1.supplierQualityRatings; } });
|
|
67
|
+
Object.defineProperty(exports, "suppliers", { enumerable: true, get: function () { return inventory_tables_1.suppliers; } });
|
|
68
|
+
Object.defineProperty(exports, "warehouses", { enumerable: true, get: function () { return inventory_tables_1.warehouses; } });
|
|
69
|
+
// Lot & Batch Management schemas
|
|
70
|
+
var lot_tables_1 = require("./inventory/lot-tables");
|
|
71
|
+
Object.defineProperty(exports, "alertSeverityEnum", { enumerable: true, get: function () { return lot_tables_1.alertSeverityEnum; } });
|
|
72
|
+
Object.defineProperty(exports, "alertStatusEnum", { enumerable: true, get: function () { return lot_tables_1.alertStatusEnum; } });
|
|
73
|
+
Object.defineProperty(exports, "alertTypeEnum", { enumerable: true, get: function () { return lot_tables_1.alertTypeEnum; } });
|
|
74
|
+
Object.defineProperty(exports, "inventoryLotAlerts", { enumerable: true, get: function () { return lot_tables_1.inventoryLotAlerts; } });
|
|
75
|
+
Object.defineProperty(exports, "inventoryLotMerges", { enumerable: true, get: function () { return lot_tables_1.inventoryLotMerges; } });
|
|
76
|
+
Object.defineProperty(exports, "inventoryLotMovements", { enumerable: true, get: function () { return lot_tables_1.inventoryLotMovements; } });
|
|
77
|
+
Object.defineProperty(exports, "inventoryLots", { enumerable: true, get: function () { return lot_tables_1.inventoryLots; } });
|
|
78
|
+
Object.defineProperty(exports, "inventoryLotSplits", { enumerable: true, get: function () { return lot_tables_1.inventoryLotSplits; } });
|
|
79
|
+
Object.defineProperty(exports, "lotMovementTypeEnum", { enumerable: true, get: function () { return lot_tables_1.lotMovementTypeEnum; } });
|
|
80
|
+
Object.defineProperty(exports, "lotStatusEnum", { enumerable: true, get: function () { return lot_tables_1.lotStatusEnum; } });
|
|
81
|
+
// Zod Schemas for Lot Operations
|
|
82
|
+
Object.defineProperty(exports, "LotSchema", { enumerable: true, get: function () { return lot_tables_1.LotSchema; } });
|
|
83
|
+
Object.defineProperty(exports, "InitializeProductInventorySchema", { enumerable: true, get: function () { return lot_tables_1.InitializeProductInventorySchema; } });
|
|
84
|
+
Object.defineProperty(exports, "CreateLotSchema", { enumerable: true, get: function () { return lot_tables_1.CreateLotSchema; } });
|
|
85
|
+
Object.defineProperty(exports, "ReserveLotQuantitySchema", { enumerable: true, get: function () { return lot_tables_1.ReserveLotQuantitySchema; } });
|
|
86
|
+
Object.defineProperty(exports, "ReleaseLotReservationSchema", { enumerable: true, get: function () { return lot_tables_1.ReleaseLotReservationSchema; } });
|
|
87
|
+
Object.defineProperty(exports, "AdjustLotQuantitySchema", { enumerable: true, get: function () { return lot_tables_1.AdjustLotQuantitySchema; } });
|
|
88
|
+
Object.defineProperty(exports, "TransferLotSchema", { enumerable: true, get: function () { return lot_tables_1.TransferLotSchema; } });
|
|
89
|
+
Object.defineProperty(exports, "MergeLotsSchema", { enumerable: true, get: function () { return lot_tables_1.MergeLotsSchema; } });
|
|
90
|
+
Object.defineProperty(exports, "SplitLotSchema", { enumerable: true, get: function () { return lot_tables_1.SplitLotSchema; } });
|
|
91
|
+
Object.defineProperty(exports, "GetLotsQuerySchema", { enumerable: true, get: function () { return lot_tables_1.GetLotsQuerySchema; } });
|
|
92
|
+
Object.defineProperty(exports, "GetAvailableLotsSchema", { enumerable: true, get: function () { return lot_tables_1.GetAvailableLotsSchema; } });
|
|
93
|
+
Object.defineProperty(exports, "LotAnalyticsSchema", { enumerable: true, get: function () { return lot_tables_1.LotAnalyticsSchema; } });
|
|
94
|
+
// Order schemas
|
|
95
|
+
var order_schema_1 = require("./order/order-schema");
|
|
96
|
+
Object.defineProperty(exports, "addressTypeEnum", { enumerable: true, get: function () { return order_schema_1.addressTypeEnum; } });
|
|
97
|
+
Object.defineProperty(exports, "discountTypeEnum", { enumerable: true, get: function () { return order_schema_1.discountTypeEnum; } });
|
|
98
|
+
Object.defineProperty(exports, "fulfillmentStatusEnum", { enumerable: true, get: function () { return order_schema_1.fulfillmentStatusEnum; } });
|
|
99
|
+
Object.defineProperty(exports, "orderAddresses", { enumerable: true, get: function () { return order_schema_1.orderAddresses; } });
|
|
100
|
+
Object.defineProperty(exports, "orderAddressesRelations", { enumerable: true, get: function () { return order_schema_1.orderAddressesRelations; } });
|
|
101
|
+
Object.defineProperty(exports, "orderDiscounts", { enumerable: true, get: function () { return order_schema_1.orderDiscounts; } });
|
|
102
|
+
Object.defineProperty(exports, "orderDiscountsRelations", { enumerable: true, get: function () { return order_schema_1.orderDiscountsRelations; } });
|
|
103
|
+
Object.defineProperty(exports, "orderFulfillments", { enumerable: true, get: function () { return order_schema_1.orderFulfillments; } });
|
|
104
|
+
Object.defineProperty(exports, "orderFulfillmentsRelations", { enumerable: true, get: function () { return order_schema_1.orderFulfillmentsRelations; } });
|
|
105
|
+
Object.defineProperty(exports, "orderHistory", { enumerable: true, get: function () { return order_schema_1.orderHistory; } });
|
|
106
|
+
Object.defineProperty(exports, "orderHistoryRelations", { enumerable: true, get: function () { return order_schema_1.orderHistoryRelations; } });
|
|
107
|
+
Object.defineProperty(exports, "orderItems", { enumerable: true, get: function () { return order_schema_1.orderItems; } });
|
|
108
|
+
Object.defineProperty(exports, "orderItemsRelations", { enumerable: true, get: function () { return order_schema_1.orderItemsRelations; } });
|
|
109
|
+
Object.defineProperty(exports, "orderNotes", { enumerable: true, get: function () { return order_schema_1.orderNotes; } });
|
|
110
|
+
Object.defineProperty(exports, "orderNotesRelations", { enumerable: true, get: function () { return order_schema_1.orderNotesRelations; } });
|
|
111
|
+
Object.defineProperty(exports, "orderPayments", { enumerable: true, get: function () { return order_schema_1.orderPayments; } });
|
|
112
|
+
Object.defineProperty(exports, "orderPaymentsRelations", { enumerable: true, get: function () { return order_schema_1.orderPaymentsRelations; } });
|
|
113
|
+
Object.defineProperty(exports, "orderPriorityEnum", { enumerable: true, get: function () { return order_schema_1.orderPriorityEnum; } });
|
|
114
|
+
Object.defineProperty(exports, "orderStatusEnum", { enumerable: true, get: function () { return order_schema_1.orderStatusEnum; } });
|
|
115
|
+
Object.defineProperty(exports, "orders", { enumerable: true, get: function () { return order_schema_1.orders; } });
|
|
116
|
+
Object.defineProperty(exports, "ordersRelations", { enumerable: true, get: function () { return order_schema_1.ordersRelations; } });
|
|
117
|
+
// Enums
|
|
118
|
+
Object.defineProperty(exports, "orderTypeEnum", { enumerable: true, get: function () { return order_schema_1.orderTypeEnum; } });
|
|
119
|
+
Object.defineProperty(exports, "paymentMethodEnum", { enumerable: true, get: function () { return order_schema_1.paymentMethodEnum; } });
|
|
120
|
+
Object.defineProperty(exports, "paymentStatusEnum", { enumerable: true, get: function () { return order_schema_1.paymentStatusEnum; } });
|
|
121
|
+
Object.defineProperty(exports, "refundReasonEnum", { enumerable: true, get: function () { return order_schema_1.refundReasonEnum; } });
|
|
122
|
+
// Cart schemas
|
|
123
|
+
var cart_schema_1 = require("./order/cart-schema");
|
|
124
|
+
Object.defineProperty(exports, "cartActivityLog", { enumerable: true, get: function () { return cart_schema_1.cartActivityLog; } });
|
|
125
|
+
Object.defineProperty(exports, "cartActivityLogRelations", { enumerable: true, get: function () { return cart_schema_1.cartActivityLogRelations; } });
|
|
126
|
+
Object.defineProperty(exports, "cartAddresses", { enumerable: true, get: function () { return cart_schema_1.cartAddresses; } });
|
|
127
|
+
Object.defineProperty(exports, "cartAddressesRelations", { enumerable: true, get: function () { return cart_schema_1.cartAddressesRelations; } });
|
|
128
|
+
Object.defineProperty(exports, "cartItems", { enumerable: true, get: function () { return cart_schema_1.cartItems; } });
|
|
129
|
+
Object.defineProperty(exports, "cartItemsRelations", { enumerable: true, get: function () { return cart_schema_1.cartItemsRelations; } });
|
|
130
|
+
Object.defineProperty(exports, "cartStatusEnum", { enumerable: true, get: function () { return cart_schema_1.cartStatusEnum; } });
|
|
131
|
+
Object.defineProperty(exports, "cartTypeEnum", { enumerable: true, get: function () { return cart_schema_1.cartTypeEnum; } });
|
|
132
|
+
Object.defineProperty(exports, "shoppingCarts", { enumerable: true, get: function () { return cart_schema_1.shoppingCarts; } });
|
|
133
|
+
Object.defineProperty(exports, "shoppingCartsRelations", { enumerable: true, get: function () { return cart_schema_1.shoppingCartsRelations; } });
|
|
134
|
+
__exportStar(require("./product/product-relations"), exports);
|
|
135
|
+
// Product Management Schemas
|
|
136
|
+
__exportStar(require("./product/product-schema"), exports);
|
|
137
|
+
__exportStar(require("./product/product-relations"), exports);
|
|
138
|
+
__exportStar(require("./product/discount-schema"), exports);
|
|
139
|
+
__exportStar(require("./product/discount-relations"), exports);
|
|
140
|
+
// Store Management
|
|
141
|
+
__exportStar(require("./store/store-schema"), exports);
|
|
142
|
+
__exportStar(require("./store/store-settings-schema"), exports);
|
|
143
|
+
__exportStar(require("./store/store-audit-schema"), exports);
|
|
144
|
+
__exportStar(require("./store/storefront-config-schema"), exports);
|
|
145
|
+
var store_settings_schema_1 = require("./store/store-settings-schema");
|
|
146
|
+
Object.defineProperty(exports, "storeSettings", { enumerable: true, get: function () { return store_settings_schema_1.storeSettings; } });
|
|
147
|
+
Object.defineProperty(exports, "marketRegions", { enumerable: true, get: function () { return store_settings_schema_1.marketRegions; } });
|
|
148
|
+
Object.defineProperty(exports, "storeSettingsRelations", { enumerable: true, get: function () { return store_settings_schema_1.storeSettingsRelations; } });
|
|
149
|
+
Object.defineProperty(exports, "marketRegionsRelations", { enumerable: true, get: function () { return store_settings_schema_1.marketRegionsRelations; } });
|
|
150
|
+
// Types
|
|
20
151
|
__exportStar(require("./types"), exports);
|