@things-factory/product-base 8.0.0-beta.1 → 8.0.0-beta.4

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.
Files changed (51) hide show
  1. package/package.json +5 -5
  2. package/server/constants/index.ts +0 -1
  3. package/server/constants/product.ts +0 -24
  4. package/server/controllers/index.ts +0 -0
  5. package/server/index.ts +0 -2
  6. package/server/middlewares/index.ts +0 -0
  7. package/server/migrations/index.ts +0 -9
  8. package/server/service/index.ts +0 -61
  9. package/server/service/product/index.ts +0 -6
  10. package/server/service/product/product-mutation.ts +0 -407
  11. package/server/service/product/product-query.ts +0 -336
  12. package/server/service/product/product-types.ts +0 -450
  13. package/server/service/product/product.ts +0 -543
  14. package/server/service/product/validate-product.ts +0 -42
  15. package/server/service/product-bundle/index.ts +0 -6
  16. package/server/service/product-bundle/product-bundle-mutation.ts +0 -140
  17. package/server/service/product-bundle/product-bundle-query.ts +0 -104
  18. package/server/service/product-bundle/product-bundle-types.ts +0 -51
  19. package/server/service/product-bundle/product-bundle.ts +0 -102
  20. package/server/service/product-bundle-setting/index.ts +0 -6
  21. package/server/service/product-bundle-setting/product-bundle-setting-mutation.ts +0 -168
  22. package/server/service/product-bundle-setting/product-bundle-setting-query.ts +0 -139
  23. package/server/service/product-bundle-setting/product-bundle-setting-types.ts +0 -41
  24. package/server/service/product-bundle-setting/product-bundle-setting.ts +0 -45
  25. package/server/service/product-combination/index.ts +0 -6
  26. package/server/service/product-combination/product-combination-mutation.ts +0 -148
  27. package/server/service/product-combination/product-combination-query.ts +0 -48
  28. package/server/service/product-combination/product-combination-type.ts +0 -50
  29. package/server/service/product-combination/product-combination.ts +0 -116
  30. package/server/service/product-combination-setting/index.ts +0 -6
  31. package/server/service/product-combination-setting/product-combination-setting-mutation.ts +0 -248
  32. package/server/service/product-combination-setting/product-combination-setting-query.ts +0 -176
  33. package/server/service/product-combination-setting/product-combination-setting-type.ts +0 -44
  34. package/server/service/product-combination-setting/product-combination-setting.ts +0 -77
  35. package/server/service/product-detail/index.ts +0 -6
  36. package/server/service/product-detail/product-detail-mutation.ts +0 -238
  37. package/server/service/product-detail/product-detail-query.ts +0 -213
  38. package/server/service/product-detail/product-detail-types.ts +0 -280
  39. package/server/service/product-detail/product-detail.ts +0 -388
  40. package/server/service/product-detail-bizplace-setting/index.ts +0 -6
  41. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.ts +0 -118
  42. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.ts +0 -90
  43. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.ts +0 -62
  44. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.ts +0 -104
  45. package/server/service/product-set/index.ts +0 -6
  46. package/server/service/product-set/product-set-mutation.ts +0 -149
  47. package/server/service/product-set/product-set-query.ts +0 -114
  48. package/server/service/product-set/product-set-types.ts +0 -45
  49. package/server/service/product-set/product-set.ts +0 -95
  50. package/server/utils/index.ts +0 -1
  51. package/server/utils/product-util.ts +0 -11
