@things-factory/product-base 8.0.6 → 9.0.0-beta.12

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 (63) hide show
  1. package/dist-server/service/product/product-mutation.js +1 -1
  2. package/dist-server/service/product/product-mutation.js.map +1 -1
  3. package/dist-server/service/product/product-query.d.ts +1 -1
  4. package/dist-server/service/product/product-query.js +5 -7
  5. package/dist-server/service/product/product-query.js.map +1 -1
  6. package/dist-server/service/product/product-types.d.ts +2 -8
  7. package/dist-server/service/product/product-types.js +2 -26
  8. package/dist-server/service/product/product-types.js.map +1 -1
  9. package/dist-server/service/product/product.d.ts +2 -7
  10. package/dist-server/service/product/product.js +1 -24
  11. package/dist-server/service/product/product.js.map +1 -1
  12. package/dist-server/tsconfig.tsbuildinfo +1 -1
  13. package/package.json +5 -5
  14. package/server/constants/index.ts +0 -1
  15. package/server/constants/product.ts +0 -24
  16. package/server/controllers/index.ts +0 -0
  17. package/server/index.ts +0 -2
  18. package/server/middlewares/index.ts +0 -0
  19. package/server/migrations/index.ts +0 -9
  20. package/server/service/index.ts +0 -61
  21. package/server/service/product/index.ts +0 -6
  22. package/server/service/product/product-mutation.ts +0 -407
  23. package/server/service/product/product-query.ts +0 -338
  24. package/server/service/product/product-types.ts +0 -470
  25. package/server/service/product/product.ts +0 -562
  26. package/server/service/product/validate-product.ts +0 -42
  27. package/server/service/product-bundle/index.ts +0 -6
  28. package/server/service/product-bundle/product-bundle-mutation.ts +0 -140
  29. package/server/service/product-bundle/product-bundle-query.ts +0 -104
  30. package/server/service/product-bundle/product-bundle-types.ts +0 -51
  31. package/server/service/product-bundle/product-bundle.ts +0 -102
  32. package/server/service/product-bundle-setting/index.ts +0 -6
  33. package/server/service/product-bundle-setting/product-bundle-setting-mutation.ts +0 -168
  34. package/server/service/product-bundle-setting/product-bundle-setting-query.ts +0 -139
  35. package/server/service/product-bundle-setting/product-bundle-setting-types.ts +0 -41
  36. package/server/service/product-bundle-setting/product-bundle-setting.ts +0 -45
  37. package/server/service/product-combination/index.ts +0 -6
  38. package/server/service/product-combination/product-combination-mutation.ts +0 -148
  39. package/server/service/product-combination/product-combination-query.ts +0 -48
  40. package/server/service/product-combination/product-combination-type.ts +0 -50
  41. package/server/service/product-combination/product-combination.ts +0 -116
  42. package/server/service/product-combination-setting/index.ts +0 -6
  43. package/server/service/product-combination-setting/product-combination-setting-mutation.ts +0 -248
  44. package/server/service/product-combination-setting/product-combination-setting-query.ts +0 -176
  45. package/server/service/product-combination-setting/product-combination-setting-type.ts +0 -44
  46. package/server/service/product-combination-setting/product-combination-setting.ts +0 -77
  47. package/server/service/product-detail/index.ts +0 -6
  48. package/server/service/product-detail/product-detail-mutation.ts +0 -238
  49. package/server/service/product-detail/product-detail-query.ts +0 -213
  50. package/server/service/product-detail/product-detail-types.ts +0 -280
  51. package/server/service/product-detail/product-detail.ts +0 -388
  52. package/server/service/product-detail-bizplace-setting/index.ts +0 -6
  53. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-mutation.ts +0 -118
  54. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-query.ts +0 -90
  55. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.ts +0 -62
  56. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.ts +0 -104
  57. package/server/service/product-set/index.ts +0 -6
  58. package/server/service/product-set/product-set-mutation.ts +0 -149
  59. package/server/service/product-set/product-set-query.ts +0 -114
  60. package/server/service/product-set/product-set-types.ts +0 -45
  61. package/server/service/product-set/product-set.ts +0 -95
  62. package/server/utils/index.ts +0 -1
  63. package/server/utils/product-util.ts +0 -11
