synunu-libs 1.0.106 → 1.0.108
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 +37 -63
- package/dist/constants/patterns.constant.d.ts.map +1 -1
- package/dist/constants/patterns.constant.js +20 -9
- package/dist/constants/patterns.constant.js.map +1 -1
- package/dist/constants/permission.constant.d.ts +32 -54
- package/dist/constants/permission.constant.d.ts.map +1 -1
- package/dist/constants/permission.constant.js +20 -9
- package/dist/constants/permission.constant.js.map +1 -1
- package/dist/dto/inventory-adjustment.dto.d.ts +2 -3
- package/dist/dto/inventory-adjustment.dto.d.ts.map +1 -1
- package/dist/dto/inventory-adjustment.dto.js +25 -25
- package/dist/dto/inventory-adjustment.dto.js.map +1 -1
- package/dist/dto/inventory-item.dto.d.ts +4 -4
- package/dist/dto/inventory-item.dto.d.ts.map +1 -1
- package/dist/dto/inventory-item.dto.js +17 -17
- package/dist/dto/inventory-item.dto.js.map +1 -1
- package/dist/dto/inventory-level.dto.d.ts +3 -6
- package/dist/dto/inventory-level.dto.d.ts.map +1 -1
- package/dist/dto/inventory-level.dto.js +4 -16
- package/dist/dto/inventory-level.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -93,13 +93,6 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
93
93
|
readonly UPDATE: `${string}_update`;
|
|
94
94
|
readonly DELETE: `${string}_delete`;
|
|
95
95
|
} & ExtraPatterns<never>;
|
|
96
|
-
readonly INVENTORY: {
|
|
97
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
98
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
99
|
-
readonly CREATE: `${string}_create`;
|
|
100
|
-
readonly UPDATE: `${string}_update`;
|
|
101
|
-
readonly DELETE: `${string}_delete`;
|
|
102
|
-
} & ExtraPatterns<never>;
|
|
103
96
|
readonly PRODUCT_IMAGES: {
|
|
104
97
|
readonly FIND_ALL: `${string}_find_all`;
|
|
105
98
|
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
@@ -107,34 +100,6 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
107
100
|
readonly UPDATE: `${string}_update`;
|
|
108
101
|
readonly DELETE: `${string}_delete`;
|
|
109
102
|
} & ExtraPatterns<never>;
|
|
110
|
-
readonly INVENTORY_ITEMSS: {
|
|
111
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
112
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
113
|
-
readonly CREATE: `${string}_create`;
|
|
114
|
-
readonly UPDATE: `${string}_update`;
|
|
115
|
-
readonly DELETE: `${string}_delete`;
|
|
116
|
-
} & ExtraPatterns<never>;
|
|
117
|
-
readonly INVENTORY_LEVELSS: {
|
|
118
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
119
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
120
|
-
readonly CREATE: `${string}_create`;
|
|
121
|
-
readonly UPDATE: `${string}_update`;
|
|
122
|
-
readonly DELETE: `${string}_delete`;
|
|
123
|
-
} & ExtraPatterns<never>;
|
|
124
|
-
readonly INVENTORY_LEVELS: {
|
|
125
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
126
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
127
|
-
readonly CREATE: `${string}_create`;
|
|
128
|
-
readonly UPDATE: `${string}_update`;
|
|
129
|
-
readonly DELETE: `${string}_delete`;
|
|
130
|
-
} & ExtraPatterns<never>;
|
|
131
|
-
readonly INVENTORY_ITEMS: {
|
|
132
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
133
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
134
|
-
readonly CREATE: `${string}_create`;
|
|
135
|
-
readonly UPDATE: `${string}_update`;
|
|
136
|
-
readonly DELETE: `${string}_delete`;
|
|
137
|
-
} & ExtraPatterns<never>;
|
|
138
103
|
readonly PACKSIZES: {
|
|
139
104
|
readonly FIND_ALL: `${string}_find_all`;
|
|
140
105
|
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
@@ -142,20 +107,6 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
142
107
|
readonly UPDATE: `${string}_update`;
|
|
143
108
|
readonly DELETE: `${string}_delete`;
|
|
144
109
|
} & ExtraPatterns<never>;
|
|
145
|
-
readonly INVENTORY_LOCATIONS: {
|
|
146
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
147
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
148
|
-
readonly CREATE: `${string}_create`;
|
|
149
|
-
readonly UPDATE: `${string}_update`;
|
|
150
|
-
readonly DELETE: `${string}_delete`;
|
|
151
|
-
} & ExtraPatterns<never>;
|
|
152
|
-
readonly INVENTORY_STORAGES: {
|
|
153
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
154
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
155
|
-
readonly CREATE: `${string}_create`;
|
|
156
|
-
readonly UPDATE: `${string}_update`;
|
|
157
|
-
readonly DELETE: `${string}_delete`;
|
|
158
|
-
} & ExtraPatterns<never>;
|
|
159
110
|
readonly PRODUCTS: {
|
|
160
111
|
readonly FIND_ALL: `${string}_find_all`;
|
|
161
112
|
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
@@ -184,20 +135,6 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
184
135
|
readonly UPDATE: `${string}_update`;
|
|
185
136
|
readonly DELETE: `${string}_delete`;
|
|
186
137
|
} & ExtraPatterns<never>;
|
|
187
|
-
readonly RECEIVE_INVENTORIES: {
|
|
188
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
189
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
190
|
-
readonly CREATE: `${string}_create`;
|
|
191
|
-
readonly UPDATE: `${string}_update`;
|
|
192
|
-
readonly DELETE: `${string}_delete`;
|
|
193
|
-
} & ExtraPatterns<never>;
|
|
194
|
-
readonly INVENTORY_ADJUSTMENTS: {
|
|
195
|
-
readonly FIND_ALL: `${string}_find_all`;
|
|
196
|
-
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
197
|
-
readonly CREATE: `${string}_create`;
|
|
198
|
-
readonly UPDATE: `${string}_update`;
|
|
199
|
-
readonly DELETE: `${string}_delete`;
|
|
200
|
-
} & ExtraPatterns<never>;
|
|
201
138
|
readonly COLLECTIONS: {
|
|
202
139
|
readonly FIND_ALL: `${string}_find_all`;
|
|
203
140
|
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
@@ -357,6 +294,43 @@ export declare const MESSAGE_PATTERNS: {
|
|
|
357
294
|
readonly DELETE: `${string}_delete`;
|
|
358
295
|
} & ExtraPatterns<never>;
|
|
359
296
|
};
|
|
297
|
+
readonly INVENTORY_SERVICE: {
|
|
298
|
+
readonly INVENTORY_ADJUSTMENTS: {
|
|
299
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
300
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
301
|
+
readonly CREATE: `${string}_create`;
|
|
302
|
+
readonly UPDATE: `${string}_update`;
|
|
303
|
+
readonly DELETE: `${string}_delete`;
|
|
304
|
+
} & ExtraPatterns<never>;
|
|
305
|
+
readonly RECEIVE_INVENTORIES: {
|
|
306
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
307
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
308
|
+
readonly CREATE: `${string}_create`;
|
|
309
|
+
readonly UPDATE: `${string}_update`;
|
|
310
|
+
readonly DELETE: `${string}_delete`;
|
|
311
|
+
} & ExtraPatterns<"INITIAL" | "PURCHASE" | "ADJUSTMENT" | "RETURN_CUSTOMER" | "TRANSFER_IN">;
|
|
312
|
+
readonly ISSUE_INVENTORIES: {
|
|
313
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
314
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
315
|
+
readonly CREATE: `${string}_create`;
|
|
316
|
+
readonly UPDATE: `${string}_update`;
|
|
317
|
+
readonly DELETE: `${string}_delete`;
|
|
318
|
+
} & ExtraPatterns<"ADJUSTMENT" | "SALE" | "RETURN_VENDOR" | "TRANSFER_OUT" | "DISCARD" | "INTERNAL_USE">;
|
|
319
|
+
readonly INVENTORY_ITEMS: {
|
|
320
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
321
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
322
|
+
readonly CREATE: `${string}_create`;
|
|
323
|
+
readonly UPDATE: `${string}_update`;
|
|
324
|
+
readonly DELETE: `${string}_delete`;
|
|
325
|
+
} & ExtraPatterns<never>;
|
|
326
|
+
readonly INVENTORY_LEVELS: {
|
|
327
|
+
readonly FIND_ALL: `${string}_find_all`;
|
|
328
|
+
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
329
|
+
readonly CREATE: `${string}_create`;
|
|
330
|
+
readonly UPDATE: `${string}_update`;
|
|
331
|
+
readonly DELETE: `${string}_delete`;
|
|
332
|
+
} & ExtraPatterns<never>;
|
|
333
|
+
};
|
|
360
334
|
readonly SETTING_SERVICE: {
|
|
361
335
|
readonly SETTING: {
|
|
362
336
|
readonly FIND_ALL: `${string}_find_all`;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4InB,CAAC"}
|
|
@@ -62,21 +62,12 @@ exports.MESSAGE_PATTERNS = {
|
|
|
62
62
|
FIND_TREE: "category_find_tree",
|
|
63
63
|
}),
|
|
64
64
|
SUPPLIER: crudPatterns("supplier"),
|
|
65
|
-
INVENTORY: crudPatterns("inventory"),
|
|
66
65
|
PRODUCT_IMAGES: crudPatterns("productImages"),
|
|
67
|
-
INVENTORY_ITEMSS: crudPatterns("inventoryItemss"),
|
|
68
|
-
INVENTORY_LEVELSS: crudPatterns("inventoryLevelss"),
|
|
69
|
-
INVENTORY_LEVELS: crudPatterns("inventoryLevels"),
|
|
70
|
-
INVENTORY_ITEMS: crudPatterns("inventoryItems"),
|
|
71
66
|
PACKSIZES: crudPatterns("packsizes"),
|
|
72
|
-
INVENTORY_LOCATIONS: crudPatterns("inventoryLocations"),
|
|
73
|
-
INVENTORY_STORAGES: crudPatterns("inventoryStorages"),
|
|
74
67
|
PRODUCTS: crudPatterns("products"),
|
|
75
68
|
VARIANTS: crudPatterns("variants"),
|
|
76
69
|
VENDORS: crudPatterns("vendors"),
|
|
77
70
|
TAGS: crudPatterns("tags"),
|
|
78
|
-
RECEIVE_INVENTORIES: crudPatterns("receiveInventories"),
|
|
79
|
-
INVENTORY_ADJUSTMENTS: crudPatterns("inventoryAdjustments"),
|
|
80
71
|
COLLECTIONS: crudPatterns("collections"),
|
|
81
72
|
PRODUCT_TYPES: crudPatterns("productTypes"),
|
|
82
73
|
CATALOGS: crudPatterns("catalogs"),
|
|
@@ -106,6 +97,26 @@ exports.MESSAGE_PATTERNS = {
|
|
|
106
97
|
CUSTOMER_TAGS: crudPatterns("customerTags"),
|
|
107
98
|
ADDRESSES: crudPatterns("Addresses"),
|
|
108
99
|
},
|
|
100
|
+
INVENTORY_SERVICE: {
|
|
101
|
+
INVENTORY_ADJUSTMENTS: crudPatterns("inventoryAdjustments"),
|
|
102
|
+
RECEIVE_INVENTORIES: crudPatterns("receiveInventories", {
|
|
103
|
+
INITIAL: "inventory.receive.initial",
|
|
104
|
+
PURCHASE: "inventory.receive.purchase",
|
|
105
|
+
ADJUSTMENT: "inventory.receive.adjustment",
|
|
106
|
+
RETURN_CUSTOMER: "inventory.receive.return_customer",
|
|
107
|
+
TRANSFER_IN: "inventory.receive.transfer_in",
|
|
108
|
+
}),
|
|
109
|
+
ISSUE_INVENTORIES: crudPatterns("issueInventories", {
|
|
110
|
+
SALE: "inventory.issue.sale",
|
|
111
|
+
ADJUSTMENT: "inventory.issue.adjustment",
|
|
112
|
+
RETURN_VENDOR: "inventory.issue.return_vendor",
|
|
113
|
+
TRANSFER_OUT: "inventory.issue.transfer_out",
|
|
114
|
+
DISCARD: "inventory.issue.discard",
|
|
115
|
+
INTERNAL_USE: "inventory.issue.internal_use",
|
|
116
|
+
}),
|
|
117
|
+
INVENTORY_ITEMS: crudPatterns("inventoryItems"),
|
|
118
|
+
INVENTORY_LEVELS: crudPatterns("inventoryLevels"),
|
|
119
|
+
},
|
|
109
120
|
SETTING_SERVICE: {
|
|
110
121
|
SETTING: crudPatterns("setting", {
|
|
111
122
|
FIND_BY_KEY: "setting_find_by_key",
|
|
@@ -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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B,EAAE;YACtD,OAAO,EAAE,2BAA2B;YACpC,QAAQ,EAAE,4BAA4B;YACtC,UAAU,EAAE,8BAA8B;YAC1C,eAAe,EAAE,mCAAmC;YACpD,WAAW,EAAE,+BAA+B;SAC7C,CAAC;QACF,iBAAiB,EAAE,YAAY,CAAC,kBAAkB,EAAE;YAClD,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,YAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAgB,EAAE,YAAY,CAAC,iBAAiB,CAAC;KAClD;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"}
|
|
@@ -83,48 +83,6 @@ export declare const PERMISSIONS: {
|
|
|
83
83
|
readonly UPDATE: `${string}:update`;
|
|
84
84
|
readonly DELETE: `${string}:delete`;
|
|
85
85
|
};
|
|
86
|
-
readonly INVENTORY_ITEMSS: {
|
|
87
|
-
readonly READ: `${string}:read`;
|
|
88
|
-
readonly CREATE: `${string}:create`;
|
|
89
|
-
readonly UPDATE: `${string}:update`;
|
|
90
|
-
readonly DELETE: `${string}:delete`;
|
|
91
|
-
};
|
|
92
|
-
readonly INVENTORY_LEVELSS: {
|
|
93
|
-
readonly READ: `${string}:read`;
|
|
94
|
-
readonly CREATE: `${string}:create`;
|
|
95
|
-
readonly UPDATE: `${string}:update`;
|
|
96
|
-
readonly DELETE: `${string}:delete`;
|
|
97
|
-
};
|
|
98
|
-
readonly INVENTORY_LEVELS: {
|
|
99
|
-
readonly READ: `${string}:read`;
|
|
100
|
-
readonly CREATE: `${string}:create`;
|
|
101
|
-
readonly UPDATE: `${string}:update`;
|
|
102
|
-
readonly DELETE: `${string}:delete`;
|
|
103
|
-
};
|
|
104
|
-
readonly INVENTORY_ITEMS: {
|
|
105
|
-
readonly READ: `${string}:read`;
|
|
106
|
-
readonly CREATE: `${string}:create`;
|
|
107
|
-
readonly UPDATE: `${string}:update`;
|
|
108
|
-
readonly DELETE: `${string}:delete`;
|
|
109
|
-
};
|
|
110
|
-
readonly PACKSIZES: {
|
|
111
|
-
readonly READ: `${string}:read`;
|
|
112
|
-
readonly CREATE: `${string}:create`;
|
|
113
|
-
readonly UPDATE: `${string}:update`;
|
|
114
|
-
readonly DELETE: `${string}:delete`;
|
|
115
|
-
};
|
|
116
|
-
readonly INVENTORY_LOCATIONS: {
|
|
117
|
-
readonly READ: `${string}:read`;
|
|
118
|
-
readonly CREATE: `${string}:create`;
|
|
119
|
-
readonly UPDATE: `${string}:update`;
|
|
120
|
-
readonly DELETE: `${string}:delete`;
|
|
121
|
-
};
|
|
122
|
-
readonly INVENTORY_STORAGES: {
|
|
123
|
-
readonly READ: `${string}:read`;
|
|
124
|
-
readonly CREATE: `${string}:create`;
|
|
125
|
-
readonly UPDATE: `${string}:update`;
|
|
126
|
-
readonly DELETE: `${string}:delete`;
|
|
127
|
-
};
|
|
128
86
|
readonly VENDORS: {
|
|
129
87
|
readonly READ: `${string}:read`;
|
|
130
88
|
readonly CREATE: `${string}:create`;
|
|
@@ -137,18 +95,6 @@ export declare const PERMISSIONS: {
|
|
|
137
95
|
readonly UPDATE: `${string}:update`;
|
|
138
96
|
readonly DELETE: `${string}:delete`;
|
|
139
97
|
};
|
|
140
|
-
readonly RECEIVE_INVENTORIES: {
|
|
141
|
-
readonly READ: `${string}:read`;
|
|
142
|
-
readonly CREATE: `${string}:create`;
|
|
143
|
-
readonly UPDATE: `${string}:update`;
|
|
144
|
-
readonly DELETE: `${string}:delete`;
|
|
145
|
-
};
|
|
146
|
-
readonly INVENTORY_ADJUSTMENTS: {
|
|
147
|
-
readonly READ: `${string}:read`;
|
|
148
|
-
readonly CREATE: `${string}:create`;
|
|
149
|
-
readonly UPDATE: `${string}:update`;
|
|
150
|
-
readonly DELETE: `${string}:delete`;
|
|
151
|
-
};
|
|
152
98
|
readonly COLLECTIONS: {
|
|
153
99
|
readonly READ: `${string}:read`;
|
|
154
100
|
readonly CREATE: `${string}:create`;
|
|
@@ -318,6 +264,38 @@ export declare const PERMISSIONS: {
|
|
|
318
264
|
readonly VISIT: "reports:visit";
|
|
319
265
|
};
|
|
320
266
|
};
|
|
267
|
+
readonly INVENTORY_SERVICE: {
|
|
268
|
+
readonly INVENTORY_ADJUSTMENTS: {
|
|
269
|
+
readonly READ: `${string}:read`;
|
|
270
|
+
readonly CREATE: `${string}:create`;
|
|
271
|
+
readonly UPDATE: `${string}:update`;
|
|
272
|
+
readonly DELETE: `${string}:delete`;
|
|
273
|
+
};
|
|
274
|
+
readonly RECEIVE_INVENTORIES: {
|
|
275
|
+
readonly READ: `${string}:read`;
|
|
276
|
+
readonly CREATE: `${string}:create`;
|
|
277
|
+
readonly UPDATE: `${string}:update`;
|
|
278
|
+
readonly DELETE: `${string}:delete`;
|
|
279
|
+
};
|
|
280
|
+
readonly ISSUE_INVENTORIES: {
|
|
281
|
+
readonly READ: `${string}:read`;
|
|
282
|
+
readonly CREATE: `${string}:create`;
|
|
283
|
+
readonly UPDATE: `${string}:update`;
|
|
284
|
+
readonly DELETE: `${string}:delete`;
|
|
285
|
+
};
|
|
286
|
+
readonly INVENTORY_ITEMS: {
|
|
287
|
+
readonly READ: `${string}:read`;
|
|
288
|
+
readonly CREATE: `${string}:create`;
|
|
289
|
+
readonly UPDATE: `${string}:update`;
|
|
290
|
+
readonly DELETE: `${string}:delete`;
|
|
291
|
+
};
|
|
292
|
+
readonly INVENTORY_LEVELS: {
|
|
293
|
+
readonly READ: `${string}:read`;
|
|
294
|
+
readonly CREATE: `${string}:create`;
|
|
295
|
+
readonly UPDATE: `${string}:update`;
|
|
296
|
+
readonly DELETE: `${string}:delete`;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
321
299
|
readonly SETTINGS: {
|
|
322
300
|
readonly THEMES: "themes";
|
|
323
301
|
readonly PAGES: "pages";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Gd,CAAC"}
|
|
@@ -32,17 +32,8 @@ exports.PERMISSIONS = {
|
|
|
32
32
|
VARIANTS: crudPermissions("variants"),
|
|
33
33
|
PRODUCTIMAGES: crudPermissions("productImages"),
|
|
34
34
|
PRODUCT_IMAGES: crudPermissions("productImages"),
|
|
35
|
-
INVENTORY_ITEMSS: crudPermissions("inventoryItemss"),
|
|
36
|
-
INVENTORY_LEVELSS: crudPermissions("inventoryLevelss"),
|
|
37
|
-
INVENTORY_LEVELS: crudPermissions("inventoryLevels"),
|
|
38
|
-
INVENTORY_ITEMS: crudPermissions("inventoryItems"),
|
|
39
|
-
PACKSIZES: crudPermissions("packsizes"),
|
|
40
|
-
INVENTORY_LOCATIONS: crudPermissions("inventoryLocations"),
|
|
41
|
-
INVENTORY_STORAGES: crudPermissions("inventoryStorages"),
|
|
42
35
|
VENDORS: crudPermissions("vendors"),
|
|
43
36
|
TAGS: crudPermissions("tags"),
|
|
44
|
-
RECEIVE_INVENTORIES: crudPermissions("receiveInventories"),
|
|
45
|
-
INVENTORY_ADJUSTMENTS: crudPermissions("inventoryAdjustments"),
|
|
46
37
|
COLLECTIONS: crudPermissions("collections"),
|
|
47
38
|
PRODUCT_TYPES: crudPermissions("productTypes"),
|
|
48
39
|
CATALOGS: crudPermissions("catalogs"),
|
|
@@ -87,6 +78,26 @@ exports.PERMISSIONS = {
|
|
|
87
78
|
VISIT: "reports:visit",
|
|
88
79
|
},
|
|
89
80
|
},
|
|
81
|
+
INVENTORY_SERVICE: {
|
|
82
|
+
INVENTORY_ADJUSTMENTS: crudPermissions("inventoryAdjustments"),
|
|
83
|
+
RECEIVE_INVENTORIES: crudPermissions("receiveInventories", {
|
|
84
|
+
INITIAL: "inventory.receive.initial",
|
|
85
|
+
PURCHASE: "inventory.receive.purchase",
|
|
86
|
+
ADJUSTMENT: "inventory.receive.adjustment",
|
|
87
|
+
RETURN_CUSTOMER: "inventory.receive.return_customer",
|
|
88
|
+
TRANSFER_IN: "inventory.receive.transfer_in",
|
|
89
|
+
}),
|
|
90
|
+
ISSUE_INVENTORIES: crudPermissions("issueInventories", {
|
|
91
|
+
SALE: "inventory.issue.sale",
|
|
92
|
+
ADJUSTMENT: "inventory.issue.adjustment",
|
|
93
|
+
RETURN_VENDOR: "inventory.issue.return_vendor",
|
|
94
|
+
TRANSFER_OUT: "inventory.issue.transfer_out",
|
|
95
|
+
DISCARD: "inventory.issue.discard",
|
|
96
|
+
INTERNAL_USE: "inventory.issue.internal_use",
|
|
97
|
+
}),
|
|
98
|
+
INVENTORY_ITEMS: crudPermissions("inventoryItems"),
|
|
99
|
+
INVENTORY_LEVELS: crudPermissions("inventoryLevels"),
|
|
100
|
+
},
|
|
90
101
|
SETTINGS: {
|
|
91
102
|
THEMES: "themes",
|
|
92
103
|
PAGES: "pages",
|
|
@@ -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;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,eAAe,CAAC,aAAa,CAAC;QACrC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,QAAQ,EAAE,eAAe,CAAC,UAAU,EAAE;YACpC,cAAc,EAAE,yBAAyB;SAC1C,CAAC;QACF,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,eAAe,EAAE;QACf,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,cAAc,EAAE,eAAe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AAE,OAAO;QACd,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DateRangeInput } from "./date-range.input";
|
|
2
2
|
import { OrderByInput } from "./order-by.input";
|
|
3
|
-
declare class AdjustmentChangeInput {
|
|
3
|
+
export declare class AdjustmentChangeInput {
|
|
4
4
|
deltaValue: number;
|
|
5
5
|
valueAfterChange: number;
|
|
6
6
|
changeType: "onHand" | "available";
|
|
7
7
|
reason?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class CreateInventoryAdjustmentInput {
|
|
10
|
-
organizationId: string;
|
|
11
10
|
branchId: string;
|
|
11
|
+
organizationId: string;
|
|
12
12
|
inventoryItemId: string;
|
|
13
13
|
changes: AdjustmentChangeInput[];
|
|
14
14
|
referenceDocumentType?: string;
|
|
@@ -23,7 +23,6 @@ export declare class CreateInventoryAdjustmentInput {
|
|
|
23
23
|
}
|
|
24
24
|
export declare class InventoryAdjustmentFilterInput {
|
|
25
25
|
searchKey?: string;
|
|
26
|
-
language?: string;
|
|
27
26
|
orderBy?: OrderByInput[];
|
|
28
27
|
createdAt?: DateRangeInput;
|
|
29
28
|
updatedAt?: DateRangeInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-adjustment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-adjustment.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,
|
|
1
|
+
{"version":3,"file":"inventory-adjustment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-adjustment.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,qBAAqB;IAEhC,UAAU,EAAE,MAAM,CAAC;IAGnB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,QAAQ,GAAG,WAAW,CAAC;IAGnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBACa,8BAA8B;IAIzC,QAAQ,EAAE,MAAM,CAAC;IAGjB,cAAc,EAAE,MAAM,CAAC;IAGvB,eAAe,EAAE,MAAM,CAAC;IAGxB,OAAO,EAAE,qBAAqB,EAAE,CAAC;IAKjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAKjC,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB;AAED,qBACa,8BAA8B;IAEzC,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,8BAA+B,SAAQ,mCAEnD;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -9,41 +9,45 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateInventoryAdjustmentInput = exports.InventoryAdjustmentFilterInput = exports.CreateInventoryAdjustmentInput = void 0;
|
|
12
|
+
exports.UpdateInventoryAdjustmentInput = exports.InventoryAdjustmentFilterInput = exports.CreateInventoryAdjustmentInput = exports.AdjustmentChangeInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const date_range_input_1 = require("./date-range.input");
|
|
15
15
|
const order_by_input_1 = require("./order-by.input");
|
|
16
|
-
class AdjustmentChangeInput {
|
|
17
|
-
}
|
|
16
|
+
let AdjustmentChangeInput = class AdjustmentChangeInput {
|
|
17
|
+
};
|
|
18
|
+
exports.AdjustmentChangeInput = AdjustmentChangeInput;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(),
|
|
20
|
+
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
20
21
|
__metadata("design:type", Number)
|
|
21
22
|
], AdjustmentChangeInput.prototype, "deltaValue", void 0);
|
|
22
23
|
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(),
|
|
24
|
+
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
26
|
], AdjustmentChangeInput.prototype, "valueAfterChange", void 0);
|
|
26
27
|
__decorate([
|
|
27
|
-
(0, graphql_1.Field)(),
|
|
28
|
+
(0, graphql_1.Field)(() => String),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], AdjustmentChangeInput.prototype, "changeType", void 0);
|
|
30
31
|
__decorate([
|
|
31
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
34
|
], AdjustmentChangeInput.prototype, "reason", void 0);
|
|
35
|
+
exports.AdjustmentChangeInput = AdjustmentChangeInput = __decorate([
|
|
36
|
+
(0, graphql_1.InputType)()
|
|
37
|
+
], AdjustmentChangeInput);
|
|
34
38
|
let CreateInventoryAdjustmentInput = class CreateInventoryAdjustmentInput {
|
|
35
39
|
};
|
|
36
40
|
exports.CreateInventoryAdjustmentInput = CreateInventoryAdjustmentInput;
|
|
37
41
|
__decorate([
|
|
38
|
-
(0, graphql_1.Field)(),
|
|
42
|
+
(0, graphql_1.Field)(() => String),
|
|
39
43
|
__metadata("design:type", String)
|
|
40
|
-
], CreateInventoryAdjustmentInput.prototype, "
|
|
44
|
+
], CreateInventoryAdjustmentInput.prototype, "branchId", void 0);
|
|
41
45
|
__decorate([
|
|
42
|
-
(0, graphql_1.Field)(),
|
|
46
|
+
(0, graphql_1.Field)(() => String),
|
|
43
47
|
__metadata("design:type", String)
|
|
44
|
-
], CreateInventoryAdjustmentInput.prototype, "
|
|
48
|
+
], CreateInventoryAdjustmentInput.prototype, "organizationId", void 0);
|
|
45
49
|
__decorate([
|
|
46
|
-
(0, graphql_1.Field)(),
|
|
50
|
+
(0, graphql_1.Field)(() => String),
|
|
47
51
|
__metadata("design:type", String)
|
|
48
52
|
], CreateInventoryAdjustmentInput.prototype, "inventoryItemId", void 0);
|
|
49
53
|
__decorate([
|
|
@@ -51,39 +55,39 @@ __decorate([
|
|
|
51
55
|
__metadata("design:type", Array)
|
|
52
56
|
], CreateInventoryAdjustmentInput.prototype, "changes", void 0);
|
|
53
57
|
__decorate([
|
|
54
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
58
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
55
59
|
__metadata("design:type", String)
|
|
56
60
|
], CreateInventoryAdjustmentInput.prototype, "referenceDocumentType", void 0);
|
|
57
61
|
__decorate([
|
|
58
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
62
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
59
63
|
__metadata("design:type", String)
|
|
60
64
|
], CreateInventoryAdjustmentInput.prototype, "referenceDocumentName", void 0);
|
|
61
65
|
__decorate([
|
|
62
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
66
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
63
67
|
__metadata("design:type", String)
|
|
64
68
|
], CreateInventoryAdjustmentInput.prototype, "referenceDocumentUrl", void 0);
|
|
65
69
|
__decorate([
|
|
66
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
70
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
67
71
|
__metadata("design:type", String)
|
|
68
72
|
], CreateInventoryAdjustmentInput.prototype, "referenceDocumentId", void 0);
|
|
69
73
|
__decorate([
|
|
70
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
74
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
71
75
|
__metadata("design:type", Number)
|
|
72
76
|
], CreateInventoryAdjustmentInput.prototype, "referenceDocumentLineId", void 0);
|
|
73
77
|
__decorate([
|
|
74
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
78
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
75
79
|
__metadata("design:type", Number)
|
|
76
80
|
], CreateInventoryAdjustmentInput.prototype, "actorId", void 0);
|
|
77
81
|
__decorate([
|
|
78
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
82
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
79
83
|
__metadata("design:type", String)
|
|
80
84
|
], CreateInventoryAdjustmentInput.prototype, "actorName", void 0);
|
|
81
85
|
__decorate([
|
|
82
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
86
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
83
87
|
__metadata("design:type", String)
|
|
84
88
|
], CreateInventoryAdjustmentInput.prototype, "costType", void 0);
|
|
85
89
|
__decorate([
|
|
86
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
90
|
+
(0, graphql_1.Field)(() => Date, { nullable: true }),
|
|
87
91
|
__metadata("design:type", Date)
|
|
88
92
|
], CreateInventoryAdjustmentInput.prototype, "issuedAt", void 0);
|
|
89
93
|
exports.CreateInventoryAdjustmentInput = CreateInventoryAdjustmentInput = __decorate([
|
|
@@ -96,10 +100,6 @@ __decorate([
|
|
|
96
100
|
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
97
101
|
__metadata("design:type", String)
|
|
98
102
|
], InventoryAdjustmentFilterInput.prototype, "searchKey", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], InventoryAdjustmentFilterInput.prototype, "language", void 0);
|
|
103
103
|
__decorate([
|
|
104
104
|
(0, graphql_1.Field)(() => [order_by_input_1.OrderByInput], { nullable: true }),
|
|
105
105
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-adjustment.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-adjustment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"inventory-adjustment.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-adjustment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4E;AAC5E,yDAAoD;AACpD,qDAAgD;AAGzC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAYjC,CAAA;AAZY,sDAAqB;AAEhC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;yDACA;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;+DACM;AAGzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yDACe;AAGnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACxB;gCAXL,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CAYjC;AAGM,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CA+C1C,CAAA;AA/CY,wEAA8B;AAIzC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;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C,8BAA8B,CA+C1C;AAGM,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAY1C,CAAA;AAZY,wEAA8B;AAEzC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACrB;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,6BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACvB;AAGzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;iEAAC;AAG3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,iCAAc;iEAAC;yCAXhB,8BAA8B;IAD1C,IAAA,mBAAS,GAAE;GACC,8BAA8B,CAY1C;AAGM,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,IAAA,qBAAW,EAC7D,8BAA8B,CAC/B;CAGA,CAAA;AALY,wEAA8B;AAIzC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACR;yCAJD,8BAA8B;IAD1C,IAAA,mBAAS,GAAE;GACC,8BAA8B,CAK1C"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { DateRangeInput } from "./date-range.input";
|
|
2
2
|
import { OrderByInput } from "./order-by.input";
|
|
3
3
|
export declare class CreateInventoryItemInput {
|
|
4
|
-
organizationId: string;
|
|
5
4
|
productId: string;
|
|
6
5
|
variantId: string;
|
|
7
|
-
sku
|
|
6
|
+
sku: string;
|
|
8
7
|
barcode?: string;
|
|
8
|
+
costPrice: number;
|
|
9
9
|
tracked: boolean;
|
|
10
10
|
requiresShipping: boolean;
|
|
11
|
-
costPrice: number;
|
|
12
11
|
lotManagement: boolean;
|
|
13
12
|
alertBeforeExpiredInDay?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare class InventoryItemFilterInput {
|
|
16
17
|
searchKey?: string;
|
|
17
|
-
language?: string;
|
|
18
18
|
orderBy?: OrderByInput[];
|
|
19
19
|
createdAt?: DateRangeInput;
|
|
20
20
|
updatedAt?: DateRangeInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-item.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,wBAAwB;IAEnC,
|
|
1
|
+
{"version":3,"file":"inventory-item.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,wBAAwB;IAEnC,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,OAAO,CAAC;IAGjB,gBAAgB,EAAE,OAAO,CAAC;IAG1B,aAAa,EAAE,OAAO,CAAC;IAGvB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAGjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;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"}
|
|
@@ -16,10 +16,6 @@ const order_by_input_1 = require("./order-by.input");
|
|
|
16
16
|
let CreateInventoryItemInput = class CreateInventoryItemInput {
|
|
17
17
|
};
|
|
18
18
|
exports.CreateInventoryItemInput = CreateInventoryItemInput;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, graphql_1.Field)(() => String),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], CreateInventoryItemInput.prototype, "organizationId", void 0);
|
|
23
19
|
__decorate([
|
|
24
20
|
(0, graphql_1.Field)(() => String),
|
|
25
21
|
__metadata("design:type", String)
|
|
@@ -29,33 +25,41 @@ __decorate([
|
|
|
29
25
|
__metadata("design:type", String)
|
|
30
26
|
], CreateInventoryItemInput.prototype, "variantId", void 0);
|
|
31
27
|
__decorate([
|
|
32
|
-
(0, graphql_1.Field)(
|
|
28
|
+
(0, graphql_1.Field)(() => String),
|
|
33
29
|
__metadata("design:type", String)
|
|
34
30
|
], CreateInventoryItemInput.prototype, "sku", void 0);
|
|
35
31
|
__decorate([
|
|
36
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
37
33
|
__metadata("design:type", String)
|
|
38
34
|
], CreateInventoryItemInput.prototype, "barcode", void 0);
|
|
39
35
|
__decorate([
|
|
40
|
-
(0, graphql_1.Field)(() =>
|
|
36
|
+
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CreateInventoryItemInput.prototype, "costPrice", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, graphql_1.Field)(() => Boolean, { defaultValue: false }),
|
|
41
41
|
__metadata("design:type", Boolean)
|
|
42
42
|
], CreateInventoryItemInput.prototype, "tracked", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, graphql_1.Field)(() => Boolean, { defaultValue:
|
|
44
|
+
(0, graphql_1.Field)(() => Boolean, { defaultValue: false }),
|
|
45
45
|
__metadata("design:type", Boolean)
|
|
46
46
|
], CreateInventoryItemInput.prototype, "requiresShipping", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, graphql_1.Field)(() => graphql_1.Float, { defaultValue: 0 }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], CreateInventoryItemInput.prototype, "costPrice", void 0);
|
|
51
47
|
__decorate([
|
|
52
48
|
(0, graphql_1.Field)(() => Boolean, { defaultValue: false }),
|
|
53
49
|
__metadata("design:type", Boolean)
|
|
54
50
|
], CreateInventoryItemInput.prototype, "lotManagement", void 0);
|
|
55
51
|
__decorate([
|
|
56
|
-
(0, graphql_1.Field)(() => graphql_1.
|
|
52
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
57
53
|
__metadata("design:type", Number)
|
|
58
54
|
], CreateInventoryItemInput.prototype, "alertBeforeExpiredInDay", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateInventoryItemInput.prototype, "name", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateInventoryItemInput.prototype, "description", void 0);
|
|
59
63
|
exports.CreateInventoryItemInput = CreateInventoryItemInput = __decorate([
|
|
60
64
|
(0, graphql_1.InputType)()
|
|
61
65
|
], CreateInventoryItemInput);
|
|
@@ -66,10 +70,6 @@ __decorate([
|
|
|
66
70
|
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
67
71
|
__metadata("design:type", String)
|
|
68
72
|
], InventoryItemFilterInput.prototype, "searchKey", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], InventoryItemFilterInput.prototype, "language", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, graphql_1.Field)(() => [order_by_input_1.OrderByInput], { nullable: true }),
|
|
75
75
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-item.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"inventory-item.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-item.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4E;AAC5E,yDAAoD;AACpD,qDAAgD;AAGzC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAiCpC,CAAA;AAjCY,4DAAwB;AAEnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACvB;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,CAAC;;2DACD;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;yDAC7B;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;kEACpB;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;;+DACvB;AAGvB;IADC,IA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
3
|
export declare class CreateInventoryLevelInput {
|
|
4
4
|
variantId: string;
|
|
5
|
-
organizationId: string;
|
|
6
5
|
inventoryItemId: string;
|
|
6
|
+
organizationId: string;
|
|
7
7
|
branchId: string;
|
|
8
|
-
onHand
|
|
9
|
-
|
|
10
|
-
committed: number;
|
|
11
|
-
incoming: number;
|
|
8
|
+
onHand?: number;
|
|
9
|
+
incoming?: number;
|
|
12
10
|
}
|
|
13
11
|
export declare class InventoryLevelFilterInput {
|
|
14
12
|
searchKey?: string;
|
|
15
|
-
language?: string;
|
|
16
13
|
orderBy?: OrderByInput[];
|
|
17
14
|
createdAt?: DateRangeInput;
|
|
18
15
|
updatedAt?: DateRangeInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-level.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"inventory-level.dto.d.ts","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,yBAAyB;IAGpC,SAAS,EAAE,MAAM,CAAC;IAIlB,eAAe,EAAE,MAAM,CAAC;IAIxB,cAAc,EAAE,MAAM,CAAC;IAIvB,QAAQ,EAAE,MAAM,CAAC;IAIjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBACa,yBAAyB;IAEpC,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,yBAA0B,SAAQ,8BAE9C;IAEC,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -23,29 +23,21 @@ __decorate([
|
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, graphql_1.Field)(() => String),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
], CreateInventoryLevelInput.prototype, "
|
|
26
|
+
], CreateInventoryLevelInput.prototype, "inventoryItemId", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, graphql_1.Field)(() => String),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
], CreateInventoryLevelInput.prototype, "
|
|
30
|
+
], CreateInventoryLevelInput.prototype, "organizationId", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, graphql_1.Field)(() => String),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CreateInventoryLevelInput.prototype, "branchId", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, graphql_1.Field)(() => graphql_1.
|
|
36
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
38
|
], CreateInventoryLevelInput.prototype, "onHand", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, graphql_1.Field)(() => graphql_1.
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], CreateInventoryLevelInput.prototype, "available", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], CreateInventoryLevelInput.prototype, "committed", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, graphql_1.Field)(() => graphql_1.Float),
|
|
40
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
49
41
|
__metadata("design:type", Number)
|
|
50
42
|
], CreateInventoryLevelInput.prototype, "incoming", void 0);
|
|
51
43
|
exports.CreateInventoryLevelInput = CreateInventoryLevelInput = __decorate([
|
|
@@ -58,10 +50,6 @@ __decorate([
|
|
|
58
50
|
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
59
51
|
__metadata("design:type", String)
|
|
60
52
|
], InventoryLevelFilterInput.prototype, "searchKey", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], InventoryLevelFilterInput.prototype, "language", void 0);
|
|
65
53
|
__decorate([
|
|
66
54
|
(0, graphql_1.Field)(() => [order_by_input_1.OrderByInput], { nullable: true }),
|
|
67
55
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-level.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"inventory-level.dto.js","sourceRoot":"","sources":["../../src/dto/inventory-level.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,yDAAoD;AACpD,qDAAgD;AAGzC,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAwBrC,CAAA;AAxBY,8DAAyB;AAGpC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4DACF;AAIlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kEACI;AAIxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iEACG;AAIvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2DACH;AAIjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAIhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAA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