synunu-libs 1.0.108 → 1.0.110
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 +7 -0
- package/dist/constants/patterns.constant.d.ts.map +1 -1
- package/dist/constants/patterns.constant.js +1 -0
- package/dist/constants/patterns.constant.js.map +1 -1
- package/dist/constants/permission.constant.d.ts +61 -47
- package/dist/constants/permission.constant.d.ts.map +1 -1
- package/dist/constants/permission.constant.js +3 -1
- 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/purchase-order-component.dto.d.ts +15 -0
- package/dist/dto/purchase-order-component.dto.d.ts.map +1 -0
- package/dist/dto/purchase-order-component.dto.js +68 -0
- package/dist/dto/purchase-order-component.dto.js.map +1 -0
- package/dist/dto/purchase-order-line-item.dto.d.ts +32 -0
- package/dist/dto/purchase-order-line-item.dto.d.ts.map +1 -0
- package/dist/dto/purchase-order-line-item.dto.js +133 -0
- package/dist/dto/purchase-order-line-item.dto.js.map +1 -0
- package/dist/dto/purchase-order.dto.d.ts +43 -0
- package/dist/dto/purchase-order.dto.d.ts.map +1 -0
- package/dist/dto/purchase-order.dto.js +159 -0
- package/dist/dto/purchase-order.dto.js.map +1 -0
- package/package.json +1 -1
|
@@ -330,6 +330,13 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
330
330
|
readonly UPDATE: `${string}_update`;
|
|
331
331
|
readonly DELETE: `${string}_delete`;
|
|
332
332
|
} & ExtraPatterns<never>;
|
|
333
|
+
readonly PURCHASE_ORDERS: {
|
|
334
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
335
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
336
|
+
readonly CREATE: `${string}_create`;
|
|
337
|
+
readonly UPDATE: `${string}_update`;
|
|
338
|
+
readonly DELETE: `${string}_delete`;
|
|
339
|
+
} & ExtraPatterns<never>;
|
|
333
340
|
};
|
|
334
341
|
readonly SETTING_SERVICE: {
|
|
335
342
|
readonly SETTING: {
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6InB,CAAC"}
|
|
@@ -116,6 +116,7 @@ exports.MESSAGE_PATTERNS = {
|
|
|
116
116
|
}),
|
|
117
117
|
INVENTORY_ITEMS: crudPatterns("inventoryItems"),
|
|
118
118
|
INVENTORY_LEVELS: crudPatterns("inventoryLevels"),
|
|
119
|
+
PURCHASE_ORDERS: crudPatterns("purchaseOrders"),
|
|
119
120
|
},
|
|
120
121
|
SETTING_SERVICE: {
|
|
121
122
|
SETTING: crudPatterns("setting", {
|
|
@@ -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,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1B,CAAC;AACrB,CAAC;AAEY,QAAA,gBAAgB,GAAG;IAC9B,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,oBAAoB;YACnC,aAAa,EAAE,oBAAoB;SACpC;QACD,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,aAAa,EAAE,oBAAoB;YACnC,gBAAgB,EAAE,uBAAuB;YACzC,eAAe,EAAE,sBAAsB;YACvC,cAAc,EAAE,qBAAqB;SACtC,CAAC;QACF,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,YAAY,EAAE,mBAAmB;SAClC,CAAC;QACF,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE;YACrC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,wBAAwB;YACrC,eAAe,EAAE,4BAA4B;YAC7C,eAAe,EAAE,4BAA4B;SAC9C,CAAC;QACF,YAAY,EAAE,YAAY,CAAC,cAAc,EAAE;YACzC,YAAY,EAAE,2BAA2B;YACzC,YAAY,EAAE,2BAA2B;YACz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C;QACF,eAAe,EAAE,YAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAgB,EAAE,YAAY,CAAC,iBAAiB,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,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAC1B,CAAC;AACrB,CAAC;AAEY,QAAA,gBAAgB,GAAG;IAC9B,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,YAAY;YACnB,aAAa,EAAE,oBAAoB;YACnC,aAAa,EAAE,oBAAoB;SACpC;QACD,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,aAAa,EAAE,oBAAoB;YACnC,gBAAgB,EAAE,uBAAuB;YACzC,eAAe,EAAE,sBAAsB;YACvC,cAAc,EAAE,qBAAqB;SACtC,CAAC;QACF,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;YACzB,YAAY,EAAE,mBAAmB;SAClC,CAAC;QACF,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE;YACrC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,wBAAwB;YACrC,eAAe,EAAE,4BAA4B;YAC7C,eAAe,EAAE,4BAA4B;SAC9C,CAAC;QACF,YAAY,EAAE,YAAY,CAAC,cAAc,EAAE;YACzC,YAAY,EAAE,2BAA2B;YACzC,YAAY,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BAA8B;SAC7C,CAAC;QACF,eAAe,EAAE,YAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAgB,EAAE,YAAY,CAAC,iBAAiB,CAAC;QACjD,eAAe,EAAE,YAAY,CAAC,gBAAgB,CAAC;KAChD;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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type ExtraPermissions<T extends string> = Record<T, string>;
|
|
1
2
|
export declare const PERMISSIONS: {
|
|
2
3
|
readonly ADMIN: {
|
|
3
4
|
readonly ALL: "admin:*";
|
|
@@ -8,49 +9,49 @@ export declare const PERMISSIONS: {
|
|
|
8
9
|
readonly CREATE: `${string}:create`;
|
|
9
10
|
readonly UPDATE: `${string}:update`;
|
|
10
11
|
readonly DELETE: `${string}:delete`;
|
|
11
|
-
}
|
|
12
|
+
} & ExtraPermissions<never>;
|
|
12
13
|
readonly USERS: {
|
|
13
14
|
readonly READ: `${string}:read`;
|
|
14
15
|
readonly CREATE: `${string}:create`;
|
|
15
16
|
readonly UPDATE: `${string}:update`;
|
|
16
17
|
readonly DELETE: `${string}:delete`;
|
|
17
|
-
}
|
|
18
|
+
} & ExtraPermissions<never>;
|
|
18
19
|
readonly ROLES: {
|
|
19
20
|
readonly READ: `${string}:read`;
|
|
20
21
|
readonly CREATE: `${string}:create`;
|
|
21
22
|
readonly UPDATE: `${string}:update`;
|
|
22
23
|
readonly DELETE: `${string}:delete`;
|
|
23
|
-
}
|
|
24
|
+
} & ExtraPermissions<never>;
|
|
24
25
|
readonly MEMBERSHIPS: {
|
|
25
26
|
readonly READ: `${string}:read`;
|
|
26
27
|
readonly CREATE: `${string}:create`;
|
|
27
28
|
readonly UPDATE: `${string}:update`;
|
|
28
29
|
readonly DELETE: `${string}:delete`;
|
|
29
|
-
}
|
|
30
|
+
} & ExtraPermissions<never>;
|
|
30
31
|
readonly ORGANIZATIONS: {
|
|
31
32
|
readonly READ: `${string}:read`;
|
|
32
33
|
readonly CREATE: `${string}:create`;
|
|
33
34
|
readonly UPDATE: `${string}:update`;
|
|
34
35
|
readonly DELETE: `${string}:delete`;
|
|
35
|
-
}
|
|
36
|
+
} & ExtraPermissions<never>;
|
|
36
37
|
readonly BRANCHES: {
|
|
37
38
|
readonly READ: `${string}:read`;
|
|
38
39
|
readonly CREATE: `${string}:create`;
|
|
39
40
|
readonly UPDATE: `${string}:update`;
|
|
40
41
|
readonly DELETE: `${string}:delete`;
|
|
41
|
-
}
|
|
42
|
+
} & ExtraPermissions<"FIND_AVAILABLE">;
|
|
42
43
|
readonly PROFILES: {
|
|
43
44
|
readonly READ: `${string}:read`;
|
|
44
45
|
readonly CREATE: `${string}:create`;
|
|
45
46
|
readonly UPDATE: `${string}:update`;
|
|
46
47
|
readonly DELETE: `${string}:delete`;
|
|
47
|
-
}
|
|
48
|
+
} & ExtraPermissions<never>;
|
|
48
49
|
readonly PUBLICATIONS: {
|
|
49
50
|
readonly READ: `${string}:read`;
|
|
50
51
|
readonly CREATE: `${string}:create`;
|
|
51
52
|
readonly UPDATE: `${string}:update`;
|
|
52
53
|
readonly DELETE: `${string}:delete`;
|
|
53
|
-
}
|
|
54
|
+
} & ExtraPermissions<never>;
|
|
54
55
|
};
|
|
55
56
|
readonly PRODUCT_SERVICE: {
|
|
56
57
|
readonly INVENTORIES: {
|
|
@@ -58,97 +59,103 @@ export declare const PERMISSIONS: {
|
|
|
58
59
|
readonly CREATE: `${string}:create`;
|
|
59
60
|
readonly UPDATE: `${string}:update`;
|
|
60
61
|
readonly DELETE: `${string}:delete`;
|
|
61
|
-
}
|
|
62
|
+
} & ExtraPermissions<never>;
|
|
62
63
|
readonly PRODUCTS: {
|
|
63
64
|
readonly READ: `${string}:read`;
|
|
64
65
|
readonly CREATE: `${string}:create`;
|
|
65
66
|
readonly UPDATE: `${string}:update`;
|
|
66
67
|
readonly DELETE: `${string}:delete`;
|
|
67
|
-
}
|
|
68
|
+
} & ExtraPermissions<never>;
|
|
68
69
|
readonly VARIANTS: {
|
|
69
70
|
readonly READ: `${string}:read`;
|
|
70
71
|
readonly CREATE: `${string}:create`;
|
|
71
72
|
readonly UPDATE: `${string}:update`;
|
|
72
73
|
readonly DELETE: `${string}:delete`;
|
|
73
|
-
}
|
|
74
|
+
} & ExtraPermissions<never>;
|
|
74
75
|
readonly PRODUCTIMAGES: {
|
|
75
76
|
readonly READ: `${string}:read`;
|
|
76
77
|
readonly CREATE: `${string}:create`;
|
|
77
78
|
readonly UPDATE: `${string}:update`;
|
|
78
79
|
readonly DELETE: `${string}:delete`;
|
|
79
|
-
}
|
|
80
|
+
} & ExtraPermissions<never>;
|
|
80
81
|
readonly PRODUCT_IMAGES: {
|
|
81
82
|
readonly READ: `${string}:read`;
|
|
82
83
|
readonly CREATE: `${string}:create`;
|
|
83
84
|
readonly UPDATE: `${string}:update`;
|
|
84
85
|
readonly DELETE: `${string}:delete`;
|
|
85
|
-
}
|
|
86
|
+
} & ExtraPermissions<never>;
|
|
86
87
|
readonly VENDORS: {
|
|
87
88
|
readonly READ: `${string}:read`;
|
|
88
89
|
readonly CREATE: `${string}:create`;
|
|
89
90
|
readonly UPDATE: `${string}:update`;
|
|
90
91
|
readonly DELETE: `${string}:delete`;
|
|
91
|
-
}
|
|
92
|
+
} & ExtraPermissions<never>;
|
|
92
93
|
readonly TAGS: {
|
|
93
94
|
readonly READ: `${string}:read`;
|
|
94
95
|
readonly CREATE: `${string}:create`;
|
|
95
96
|
readonly UPDATE: `${string}:update`;
|
|
96
97
|
readonly DELETE: `${string}:delete`;
|
|
97
|
-
}
|
|
98
|
+
} & ExtraPermissions<never>;
|
|
98
99
|
readonly COLLECTIONS: {
|
|
99
100
|
readonly READ: `${string}:read`;
|
|
100
101
|
readonly CREATE: `${string}:create`;
|
|
101
102
|
readonly UPDATE: `${string}:update`;
|
|
102
103
|
readonly DELETE: `${string}:delete`;
|
|
103
|
-
}
|
|
104
|
+
} & ExtraPermissions<never>;
|
|
104
105
|
readonly PRODUCT_TYPES: {
|
|
105
106
|
readonly READ: `${string}:read`;
|
|
106
107
|
readonly CREATE: `${string}:create`;
|
|
107
108
|
readonly UPDATE: `${string}:update`;
|
|
108
109
|
readonly DELETE: `${string}:delete`;
|
|
109
|
-
}
|
|
110
|
+
} & ExtraPermissions<never>;
|
|
110
111
|
readonly CATALOGS: {
|
|
111
112
|
readonly READ: `${string}:read`;
|
|
112
113
|
readonly CREATE: `${string}:create`;
|
|
113
114
|
readonly UPDATE: `${string}:update`;
|
|
114
115
|
readonly DELETE: `${string}:delete`;
|
|
115
|
-
}
|
|
116
|
+
} & ExtraPermissions<never>;
|
|
116
117
|
readonly PRODUCT_TAGS: {
|
|
117
118
|
readonly READ: `${string}:read`;
|
|
118
119
|
readonly CREATE: `${string}:create`;
|
|
119
120
|
readonly UPDATE: `${string}:update`;
|
|
120
121
|
readonly DELETE: `${string}:delete`;
|
|
121
|
-
}
|
|
122
|
+
} & ExtraPermissions<never>;
|
|
122
123
|
readonly VAT_CATEGORIES: {
|
|
123
124
|
readonly READ: `${string}:read`;
|
|
124
125
|
readonly CREATE: `${string}:create`;
|
|
125
126
|
readonly UPDATE: `${string}:update`;
|
|
126
127
|
readonly DELETE: `${string}:delete`;
|
|
127
|
-
}
|
|
128
|
+
} & ExtraPermissions<never>;
|
|
128
129
|
readonly SUPPLIERS: {
|
|
129
130
|
readonly READ: `${string}:read`;
|
|
130
131
|
readonly CREATE: `${string}:create`;
|
|
131
132
|
readonly UPDATE: `${string}:update`;
|
|
132
133
|
readonly DELETE: `${string}:delete`;
|
|
133
|
-
}
|
|
134
|
+
} & ExtraPermissions<never>;
|
|
134
135
|
readonly BARCODES: {
|
|
135
136
|
readonly READ: `${string}:read`;
|
|
136
137
|
readonly CREATE: `${string}:create`;
|
|
137
138
|
readonly UPDATE: `${string}:update`;
|
|
138
139
|
readonly DELETE: `${string}:delete`;
|
|
139
|
-
}
|
|
140
|
+
} & ExtraPermissions<never>;
|
|
140
141
|
readonly LABEL_TEMPLATES: {
|
|
141
142
|
readonly READ: `${string}:read`;
|
|
142
143
|
readonly CREATE: `${string}:create`;
|
|
143
144
|
readonly UPDATE: `${string}:update`;
|
|
144
145
|
readonly DELETE: `${string}:delete`;
|
|
145
|
-
}
|
|
146
|
+
} & ExtraPermissions<never>;
|
|
146
147
|
readonly PAPER_TYPES: {
|
|
147
148
|
readonly READ: `${string}:read`;
|
|
148
149
|
readonly CREATE: `${string}:create`;
|
|
149
150
|
readonly UPDATE: `${string}:update`;
|
|
150
151
|
readonly DELETE: `${string}:delete`;
|
|
151
|
-
}
|
|
152
|
+
} & ExtraPermissions<never>;
|
|
153
|
+
readonly PACKSIZES: {
|
|
154
|
+
readonly READ: `${string}:read`;
|
|
155
|
+
readonly CREATE: `${string}:create`;
|
|
156
|
+
readonly UPDATE: `${string}:update`;
|
|
157
|
+
readonly DELETE: `${string}:delete`;
|
|
158
|
+
} & ExtraPermissions<never>;
|
|
152
159
|
};
|
|
153
160
|
readonly ORDER_SERVICE: {
|
|
154
161
|
readonly ORDER: {
|
|
@@ -156,37 +163,37 @@ export declare const PERMISSIONS: {
|
|
|
156
163
|
readonly CREATE: `${string}:create`;
|
|
157
164
|
readonly UPDATE: `${string}:update`;
|
|
158
165
|
readonly DELETE: `${string}:delete`;
|
|
159
|
-
}
|
|
166
|
+
} & ExtraPermissions<never>;
|
|
160
167
|
readonly ORDERS: {
|
|
161
168
|
readonly READ: `${string}:read`;
|
|
162
169
|
readonly CREATE: `${string}:create`;
|
|
163
170
|
readonly UPDATE: `${string}:update`;
|
|
164
171
|
readonly DELETE: `${string}:delete`;
|
|
165
|
-
}
|
|
172
|
+
} & ExtraPermissions<never>;
|
|
166
173
|
readonly DRAFT_ORDERS: {
|
|
167
174
|
readonly READ: `${string}:read`;
|
|
168
175
|
readonly CREATE: `${string}:create`;
|
|
169
176
|
readonly UPDATE: `${string}:update`;
|
|
170
177
|
readonly DELETE: `${string}:delete`;
|
|
171
|
-
}
|
|
178
|
+
} & ExtraPermissions<never>;
|
|
172
179
|
readonly RETURNS: {
|
|
173
180
|
readonly READ: `${string}:read`;
|
|
174
181
|
readonly CREATE: `${string}:create`;
|
|
175
182
|
readonly UPDATE: `${string}:update`;
|
|
176
183
|
readonly DELETE: `${string}:delete`;
|
|
177
|
-
}
|
|
184
|
+
} & ExtraPermissions<never>;
|
|
178
185
|
readonly FULFILLMENT_HANDOVERS: {
|
|
179
186
|
readonly READ: `${string}:read`;
|
|
180
187
|
readonly CREATE: `${string}:create`;
|
|
181
188
|
readonly UPDATE: `${string}:update`;
|
|
182
189
|
readonly DELETE: `${string}:delete`;
|
|
183
|
-
}
|
|
190
|
+
} & ExtraPermissions<never>;
|
|
184
191
|
readonly STOCK_TRANSFERS: {
|
|
185
192
|
readonly READ: `${string}:read`;
|
|
186
193
|
readonly CREATE: `${string}:create`;
|
|
187
194
|
readonly UPDATE: `${string}:update`;
|
|
188
195
|
readonly DELETE: `${string}:delete`;
|
|
189
|
-
}
|
|
196
|
+
} & ExtraPermissions<never>;
|
|
190
197
|
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
191
198
|
readonly SUPPLIER_RETURNS: "supplier_returns";
|
|
192
199
|
readonly SHIPMENTS: "shipments";
|
|
@@ -197,61 +204,61 @@ export declare const PERMISSIONS: {
|
|
|
197
204
|
readonly CREATE: `${string}:create`;
|
|
198
205
|
readonly UPDATE: `${string}:update`;
|
|
199
206
|
readonly DELETE: `${string}:delete`;
|
|
200
|
-
}
|
|
207
|
+
} & ExtraPermissions<never>;
|
|
201
208
|
readonly VOUCHERS: {
|
|
202
209
|
readonly READ: `${string}:read`;
|
|
203
210
|
readonly CREATE: `${string}:create`;
|
|
204
211
|
readonly UPDATE: `${string}:update`;
|
|
205
212
|
readonly DELETE: `${string}:delete`;
|
|
206
|
-
}
|
|
213
|
+
} & ExtraPermissions<never>;
|
|
207
214
|
readonly PROVINCES: {
|
|
208
215
|
readonly READ: `${string}:read`;
|
|
209
216
|
readonly CREATE: `${string}:create`;
|
|
210
217
|
readonly UPDATE: `${string}:update`;
|
|
211
218
|
readonly DELETE: `${string}:delete`;
|
|
212
|
-
}
|
|
219
|
+
} & ExtraPermissions<never>;
|
|
213
220
|
readonly WARDS: {
|
|
214
221
|
readonly READ: `${string}:read`;
|
|
215
222
|
readonly CREATE: `${string}:create`;
|
|
216
223
|
readonly UPDATE: `${string}:update`;
|
|
217
224
|
readonly DELETE: `${string}:delete`;
|
|
218
|
-
}
|
|
225
|
+
} & ExtraPermissions<never>;
|
|
219
226
|
readonly COUNTRIES: {
|
|
220
227
|
readonly READ: `${string}:read`;
|
|
221
228
|
readonly CREATE: `${string}:create`;
|
|
222
229
|
readonly UPDATE: `${string}:update`;
|
|
223
230
|
readonly DELETE: `${string}:delete`;
|
|
224
|
-
}
|
|
231
|
+
} & ExtraPermissions<never>;
|
|
225
232
|
readonly CUSTOMER_GROUPS: {
|
|
226
233
|
readonly READ: `${string}:read`;
|
|
227
234
|
readonly CREATE: `${string}:create`;
|
|
228
235
|
readonly UPDATE: `${string}:update`;
|
|
229
236
|
readonly DELETE: `${string}:delete`;
|
|
230
|
-
}
|
|
237
|
+
} & ExtraPermissions<never>;
|
|
231
238
|
readonly REASONS: {
|
|
232
239
|
readonly READ: `${string}:read`;
|
|
233
240
|
readonly CREATE: `${string}:create`;
|
|
234
241
|
readonly UPDATE: `${string}:update`;
|
|
235
242
|
readonly DELETE: `${string}:delete`;
|
|
236
|
-
}
|
|
243
|
+
} & ExtraPermissions<never>;
|
|
237
244
|
readonly CARRIERS: {
|
|
238
245
|
readonly READ: `${string}:read`;
|
|
239
246
|
readonly CREATE: `${string}:create`;
|
|
240
247
|
readonly UPDATE: `${string}:update`;
|
|
241
248
|
readonly DELETE: `${string}:delete`;
|
|
242
|
-
}
|
|
249
|
+
} & ExtraPermissions<never>;
|
|
243
250
|
readonly CUSTOMER_TAGS: {
|
|
244
251
|
readonly READ: `${string}:read`;
|
|
245
252
|
readonly CREATE: `${string}:create`;
|
|
246
253
|
readonly UPDATE: `${string}:update`;
|
|
247
254
|
readonly DELETE: `${string}:delete`;
|
|
248
|
-
}
|
|
255
|
+
} & ExtraPermissions<never>;
|
|
249
256
|
readonly ADDRESSES: {
|
|
250
257
|
readonly READ: `${string}:read`;
|
|
251
258
|
readonly CREATE: `${string}:create`;
|
|
252
259
|
readonly UPDATE: `${string}:update`;
|
|
253
260
|
readonly DELETE: `${string}:delete`;
|
|
254
|
-
}
|
|
261
|
+
} & ExtraPermissions<never>;
|
|
255
262
|
};
|
|
256
263
|
readonly NOTIFICATION_SERVICE: {};
|
|
257
264
|
readonly MARKETING_SERVICE: {};
|
|
@@ -270,31 +277,37 @@ export declare const PERMISSIONS: {
|
|
|
270
277
|
readonly CREATE: `${string}:create`;
|
|
271
278
|
readonly UPDATE: `${string}:update`;
|
|
272
279
|
readonly DELETE: `${string}:delete`;
|
|
273
|
-
}
|
|
280
|
+
} & ExtraPermissions<never>;
|
|
274
281
|
readonly RECEIVE_INVENTORIES: {
|
|
275
282
|
readonly READ: `${string}:read`;
|
|
276
283
|
readonly CREATE: `${string}:create`;
|
|
277
284
|
readonly UPDATE: `${string}:update`;
|
|
278
285
|
readonly DELETE: `${string}:delete`;
|
|
279
|
-
}
|
|
286
|
+
} & ExtraPermissions<"INITIAL" | "PURCHASE" | "ADJUSTMENT" | "RETURN_CUSTOMER" | "TRANSFER_IN">;
|
|
280
287
|
readonly ISSUE_INVENTORIES: {
|
|
281
288
|
readonly READ: `${string}:read`;
|
|
282
289
|
readonly CREATE: `${string}:create`;
|
|
283
290
|
readonly UPDATE: `${string}:update`;
|
|
284
291
|
readonly DELETE: `${string}:delete`;
|
|
285
|
-
}
|
|
292
|
+
} & ExtraPermissions<"ADJUSTMENT" | "SALE" | "RETURN_VENDOR" | "TRANSFER_OUT" | "DISCARD" | "INTERNAL_USE">;
|
|
286
293
|
readonly INVENTORY_ITEMS: {
|
|
287
294
|
readonly READ: `${string}:read`;
|
|
288
295
|
readonly CREATE: `${string}:create`;
|
|
289
296
|
readonly UPDATE: `${string}:update`;
|
|
290
297
|
readonly DELETE: `${string}:delete`;
|
|
291
|
-
}
|
|
298
|
+
} & ExtraPermissions<never>;
|
|
292
299
|
readonly INVENTORY_LEVELS: {
|
|
293
300
|
readonly READ: `${string}:read`;
|
|
294
301
|
readonly CREATE: `${string}:create`;
|
|
295
302
|
readonly UPDATE: `${string}:update`;
|
|
296
303
|
readonly DELETE: `${string}:delete`;
|
|
297
|
-
}
|
|
304
|
+
} & ExtraPermissions<never>;
|
|
305
|
+
readonly PURCHASE_ORDERS: {
|
|
306
|
+
readonly READ: `${string}:read`;
|
|
307
|
+
readonly CREATE: `${string}:create`;
|
|
308
|
+
readonly UPDATE: `${string}:update`;
|
|
309
|
+
readonly DELETE: `${string}:delete`;
|
|
310
|
+
} & ExtraPermissions<never>;
|
|
298
311
|
};
|
|
299
312
|
readonly SETTINGS: {
|
|
300
313
|
readonly THEMES: "themes";
|
|
@@ -318,7 +331,7 @@ export declare const PERMISSIONS: {
|
|
|
318
331
|
readonly CREATE: `${string}:create`;
|
|
319
332
|
readonly UPDATE: `${string}:update`;
|
|
320
333
|
readonly DELETE: `${string}:delete`;
|
|
321
|
-
}
|
|
334
|
+
} & ExtraPermissions<never>;
|
|
322
335
|
};
|
|
323
336
|
readonly SYSTEM: {
|
|
324
337
|
readonly CURRENCY: {
|
|
@@ -326,7 +339,8 @@ export declare const PERMISSIONS: {
|
|
|
326
339
|
readonly CREATE: `${string}:create`;
|
|
327
340
|
readonly UPDATE: `${string}:update`;
|
|
328
341
|
readonly DELETE: `${string}:delete`;
|
|
329
|
-
}
|
|
342
|
+
} & ExtraPermissions<never>;
|
|
330
343
|
};
|
|
331
344
|
};
|
|
345
|
+
export {};
|
|
332
346
|
//# sourceMappingURL=permission.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"permission.constant.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constant.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAiB5D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHd,CAAC"}
|
|
@@ -8,7 +8,7 @@ function crudPermissions(module, extra) {
|
|
|
8
8
|
UPDATE: `${module}:update`,
|
|
9
9
|
DELETE: `${module}:delete`,
|
|
10
10
|
};
|
|
11
|
-
return extra ? { ...base, ...extra } : base;
|
|
11
|
+
return (extra ? { ...base, ...extra } : base);
|
|
12
12
|
}
|
|
13
13
|
exports.PERMISSIONS = {
|
|
14
14
|
ADMIN: {
|
|
@@ -43,6 +43,7 @@ exports.PERMISSIONS = {
|
|
|
43
43
|
BARCODES: crudPermissions("barcodes"),
|
|
44
44
|
LABEL_TEMPLATES: crudPermissions("labelTemplates"),
|
|
45
45
|
PAPER_TYPES: crudPermissions("paperTypes"),
|
|
46
|
+
PACKSIZES: crudPermissions("packsizes"),
|
|
46
47
|
},
|
|
47
48
|
ORDER_SERVICE: {
|
|
48
49
|
ORDER: crudPermissions("order"),
|
|
@@ -97,6 +98,7 @@ exports.PERMISSIONS = {
|
|
|
97
98
|
}),
|
|
98
99
|
INVENTORY_ITEMS: crudPermissions("inventoryItems"),
|
|
99
100
|
INVENTORY_LEVELS: crudPermissions("inventoryLevels"),
|
|
101
|
+
PURCHASE_ORDERS: crudPermissions("purchaseOrders"),
|
|
100
102
|
},
|
|
101
103
|
SETTINGS: {
|
|
102
104
|
THEMES: "themes",
|
|
@@ -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;
|
|
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,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CACvB,CAAC;AACxB,CAAC;A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8B;YAC1C,eAAe,EAAE,mCAAmC;YACpD,WAAW,EAAE,+BAA+B;SAC7C,CAAC;QACF,iBAAiB,EAAE,eAAe,CAAC,kBAAkB,EAAE;YACrD,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,4BAA4B;YACxC,aAAa,EAAE,+BAA+B;YAC9C,YAAY,EAAE,8BAA8B;YAC5C,OAAO,EAAE,yBAAyB;YAClC,YAAY,EAAE,8BAA8B;SAC7C,CAAC;QACF,eAAe,EAAE,eAAe,CAAC,gBAAgB,CAAC;QAClD,gBAAgB,EAAE,eAAe,CAAC,iBAAiB,CAAC;QACpD,eAAe,EAAE,eAAe,CAAC,gBAAgB,CAAC;KACnD;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"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./product.dto";
|
|
|
29
29
|
export * from "./profile.dto";
|
|
30
30
|
export * from "./province.dto";
|
|
31
31
|
export * from "./publication.dto";
|
|
32
|
+
export * from "./purchase-order.dto";
|
|
32
33
|
export * from "./receive-inventory.dto";
|
|
33
34
|
export * from "./roles.dto";
|
|
34
35
|
export * from "./supplier.dto";
|
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,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
package/dist/dto/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./product.dto"), exports);
|
|
|
46
46
|
__exportStar(require("./profile.dto"), exports);
|
|
47
47
|
__exportStar(require("./province.dto"), exports);
|
|
48
48
|
__exportStar(require("./publication.dto"), exports);
|
|
49
|
+
__exportStar(require("./purchase-order.dto"), exports);
|
|
49
50
|
__exportStar(require("./receive-inventory.dto"), exports);
|
|
50
51
|
__exportStar(require("./roles.dto"), exports);
|
|
51
52
|
__exportStar(require("./supplier.dto"), 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,gDAA8B;AAC9B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B;AAC9B,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B;AAC/B,oDAAkC;AAClC,0DAAwC;AACxC,8CAA4B;AAC5B,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,gDAA8B;AAC9B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B;AAC9B,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B;AAC/B,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC;AACrC,wDAAsC;AACtC,0DAAwC;AACxC,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B;AAC/B,oDAAkC;AAClC,uDAAqC;AACrC,0DAAwC;AACxC,8CAA4B;AAC5B,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,gDAA8B;AAC9B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class PurchaseOrderComponentInput {
|
|
2
|
+
id: number;
|
|
3
|
+
productId: number;
|
|
4
|
+
variantId: number;
|
|
5
|
+
inventoryItemId: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
sku?: string;
|
|
9
|
+
barcode?: string;
|
|
10
|
+
type?: "normal";
|
|
11
|
+
ratio: number;
|
|
12
|
+
receivedQuantity?: number;
|
|
13
|
+
rejectedQuantity?: number;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=purchase-order-component.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order-component.dto.d.ts","sourceRoot":"","sources":["../../src/dto/purchase-order-component.dto.ts"],"names":[],"mappings":"AAEA,qBACa,2BAA2B;IAEtC,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,eAAe,EAAE,MAAM,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAGhB,KAAK,EAAE,MAAM,CAAC;IAGd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.PurchaseOrderComponentInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
let PurchaseOrderComponentInput = class PurchaseOrderComponentInput {
|
|
15
|
+
};
|
|
16
|
+
exports.PurchaseOrderComponentInput = PurchaseOrderComponentInput;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], PurchaseOrderComponentInput.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PurchaseOrderComponentInput.prototype, "productId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], PurchaseOrderComponentInput.prototype, "variantId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], PurchaseOrderComponentInput.prototype, "inventoryItemId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PurchaseOrderComponentInput.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PurchaseOrderComponentInput.prototype, "title", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PurchaseOrderComponentInput.prototype, "sku", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PurchaseOrderComponentInput.prototype, "barcode", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, graphql_1.Field)({ defaultValue: "normal" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PurchaseOrderComponentInput.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], PurchaseOrderComponentInput.prototype, "ratio", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], PurchaseOrderComponentInput.prototype, "receivedQuantity", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 0 }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], PurchaseOrderComponentInput.prototype, "rejectedQuantity", void 0);
|
|
65
|
+
exports.PurchaseOrderComponentInput = PurchaseOrderComponentInput = __decorate([
|
|
66
|
+
(0, graphql_1.InputType)()
|
|
67
|
+
], PurchaseOrderComponentInput);
|
|
68
|
+
//# sourceMappingURL=purchase-order-component.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order-component.dto.js","sourceRoot":"","sources":["../../src/dto/purchase-order-component.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA+D;AAGxD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAoCvC,CAAA;AApCY,kEAA2B;AAEtC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;uDACN;AAGX;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;8DACC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;8DACC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;oEACO;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACb;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACT;AAGjB;IADC,IAAA,eAAK,EAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC;;yDAClB;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;0DACL;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;qEACZ;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;qEACZ;sCAnCf,2BAA2B;IADvC,IAAA,mBAAS,GAAE;GACC,2BAA2B,CAoCvC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PurchaseOrderComponentInput } from "./purchase-order-component.dto";
|
|
2
|
+
export declare class PurchaseOrderLineItemInput {
|
|
3
|
+
id: number;
|
|
4
|
+
productId: number;
|
|
5
|
+
variantId: number;
|
|
6
|
+
inventoryItemId: number;
|
|
7
|
+
name?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
variantTitle?: string;
|
|
10
|
+
sku?: string;
|
|
11
|
+
barcode?: string;
|
|
12
|
+
unit?: string;
|
|
13
|
+
type?: "normal" | "packsize";
|
|
14
|
+
price: number;
|
|
15
|
+
quantity: number;
|
|
16
|
+
receivedQuantity?: number;
|
|
17
|
+
rejectedQuantity?: number;
|
|
18
|
+
discountValue?: number;
|
|
19
|
+
discountType?: "percent" | "value";
|
|
20
|
+
taxTitle?: string;
|
|
21
|
+
taxRate?: number;
|
|
22
|
+
excludedTaxPrice?: number;
|
|
23
|
+
lineAmount?: number;
|
|
24
|
+
excludedTaxLineAmount?: number;
|
|
25
|
+
discountAmount?: number;
|
|
26
|
+
taxAmount?: number;
|
|
27
|
+
totalLineAmountAfterTax?: number;
|
|
28
|
+
note?: string;
|
|
29
|
+
position?: number;
|
|
30
|
+
components?: PurchaseOrderComponentInput[];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=purchase-order-line-item.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order-line-item.dto.d.ts","sourceRoot":"","sources":["../../src/dto/purchase-order-line-item.dto.ts"],"names":[],"mappings":"AACA,OAAO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= 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.PurchaseOrderLineItemInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const purchase_order_component_dto_1 = require("./purchase-order-component.dto");
|
|
15
|
+
let PurchaseOrderLineItemInput = class PurchaseOrderLineItemInput {
|
|
16
|
+
};
|
|
17
|
+
exports.PurchaseOrderLineItemInput = PurchaseOrderLineItemInput;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], PurchaseOrderLineItemInput.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PurchaseOrderLineItemInput.prototype, "productId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], PurchaseOrderLineItemInput.prototype, "variantId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], PurchaseOrderLineItemInput.prototype, "inventoryItemId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PurchaseOrderLineItemInput.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], PurchaseOrderLineItemInput.prototype, "title", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], PurchaseOrderLineItemInput.prototype, "variantTitle", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], PurchaseOrderLineItemInput.prototype, "sku", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], PurchaseOrderLineItemInput.prototype, "barcode", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PurchaseOrderLineItemInput.prototype, "unit", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, graphql_1.Field)({ defaultValue: "normal" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], PurchaseOrderLineItemInput.prototype, "type", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], PurchaseOrderLineItemInput.prototype, "price", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], PurchaseOrderLineItemInput.prototype, "quantity", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 0 }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], PurchaseOrderLineItemInput.prototype, "receivedQuantity", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { defaultValue: 0 }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], PurchaseOrderLineItemInput.prototype, "rejectedQuantity", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], PurchaseOrderLineItemInput.prototype, "discountValue", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], PurchaseOrderLineItemInput.prototype, "discountType", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PurchaseOrderLineItemInput.prototype, "taxTitle", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], PurchaseOrderLineItemInput.prototype, "taxRate", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], PurchaseOrderLineItemInput.prototype, "excludedTaxPrice", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], PurchaseOrderLineItemInput.prototype, "lineAmount", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], PurchaseOrderLineItemInput.prototype, "excludedTaxLineAmount", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], PurchaseOrderLineItemInput.prototype, "discountAmount", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], PurchaseOrderLineItemInput.prototype, "taxAmount", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], PurchaseOrderLineItemInput.prototype, "totalLineAmountAfterTax", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], PurchaseOrderLineItemInput.prototype, "note", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], PurchaseOrderLineItemInput.prototype, "position", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, graphql_1.Field)(() => [purchase_order_component_dto_1.PurchaseOrderComponentInput], { nullable: true }),
|
|
128
|
+
__metadata("design:type", Array)
|
|
129
|
+
], PurchaseOrderLineItemInput.prototype, "components", void 0);
|
|
130
|
+
exports.PurchaseOrderLineItemInput = PurchaseOrderLineItemInput = __decorate([
|
|
131
|
+
(0, graphql_1.InputType)()
|
|
132
|
+
], PurchaseOrderLineItemInput);
|
|
133
|
+
//# sourceMappingURL=purchase-order-line-item.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order-line-item.dto.js","sour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C;;4DACnB;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,0DAA2B,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACpB;qCAnFhC,0BAA0B;IADtC,IAAA,mBAAS,GAAE;GACC,0BAA0B,CAoFtC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DateRangeInput } from "./date-range.input";
|
|
2
|
+
import { OrderByInput } from "./order-by.input";
|
|
3
|
+
import { PurchaseOrderLineItemInput } from "./purchase-order-line-item.dto";
|
|
4
|
+
export declare class CreatePurchaseOrderInput {
|
|
5
|
+
id: number;
|
|
6
|
+
storeId: number;
|
|
7
|
+
code: string;
|
|
8
|
+
supplierId?: number;
|
|
9
|
+
locationId?: number;
|
|
10
|
+
createAccountId?: number;
|
|
11
|
+
createAccountName?: string;
|
|
12
|
+
assigneeAccountId?: number;
|
|
13
|
+
assigneeAccountName?: string;
|
|
14
|
+
dueOn?: Date;
|
|
15
|
+
status?: "draft" | "pending" | "completed" | "cancelled";
|
|
16
|
+
lineItems: PurchaseOrderLineItemInput[];
|
|
17
|
+
tags?: string[];
|
|
18
|
+
note?: string;
|
|
19
|
+
reference?: string;
|
|
20
|
+
discountValue?: number;
|
|
21
|
+
discountType?: "percent" | "value";
|
|
22
|
+
taxIncluded?: boolean;
|
|
23
|
+
totalQuantity?: number;
|
|
24
|
+
totalLineAmount?: number;
|
|
25
|
+
totalDiscounts?: number;
|
|
26
|
+
totalTax?: number;
|
|
27
|
+
totalPrice?: number;
|
|
28
|
+
currency?: string;
|
|
29
|
+
currencyDecimalDigits?: number;
|
|
30
|
+
appId?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare class PurchaseOrderFilterInput {
|
|
33
|
+
searchKey?: string;
|
|
34
|
+
orderBy?: OrderByInput[];
|
|
35
|
+
createdAt?: DateRangeInput;
|
|
36
|
+
updatedAt?: DateRangeInput;
|
|
37
|
+
}
|
|
38
|
+
declare const UpdatePurchaseOrderInput_base: import("@nestjs/common").Type<Partial<CreatePurchaseOrderInput>>;
|
|
39
|
+
export declare class UpdatePurchaseOrderInput extends UpdatePurchaseOrderInput_base {
|
|
40
|
+
_id: string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=purchase-order.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order.dto.d.ts","sourceRoot":"","sources":["../../src/dto/purchase-order.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,qBACa,wBAAwB;IAGnC,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAI7B,KAAK,CAAC,EAAE,IAAI,CAAC;IAIb,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;IAIzD,SAAS,EAAE,0BAA0B,EAAE,CAAC;IAIxC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAGnC,WAAW,CAAC,EAAE,OAAO,CAAC;IAItB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAI/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBACa,wBAAwB;IAEnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAGzB,SAAS,CAAC,EAAE,cAAc,CAAC;IAG3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,wBAAyB,SAAQ,6BAE7C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1,159 @@
|
|
|
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.UpdatePurchaseOrderInput = exports.PurchaseOrderFilterInput = exports.CreatePurchaseOrderInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const date_range_input_1 = require("./date-range.input");
|
|
15
|
+
const order_by_input_1 = require("./order-by.input");
|
|
16
|
+
const purchase_order_line_item_dto_1 = require("./purchase-order-line-item.dto");
|
|
17
|
+
let CreatePurchaseOrderInput = class CreatePurchaseOrderInput {
|
|
18
|
+
};
|
|
19
|
+
exports.CreatePurchaseOrderInput = CreatePurchaseOrderInput;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], CreatePurchaseOrderInput.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreatePurchaseOrderInput.prototype, "storeId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, graphql_1.Field)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreatePurchaseOrderInput.prototype, "code", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreatePurchaseOrderInput.prototype, "supplierId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], CreatePurchaseOrderInput.prototype, "locationId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreatePurchaseOrderInput.prototype, "createAccountId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreatePurchaseOrderInput.prototype, "createAccountName", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], CreatePurchaseOrderInput.prototype, "assigneeAccountId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreatePurchaseOrderInput.prototype, "assigneeAccountName", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], CreatePurchaseOrderInput.prototype, "dueOn", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, graphql_1.Field)({ defaultValue: "draft" }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CreatePurchaseOrderInput.prototype, "status", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, graphql_1.Field)(() => [purchase_order_line_item_dto_1.PurchaseOrderLineItemInput]),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], CreatePurchaseOrderInput.prototype, "lineItems", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, graphql_1.Field)(() => [String], { nullable: true }),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], CreatePurchaseOrderInput.prototype, "tags", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CreatePurchaseOrderInput.prototype, "note", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreatePurchaseOrderInput.prototype, "reference", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], CreatePurchaseOrderInput.prototype, "discountValue", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], CreatePurchaseOrderInput.prototype, "discountType", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, graphql_1.Field)({ defaultValue: false }),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], CreatePurchaseOrderInput.prototype, "taxIncluded", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], CreatePurchaseOrderInput.prototype, "totalQuantity", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], CreatePurchaseOrderInput.prototype, "totalLineAmount", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], CreatePurchaseOrderInput.prototype, "totalDiscounts", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], CreatePurchaseOrderInput.prototype, "totalTax", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], CreatePurchaseOrderInput.prototype, "totalPrice", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], CreatePurchaseOrderInput.prototype, "currency", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], CreatePurchaseOrderInput.prototype, "currencyDecimalDigits", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], CreatePurchaseOrderInput.prototype, "appId", void 0);
|
|
124
|
+
exports.CreatePurchaseOrderInput = CreatePurchaseOrderInput = __decorate([
|
|
125
|
+
(0, graphql_1.InputType)()
|
|
126
|
+
], CreatePurchaseOrderInput);
|
|
127
|
+
let PurchaseOrderFilterInput = class PurchaseOrderFilterInput {
|
|
128
|
+
};
|
|
129
|
+
exports.PurchaseOrderFilterInput = PurchaseOrderFilterInput;
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], PurchaseOrderFilterInput.prototype, "searchKey", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, graphql_1.Field)(() => [order_by_input_1.OrderByInput], { nullable: true }),
|
|
136
|
+
__metadata("design:type", Array)
|
|
137
|
+
], PurchaseOrderFilterInput.prototype, "orderBy", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
140
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
141
|
+
], PurchaseOrderFilterInput.prototype, "createdAt", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, graphql_1.Field)(() => date_range_input_1.DateRangeInput, { nullable: true }),
|
|
144
|
+
__metadata("design:type", date_range_input_1.DateRangeInput)
|
|
145
|
+
], PurchaseOrderFilterInput.prototype, "updatedAt", void 0);
|
|
146
|
+
exports.PurchaseOrderFilterInput = PurchaseOrderFilterInput = __decorate([
|
|
147
|
+
(0, graphql_1.InputType)()
|
|
148
|
+
], PurchaseOrderFilterInput);
|
|
149
|
+
let UpdatePurchaseOrderInput = class UpdatePurchaseOrderInput extends (0, graphql_1.PartialType)(CreatePurchaseOrderInput) {
|
|
150
|
+
};
|
|
151
|
+
exports.UpdatePurchaseOrderInput = UpdatePurchaseOrderInput;
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, graphql_1.Field)(() => String),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], UpdatePurchaseOrderInput.prototype, "_id", void 0);
|
|
156
|
+
exports.UpdatePurchaseOrderInput = UpdatePurchaseOrderInput = __decorate([
|
|
157
|
+
(0, graphql_1.InputType)()
|
|
158
|
+
], UpdatePurchaseOrderInput);
|
|
159
|
+
//# sourceMappingURL=purchase-order.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order.dto.js","sourceRoot":"","sources":["../../src/dto/purchase-order.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4E;AAC5E,yDAAoD;AACpD,qDAAgD;AAChD,iFAA4E;AAGrE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAyFpC,CAAA;AAzFY,4DAAwB;AAGnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;oDACN;AAGX;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;yDACD;AAGhB;IADC,IAAA,eAAK,GAAE;;sDACK;AAIb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACjB;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACjB;AAIpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACZ;AAGzB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC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