@@ -1,470 +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
- warehouseId?: 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
- @Field({ nullable: true })
222
- barcode?: string
223
-
224
- @Field(type => ObjectRef, { nullable: true })
225
- deliverTo?: ObjectRef
226
-
227
- @Field(type => ObjectRef, { nullable: true })
228
- manufacturedBy?: ObjectRef
229
- }
230
-
231
- @ObjectType()
232
- export class ProductList {
233
- @Field(type => [Product], { nullable: true })
234
- items?: Product[]
235
-
236
- @Field(type => Int, { nullable: true })
237
- total?: number
238
- }
239
-
240
- @InputType()
241
- export class ProductPatch {
242
- @Field({ nullable: true })
243
- id?: string
244
-
245
- @Field({ nullable: true })
246
- sku?: string
247
-
248
- @Field({ nullable: true })
249
- name?: string
250
-
251
- @Field({ nullable: true })
252
- description?: string
253
-
254
- @Field(type => ObjectRef, { nullable: true })
255
- bizplace?: ObjectRef
256
-
257
- @Field(type => ObjectRef, { nullable: true })
258
- productRef?: ObjectRef
259
-
260
- @Field(type => ObjectRef, { nullable: true })
261
- parentProductRef?: ObjectRef
262
-
263
- @Field(type => [ObjectRef], { nullable: true })
264
- childProducts?: ObjectRef[]
265
-
266
- @Field(type => Float, { nullable: true })
267
- bundleQty?: number
268
-
269
- @Field({ nullable: true })
270
- refCode?: string
271
-
272
- @Field({ nullable: true })
273
- packingType?: string
274
-
275
- @Field(type => Float, { nullable: true })
276
- packingSize?: number
277
-
278
- @Field({ nullable: true })
279
- type?: string
280
-
281
- @Field(type => Int, { nullable: true })
282
- expirationPeriod?: number
283
-
284
- @Field({ nullable: true })
285
- movement?: string
286
-
287
- @Field({ nullable: true })
288
- weightUnit?: string
289
-
290
- @Field(type => Float, { nullable: true })
291
- nettWeight?: number
292
-
293
- @Field(type => Float, { nullable: true })
294
- density?: number
295
-
296
- @Field({ nullable: true })
297
- lengthUnit?: string
298
-
299
- @Field(type => Float, { nullable: true })
300
- costPrice?: number
301
-
302
- @Field(type => Float, { nullable: true })
303
- afterTaxCostPrice: number
304
-
305
- @Field(type => Float, { nullable: true })
306
- sellPrice?: number
307
-
308
- @Field(type => Float, { nullable: true })
309
- afterTaxSalesPrice?: number
310
-
311
- @Field(type => Float, { nullable: true })
312
- mrpPrice?: number
313
-
314
- @Field(type => Float, { nullable: true })
315
- bufferQty?: number
316
-
317
- @Field(type => Float, { nullable: true })
318
- minQty?: number
319
-
320
- @Field(type => Float, { nullable: true })
321
- maxQty?: number
322
-
323
- @Field(type => Float, { nullable: true })
324
- width?: number
325
-
326
- @Field(type => Float, { nullable: true })
327
- depth?: number
328
-
329
- @Field(type => Float, { nullable: true })
330
- height?: number
331
-
332
- @Field({ nullable: true })
333
- inventoryAccountCode?: string
334
-
335
- @Field({ nullable: true })
336
- cogsAccountCode?: string
337
-
338
- @Field(type => Boolean, { nullable: true })
339
- isTrackedAsInventory: boolean
340
-
341
- @Field(type => Boolean, { nullable: true })
342
- isRequiredCheckExpiry?: boolean
343
-
344
- @Field(type => Boolean, { nullable: true })
345
- isRequireSerialNumberScanning?: boolean
346
-
347
- @Field(type => Boolean, { nullable: true })
348
- isRequireSerialNumberScanningInbound?: boolean
349
-
350
- @Field(type => Boolean, { nullable: true })
351
- isRequireSerialNumberScanningOutbound?: boolean
352
-
353
- @Field({ nullable: true })
354
- primaryUnit?: string
355
-
356
- @Field(type => Float, { nullable: true })
357
- primaryValue?: number
358
-
359
- @Field({ nullable: true })
360
- uom?: string
361
-
362
- @Field(type => Float, { nullable: true })
363
- uomValue?: number
364
-
365
- @Field({ nullable: true })
366
- auxUnit1?: string
367
-
368
- @Field({ nullable: true })
369
- auxValue1?: string
370
-
371
- @Field({ nullable: true })
372
- auxUnit2?: string
373
-
374
- @Field({ nullable: true })
375
- auxValue2?: string
376
-
377
- @Field({ nullable: true })
378
- auxUnit3?: string
379
-
380
- @Field({ nullable: true })
381
- auxValue3?: string
382
-
383
- @Field({ nullable: true })
384
- auxUnit4?: string
385
-
386
- @Field({ nullable: true })
387
- auxValue4?: string
388
-
389
- @Field({ nullable: true })
390
- auxUnit5?: string
391
-
392
- @Field({ nullable: true })
393
- auxValue5?: string
394
-
395
- @Field({ nullable: true })
396
- brandSku?: string
397
-
398
- @Field({ nullable: true })
399
- brand?: string
400
-
401
- @Field({ nullable: true })
402
- subBrand?: string
403
-
404
- @Field({ nullable: true })
405
- gtin?: string
406
-
407
- @Field(type => Float, { nullable: true })
408
- grossWeight?: number
409
-
410
- @Field(type => Float, { nullable: true })
411
- volume?: number
412
-
413
- @Field(type => Float, { nullable: true })
414
- volumeSize?: number
415
-
416
- @Field({ nullable: true })
417
- childGtin?: string
418
-
419
- @Field(type => Float, { nullable: true })
420
- childQty?: number
421
-
422
- @Field(type => ObjectRef, { nullable: true })
423
- routing?: ObjectRef
424
-
425
- @Field({ nullable: true })
426
- warehouseId?: string
427
-
428
- @Field(type => GraphQLUpload, { nullable: true })
429
- thumbnail?: FileUpload
430
-
431
- @Field({ nullable: true })
432
- pickingStrategy?: string
433
-
434
- // 입고 단위
435
- @Field({ nullable: true })
436
- inboundUnit?: string
437
-
438
- // 변환 kg
439
- @Field({ nullable: true })
440
- convertWeight?: number
441
-
442
- // 박스입수
443
- @Field({ nullable: true })
444
- boxInQty?: number
445
-
446
- // 제품군
447
- @Field({ nullable: true })
448
- category?: string
449
-
450
- // 경매입고
451
- @Field(type => Boolean, { nullable: true })
452
- isAuction?: boolean
453
-
454
- // 출고유형
455
- @Field({ nullable: true })
456
- releaseType?: string
457
-
458
- // 바코드
459
- @Field({ nullable: true })
460
- barcode?: string
461
-
462
- @Field(type => ObjectRef, { nullable: true })
463
- deliverTo?: ObjectRef
464
-
465
- @Field(type => ObjectRef, { nullable: true })
466
- manufacturedBy?: ObjectRef
467
-
468
- @Field({ nullable: true })
469
- cuFlag?: string
470
- }