synunu-libs 1.0.14 → 1.0.16
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/constants/patterns.constant.d.ts +153 -78
- package/dist/constants/patterns.constant.d.ts.map +1 -1
- package/dist/constants/patterns.constant.js +66 -58
- package/dist/constants/patterns.constant.js.map +1 -1
- package/dist/constants/permission.constant.d.ts +53 -43
- package/dist/constants/permission.constant.d.ts.map +1 -1
- package/dist/constants/permission.constant.js +22 -17
- package/dist/constants/permission.constant.js.map +1 -1
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/index.js +1 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/option.dto.d.ts +25 -0
- package/dist/dto/option.dto.d.ts.map +1 -0
- package/dist/dto/option.dto.js +87 -0
- package/dist/dto/option.dto.js.map +1 -0
- package/dist/dto/product-image.dto.d.ts +25 -0
- package/dist/dto/product-image.dto.d.ts.map +1 -0
- package/dist/dto/product-image.dto.js +87 -0
- package/dist/dto/product-image.dto.js.map +1 -0
- package/dist/dto/productimage.dto.d.ts +25 -0
- package/dist/dto/productimage.dto.d.ts.map +1 -0
- package/dist/dto/productimage.dto.js +87 -0
- package/dist/dto/productimage.dto.js.map +1 -0
- package/dist/dto/variant.dto.d.ts +25 -0
- package/dist/dto/variant.dto.d.ts.map +1 -0
- package/dist/dto/variant.dto.js +87 -0
- package/dist/dto/variant.dto.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,86 +1,161 @@
|
|
|
1
|
+
type ExtraPatterns<T extends string> = Record<T, string>;
|
|
1
2
|
export declare const MESSAGE_PATTERNS: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
readonly AUTH_SERVICE: {
|
|
4
|
+
readonly AUTH: {
|
|
5
|
+
readonly REGISTER: "auth_register";
|
|
6
|
+
readonly LOGIN: "auth_login";
|
|
7
|
+
readonly REFRESH_TOKEN: "auth_refresh_token";
|
|
8
|
+
readonly VALIDATE_USER: "auth_validate_user";
|
|
9
|
+
};
|
|
10
|
+
readonly USER: {
|
|
11
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
12
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
13
|
+
readonly CREATE: `${string}_create`;
|
|
14
|
+
readonly UPDATE: `${string}_update`;
|
|
15
|
+
readonly DELETE: `${string}_delete`;
|
|
16
|
+
} & ExtraPatterns<"FIND_BY_EMAIL" | "FIND_BY_USERNAME" | "CHANGE_PASSWORD">;
|
|
17
|
+
readonly ROLE: {
|
|
18
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
19
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
20
|
+
readonly CREATE: `${string}_create`;
|
|
21
|
+
readonly UPDATE: `${string}_update`;
|
|
22
|
+
readonly DELETE: `${string}_delete`;
|
|
23
|
+
} & ExtraPatterns<"FIND_BY_NAME">;
|
|
24
|
+
readonly MEMBERSHIP: {
|
|
25
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
26
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
27
|
+
readonly CREATE: `${string}_create`;
|
|
28
|
+
readonly UPDATE: `${string}_update`;
|
|
29
|
+
readonly DELETE: `${string}_delete`;
|
|
30
|
+
} & ExtraPatterns<"ASSIGN_ROLE" | "REMOVE_ROLE" | "FIND_BY_USER_ID" | "FIND_BY_ROLE_ID">;
|
|
31
|
+
readonly ORGANIZATION: {
|
|
32
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
33
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
34
|
+
readonly CREATE: `${string}_create`;
|
|
35
|
+
readonly UPDATE: `${string}_update`;
|
|
36
|
+
readonly DELETE: `${string}_delete`;
|
|
37
|
+
} & ExtraPatterns<"FIND_BY_NAME" | "FIND_BY_CODE">;
|
|
38
|
+
readonly BRANCH: {
|
|
39
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
40
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
41
|
+
readonly CREATE: `${string}_create`;
|
|
42
|
+
readonly UPDATE: `${string}_update`;
|
|
43
|
+
readonly DELETE: `${string}_delete`;
|
|
44
|
+
} & ExtraPatterns<never>;
|
|
45
|
+
readonly PERMISSION: {
|
|
46
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
47
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
48
|
+
readonly CREATE: `${string}_create`;
|
|
49
|
+
readonly UPDATE: `${string}_update`;
|
|
50
|
+
readonly DELETE: `${string}_delete`;
|
|
51
|
+
} & ExtraPatterns<"FIND_BY_KEY" | "FIND_BY_MODULE">;
|
|
52
|
+
readonly MENU: {
|
|
53
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
54
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
55
|
+
readonly CREATE: `${string}_create`;
|
|
56
|
+
readonly UPDATE: `${string}_update`;
|
|
57
|
+
readonly DELETE: `${string}_delete`;
|
|
58
|
+
} & ExtraPatterns<"FIND_BY_SLUG" | "FIND_TREE">;
|
|
7
59
|
};
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
60
|
+
readonly PRODUCT_SERVICE: {
|
|
61
|
+
readonly PRODUCT: {
|
|
62
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
63
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
64
|
+
readonly CREATE: `${string}_create`;
|
|
65
|
+
readonly UPDATE: `${string}_update`;
|
|
66
|
+
readonly DELETE: `${string}_delete`;
|
|
67
|
+
} & ExtraPatterns<"FIND_BY_SKU" | "FIND_BY_CATEGORY">;
|
|
68
|
+
readonly CATEGORY: {
|
|
69
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
70
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
71
|
+
readonly CREATE: `${string}_create`;
|
|
72
|
+
readonly UPDATE: `${string}_update`;
|
|
73
|
+
readonly DELETE: `${string}_delete`;
|
|
74
|
+
} & ExtraPatterns<"FIND_TREE">;
|
|
75
|
+
readonly SUPPLIER: {
|
|
76
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
77
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
78
|
+
readonly CREATE: `${string}_create`;
|
|
79
|
+
readonly UPDATE: `${string}_update`;
|
|
80
|
+
readonly DELETE: `${string}_delete`;
|
|
81
|
+
} & ExtraPatterns<never>;
|
|
82
|
+
readonly INVENTORY: {
|
|
83
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
84
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
85
|
+
readonly CREATE: `${string}_create`;
|
|
86
|
+
readonly UPDATE: `${string}_update`;
|
|
87
|
+
readonly DELETE: `${string}_delete`;
|
|
88
|
+
} & ExtraPatterns<never>;
|
|
14
89
|
};
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
90
|
+
readonly ORDER_SERVICE: {
|
|
91
|
+
readonly ORDER: {
|
|
92
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
93
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
94
|
+
readonly CREATE: `${string}_create`;
|
|
95
|
+
readonly UPDATE: `${string}_update`;
|
|
96
|
+
readonly DELETE: `${string}_delete`;
|
|
97
|
+
} & ExtraPatterns<never>;
|
|
98
|
+
readonly DRAFT_ORDER: {
|
|
99
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
100
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
101
|
+
readonly CREATE: `${string}_create`;
|
|
102
|
+
readonly UPDATE: `${string}_update`;
|
|
103
|
+
readonly DELETE: `${string}_delete`;
|
|
104
|
+
} & ExtraPatterns<never>;
|
|
105
|
+
readonly RETURN: {
|
|
106
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
107
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
108
|
+
readonly CREATE: `${string}_create`;
|
|
109
|
+
readonly UPDATE: `${string}_update`;
|
|
110
|
+
readonly DELETE: `${string}_delete`;
|
|
111
|
+
} & ExtraPatterns<never>;
|
|
112
|
+
readonly SHIPMENT: {
|
|
113
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
114
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
115
|
+
readonly CREATE: `${string}_create`;
|
|
116
|
+
readonly UPDATE: `${string}_update`;
|
|
117
|
+
readonly DELETE: `${string}_delete`;
|
|
118
|
+
} & ExtraPatterns<never>;
|
|
21
119
|
};
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
120
|
+
readonly CUSTOMER_SERVICE: {
|
|
121
|
+
readonly CUSTOMER: {
|
|
122
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
123
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
124
|
+
readonly CREATE: `${string}_create`;
|
|
125
|
+
readonly UPDATE: `${string}_update`;
|
|
126
|
+
readonly DELETE: `${string}_delete`;
|
|
127
|
+
} & ExtraPatterns<never>;
|
|
128
|
+
readonly VOUCHER: {
|
|
129
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
130
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
131
|
+
readonly CREATE: `${string}_create`;
|
|
132
|
+
readonly UPDATE: `${string}_update`;
|
|
133
|
+
readonly DELETE: `${string}_delete`;
|
|
134
|
+
} & ExtraPatterns<"VALIDATE">;
|
|
28
135
|
};
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
readonly
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
52
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
53
|
-
readonly CREATE: `${string}_create`;
|
|
54
|
-
readonly UPDATE: `${string}_update`;
|
|
55
|
-
readonly DELETE: `${string}_delete`;
|
|
56
|
-
};
|
|
57
|
-
readonly PRODUCT: {
|
|
58
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
59
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
60
|
-
readonly CREATE: `${string}_create`;
|
|
61
|
-
readonly UPDATE: `${string}_update`;
|
|
62
|
-
readonly DELETE: `${string}_delete`;
|
|
63
|
-
};
|
|
64
|
-
readonly CATEGORY: {
|
|
65
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
66
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
67
|
-
readonly CREATE: `${string}_create`;
|
|
68
|
-
readonly UPDATE: `${string}_update`;
|
|
69
|
-
readonly DELETE: `${string}_delete`;
|
|
70
|
-
};
|
|
71
|
-
readonly SHOP: {
|
|
72
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
73
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
74
|
-
readonly CREATE: `${string}_create`;
|
|
75
|
-
readonly UPDATE: `${string}_update`;
|
|
76
|
-
readonly DELETE: `${string}_delete`;
|
|
77
|
-
};
|
|
78
|
-
readonly SETTING: {
|
|
79
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
80
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
81
|
-
readonly CREATE: `${string}_create`;
|
|
82
|
-
readonly UPDATE: `${string}_update`;
|
|
83
|
-
readonly DELETE: `${string}_delete`;
|
|
136
|
+
readonly SETTING_SERVICE: {
|
|
137
|
+
readonly SETTING: {
|
|
138
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
139
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
140
|
+
readonly CREATE: `${string}_create`;
|
|
141
|
+
readonly UPDATE: `${string}_update`;
|
|
142
|
+
readonly DELETE: `${string}_delete`;
|
|
143
|
+
} & ExtraPatterns<"FIND_BY_KEY" | "UPDATE_VALUE">;
|
|
144
|
+
readonly STORE: {
|
|
145
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
146
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
147
|
+
readonly CREATE: `${string}_create`;
|
|
148
|
+
readonly UPDATE: `${string}_update`;
|
|
149
|
+
readonly DELETE: `${string}_delete`;
|
|
150
|
+
} & ExtraPatterns<never>;
|
|
151
|
+
readonly THEME: {
|
|
152
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
153
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
154
|
+
readonly CREATE: `${string}_create`;
|
|
155
|
+
readonly UPDATE: `${string}_update`;
|
|
156
|
+
readonly DELETE: `${string}_delete`;
|
|
157
|
+
} & ExtraPatterns<never>;
|
|
84
158
|
};
|
|
85
159
|
};
|
|
160
|
+
export {};
|
|
86
161
|
//# sourceMappingURL=patterns.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAkBzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEnB,CAAC"}
|
|
@@ -9,66 +9,74 @@ function crudPatterns(module, extra) {
|
|
|
9
9
|
UPDATE: `${module}_update`,
|
|
10
10
|
DELETE: `${module}_delete`,
|
|
11
11
|
};
|
|
12
|
-
return extra ? { ...base, ...extra } : base;
|
|
12
|
+
return (extra ? { ...base, ...extra } : base);
|
|
13
13
|
}
|
|
14
14
|
exports.MESSAGE_PATTERNS = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
AUTH_SERVICE: {
|
|
16
|
+
AUTH: {
|
|
17
|
+
REGISTER: "auth_register",
|
|
18
|
+
LOGIN: "auth_login",
|
|
19
|
+
REFRESH_TOKEN: "auth_refresh_token",
|
|
20
|
+
VALIDATE_USER: "auth_validate_user",
|
|
21
|
+
},
|
|
22
|
+
USER: crudPatterns("user", {
|
|
23
|
+
FIND_BY_EMAIL: "user_find_by_email",
|
|
24
|
+
FIND_BY_USERNAME: "user_find_by_username",
|
|
25
|
+
CHANGE_PASSWORD: "user_change_password",
|
|
26
|
+
}),
|
|
27
|
+
ROLE: crudPatterns("role", {
|
|
28
|
+
FIND_BY_NAME: "role_find_by_name",
|
|
29
|
+
}),
|
|
30
|
+
MEMBERSHIP: crudPatterns("membership", {
|
|
31
|
+
ASSIGN_ROLE: "membership_assign_role",
|
|
32
|
+
REMOVE_ROLE: "membership_remove_role",
|
|
33
|
+
FIND_BY_USER_ID: "membership_find_by_user_id",
|
|
34
|
+
FIND_BY_ROLE_ID: "membership_find_by_role_id",
|
|
35
|
+
}),
|
|
36
|
+
ORGANIZATION: crudPatterns("organization", {
|
|
37
|
+
FIND_BY_CODE: "organization_find_by_code",
|
|
38
|
+
FIND_BY_NAME: "organization_find_by_name",
|
|
39
|
+
}),
|
|
40
|
+
BRANCH: crudPatterns("branch"),
|
|
41
|
+
PERMISSION: crudPatterns("permission", {
|
|
42
|
+
FIND_BY_KEY: "permission_find_by_key",
|
|
43
|
+
FIND_BY_MODULE: "permission_find_by_module",
|
|
44
|
+
}),
|
|
45
|
+
MENU: crudPatterns("menu", {
|
|
46
|
+
FIND_BY_SLUG: "menu_find_by_slug",
|
|
47
|
+
FIND_TREE: "menu_find_tree",
|
|
48
|
+
}),
|
|
49
|
+
},
|
|
50
|
+
PRODUCT_SERVICE: {
|
|
51
|
+
PRODUCT: crudPatterns("product", {
|
|
52
|
+
FIND_BY_SKU: "product_find_by_sku",
|
|
53
|
+
FIND_BY_CATEGORY: "product_find_by_category",
|
|
54
|
+
}),
|
|
55
|
+
CATEGORY: crudPatterns("category", {
|
|
56
|
+
FIND_TREE: "category_find_tree",
|
|
57
|
+
}),
|
|
58
|
+
SUPPLIER: crudPatterns("supplier"),
|
|
59
|
+
INVENTORY: crudPatterns("inventory"),
|
|
60
|
+
},
|
|
61
|
+
ORDER_SERVICE: {
|
|
62
|
+
ORDER: crudPatterns("order"),
|
|
63
|
+
DRAFT_ORDER: crudPatterns("draft_order"),
|
|
64
|
+
RETURN: crudPatterns("return"),
|
|
65
|
+
SHIPMENT: crudPatterns("shipment"),
|
|
66
|
+
},
|
|
67
|
+
CUSTOMER_SERVICE: {
|
|
68
|
+
CUSTOMER: crudPatterns("customer"),
|
|
69
|
+
VOUCHER: crudPatterns("voucher", {
|
|
70
|
+
VALIDATE: "voucher_validate",
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
SETTING_SERVICE: {
|
|
74
|
+
SETTING: crudPatterns("setting", {
|
|
75
|
+
FIND_BY_KEY: "setting_find_by_key",
|
|
76
|
+
UPDATE_VALUE: "setting_update_value",
|
|
77
|
+
}),
|
|
78
|
+
STORE: crudPatterns("store"),
|
|
79
|
+
THEME: crudPatterns("theme"),
|
|
20
80
|
},
|
|
21
|
-
// 🔹 Membership
|
|
22
|
-
MEMBERSHIP: crudPatterns("membership", {
|
|
23
|
-
ASSIGN_ROLE: "membership_assign_role",
|
|
24
|
-
REMOVE_ROLE: "membership_remove_role",
|
|
25
|
-
FIND_BY_USER_ID: "membership_find_by_user_id",
|
|
26
|
-
FIND_BY_ROLE_ID: "membership_find_by_role_id",
|
|
27
|
-
}),
|
|
28
|
-
// 🔹 Role
|
|
29
|
-
ROLE: crudPatterns("role", {
|
|
30
|
-
FIND_BY_NAME: "role_find_by_name",
|
|
31
|
-
}),
|
|
32
|
-
// 🔹 User
|
|
33
|
-
USER: crudPatterns("user", {
|
|
34
|
-
FIND_BY_EMAIL: "user_find_by_email",
|
|
35
|
-
FIND_BY_USERNAME: "user_find_by_username",
|
|
36
|
-
CHANGE_PASSWORD: "user_change_password",
|
|
37
|
-
}),
|
|
38
|
-
// 🔹 Branch
|
|
39
|
-
BRANCH: crudPatterns("branch"),
|
|
40
|
-
// 🔹 Organization
|
|
41
|
-
ORGANIZATION: crudPatterns("organization", {
|
|
42
|
-
FIND_BY_CODE: "organization_find_by_code",
|
|
43
|
-
FIND_BY_NAME: "organization_find_by_name",
|
|
44
|
-
}),
|
|
45
|
-
// 🔹 Menu
|
|
46
|
-
MENU: crudPatterns("menu", {
|
|
47
|
-
FIND_BY_SLUG: "menu_find_by_slug",
|
|
48
|
-
FIND_TREE: "menu_find_tree",
|
|
49
|
-
}),
|
|
50
|
-
// 🔹 Permission
|
|
51
|
-
PERMISSION: crudPatterns("permission", {
|
|
52
|
-
FIND_BY_KEY: "permission_find_by_key",
|
|
53
|
-
FIND_BY_MODULE: "permission_find_by_module",
|
|
54
|
-
}),
|
|
55
|
-
// 🔹 Product (nếu có module quản lý hàng hóa)
|
|
56
|
-
PRODUCT: crudPatterns("product", {
|
|
57
|
-
FIND_BY_SKU: "product_find_by_sku",
|
|
58
|
-
FIND_BY_CATEGORY: "product_find_by_category",
|
|
59
|
-
}),
|
|
60
|
-
// 🔹 Category
|
|
61
|
-
CATEGORY: crudPatterns("category", {
|
|
62
|
-
FIND_TREE: "category_find_tree",
|
|
63
|
-
}),
|
|
64
|
-
// 🔹 Shop (nếu phần mềm dạng Sapo)
|
|
65
|
-
SHOP: crudPatterns("shop", {
|
|
66
|
-
FIND_BY_OWNER: "shop_find_by_owner",
|
|
67
|
-
}),
|
|
68
|
-
// 🔹 Setting / Config
|
|
69
|
-
SETTING: crudPatterns("setting", {
|
|
70
|
-
FIND_BY_KEY: "setting_find_by_key",
|
|
71
|
-
UPDATE_VALUE: "setting_update_value",
|
|
72
|
-
}),
|
|
73
81
|
};
|
|
74
82
|
//# sourceMappingURL=patterns.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,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oB;SAChC,CAAC;QACF,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;QAClC,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC;KACrC;IAED,aAAa,EAAE;QACb,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,YAAY,CAAC,aAAa,CAAC;QACxC,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;QAC9B,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;KACnC;IAED,gBAAgB,EAAE;QAChB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;QAClC,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;YAC/B,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;KACH;IAED,eAAe,EAAE;QACf,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;YAC/B,WAAW,EAAE,qBAAqB;YAClC,YAAY,EAAE,sBAAsB;SACrC,CAAC;QACF,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;KAC7B;CACO,CAAC"}
|
|
@@ -2,82 +2,114 @@ export declare const PERMISSIONS: {
|
|
|
2
2
|
readonly ADMIN: {
|
|
3
3
|
readonly ALL: "admin:*";
|
|
4
4
|
};
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
5
|
+
readonly AUTH_SERVICE: {
|
|
6
|
+
readonly MENUS: {
|
|
7
7
|
readonly READ: `${string}:read`;
|
|
8
8
|
readonly CREATE: `${string}:create`;
|
|
9
9
|
readonly UPDATE: `${string}:update`;
|
|
10
10
|
readonly DELETE: `${string}:delete`;
|
|
11
11
|
};
|
|
12
|
-
readonly
|
|
12
|
+
readonly USERS: {
|
|
13
13
|
readonly READ: `${string}:read`;
|
|
14
14
|
readonly CREATE: `${string}:create`;
|
|
15
15
|
readonly UPDATE: `${string}:update`;
|
|
16
16
|
readonly DELETE: `${string}:delete`;
|
|
17
17
|
};
|
|
18
|
-
readonly
|
|
18
|
+
readonly ROLES: {
|
|
19
19
|
readonly READ: `${string}:read`;
|
|
20
20
|
readonly CREATE: `${string}:create`;
|
|
21
21
|
readonly UPDATE: `${string}:update`;
|
|
22
22
|
readonly DELETE: `${string}:delete`;
|
|
23
23
|
};
|
|
24
|
-
readonly
|
|
24
|
+
readonly MEMBERSHIPS: {
|
|
25
25
|
readonly READ: `${string}:read`;
|
|
26
26
|
readonly CREATE: `${string}:create`;
|
|
27
27
|
readonly UPDATE: `${string}:update`;
|
|
28
28
|
readonly DELETE: `${string}:delete`;
|
|
29
29
|
};
|
|
30
|
-
readonly
|
|
30
|
+
readonly ORGANIZATIONS: {
|
|
31
|
+
readonly READ: `${string}:read`;
|
|
32
|
+
readonly CREATE: `${string}:create`;
|
|
33
|
+
readonly UPDATE: `${string}:update`;
|
|
34
|
+
readonly DELETE: `${string}:delete`;
|
|
35
|
+
};
|
|
36
|
+
readonly BRANCHES: {
|
|
31
37
|
readonly READ: `${string}:read`;
|
|
32
38
|
readonly CREATE: `${string}:create`;
|
|
33
39
|
readonly UPDATE: `${string}:update`;
|
|
34
40
|
readonly DELETE: `${string}:delete`;
|
|
35
41
|
};
|
|
36
|
-
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
37
|
-
readonly SUPPLIER_RETURNS: "supplier_returns";
|
|
38
|
-
readonly SHIPMENTS: "shipments";
|
|
39
42
|
};
|
|
40
|
-
readonly
|
|
43
|
+
readonly PRODUCT_SERVICE: {
|
|
44
|
+
readonly INVENTORIES: {
|
|
45
|
+
readonly READ: `${string}:read`;
|
|
46
|
+
readonly CREATE: `${string}:create`;
|
|
47
|
+
readonly UPDATE: `${string}:update`;
|
|
48
|
+
readonly DELETE: `${string}:delete`;
|
|
49
|
+
};
|
|
50
|
+
readonly SUPPLIERS: "suppliers";
|
|
51
|
+
readonly COLLECTIONS: "collections";
|
|
41
52
|
readonly PRODUCTS: {
|
|
42
53
|
readonly READ: `${string}:read`;
|
|
43
54
|
readonly CREATE: `${string}:create`;
|
|
44
55
|
readonly UPDATE: `${string}:update`;
|
|
45
56
|
readonly DELETE: `${string}:delete`;
|
|
46
57
|
};
|
|
47
|
-
readonly
|
|
58
|
+
readonly VARIANTS: {
|
|
48
59
|
readonly READ: `${string}:read`;
|
|
49
60
|
readonly CREATE: `${string}:create`;
|
|
50
61
|
readonly UPDATE: `${string}:update`;
|
|
51
62
|
readonly DELETE: `${string}:delete`;
|
|
52
63
|
};
|
|
53
|
-
readonly
|
|
64
|
+
readonly PRODUCTIMAGES: {
|
|
54
65
|
readonly READ: `${string}:read`;
|
|
55
66
|
readonly CREATE: `${string}:create`;
|
|
56
67
|
readonly UPDATE: `${string}:update`;
|
|
57
68
|
readonly DELETE: `${string}:delete`;
|
|
58
69
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
readonly
|
|
70
|
+
};
|
|
71
|
+
readonly ORDER_SERVICE: {
|
|
72
|
+
readonly ORDER: {
|
|
62
73
|
readonly READ: `${string}:read`;
|
|
63
74
|
readonly CREATE: `${string}:create`;
|
|
64
75
|
readonly UPDATE: `${string}:update`;
|
|
65
76
|
readonly DELETE: `${string}:delete`;
|
|
66
77
|
};
|
|
67
|
-
readonly
|
|
78
|
+
readonly ORDERS: {
|
|
68
79
|
readonly READ: `${string}:read`;
|
|
69
80
|
readonly CREATE: `${string}:create`;
|
|
70
81
|
readonly UPDATE: `${string}:update`;
|
|
71
82
|
readonly DELETE: `${string}:delete`;
|
|
72
83
|
};
|
|
73
|
-
readonly
|
|
84
|
+
readonly DRAFT_ORDERS: {
|
|
85
|
+
readonly READ: `${string}:read`;
|
|
86
|
+
readonly CREATE: `${string}:create`;
|
|
87
|
+
readonly UPDATE: `${string}:update`;
|
|
88
|
+
readonly DELETE: `${string}:delete`;
|
|
89
|
+
};
|
|
90
|
+
readonly RETURNS: {
|
|
74
91
|
readonly READ: `${string}:read`;
|
|
75
92
|
readonly CREATE: `${string}:create`;
|
|
76
93
|
readonly UPDATE: `${string}:update`;
|
|
77
94
|
readonly DELETE: `${string}:delete`;
|
|
78
95
|
};
|
|
96
|
+
readonly FULFILLMENT_HANDOVERS: {
|
|
97
|
+
readonly READ: `${string}:read`;
|
|
98
|
+
readonly CREATE: `${string}:create`;
|
|
99
|
+
readonly UPDATE: `${string}:update`;
|
|
100
|
+
readonly DELETE: `${string}:delete`;
|
|
101
|
+
};
|
|
102
|
+
readonly STOCK_TRANSFERS: {
|
|
103
|
+
readonly READ: `${string}:read`;
|
|
104
|
+
readonly CREATE: `${string}:create`;
|
|
105
|
+
readonly UPDATE: `${string}:update`;
|
|
106
|
+
readonly DELETE: `${string}:delete`;
|
|
107
|
+
};
|
|
108
|
+
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
109
|
+
readonly SUPPLIER_RETURNS: "supplier_returns";
|
|
110
|
+
readonly SHIPMENTS: "shipments";
|
|
79
111
|
};
|
|
80
|
-
readonly
|
|
112
|
+
readonly CUSTOMER_SERVICE: {
|
|
81
113
|
readonly CUSTOMERS: {
|
|
82
114
|
readonly READ: `${string}:read`;
|
|
83
115
|
readonly CREATE: `${string}:create`;
|
|
@@ -99,6 +131,8 @@ export declare const PERMISSIONS: {
|
|
|
99
131
|
readonly DELETE: `${string}:delete`;
|
|
100
132
|
};
|
|
101
133
|
};
|
|
134
|
+
readonly NOTIFICATION_SERVICE: {};
|
|
135
|
+
readonly MARKETING_SERVICE: {};
|
|
102
136
|
readonly REPORTING: {
|
|
103
137
|
readonly DASHBOARD: "dashboard";
|
|
104
138
|
readonly REPORTS: {
|
|
@@ -133,31 +167,7 @@ export declare const PERMISSIONS: {
|
|
|
133
167
|
};
|
|
134
168
|
};
|
|
135
169
|
readonly SYSTEM: {
|
|
136
|
-
readonly
|
|
137
|
-
readonly READ: `${string}:read`;
|
|
138
|
-
readonly CREATE: `${string}:create`;
|
|
139
|
-
readonly UPDATE: `${string}:update`;
|
|
140
|
-
readonly DELETE: `${string}:delete`;
|
|
141
|
-
};
|
|
142
|
-
readonly ROLES: {
|
|
143
|
-
readonly READ: `${string}:read`;
|
|
144
|
-
readonly CREATE: `${string}:create`;
|
|
145
|
-
readonly UPDATE: `${string}:update`;
|
|
146
|
-
readonly DELETE: `${string}:delete`;
|
|
147
|
-
};
|
|
148
|
-
readonly MEMBERSHIPS: {
|
|
149
|
-
readonly READ: `${string}:read`;
|
|
150
|
-
readonly CREATE: `${string}:create`;
|
|
151
|
-
readonly UPDATE: `${string}:update`;
|
|
152
|
-
readonly DELETE: `${string}:delete`;
|
|
153
|
-
};
|
|
154
|
-
readonly ORGANIZATIONS: {
|
|
155
|
-
readonly READ: `${string}:read`;
|
|
156
|
-
readonly CREATE: `${string}:create`;
|
|
157
|
-
readonly UPDATE: `${string}:update`;
|
|
158
|
-
readonly DELETE: `${string}:delete`;
|
|
159
|
-
};
|
|
160
|
-
readonly BRANCHES: {
|
|
170
|
+
readonly CURRENCY: {
|
|
161
171
|
readonly READ: `${string}:read`;
|
|
162
172
|
readonly CREATE: `${string}:create`;
|
|
163
173
|
readonly UPDATE: `${string}:update`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEd,CAAC"}
|
|
@@ -14,7 +14,24 @@ exports.PERMISSIONS = {
|
|
|
14
14
|
ADMIN: {
|
|
15
15
|
ALL: "admin:*",
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
AUTH_SERVICE: {
|
|
18
|
+
MENUS: crudPermissions("inventories"),
|
|
19
|
+
USERS: crudPermissions("users"),
|
|
20
|
+
ROLES: crudPermissions("roles"),
|
|
21
|
+
MEMBERSHIPS: crudPermissions("memberships"),
|
|
22
|
+
ORGANIZATIONS: crudPermissions("organizations"),
|
|
23
|
+
BRANCHES: crudPermissions("branches"),
|
|
24
|
+
},
|
|
25
|
+
PRODUCT_SERVICE: {
|
|
26
|
+
INVENTORIES: crudPermissions("inventories"),
|
|
27
|
+
SUPPLIERS: "suppliers",
|
|
28
|
+
COLLECTIONS: "collections",
|
|
29
|
+
PRODUCTS: crudPermissions("products"),
|
|
30
|
+
VARIANTS: crudPermissions("variants"),
|
|
31
|
+
PRODUCTIMAGES: crudPermissions("productImages"),
|
|
32
|
+
},
|
|
33
|
+
ORDER_SERVICE: {
|
|
34
|
+
ORDER: crudPermissions("order"),
|
|
18
35
|
ORDERS: crudPermissions("orders"),
|
|
19
36
|
DRAFT_ORDERS: crudPermissions("draft_orders"),
|
|
20
37
|
RETURNS: crudPermissions("returns"),
|
|
@@ -24,22 +41,14 @@ exports.PERMISSIONS = {
|
|
|
24
41
|
SUPPLIER_RETURNS: "supplier_returns",
|
|
25
42
|
SHIPMENTS: "shipments",
|
|
26
43
|
},
|
|
27
|
-
|
|
28
|
-
PRODUCTS: crudPermissions("products"),
|
|
29
|
-
INVENTORIES: crudPermissions("inventories"),
|
|
30
|
-
MENUS: crudPermissions("inventories"),
|
|
31
|
-
COLLECTIONS: "collections",
|
|
32
|
-
SUPPLIERS: "suppliers",
|
|
33
|
-
OPTIONS: crudPermissions("options"),
|
|
34
|
-
VARIANTS: crudPermissions("variants"),
|
|
35
|
-
PRODUCTIMAGES: crudPermissions("productimages"),
|
|
36
|
-
},
|
|
37
|
-
CUSTOMERS: {
|
|
44
|
+
CUSTOMER_SERVICE: {
|
|
38
45
|
CUSTOMERS: crudPermissions("customers"),
|
|
39
46
|
VOUCHERS: { READ: "vouchers:read", WRITE: "vouchers:write" },
|
|
40
47
|
REASONS: { READ: "reasons:read", WRITE: "reasons:write" },
|
|
41
48
|
CARRIERS: crudPermissions("carriers"),
|
|
42
49
|
},
|
|
50
|
+
NOTIFICATION_SERVICE: {},
|
|
51
|
+
MARKETING_SERVICE: {},
|
|
43
52
|
REPORTING: {
|
|
44
53
|
DASHBOARD: "dashboard",
|
|
45
54
|
REPORTS: {
|
|
@@ -69,11 +78,7 @@ exports.PERMISSIONS = {
|
|
|
69
78
|
APPLICATIONS: crudPermissions("applications"),
|
|
70
79
|
},
|
|
71
80
|
SYSTEM: {
|
|
72
|
-
|
|
73
|
-
ROLES: crudPermissions("roles"),
|
|
74
|
-
MEMBERSHIPS: crudPermissions("memberships"),
|
|
75
|
-
ORGANIZATIONS: crudPermissions("organizations"),
|
|
76
|
-
BRANCHES: crudPermissions("branches"),
|
|
81
|
+
CURRENCY: crudPermissions("currency"),
|
|
77
82
|
},
|
|
78
83
|
};
|
|
79
84
|
//# sourceMappingURL=permission.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.constant.js","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,eAAe,CACtB,MAAc,EACd,KAA2B;IAE3B,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,GAAG,MAAM,OAAO;QACtB,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAEY,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,GAAG,EAAE,SAAS;KACf;
|
|
1
|
+
{"version":3,"file":"permission.constant.js","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names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
7
7
|
export * from "./user.dto";
|
|
8
8
|
export * from "./product.dto";
|
|
9
|
+
export * from "./product-image.dto";
|
|
9
10
|
export * from "./date-range.input";
|
|
10
11
|
export * from "./translation.input";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dto/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
package/dist/dto/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./organization.dto"), exports);
|
|
|
23
23
|
__exportStar(require("./roles.dto"), exports);
|
|
24
24
|
__exportStar(require("./user.dto"), exports);
|
|
25
25
|
__exportStar(require("./product.dto"), exports);
|
|
26
|
+
__exportStar(require("./product-image.dto"), exports);
|
|
26
27
|
// share
|
|
27
28
|
__exportStar(require("./date-range.input"), exports);
|
|
28
29
|
__exportStar(require("./translation.input"), exports);
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AAEpC,QAAQ;AACR,qDAAmC;AACnC,sDAAoC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslationInput } from "./translation.input";
|
|
2
|
+
import { UserType } from "../enum";
|
|
3
|
+
import { DateRangeInput } from "./date-range.input";
|
|
4
|
+
export declare class CreateOptionInput {
|
|
5
|
+
key: string;
|
|
6
|
+
label: TranslationInput;
|
|
7
|
+
icon?: string;
|
|
8
|
+
rootPath?: string;
|
|
9
|
+
path?: TranslationInput;
|
|
10
|
+
userType?: UserType;
|
|
11
|
+
order?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
permissions?: string[];
|
|
14
|
+
parent?: string | null;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class OptionFilterInput {
|
|
18
|
+
createdAt?: DateRangeInput;
|
|
19
|
+
}
|
|
20
|
+
declare const UpdateOptionInput_base: import("@nestjs/common").Type<Partial<CreateOptionInput>>;
|
|
21
|
+
export declare class UpdateOptionInput extends UpdateOptionInput_base {
|
|
22
|
+
_id: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=option.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option.dto.d.ts","sourceRoot":"","sources":["../../src/dto/option.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,iBAAiB;IAE9B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,iBAAiB;IAE9B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,iBAAkB,SAAQ,sBAA8B;IAErE,GAAG,EAAE,MAAM,CAAC;CACX"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateOptionInput = exports.OptionFilterInput = exports.CreateOptionInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const translation_input_1 = require("./translation.input");
|
|
15
|
+
const enum_1 = require("../enum");
|
|
16
|
+
const date_range_input_1 = require("./date-range.input");
|
|
17
|
+
let CreateOptionInput = class CreateOptionInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreateOptionInput = CreateOptionInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateOptionInput.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput),
|
|
26
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
27
|
+
], CreateOptionInput.prototype, "label", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateOptionInput.prototype, "icon", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateOptionInput.prototype, "rootPath", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
|
|
38
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
39
|
+
], CreateOptionInput.prototype, "path", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateOptionInput.prototype, "userType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateOptionInput.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateOptionInput.prototype, "visible", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateOptionInput.prototype, "permissions", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateOptionInput.prototype, "parent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CreateOptionInput.prototype, "isActive", void 0);
|
|
64
|
+
exports.CreateOptionInput = CreateOptionInput = __decorate([
|
|
65
|
+
(0, graphql_1.InputType)()
|
|
66
|
+
], CreateOptionInput);
|
|
67
|
+
let OptionFilterInput = class OptionFilterInput {
|
|
68
|
+
};
|
|
69
|
+
exports.OptionFilterInput = OptionFilterInput;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
72
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
73
|
+
], OptionFilterInput.prototype, "createdAt", void 0);
|
|
74
|
+
exports.OptionFilterInput = OptionFilterInput = __decorate([
|
|
75
|
+
(0, graphql_1.InputType)()
|
|
76
|
+
], OptionFilterInput);
|
|
77
|
+
let UpdateOptionInput = class UpdateOptionInput extends (0, graphql_1.PartialType)(CreateOptionInput) {
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateOptionInput = UpdateOptionInput;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => String),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateOptionInput.prototype, "_id", void 0);
|
|
84
|
+
exports.UpdateOptionInput = UpdateOptionInput = __decorate([
|
|
85
|
+
(0, graphql_1.InputType)()
|
|
86
|
+
], UpdateOptionInput);
|
|
87
|
+
//# sourceMappingURL=option.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option.dto.js","sourceRoot":"","sources":["../../src/dto/option.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAiC7B,CAAA;AAjCY,8CAAiB;AAE9B;IADC,IAAA,eAAK,GAAE;;8CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;gDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;+CAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;mDACpD;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;gDAC5B;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;kDAC5B;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;;sDACrC;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACjB;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;mDAC3B;4BAhCN,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAiC7B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAG7B,CAAA;AAHY,8CAAiB;AAE9B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;oDAAC;4BAFd,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAG7B;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,IAAA,qBAAW,EAAC,iBAAiB,CAAC;CAGpE,CAAA;AAHY,8CAAiB;AAE9B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACR;4BAFC,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAG7B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslationInput } from "./translation.input";
|
|
2
|
+
import { UserType } from "../enum";
|
|
3
|
+
import { DateRangeInput } from "./date-range.input";
|
|
4
|
+
export declare class CreateProductImageInput {
|
|
5
|
+
key: string;
|
|
6
|
+
label: TranslationInput;
|
|
7
|
+
icon?: string;
|
|
8
|
+
rootPath?: string;
|
|
9
|
+
path?: TranslationInput;
|
|
10
|
+
userType?: UserType;
|
|
11
|
+
order?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
permissions?: string[];
|
|
14
|
+
parent?: string | null;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProductImageFilterInput {
|
|
18
|
+
createdAt?: DateRangeInput;
|
|
19
|
+
}
|
|
20
|
+
declare const UpdateProductImageInput_base: import("@nestjs/common").Type<Partial<CreateProductImageInput>>;
|
|
21
|
+
export declare class UpdateProductImageInput extends UpdateProductImageInput_base {
|
|
22
|
+
_id: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=product-image.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-image.dto.d.ts","sourceRoot":"","sources":["../../src/dto/product-image.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,uBAAuB;IAEpC,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,uBAAuB;IAEpC,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,uBAAwB,SAAQ,4BAAoC;IAEjF,GAAG,EAAE,MAAM,CAAC;CACX"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateProductImageInput = exports.ProductImageFilterInput = exports.CreateProductImageInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const translation_input_1 = require("./translation.input");
|
|
15
|
+
const enum_1 = require("../enum");
|
|
16
|
+
const date_range_input_1 = require("./date-range.input");
|
|
17
|
+
let CreateProductImageInput = class CreateProductImageInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreateProductImageInput = CreateProductImageInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateProductImageInput.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput),
|
|
26
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
27
|
+
], CreateProductImageInput.prototype, "label", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateProductImageInput.prototype, "icon", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateProductImageInput.prototype, "rootPath", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
|
|
38
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
39
|
+
], CreateProductImageInput.prototype, "path", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateProductImageInput.prototype, "userType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateProductImageInput.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateProductImageInput.prototype, "visible", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateProductImageInput.prototype, "permissions", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateProductImageInput.prototype, "parent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CreateProductImageInput.prototype, "isActive", void 0);
|
|
64
|
+
exports.CreateProductImageInput = CreateProductImageInput = __decorate([
|
|
65
|
+
(0, graphql_1.InputType)()
|
|
66
|
+
], CreateProductImageInput);
|
|
67
|
+
let ProductImageFilterInput = class ProductImageFilterInput {
|
|
68
|
+
};
|
|
69
|
+
exports.ProductImageFilterInput = ProductImageFilterInput;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
72
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
73
|
+
], ProductImageFilterInput.prototype, "createdAt", void 0);
|
|
74
|
+
exports.ProductImageFilterInput = ProductImageFilterInput = __decorate([
|
|
75
|
+
(0, graphql_1.InputType)()
|
|
76
|
+
], ProductImageFilterInput);
|
|
77
|
+
let UpdateProductImageInput = class UpdateProductImageInput extends (0, graphql_1.PartialType)(CreateProductImageInput) {
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateProductImageInput = UpdateProductImageInput;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => String),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateProductImageInput.prototype, "_id", void 0);
|
|
84
|
+
exports.UpdateProductImageInput = UpdateProductImageInput = __decorate([
|
|
85
|
+
(0, graphql_1.InputType)()
|
|
86
|
+
], UpdateProductImageInput);
|
|
87
|
+
//# sourceMappingURL=product-image.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-image.dto.js","sourceRoot":"","sources":["../../src/dto/product-image.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAiCnC,CAAA;AAjCY,0DAAuB;AAEpC;IADC,IAAA,eAAK,GAAE;;oDACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CA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,iCAAc;0DAAC;kCAFd,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAGnC;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,IAAA,qBAAW,EAAC,uBAAuB,CAAC;CAGhF,CAAA;AAHY,0DAAuB;AAEpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACR;kCAFC,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAGnC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslationInput } from "./translation.input";
|
|
2
|
+
import { UserType } from "../enum";
|
|
3
|
+
import { DateRangeInput } from "./date-range.input";
|
|
4
|
+
export declare class CreateProductimageInput {
|
|
5
|
+
key: string;
|
|
6
|
+
label: TranslationInput;
|
|
7
|
+
icon?: string;
|
|
8
|
+
rootPath?: string;
|
|
9
|
+
path?: TranslationInput;
|
|
10
|
+
userType?: UserType;
|
|
11
|
+
order?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
permissions?: string[];
|
|
14
|
+
parent?: string | null;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProductimageFilterInput {
|
|
18
|
+
createdAt?: DateRangeInput;
|
|
19
|
+
}
|
|
20
|
+
declare const UpdateProductimageInput_base: import("@nestjs/common").Type<Partial<CreateProductimageInput>>;
|
|
21
|
+
export declare class UpdateProductimageInput extends UpdateProductimageInput_base {
|
|
22
|
+
_id: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=productimage.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productimage.dto.d.ts","sourceRoot":"","sources":["../../src/dto/productimage.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,uBAAuB;IAEpC,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,uBAAuB;IAEpC,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,uBAAwB,SAAQ,4BAAoC;IAEjF,GAAG,EAAE,MAAM,CAAC;CACX"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateProductimageInput = exports.ProductimageFilterInput = exports.CreateProductimageInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const translation_input_1 = require("./translation.input");
|
|
15
|
+
const enum_1 = require("../enum");
|
|
16
|
+
const date_range_input_1 = require("./date-range.input");
|
|
17
|
+
let CreateProductimageInput = class CreateProductimageInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreateProductimageInput = CreateProductimageInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateProductimageInput.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput),
|
|
26
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
27
|
+
], CreateProductimageInput.prototype, "label", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateProductimageInput.prototype, "icon", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateProductimageInput.prototype, "rootPath", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
|
|
38
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
39
|
+
], CreateProductimageInput.prototype, "path", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateProductimageInput.prototype, "userType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateProductimageInput.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateProductimageInput.prototype, "visible", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateProductimageInput.prototype, "permissions", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateProductimageInput.prototype, "parent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CreateProductimageInput.prototype, "isActive", void 0);
|
|
64
|
+
exports.CreateProductimageInput = CreateProductimageInput = __decorate([
|
|
65
|
+
(0, graphql_1.InputType)()
|
|
66
|
+
], CreateProductimageInput);
|
|
67
|
+
let ProductimageFilterInput = class ProductimageFilterInput {
|
|
68
|
+
};
|
|
69
|
+
exports.ProductimageFilterInput = ProductimageFilterInput;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
72
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
73
|
+
], ProductimageFilterInput.prototype, "createdAt", void 0);
|
|
74
|
+
exports.ProductimageFilterInput = ProductimageFilterInput = __decorate([
|
|
75
|
+
(0, graphql_1.InputType)()
|
|
76
|
+
], ProductimageFilterInput);
|
|
77
|
+
let UpdateProductimageInput = class UpdateProductimageInput extends (0, graphql_1.PartialType)(CreateProductimageInput) {
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateProductimageInput = UpdateProductimageInput;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => String),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateProductimageInput.prototype, "_id", void 0);
|
|
84
|
+
exports.UpdateProductimageInput = UpdateProductimageInput = __decorate([
|
|
85
|
+
(0, graphql_1.InputType)()
|
|
86
|
+
], UpdateProductimageInput);
|
|
87
|
+
//# sourceMappingURL=productimage.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productimage.dto.js","sourceRoot":"","sources":["../../src/dto/productimage.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAiCnC,CAAA;AAjCY,0DAAuB;AAEpC;IADC,IAAA,eAAK,GAAE;;oDACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;sDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,oCAAgB;qDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,eAAQ,CAAC,KAAK,EAAE,CAAC;;yDACpD;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;sDAC5B;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;wDAC5B;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC;;4DACrC;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACjB;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;;yDAC3B;kCAhCN,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAiCnC;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAGnC,CAAA;AAHY,0DAAuB;AAEpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;0DAAC;kCAFd,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAGnC;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,IAAA,qBAAW,EAAC,uBAAuB,CAAC;CAGhF,CAAA;AAHY,0DAAuB;AAEpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACR;kCAFC,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CAGnC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslationInput } from "./translation.input";
|
|
2
|
+
import { UserType } from "../enum";
|
|
3
|
+
import { DateRangeInput } from "./date-range.input";
|
|
4
|
+
export declare class CreateVariantInput {
|
|
5
|
+
key: string;
|
|
6
|
+
label: TranslationInput;
|
|
7
|
+
icon?: string;
|
|
8
|
+
rootPath?: string;
|
|
9
|
+
path?: TranslationInput;
|
|
10
|
+
userType?: UserType;
|
|
11
|
+
order?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
permissions?: string[];
|
|
14
|
+
parent?: string | null;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class VariantFilterInput {
|
|
18
|
+
createdAt?: DateRangeInput;
|
|
19
|
+
}
|
|
20
|
+
declare const UpdateVariantInput_base: import("@nestjs/common").Type<Partial<CreateVariantInput>>;
|
|
21
|
+
export declare class UpdateVariantInput extends UpdateVariantInput_base {
|
|
22
|
+
_id: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=variant.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.dto.d.ts","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,kBAAkB;IAE/B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBACa,kBAAkB;IAE/B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC1B;;AAED,qBACa,kBAAmB,SAAQ,uBAA+B;IAEvE,GAAG,EAAE,MAAM,CAAC;CACX"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateVariantInput = exports.VariantFilterInput = exports.CreateVariantInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const translation_input_1 = require("./translation.input");
|
|
15
|
+
const enum_1 = require("../enum");
|
|
16
|
+
const date_range_input_1 = require("./date-range.input");
|
|
17
|
+
let CreateVariantInput = class CreateVariantInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreateVariantInput = CreateVariantInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateVariantInput.prototype, "key", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput),
|
|
26
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
27
|
+
], CreateVariantInput.prototype, "label", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateVariantInput.prototype, "icon", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateVariantInput.prototype, "rootPath", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => translation_input_1.TranslationInput, { nullable: true }),
|
|
38
|
+
__metadata("design:type", translation_input_1.TranslationInput)
|
|
39
|
+
], CreateVariantInput.prototype, "path", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => enum_1.UserType, { nullable: true, defaultValue: enum_1.UserType.ADMIN }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], CreateVariantInput.prototype, "userType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: 0 }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateVariantInput.prototype, "order", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateVariantInput.prototype, "visible", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)(() => [String], { nullable: true, defaultValue: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], CreateVariantInput.prototype, "permissions", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], CreateVariantInput.prototype, "parent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], CreateVariantInput.prototype, "isActive", void 0);
|
|
64
|
+
exports.CreateVariantInput = CreateVariantInput = __decorate([
|
|
65
|
+
(0, graphql_1.InputType)()
|
|
66
|
+
], CreateVariantInput);
|
|
67
|
+
let VariantFilterInput = class VariantFilterInput {
|
|
68
|
+
};
|
|
69
|
+
exports.VariantFilterInput = VariantFilterInput;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
72
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
73
|
+
], VariantFilterInput.prototype, "createdAt", void 0);
|
|
74
|
+
exports.VariantFilterInput = VariantFilterInput = __decorate([
|
|
75
|
+
(0, graphql_1.InputType)()
|
|
76
|
+
], VariantFilterInput);
|
|
77
|
+
let UpdateVariantInput = class UpdateVariantInput extends (0, graphql_1.PartialType)(CreateVariantInput) {
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateVariantInput = UpdateVariantInput;
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => String),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateVariantInput.prototype, "_id", void 0);
|
|
84
|
+
exports.UpdateVariantInput = UpdateVariantInput = __decorate([
|
|
85
|
+
(0, graphql_1.InputType)()
|
|
86
|
+
], UpdateVariantInput);
|
|
87
|
+
//# sourceMappingURL=variant.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.dto.js","sourceRoot":"","sources":["../../src/dto/variant.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AACvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAiC9B,CAAA;AAjCY,gDAAkB;AAE/B;IADC,IAAA,eAAK,GAAE;;+CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;iDAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,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