@things-factory/product-base 8.0.37 → 9.0.0-9.0.0-beta.59.0

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 -12
  7. package/dist-server/service/product/product-types.js +2 -42
  8. package/dist-server/service/product/product-types.js.map +1 -1
  9. package/dist-server/service/product/product.d.ts +2 -9
  10. package/dist-server/service/product/product.js +1 -36
  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 -482
  25. package/server/service/product/product.ts +0 -574
  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,482 +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
- @Field({ nullable: true })
231
- sellCurrency?: string
232
-
233
- @Field({ nullable: true })
234
- costCurrency?: string
235
- }
236
-
237
- @ObjectType()
238
- export class ProductList {
239
- @Field(type => [Product], { nullable: true })
240
- items?: Product[]
241
-
242
- @Field(type => Int, { nullable: true })
243
- total?: number
244
- }
245
-
246
- @InputType()
247
- export class ProductPatch {
248
- @Field({ nullable: true })
249
- id?: string
250
-
251
- @Field({ nullable: true })
252
- sku?: string
253
-
254
- @Field({ nullable: true })
255
- name?: string
256
-
257
- @Field({ nullable: true })
258
- description?: string
259
-
260
- @Field(type => ObjectRef, { nullable: true })
261
- bizplace?: ObjectRef
262
-
263
- @Field(type => ObjectRef, { nullable: true })
264
- productRef?: ObjectRef
265
-
266
- @Field(type => ObjectRef, { nullable: true })
267
- parentProductRef?: ObjectRef
268
-
269
- @Field(type => [ObjectRef], { nullable: true })
270
- childProducts?: ObjectRef[]
271
-
272
- @Field(type => Float, { nullable: true })
273
- bundleQty?: number
274
-
275
- @Field({ nullable: true })
276
- refCode?: string
277
-
278
- @Field({ nullable: true })
279
- packingType?: string
280
-
281
- @Field(type => Float, { nullable: true })
282
- packingSize?: number
283
-
284
- @Field({ nullable: true })
285
- type?: string
286
-
287
- @Field(type => Int, { nullable: true })
288
- expirationPeriod?: number
289
-
290
- @Field({ nullable: true })
291
- movement?: string
292
-
293
- @Field({ nullable: true })
294
- weightUnit?: string
295
-
296
- @Field(type => Float, { nullable: true })
297
- nettWeight?: number
298
-
299
- @Field(type => Float, { nullable: true })
300
- density?: number
301
-
302
- @Field({ nullable: true })
303
- lengthUnit?: string
304
-
305
- @Field(type => Float, { nullable: true })
306
- costPrice?: number
307
-
308
- @Field(type => Float, { nullable: true })
309
- afterTaxCostPrice: number
310
-
311
- @Field(type => Float, { nullable: true })
312
- sellPrice?: number
313
-
314
- @Field(type => Float, { nullable: true })
315
- afterTaxSalesPrice?: number
316
-
317
- @Field(type => Float, { nullable: true })
318
- mrpPrice?: number
319
-
320
- @Field(type => Float, { nullable: true })
321
- bufferQty?: number
322
-
323
- @Field(type => Float, { nullable: true })
324
- minQty?: number
325
-
326
- @Field(type => Float, { nullable: true })
327
- maxQty?: number
328
-
329
- @Field(type => Float, { nullable: true })
330
- width?: number
331
-
332
- @Field(type => Float, { nullable: true })
333
- depth?: number
334
-
335
- @Field(type => Float, { nullable: true })
336
- height?: number
337
-
338
- @Field({ nullable: true })
339
- inventoryAccountCode?: string
340
-
341
- @Field({ nullable: true })
342
- cogsAccountCode?: string
343
-
344
- @Field(type => Boolean, { nullable: true })
345
- isTrackedAsInventory: boolean
346
-
347
- @Field(type => Boolean, { nullable: true })
348
- isRequiredCheckExpiry?: boolean
349
-
350
- @Field(type => Boolean, { nullable: true })
351
- isRequireSerialNumberScanning?: boolean
352
-
353
- @Field(type => Boolean, { nullable: true })
354
- isRequireSerialNumberScanningInbound?: boolean
355
-
356
- @Field(type => Boolean, { nullable: true })
357
- isRequireSerialNumberScanningOutbound?: boolean
358
-
359
- @Field({ nullable: true })
360
- primaryUnit?: string
361
-
362
- @Field(type => Float, { nullable: true })
363
- primaryValue?: number
364
-
365
- @Field({ nullable: true })
366
- uom?: string
367
-
368
- @Field(type => Float, { nullable: true })
369
- uomValue?: number
370
-
371
- @Field({ nullable: true })
372
- auxUnit1?: string
373
-
374
- @Field({ nullable: true })
375
- auxValue1?: string
376
-
377
- @Field({ nullable: true })
378
- auxUnit2?: string
379
-
380
- @Field({ nullable: true })
381
- auxValue2?: string
382
-
383
- @Field({ nullable: true })
384
- auxUnit3?: string
385
-
386
- @Field({ nullable: true })
387
- auxValue3?: string
388
-
389
- @Field({ nullable: true })
390
- auxUnit4?: string
391
-
392
- @Field({ nullable: true })
393
- auxValue4?: string
394
-
395
- @Field({ nullable: true })
396
- auxUnit5?: string
397
-
398
- @Field({ nullable: true })
399
- auxValue5?: string
400
-
401
- @Field({ nullable: true })
402
- brandSku?: string
403
-
404
- @Field({ nullable: true })
405
- brand?: string
406
-
407
- @Field({ nullable: true })
408
- subBrand?: string
409
-
410
- @Field({ nullable: true })
411
- gtin?: string
412
-
413
- @Field(type => Float, { nullable: true })
414
- grossWeight?: number
415
-
416
- @Field(type => Float, { nullable: true })
417
- volume?: number
418
-
419
- @Field(type => Float, { nullable: true })
420
- volumeSize?: number
421
-
422
- @Field({ nullable: true })
423
- childGtin?: string
424
-
425
- @Field(type => Float, { nullable: true })
426
- childQty?: number
427
-
428
- @Field(type => ObjectRef, { nullable: true })
429
- routing?: ObjectRef
430
-
431
- @Field({ nullable: true })
432
- warehouseId?: string
433
-
434
- @Field(type => GraphQLUpload, { nullable: true })
435
- thumbnail?: FileUpload
436
-
437
- @Field({ nullable: true })
438
- pickingStrategy?: string
439
-
440
- // 입고 단위
441
- @Field({ nullable: true })
442
- inboundUnit?: string
443
-
444
- // 변환 kg
445
- @Field({ nullable: true })
446
- convertWeight?: number
447
-
448
- // 박스입수
449
- @Field({ nullable: true })
450
- boxInQty?: number
451
-
452
- // 제품군
453
- @Field({ nullable: true })
454
- category?: string
455
-
456
- // 경매입고
457
- @Field(type => Boolean, { nullable: true })
458
- isAuction?: boolean
459
-
460
- // 출고유형
461
- @Field({ nullable: true })
462
- releaseType?: string
463
-
464
- // 바코드
465
- @Field({ nullable: true })
466
- barcode?: string
467
-
468
- @Field(type => ObjectRef, { nullable: true })
469
- deliverTo?: ObjectRef
470
-
471
- @Field(type => ObjectRef, { nullable: true })
472
- manufacturedBy?: ObjectRef
473
-
474
- @Field({ nullable: true })
475
- sellCurrency?: string
476
-
477
- @Field({ nullable: true })
478
- costCurrency?: string
479
-
480
- @Field({ nullable: true })
481
- cuFlag?: string
482
- }