synunu-libs 1.0.14 → 1.0.15
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/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/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/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
|
@@ -2,63 +2,60 @@ 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
31
|
readonly READ: `${string}:read`;
|
|
32
32
|
readonly CREATE: `${string}:create`;
|
|
33
33
|
readonly UPDATE: `${string}:update`;
|
|
34
34
|
readonly DELETE: `${string}:delete`;
|
|
35
35
|
};
|
|
36
|
-
readonly
|
|
37
|
-
readonly SUPPLIER_RETURNS: "supplier_returns";
|
|
38
|
-
readonly SHIPMENTS: "shipments";
|
|
39
|
-
};
|
|
40
|
-
readonly CATALOG: {
|
|
41
|
-
readonly PRODUCTS: {
|
|
36
|
+
readonly BRANCHES: {
|
|
42
37
|
readonly READ: `${string}:read`;
|
|
43
38
|
readonly CREATE: `${string}:create`;
|
|
44
39
|
readonly UPDATE: `${string}:update`;
|
|
45
40
|
readonly DELETE: `${string}:delete`;
|
|
46
41
|
};
|
|
42
|
+
};
|
|
43
|
+
readonly PRODUCT_SERVICE: {
|
|
47
44
|
readonly INVENTORIES: {
|
|
48
45
|
readonly READ: `${string}:read`;
|
|
49
46
|
readonly CREATE: `${string}:create`;
|
|
50
47
|
readonly UPDATE: `${string}:update`;
|
|
51
48
|
readonly DELETE: `${string}:delete`;
|
|
52
49
|
};
|
|
53
|
-
readonly
|
|
50
|
+
readonly SUPPLIERS: "suppliers";
|
|
51
|
+
readonly COLLECTIONS: "collections";
|
|
52
|
+
readonly PRODUCTIMAGES: {
|
|
54
53
|
readonly READ: `${string}:read`;
|
|
55
54
|
readonly CREATE: `${string}:create`;
|
|
56
55
|
readonly UPDATE: `${string}:update`;
|
|
57
56
|
readonly DELETE: `${string}:delete`;
|
|
58
57
|
};
|
|
59
|
-
readonly
|
|
60
|
-
readonly SUPPLIERS: "suppliers";
|
|
61
|
-
readonly OPTIONS: {
|
|
58
|
+
readonly PRODUCTS: {
|
|
62
59
|
readonly READ: `${string}:read`;
|
|
63
60
|
readonly CREATE: `${string}:create`;
|
|
64
61
|
readonly UPDATE: `${string}:update`;
|
|
@@ -70,14 +67,49 @@ export declare const PERMISSIONS: {
|
|
|
70
67
|
readonly UPDATE: `${string}:update`;
|
|
71
68
|
readonly DELETE: `${string}:delete`;
|
|
72
69
|
};
|
|
73
|
-
|
|
70
|
+
};
|
|
71
|
+
readonly ORDER_SERVICE: {
|
|
72
|
+
readonly ORDER: {
|
|
73
|
+
readonly READ: `${string}:read`;
|
|
74
|
+
readonly CREATE: `${string}:create`;
|
|
75
|
+
readonly UPDATE: `${string}:update`;
|
|
76
|
+
readonly DELETE: `${string}:delete`;
|
|
77
|
+
};
|
|
78
|
+
readonly ORDERS: {
|
|
79
|
+
readonly READ: `${string}:read`;
|
|
80
|
+
readonly CREATE: `${string}:create`;
|
|
81
|
+
readonly UPDATE: `${string}:update`;
|
|
82
|
+
readonly DELETE: `${string}:delete`;
|
|
83
|
+
};
|
|
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
|
+
PRODUCTIMAGES: crudPermissions("productimages"),
|
|
30
|
+
PRODUCTS: crudPermissions("products"),
|
|
31
|
+
VARIANTS: crudPermissions("variants"),
|
|
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":[],"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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AAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE;QACzD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;IACD,oBAAoB,EAAE,EAAE;IACxB,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE;QACT,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,eAAe;SACvB;KACF;IAED,QAAQ,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,GAAG,EAAE,cAAc;QACnB,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,aAAa,EAAE,eAAe;QAC9B,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
|
|
@@ -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,IA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;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=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,EAAE,CAAC;;oDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB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