tango-app-api-store-builder 1.0.0-beta-113 → 1.0.0-beta-114

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/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { storeBuilderRouter } from './src/routes/storeBuilder.routes.js';
2
2
  import { storeBuilderTaskRouter } from './src/routes/task.routes.js';
3
3
  import { scriptRouter } from './src/routes/script.routes.js';
4
+ import { planoLibraryRouter } from './src/routes/planoLibrary.routes.js';
5
+ import { fixtureTemplateRouter } from './src/routes/fixtureTemplate.routes.js';
6
+ import { managePlanoRouter } from './src/routes/managePlano.routes.js';
4
7
 
5
8
 
6
- export { storeBuilderRouter, storeBuilderTaskRouter, scriptRouter };
9
+ export { storeBuilderRouter, storeBuilderTaskRouter, scriptRouter, planoLibraryRouter, fixtureTemplateRouter, managePlanoRouter };
@@ -0,0 +1,465 @@
1
+ [
2
+ {
3
+ "answers": [
4
+ {
5
+ "userId": "6819df859741a6b2e0d7090e",
6
+ "userName": "LKST98",
7
+ "role": "admin",
8
+ "qno": 1,
9
+ "question": "Are the below layout details correct ?",
10
+ "timeStamp": "2024-05-23T06:26:04.487Z",
11
+ "answer": true,
12
+ "comment": "everythig correct",
13
+ "video": "682ef0e951d4dcf69692e0ba/3/1747907795933/c5880562-5eef-42cb-b4f4-36a9f1beac0c7086775584813486347.mp4",
14
+ "image": ""
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ "fixtureId": "67f61933a1199892ebac5a49",
20
+ "date_string": "2025-06-05",
21
+ "planoId": "682b18eb53b873e2bef85f48",
22
+ "taskId": "68303dae51d4dcf69692e16f",
23
+ "type": "layout",
24
+ "floorId": "6819df849741a6b2e0d70904",
25
+ "status": "incomplete",
26
+ "answers": [
27
+ {
28
+ "userId": "6819df859741a6b2e0d7090e",
29
+ "userName": "LKST98",
30
+ "role": "admin",
31
+ "issues": [
32
+ {
33
+ "userId": "6819df859741a6b2e0d7090e",
34
+ "userName": "LKST98",
35
+ "role": "admin",
36
+ "qno": 1,
37
+ "question": "Fixture in-store, not in planogram",
38
+ "Details": [
39
+ {
40
+ "comments": [
41
+ {
42
+ "userId": "681d967e72e969324794af2a",
43
+ "userName": "hastinapuram.chennai",
44
+ "role": "user",
45
+ "comment": "the above one fixture is missing from the store"
46
+ }
47
+ ],
48
+ "fixtureName": "Template04-Second Floor Fixture",
49
+ "fixturetype": "Hybrid_4ft",
50
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
51
+ "fixtureId": "6837eace2692f29eff7f8f69",
52
+ "templateId": "6837eed55caa00ec973be4c8",
53
+ "associatedElementFixtureNumber": 1,
54
+ "associatedElementNumber": 1,
55
+ "associatedElementType": "wall",
56
+ "shelfConfig": [
57
+ {
58
+ "shelfNumber": 1,
59
+ "shelfType": "",
60
+ "productPerShelf": 6,
61
+ "trayRows": 5,
62
+ "zone": "Top",
63
+ "productBrandName": [],
64
+ "productSubCategory": []
65
+ },
66
+ {
67
+ "shelfNumber": 2,
68
+ "shelfType": "",
69
+ "productPerShelf": 6,
70
+ "trayRows": 5,
71
+ "zone": "waewqe",
72
+ "productBrandName": [],
73
+ "productSubCategory": []
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "comments": [
79
+ {
80
+ "userId": "681d967e72e969324794af2a",
81
+ "userName": "hastinapuram.chennai",
82
+ "role": "user",
83
+ "comment": "the above one fixture is missing from the store"
84
+ }
85
+ ],
86
+ "fixtureName": "Template04-Second Floor Fixture",
87
+ "fixturetype": "Hybrid_4ft",
88
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
89
+ "fixtureId": "6837eace2692f29eff7f8f69",
90
+ "templateId": "6837eed55caa00ec973be4c8",
91
+ "associatedElementFixtureNumber": 1,
92
+ "associatedElementNumber": 1,
93
+ "associatedElementType": "wall",
94
+ "shelfConfig": [
95
+ {
96
+ "shelfNumber": 1,
97
+ "shelfType": "",
98
+ "productPerShelf": 6,
99
+ "trayRows": 5,
100
+ "zone": "Top",
101
+ "productBrandName": [],
102
+ "productSubCategory": []
103
+ },
104
+ {
105
+ "shelfNumber": 2,
106
+ "shelfType": "",
107
+ "productPerShelf": 6,
108
+ "trayRows": 5,
109
+ "zone": "waewqe",
110
+ "productBrandName": [],
111
+ "productSubCategory": []
112
+ }
113
+ ]
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "userId": "6819df859741a6b2e0d7090e",
119
+ "userName": "LKST98",
120
+ "role": "admin",
121
+ "qno": 2,
122
+ "question": "Fixture in planogram, not in store",
123
+ "Details": [
124
+ {
125
+ "comments": [
126
+ {
127
+ "userId": "681d967e72e969324794af2a",
128
+ "userName": "hastinapuram.chennai",
129
+ "role": "user",
130
+ "comment": "the above one fixture is missing from the plano"
131
+ }
132
+ ],
133
+ "image": "vmType/682eefe457db7d4366881c13/1747906611139/Lenskart1.jpg",
134
+ "fixtureName": "Template04-Second Floor Fixture",
135
+ "fixturetype": "Hybrid_4ft",
136
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
137
+ "fixtureId": "6837eace2692f29eff7f8f69",
138
+ "templateId": "6837eed55caa00ec973be4c8",
139
+ "associatedElementFixtureNumber": 1,
140
+ "associatedElementNumber": 1,
141
+ "associatedElementType": "wall"
142
+ },
143
+ {
144
+ "comments": [],
145
+ "image": "vmType/682eefe457db7d4366881c13/1747906611139/Lenskart1.jpg",
146
+ "fixtureName": "Template05-Second Floor Fixture",
147
+ "fixturetype": "Hybrid_4ft",
148
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
149
+ "fixtureId": "6837eace2692f29eff7f8f69",
150
+ "templateId": "6837eed55caa00ec973be4c8",
151
+ "associatedElementFixtureNumber": 1,
152
+ "associatedElementNumber": 1,
153
+ "associatedElementType": "wall"
154
+ }
155
+ ],
156
+ "video": "",
157
+ "image": ""
158
+ },
159
+ {
160
+ "userId": "6819df859741a6b2e0d7090e",
161
+ "userName": "LKST98",
162
+ "role": "admin",
163
+ "qno": 3,
164
+ "question": "Fixture position is in-correct",
165
+ "Details": [
166
+ {
167
+ "comments": [
168
+ {
169
+ "userId": "681d967e72e969324794af2a",
170
+ "userName": "hastinapuram.chennai",
171
+ "role": "user",
172
+ "comment": "the above one fixture postion is wrong in the store"
173
+ }
174
+ ],
175
+ "image": "vmType/682eefe457db7d4366881c13/1747906611139/Lenskart1.jpg",
176
+ "fixtureName": "Template04-Second Floor Fixture",
177
+ "fixturetype": "Hybrid_4ft",
178
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
179
+ "fixtureId": "6837eace2692f29eff7f8f69",
180
+ "templateId": "6837eed55caa00ec973be4c8",
181
+ "associatedElementFixtureNumber": 1,
182
+ "associatedElementNumber": 1,
183
+ "associatedElementType": "wall",
184
+ "newassociatedElementFixtureNumber": 2,
185
+ "newassociatedElementNumber": 2,
186
+ "newassociatedElementType": "wall"
187
+ },
188
+ {
189
+ "image": "vmType/682eefe457db7d4366881c13/1747906611139/Lenskart1.jpg",
190
+ "fixtureName": "Template05-Second Floor Fixture",
191
+ "fixturetype": "Hybrid_4ft",
192
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
193
+ "fixtureId": "6837eace2692f29eff7f8f69",
194
+ "templateId": "6837eed55caa00ec973be4c8",
195
+ "associatedElementFixtureNumber": 1,
196
+ "associatedElementNumber": 1,
197
+ "associatedElementType": "wall",
198
+ "newassociatedElementFixtureNumber": 3,
199
+ "newassociatedElementNumber": 1,
200
+ "newassociatedElementType": "wall"
201
+ }
202
+ ],
203
+ "video": "",
204
+ "image": ""
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "taskId": "6841260651d4dcf69692e5ac",
212
+ "type": "fixture",
213
+ "date_string": "2025-06-06",
214
+ "planoId": "682b18eb53b873e2bef85f48",
215
+ "fixtureId": "684681d3a637439f61da0200",
216
+ "floorId": "6819df849741a6b2e0d70904",
217
+ "answers": [
218
+ {
219
+ "userId": "6819df859741a6b2e0d7090e",
220
+ "userName": "LKST98",
221
+ "role": "admin",
222
+ "issues": [
223
+ {
224
+ "userId": "6819df859741a6b2e0d7090e",
225
+ "userName": "LKST98",
226
+ "role": "admin",
227
+ "qno": 1,
228
+ "question": "Fixture type is wrong",
229
+ "Details": [
230
+ {
231
+ "comments": [
232
+ {
233
+ "userId": "681d967e72e969324794af2a",
234
+ "userName": "hastinapuram.chennai",
235
+ "role": "user",
236
+ "comment": "the above one fixture is missing from the store",
237
+ "responsetype": "comment"
238
+ }
239
+ ],
240
+ "fixtureId": "6837eace2692f29eff7f8f69",
241
+ "templateId": "6837eed55caa00ec973be4c8",
242
+ "fixtureName": "Template04-Second Floor Fixture",
243
+ "fixturetype": "Hybrid_4ft",
244
+ "fixturetemplate": "Temp_hybd_5ft_Vincent Chase+Lenskart",
245
+ "associatedElementFixtureNumber": 1,
246
+ "associatedElementNumber": 1,
247
+ "associatedElementType": "wall",
248
+ "shelfConfig": [
249
+ {
250
+ "shelfNumber": 1,
251
+ "shelfType": "",
252
+ "productPerShelf": 6,
253
+ "trayRows": 5,
254
+ "fixtureBrandCategory": [],
255
+ "fixtureBrandSubCategory": []
256
+ },
257
+ {
258
+ "shelfNumber": 2,
259
+ "shelfType": "",
260
+ "productPerShelf": 6,
261
+ "trayRows": 5,
262
+ "fixtureBrandCategory": [],
263
+ "fixtureBrandSubCategory": []
264
+ }
265
+ ]
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "userId": "6819df859741a6b2e0d7090e",
271
+ "userName": "LKST98",
272
+ "role": "admin",
273
+ "qno": 2,
274
+ "question": "Fixture size is wrong",
275
+ "video": "",
276
+ "image": "",
277
+ "Details": [
278
+ {
279
+ "comments": [
280
+ {
281
+ "userId": "681d967e72e969324794af2a",
282
+ "userName": "hastinapuram.chennai",
283
+ "role": "user",
284
+ "comment": "the above one fixture is missing from the plano",
285
+ "responsetype": "comment"
286
+ }
287
+ ],
288
+ "fixturetype": "Hybrid_4ft",
289
+ "shelfConfig": [
290
+ {
291
+ "shelfNumber": 1,
292
+ "shelfType": "",
293
+ "productPerShelf": 6,
294
+ "trayRows": 5,
295
+ "fixtureBrandCategory": [],
296
+ "fixtureBrandSubCategory": []
297
+ },
298
+ {
299
+ "shelfNumber": 2,
300
+ "shelfType": "",
301
+ "productPerShelf": 6,
302
+ "trayRows": 5,
303
+ "fixtureBrandCategory": [],
304
+ "fixtureBrandSubCategory": []
305
+ }
306
+ ]
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "userId": "6819df859741a6b2e0d7090e",
312
+ "userName": "LKST98",
313
+ "role": "admin",
314
+ "qno": 2,
315
+ "question": "Product category is wrong",
316
+ "video": "",
317
+ "image": "",
318
+ "Details": [
319
+ {
320
+ "comments": [
321
+ {
322
+ "userId": "681d967e72e969324794af2a",
323
+ "userName": "hastinapuram.chennai",
324
+ "role": "user",
325
+ "comment": "the above one fixture is missing from the plano",
326
+ "responsetype": "comment"
327
+ }
328
+ ],
329
+ "fixturetype": "Hybrid_4ft",
330
+ "shelfConfig": [
331
+ {
332
+ "shelfNumber": 1,
333
+ "shelfType": "",
334
+ "productPerShelf": 6,
335
+ "trayRows": 5,
336
+ "zone": "middle",
337
+ "fixtureBrandCategory": [],
338
+ "fixtureBrandSubCategory": []
339
+ },
340
+ {
341
+ "shelfNumber": 2,
342
+ "shelfType": "",
343
+ "productPerShelf": 6,
344
+ "trayRows": 5,
345
+ "zone": "bottom",
346
+ "fixtureBrandCategory": [],
347
+ "fixtureBrandSubCategory": []
348
+ }
349
+ ]
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "userId": "6819df859741a6b2e0d7090e",
355
+ "userName": "LKST98",
356
+ "role": "admin",
357
+ "qno": 2,
358
+ "question": "Product category is wrong",
359
+ "video": "",
360
+ "image": "",
361
+ "Details": [
362
+ {
363
+ "comments": [
364
+ {
365
+ "userId": "681d967e72e969324794af2a",
366
+ "userName": "hastinapuram.chennai",
367
+ "role": "user",
368
+ "comment": "the above one fixture is missing from the plano",
369
+ "responsetype": "comment"
370
+ }
371
+ ],
372
+ "fixturetype": "Hybrid_4ft",
373
+ "shelfConfig": [
374
+ {
375
+ "shelfNumber": 1,
376
+ "shelfType": "",
377
+ "productPerShelf": 6,
378
+ "trayRows": 5,
379
+ "zone": "middle",
380
+ "fixtureBrandCategory": [],
381
+ "fixtureBrandSubCategory": []
382
+ },
383
+ {
384
+ "shelfNumber": 2,
385
+ "shelfType": "",
386
+ "productPerShelf": 6,
387
+ "trayRows": 5,
388
+ "zone": "middle",
389
+ "fixtureBrandCategory": [],
390
+ "fixtureBrandSubCategory": []
391
+ },
392
+ {
393
+ "shelfNumber": 2,
394
+ "shelfType": "",
395
+ "productPerShelf": 6,
396
+ "trayRows": 5,
397
+ "zone": "bottom",
398
+ "fixtureBrandCategory": [],
399
+ "fixtureBrandSubCategory": []
400
+ }
401
+ ]
402
+ }
403
+ ]
404
+ },
405
+ {
406
+ "userId": "6819df859741a6b2e0d7090e",
407
+ "userName": "LKST98",
408
+ "role": "admin",
409
+ "qno": 2,
410
+ "question": "Brand is wrong",
411
+ "video": "",
412
+ "image": "",
413
+ "Details": [
414
+ {
415
+ "comments": [
416
+ {
417
+ "userId": "681d967e72e969324794af2a",
418
+ "userName": "hastinapuram.chennai",
419
+ "role": "user",
420
+ "comment": "the above one fixture is missing from the plano",
421
+ "responsetype": "comment"
422
+ }
423
+ ],
424
+ "fixturetype": "Hybrid_4ft",
425
+ "shelfConfig": [
426
+ {
427
+ "shelfNumber": 1,
428
+ "shelfType": "",
429
+ "productPerShelf": 6,
430
+ "trayRows": 5,
431
+ "zone": "middle",
432
+ "fixtureBrandCategory": [],
433
+ "fixtureBrandSubCategory": []
434
+ },
435
+ {
436
+ "shelfNumber": 2,
437
+ "shelfType": "",
438
+ "productPerShelf": 6,
439
+ "trayRows": 5,
440
+ "zone": "middle",
441
+ "fixtureBrandCategory": [],
442
+ "fixtureBrandSubCategory": []
443
+ },
444
+ {
445
+ "shelfNumber": 2,
446
+ "shelfType": "",
447
+ "productPerShelf": 6,
448
+ "trayRows": 5,
449
+ "zone": "bottom",
450
+ "fixtureBrandCategory": [],
451
+ "fixtureBrandSubCategory": []
452
+ }
453
+ ]
454
+ }
455
+ ]
456
+ }
457
+ ]
458
+ }
459
+ ],
460
+ "date_iso": "2025-06-06T00:00:00.000Z",
461
+ "storeId": "11-4",
462
+ "storeName": "LKST98",
463
+ "status": "incomplete"
464
+ }
465
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-store-builder",
3
- "version": "1.0.0-beta-113",
3
+ "version": "1.0.0-beta-114",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,6 +18,7 @@
18
18
  "cors": "^2.8.5",
19
19
  "dayjs": "^1.11.13",
20
20
  "dotenv": "^16.4.7",
21
+ "exceljs": "^4.4.0",
21
22
  "express": "^4.21.2",
22
23
  "express-fileupload": "^1.5.1",
23
24
  "fetch-cookie": "^3.1.0",
@@ -31,7 +32,7 @@
31
32
  "path": "^0.12.7",
32
33
  "selenium-webdriver": "^4.31.0",
33
34
  "sharp": "^0.34.1",
34
- "tango-api-schema": "^2.2.152",
35
+ "tango-api-schema": "2.2.153",
35
36
  "tango-app-api-middleware": "^3.1.48",
36
37
  "url": "^0.11.4",
37
38
  "winston": "^3.17.0",