@@ -1,450 +0,0 @@
1
- import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'
2
- import GraphQLUpload from 'graphql-upload/GraphQLUpload.js'
3
- import { Field, Float, ID, InputType, Int, ObjectType } from 'type-graphql'
4
-
5
- import { BizplacePatch } from '@things-factory/biz-base'
6
- import { ObjectRef } from '@things-factory/shell'
7
-
8
- import { ProductDetailPatch } from '../product-detail/product-detail-types'
9
- import { Product } from './product'
10
-
11
- @InputType()
12
- export class NewProduct {
13
- @Field(type => ID, { nullable: true })
14
- id?: string
15
-
16
- @Field({ nullable: true })
17
- sku?: string
18
-
19
- @Field({ nullable: true })
20
- name?: string
21
-
22
- @Field({ nullable: true })
23
- bizplace?: BizplacePatch
24
-
25
- @Field({ nullable: true })
26
- description?: string
27
-
28
- @Field(type => ObjectRef, { nullable: true })
29
- productRef?: ObjectRef
30
-
31
- @Field({ nullable: true })
32
- parentProductRef?: ObjectRef
33
-
34
- @Field(type => [ObjectRef], { nullable: true })
35
- childProducts?: ObjectRef[]
36
-
37
- @Field(type => [ProductDetailPatch], { nullable: true })
38
- productDetails?: ProductDetailPatch[]
39
-
40
- @Field(type => Float, { nullable: true })
41
- bundleQty?: number
42
-
43
- @Field({ nullable: true })
44
- type?: string
45
-
46
- @Field(type => Int, { nullable: true })
47
- expirationPeriod?: number
48
-
49
- @Field({ nullable: true })
50
- movement?: string
51
-
52
- @Field({ nullable: true })
53
- weightUnit?: string
54
-
55
- @Field(type => Float, { nullable: true })
56
- nettWeight?: number
57
-
58
- @Field(type => Float, { nullable: true })
59
- density?: number
60
-
61
- @Field({ nullable: true })
62
- packingType?: string
63
-
64
- @Field({ nullable: true })
65
- lengthUnit?: string
66
-
67
- @Field(type => Float, { nullable: true })
68
- costPrice?: number
69
-
70
- @Field(type => Float, { nullable: true })
71
- afterTaxCostPrice?: number
72
-
73
- @Field(type => Float, { nullable: true })
74
- sellPrice?: number
75
-
76
- @Field(type => Float, { nullable: true })
77
- afterTaxSalesPrice?: number
78
-
79
- @Field(type => Float, { nullable: true })
80
- mrpPrice?: number
81
-
82
- @Field(type => Float, { nullable: true })
83
- bufferQty?: number
84
-
85
- @Field(type => Float, { nullable: true })
86
- minQty?: number
87
-
88
- @Field(type => Float, { nullable: true })
89
- maxQty?: number
90
-
91
- @Field(type => Float, { nullable: true })
92
- width?: number
93
-
94
- @Field(type => Float, { nullable: true })
95
- depth?: number
96
-
97
- @Field(type => Float, { nullable: true })
98
- height?: number
99
-
100
- @Field({ nullable: true })
101
- primaryUnit?: string
102
-
103
- @Field(type => Float, { nullable: true })
104
- primaryValue?: number
105
-
106
- @Field({ nullable: true })
107
- uom?: string
108
-
109
- @Field(type => Float, { nullable: true })
110
- uomValue?: number
111
-
112
- @Field({ nullable: true })
113
- inventoryAccountCode?: string
114
-
115
- @Field({ nullable: true })
116
- cogsAccountCode?: string
117
-
118
- @Field({ nullable: true })
119
- auxUnit1?: string
120
-
121
- @Field({ nullable: true })
122
- auxValue1?: string
123
-
124
- @Field({ nullable: true })
125
- auxUnit2?: string
126
-
127
- @Field({ nullable: true })
128
- auxValue2?: string
129
-
130
- @Field({ nullable: true })
131
- auxUnit3?: string
132
-
133
- @Field({ nullable: true })
134
- auxValue3?: string
135
-
136
- @Field({ nullable: true })
137
- auxUnit4?: string
138
-
139
- @Field({ nullable: true })
140
- auxValue4?: string
141
-
142
- @Field({ nullable: true })
143
- auxUnit5?: string
144
-
145
- @Field({ nullable: true })
146
- auxValue5?: string
147
-
148
- @Field({ nullable: true })
149
- groupType?: string
150
-
151
- @Field({ nullable: true })
152
- brandSku?: string
153
-
154
- @Field({ nullable: true })
155
- brand?: string
156
-
157
- @Field({ nullable: true })
158
- subBrand?: string
159
-
160
- @Field({ nullable: true })
161
- isRequiredCheckExpiry?: boolean
162
-
163
- @Field({ nullable: true })
164
- isRequireSerialNumberScanning?: boolean
165
-
166
- @Field({ nullable: true })
167
- isRequireSerialNumberScanningInbound?: boolean
168
-
169
- @Field({ nullable: true })
170
- isRequireSerialNumberScanningOutbound?: boolean
171
-
172
- @Field({ nullable: true })
173
- gtin?: string
174
-
175
- @Field(type => Float, { nullable: true })
176
- grossWeight?: number
177
-
178
- @Field(type => Float, { nullable: true })
179
- volume?: number
180
-
181
- @Field(type => Float, { nullable: true })
182
- volumeSize?: number
183
-
184
- @Field(type => ObjectRef, { nullable: true })
185
- routing?: ObjectRef
186
-
187
- @Field({ nullable: true })
188
- warehouseName?: string
189
-
190
- @Field(type => GraphQLUpload, { nullable: true })
191
- thumbnail?: FileUpload
192
-
193
- @Field({ nullable: true })
194
- pickingStrategy?: string
195
-
196
- // 입고 단위
197
- @Field({ nullable: true })
198
- inboundUnit?: string
199
-
200
- // 변환 kg
201
- @Field({ nullable: true })
202
- convertWeight?: number
203
-
204
- // 박스입수
205
- @Field({ nullable: true })
206
- boxInQty?: number
207
-
208
- // 제품군
209
- @Field({ nullable: true })
210
- category?: string
211
-
212
- // 경매입고
213
- @Field(type => Boolean, { nullable: true })
214
- isAuction?: boolean
215
-
216
- // 출고유형
217
- @Field({ nullable: true })
218
- releaseType?: string
219
- }
220
-
221
- @ObjectType()
222
- export class ProductList {
223
- @Field(type => [Product], { nullable: true })
224
- items?: Product[]
225
-
226
- @Field(type => Int, { nullable: true })
227
- total?: number
228
- }
229
-
230
- @InputType()
231
- export class ProductPatch {
232
- @Field({ nullable: true })
233
- id?: string
234
-
235
- @Field({ nullable: true })
236
- sku?: string
237
-
238
- @Field({ nullable: true })
239
- name?: string
240
-
241
- @Field({ nullable: true })
242
- description?: string
243
-
244
- @Field(type => ObjectRef, { nullable: true })
245
- bizplace?: ObjectRef
246
-
247
- @Field(type => ObjectRef, { nullable: true })
248
- productRef?: ObjectRef
249
-
250
- @Field(type => ObjectRef, { nullable: true })
251
- parentProductRef?: ObjectRef
252
-
253
- @Field(type => [ObjectRef], { nullable: true })
254
- childProducts?: ObjectRef[]
255
-
256
- @Field(type => Float, { nullable: true })
257
- bundleQty?: number
258
-
259
- @Field({ nullable: true })
260
- refCode?: string
261
-
262
- @Field({ nullable: true })
263
- packingType?: string
264
-
265
- @Field(type => Float, { nullable: true })
266
- packingSize?: number
267
-
268
- @Field({ nullable: true })
269
- type?: string
270
-
271
- @Field(type => Int, { nullable: true })
272
- expirationPeriod?: number
273
-
274
- @Field({ nullable: true })
275
- movement?: string
276
-
277
- @Field({ nullable: true })
278
- weightUnit?: string
279
-
280
- @Field(type => Float, { nullable: true })
281
- nettWeight?: number
282
-
283
- @Field(type => Float, { nullable: true })
284
- density?: number
285
-
286
- @Field({ nullable: true })
287
- lengthUnit?: string
288
-
289
- @Field(type => Float, { nullable: true })
290
- costPrice?: number
291
-
292
- @Field(type => Float, { nullable: true })
293
- afterTaxCostPrice: number
294
-
295
- @Field(type => Float, { nullable: true })
296
- sellPrice?: number
297
-
298
- @Field(type => Float, { nullable: true })
299
- afterTaxSalesPrice?: number
300
-
301
- @Field(type => Float, { nullable: true })
302
- mrpPrice?: number
303
-
304
- @Field(type => Float, { nullable: true })
305
- bufferQty?: number
306
-
307
- @Field(type => Float, { nullable: true })
308
- minQty?: number
309
-
310
- @Field(type => Float, { nullable: true })
311
- maxQty?: number
312
-
313
- @Field(type => Float, { nullable: true })
314
- width?: number
315
-
316
- @Field(type => Float, { nullable: true })
317
- depth?: number
318
-
319
- @Field(type => Float, { nullable: true })
320
- height?: number
321
-
322
- @Field({ nullable: true })
323
- inventoryAccountCode?: string
324
-
325
- @Field({ nullable: true })
326
- cogsAccountCode?: string
327
-
328
- @Field(type => Boolean, { nullable: true })
329
- isTrackedAsInventory: boolean
330
-
331
- @Field(type => Boolean, { nullable: true })
332
- isRequiredCheckExpiry?: boolean
333
-
334
- @Field(type => Boolean, { nullable: true })
335
- isRequireSerialNumberScanning?: boolean
336
-
337
- @Field(type => Boolean, { nullable: true })
338
- isRequireSerialNumberScanningInbound?: boolean
339
-
340
- @Field(type => Boolean, { nullable: true })
341
- isRequireSerialNumberScanningOutbound?: boolean
342
-
343
- @Field({ nullable: true })
344
- primaryUnit?: string
345
-
346
- @Field(type => Float, { nullable: true })
347
- primaryValue?: number
348
-
349
- @Field({ nullable: true })
350
- uom?: string
351
-
352
- @Field(type => Float, { nullable: true })
353
- uomValue?: number
354
-
355
- @Field({ nullable: true })
356
- auxUnit1?: string
357
-
358
- @Field({ nullable: true })
359
- auxValue1?: string
360
-
361
- @Field({ nullable: true })
362
- auxUnit2?: string
363
-
364
- @Field({ nullable: true })
365
- auxValue2?: string
366
-
367
- @Field({ nullable: true })
368
- auxUnit3?: string
369
-
370
- @Field({ nullable: true })
371
- auxValue3?: string
372
-
373
- @Field({ nullable: true })
374
- auxUnit4?: string
375
-
376
- @Field({ nullable: true })
377
- auxValue4?: string
378
-
379
- @Field({ nullable: true })
380
- auxUnit5?: string
381
-
382
- @Field({ nullable: true })
383
- auxValue5?: string
384
-
385
- @Field({ nullable: true })
386
- brandSku?: string
387
-
388
- @Field({ nullable: true })
389
- brand?: string
390
-
391
- @Field({ nullable: true })
392
- subBrand?: string
393
-
394
- @Field({ nullable: true })
395
- gtin?: string
396
-
397
- @Field(type => Float, { nullable: true })
398
- grossWeight?: number
399
-
400
- @Field(type => Float, { nullable: true })
401
- volume?: number
402
-
403
- @Field(type => Float, { nullable: true })
404
- volumeSize?: number
405
-
406
- @Field({ nullable: true })
407
- childGtin?: string
408
-
409
- @Field(type => Float, { nullable: true })
410
- childQty?: number
411
-
412
- @Field(type => ObjectRef, { nullable: true })
413
- routing?: ObjectRef
414
-
415
- @Field({ nullable: true })
416
- warehouseName?: string
417
-
418
- @Field(type => GraphQLUpload, { nullable: true })
419
- thumbnail?: FileUpload
420
-
421
- @Field({ nullable: true })
422
- pickingStrategy?: string
423
-
424
- // 입고 단위
425
- @Field({ nullable: true })
426
- inboundUnit?: string
427
-
428
- // 변환 kg
429
- @Field({ nullable: true })
430
- convertWeight?: number
431
-
432
- // 박스입수
433
- @Field({ nullable: true })
434
- boxInQty?: number
435
-
436
- // 제품군
437
- @Field({ nullable: true })
438
- category?: string
439
-
440
- // 경매입고
441
- @Field(type => Boolean, { nullable: true })
442
- isAuction?: boolean
443
-
444
- // 출고유형
445
- @Field({ nullable: true })
446
- releaseType?: string
447
-
448
- @Field({ nullable: true })
449
- cuFlag?: string
450
- }