@chopkola/common 1.0.196 → 1.0.199
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/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/types/apis/administrator/administrator.system.settings.type.d.ts +3 -3
- package/build/types/apis/administrator/administrator.vendor.management.type.d.ts +1 -1
- package/build/types/enum/collection.d.ts +10 -3
- package/build/types/enum/collection.js +11 -3
- package/build/types/vendor.d.ts +6 -6
- package/package.json +1 -1
- package/build/types/enum/global.d.ts +0 -8
- package/build/types/enum/global.js +0 -12
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./types/user"), exports);
|
|
18
18
|
__exportStar(require("./types/enum/error"), exports);
|
|
19
19
|
__exportStar(require("./types/enum/collection"), exports);
|
|
20
|
-
__exportStar(require("./types/enum/global"), exports);
|
|
21
20
|
__exportStar(require("./types/global"), exports);
|
|
22
21
|
__exportStar(require("./types/errors/index"), exports);
|
|
23
22
|
__exportStar(require("./validators/index"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Currency } from "../../global";
|
|
1
|
+
import { Currency, UUID } from "../../global";
|
|
2
2
|
export type SystemSettings = {
|
|
3
|
-
id:
|
|
3
|
+
id: UUID;
|
|
4
4
|
system_name: string;
|
|
5
5
|
support_email: string;
|
|
6
|
-
default_currency:
|
|
6
|
+
default_currency: UUID;
|
|
7
7
|
timezone: string;
|
|
8
8
|
maintenance_mode: boolean;
|
|
9
9
|
two_factor_auth: boolean;
|
|
@@ -26,7 +26,7 @@ export type AdministratorVendorsStats = {
|
|
|
26
26
|
};
|
|
27
27
|
export type AdministratorVendorManagementData = {
|
|
28
28
|
stats: AdministratorVendorsStats;
|
|
29
|
-
|
|
29
|
+
scopes?: BusinessTypeFilterTab;
|
|
30
30
|
vendors: Vendor[];
|
|
31
31
|
};
|
|
32
32
|
export type AdministratorVendorDetailsManagementData = {
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export declare enum LogLevelEnum {
|
|
2
|
+
DEBUG = "debug",
|
|
3
|
+
INFO = "info",
|
|
4
|
+
WARN = "warn",
|
|
5
|
+
ERROR = "error",
|
|
6
|
+
FATAL = "fatal",
|
|
7
|
+
AUDIT = "audit"
|
|
8
|
+
}
|
|
1
9
|
export declare enum UserAccountTypeEnum {
|
|
2
10
|
CUSTOMER = "customer",
|
|
3
11
|
VENDOR = "vendor",
|
|
@@ -20,7 +28,7 @@ export declare enum VendorStatusEnum {
|
|
|
20
28
|
NEEDS_REVISION = "needs_revision",
|
|
21
29
|
ACTIVE = "active",
|
|
22
30
|
PAUSED_BY_VENDOR = "paused_by_vendor",
|
|
23
|
-
|
|
31
|
+
SUSPENDED_BY_ADMIN = "suspended_by_admin"
|
|
24
32
|
}
|
|
25
33
|
export declare enum DietryPreferencesEnum {
|
|
26
34
|
VEGAN = "vegan",
|
|
@@ -107,8 +115,7 @@ export declare enum CartItemTypeEnum {
|
|
|
107
115
|
export declare enum CartStatusEnum {
|
|
108
116
|
ACTIVE = "active",
|
|
109
117
|
CONVERTED = "converted",
|
|
110
|
-
ABANDONED = "abandoned"
|
|
111
|
-
USED = "used"
|
|
118
|
+
ABANDONED = "abandoned"
|
|
112
119
|
}
|
|
113
120
|
export declare enum VendorUserSummaryStatisticsIconEnum {
|
|
114
121
|
BUILDING_2 = "building_2",
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReservationStatusEnum = exports.VendorUserSummaryStatisticsIconEnum = exports.CartStatusEnum = exports.CartItemTypeEnum = exports.ScopeEnum = exports.ProductTypeEnum = exports.PromotionTypeEnum = exports.VendorProductsStatisticsIconEnum = exports.StockMovementReasonEnum = exports.StockStatusEnum = exports.RoleIconEnum = exports.CategoryStatusEnum = exports.VerificationPurposeEnum = exports.RoleRiskLevelEnum = exports.PermissionEnum = exports.DietryPreferencesEnum = exports.VendorStatusEnum = exports.UserGenderEnum = exports.UserAccountStatusEnum = exports.UserAccountTypeEnum = void 0;
|
|
3
|
+
exports.ReservationStatusEnum = exports.VendorUserSummaryStatisticsIconEnum = exports.CartStatusEnum = exports.CartItemTypeEnum = exports.ScopeEnum = exports.ProductTypeEnum = exports.PromotionTypeEnum = exports.VendorProductsStatisticsIconEnum = exports.StockMovementReasonEnum = exports.StockStatusEnum = exports.RoleIconEnum = exports.CategoryStatusEnum = exports.VerificationPurposeEnum = exports.RoleRiskLevelEnum = exports.PermissionEnum = exports.DietryPreferencesEnum = exports.VendorStatusEnum = exports.UserGenderEnum = exports.UserAccountStatusEnum = exports.UserAccountTypeEnum = exports.LogLevelEnum = void 0;
|
|
4
|
+
var LogLevelEnum;
|
|
5
|
+
(function (LogLevelEnum) {
|
|
6
|
+
LogLevelEnum["DEBUG"] = "debug";
|
|
7
|
+
LogLevelEnum["INFO"] = "info";
|
|
8
|
+
LogLevelEnum["WARN"] = "warn";
|
|
9
|
+
LogLevelEnum["ERROR"] = "error";
|
|
10
|
+
LogLevelEnum["FATAL"] = "fatal";
|
|
11
|
+
LogLevelEnum["AUDIT"] = "audit";
|
|
12
|
+
})(LogLevelEnum || (exports.LogLevelEnum = LogLevelEnum = {}));
|
|
4
13
|
var UserAccountTypeEnum;
|
|
5
14
|
(function (UserAccountTypeEnum) {
|
|
6
15
|
UserAccountTypeEnum["CUSTOMER"] = "customer";
|
|
@@ -27,7 +36,7 @@ var VendorStatusEnum;
|
|
|
27
36
|
VendorStatusEnum["NEEDS_REVISION"] = "needs_revision";
|
|
28
37
|
VendorStatusEnum["ACTIVE"] = "active";
|
|
29
38
|
VendorStatusEnum["PAUSED_BY_VENDOR"] = "paused_by_vendor";
|
|
30
|
-
VendorStatusEnum["
|
|
39
|
+
VendorStatusEnum["SUSPENDED_BY_ADMIN"] = "suspended_by_admin";
|
|
31
40
|
})(VendorStatusEnum || (exports.VendorStatusEnum = VendorStatusEnum = {}));
|
|
32
41
|
var DietryPreferencesEnum;
|
|
33
42
|
(function (DietryPreferencesEnum) {
|
|
@@ -129,7 +138,6 @@ var CartStatusEnum;
|
|
|
129
138
|
CartStatusEnum["ACTIVE"] = "active";
|
|
130
139
|
CartStatusEnum["CONVERTED"] = "converted";
|
|
131
140
|
CartStatusEnum["ABANDONED"] = "abandoned";
|
|
132
|
-
CartStatusEnum["USED"] = "used";
|
|
133
141
|
})(CartStatusEnum || (exports.CartStatusEnum = CartStatusEnum = {}));
|
|
134
142
|
var VendorUserSummaryStatisticsIconEnum;
|
|
135
143
|
(function (VendorUserSummaryStatisticsIconEnum) {
|
package/build/types/vendor.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ export interface Vendor {
|
|
|
20
20
|
slug: string;
|
|
21
21
|
sku_prefix: string;
|
|
22
22
|
description: string | null;
|
|
23
|
-
|
|
23
|
+
scope: ScopeEnum;
|
|
24
24
|
business_status: VendorStatusEnum;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
contact_email: string;
|
|
26
|
+
contact_phone: string;
|
|
27
27
|
business_address?: AddressI;
|
|
28
28
|
location?: string;
|
|
29
29
|
logo_url: string | null;
|
|
@@ -92,11 +92,11 @@ export interface GroceryInfo {
|
|
|
92
92
|
updated_at: Date;
|
|
93
93
|
}
|
|
94
94
|
export interface RestaurantVendorAggregate extends Vendor {
|
|
95
|
-
|
|
95
|
+
scope: ScopeEnum.RESTAURANT;
|
|
96
96
|
restaurant_info: RestaurantInfo;
|
|
97
97
|
}
|
|
98
98
|
export interface GroceryVendorAggregate extends Vendor {
|
|
99
|
-
|
|
99
|
+
scope: ScopeEnum.GROCERY;
|
|
100
100
|
grocery_info: GroceryInfo;
|
|
101
101
|
}
|
|
102
102
|
export type VendorAggregate = RestaurantVendorAggregate | GroceryVendorAggregate;
|
|
@@ -113,7 +113,7 @@ export type CreateVendorInput = Omit<Vendor, "id" | "rating" | "review_count" |
|
|
|
113
113
|
registration_cert: File;
|
|
114
114
|
id_proof: File;
|
|
115
115
|
};
|
|
116
|
-
export type UpdateVendorInput = Partial<Omit<Vendor, "id" | "owner_id" | "
|
|
116
|
+
export type UpdateVendorInput = Partial<Omit<Vendor, "id" | "owner_id" | "scope" | "rating" | "review_count" | "created_at" | "updated_at">>;
|
|
117
117
|
export type CreateRestaurantInfoInput = Omit<RestaurantInfo, "id" | "created_at" | "updated_at">;
|
|
118
118
|
export type UpdateRestaurantInfoInput = Partial<Omit<RestaurantInfo, "id" | "vendor_id" | "created_at" | "updated_at">>;
|
|
119
119
|
export type CreateGroceryInfoInput = Omit<GroceryInfo, "id" | "created_at" | "updated_at">;
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogLevelEnum = void 0;
|
|
4
|
-
var LogLevelEnum;
|
|
5
|
-
(function (LogLevelEnum) {
|
|
6
|
-
LogLevelEnum["DEBUG"] = "debug";
|
|
7
|
-
LogLevelEnum["INFO"] = "info";
|
|
8
|
-
LogLevelEnum["WARN"] = "warn";
|
|
9
|
-
LogLevelEnum["ERROR"] = "error";
|
|
10
|
-
LogLevelEnum["FATAL"] = "fatal";
|
|
11
|
-
LogLevelEnum["AUDIT"] = "audit";
|
|
12
|
-
})(LogLevelEnum || (exports.LogLevelEnum = LogLevelEnum = {}));
|