tango-api-schema 2.6.18 → 2.6.20
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 +262 -262
- package/package.json +1 -1
- package/schema/bankTransaction.model.js +78 -73
- package/schema/checklistconfig.js +5 -1
- package/schema/processedchecklist.js +1 -1
- package/schema/processedchecklistconfig.js +6 -2
- package/schema/regionKey.model.js +31 -31
package/index.js
CHANGED
|
@@ -1,263 +1,263 @@
|
|
|
1
|
-
import leadModel from "./schema/lead.model.js";
|
|
2
|
-
import otpModel from "./schema/otp.model.js";
|
|
3
|
-
import storeModel from "./schema/store.model.js";
|
|
4
|
-
import countryCodesModel from "./schema/countryCodes.model.js";
|
|
5
|
-
import clientModel from "./schema/client.model.js";
|
|
6
|
-
import tangoTicketModel from "./schema/tangoTicket.model.js";
|
|
7
|
-
import ipLogModel from "./schema/ipLogs.model.js";
|
|
8
|
-
import userModel from "./schema/user.model.js";
|
|
9
|
-
import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
|
|
10
|
-
import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
11
|
-
import cameraModel from "./schema/camera.model.js";
|
|
12
|
-
import reportModel from "./schema/report.model.js";
|
|
13
|
-
import standaredRoleModel from "./schema/standaredRole.model.js";
|
|
14
|
-
import infraReasonModel from "./schema/infraReason.model.js";
|
|
15
|
-
import groupModel from "./schema/group.model.js";
|
|
16
|
-
import authenticationModel from "./schema/authentication.model.js";
|
|
17
|
-
import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
|
|
18
|
-
import edgeappAuthModel from "./schema/edgeappAuth.model.js";
|
|
19
|
-
import clientRequestModel from "./schema/clientRequest.model.js";
|
|
20
|
-
import basePricingModel from "./schema/basePricing.model.js";
|
|
21
|
-
import invoiceModel from "./schema/invoice.model.js";
|
|
22
|
-
import workstationModel from "./schema/workstation.model.js";
|
|
23
|
-
import dailyPricingModel from "./schema/dailyPricing.model.js";
|
|
24
|
-
import fittingModel from "./schema/fitting.model.js";
|
|
25
|
-
import qualityCheckModel from "./schema/quality.model.js";
|
|
26
|
-
import taggingModel from "./schema/tagging.model.js";
|
|
27
|
-
import userAuditModel from "./schema/userAudit.model.js";
|
|
28
|
-
import storeAuditModel from "./schema/storeAudit.model.js";
|
|
29
|
-
import assignAuditModel from "./schema/assignAudit.model.js";
|
|
30
|
-
import auditStoreDataModel from "./schema/auditStoreData.model.js";
|
|
31
|
-
import matLogModel from "./schema/matLog.model.js";
|
|
32
|
-
import billingModel from "./schema/billing.model.js";
|
|
33
|
-
import auditLogsModel from "./schema/auditLogs.model.js";
|
|
34
|
-
import internalAuthModel from "./schema/internalAuth.model.js";
|
|
35
|
-
import paymentAccountModel from "./schema/paymentAccount.model.js";
|
|
36
|
-
import externalParameterModel from "./schema/externalParameter.model.js";
|
|
37
|
-
import transactionModel from "./schema/transaction.model.js";
|
|
38
|
-
import bankTransactionModel from "./schema/bankTransaction.model.js";
|
|
39
|
-
import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
|
|
40
|
-
import traxAuditDataModel from "./schema/traxAuditData.model.js";
|
|
41
|
-
import binaryAuditModel from "./schema/binaryAudit.model.js";
|
|
42
|
-
import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
|
|
43
|
-
import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
44
|
-
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
45
|
-
import auditUserWalletModel from "./schema/auditUserWallet.model.js";
|
|
46
|
-
import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
|
|
47
|
-
import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
|
|
48
|
-
import auditUsersModel from "./schema/auditUsers.model.js";
|
|
49
|
-
import clusterModel from "./schema/cluster.model.js";
|
|
50
|
-
import teamsModel from "./schema/teams.model.js";
|
|
51
|
-
import checklistassignconfigModel from "./schema/checklistassignconfig.js";
|
|
52
|
-
import checklistconfigModel from "./schema/checklistconfig.js";
|
|
53
|
-
import checklistlogModel from "./schema/checklistlog.js";
|
|
54
|
-
import checklistquestionconfigModel from "./schema/checklistquestionconfig.js";
|
|
55
|
-
import processedchecklistModel from "./schema/processedchecklist.js";
|
|
56
|
-
import processedchecklistconfigModel from "./schema/processedchecklistconfig.js";
|
|
57
|
-
import processeddetectionModel from "./schema/processeddetection.js";
|
|
58
|
-
import domainModel from "./schema/domain.js";
|
|
59
|
-
import hotjarModel from "./schema/hotjar.model.js";
|
|
60
|
-
import downloadModel from "./schema/download.js";
|
|
61
|
-
import aiTicketConfigModel from "./schema/aiTicketConfig.js";
|
|
62
|
-
import appVersionModel from "./schema/appVersion.js";
|
|
63
|
-
import lenskartEmployeeMappingModel from "./schema/lenskartEmployeeMapping.model.js";
|
|
64
|
-
import locusOrderModel from "./schema/locusOrder.model.js";
|
|
65
|
-
import locusOrderUserModel from "./schema/locusOrderUser.model.js";
|
|
66
|
-
import controleCenterTemplateListModel from "./schema/controlCenterTemplateList.model.js";
|
|
67
|
-
import liveConnectionSchemaModel from './schema/liveConnection.model.js';
|
|
68
|
-
import taskConfigModel from './schema/taskConfig.model.js';
|
|
69
|
-
import taskQuestionModel from './schema/taskQuestion.model.js';
|
|
70
|
-
import taskAssignModel from './schema/taskAssign.model.js';
|
|
71
|
-
import taskProcessedModel from './schema/taskProcessed.model.js';
|
|
72
|
-
import taskProcessedConfigModel from './schema/taskProcessedConfig.model.js';
|
|
73
|
-
import traxApproverModel from './schema/traxApprover.model.js';
|
|
74
|
-
import nobBillingModel from "./schema/nobBilling.model.js";
|
|
75
|
-
import storeLayoutModel from "./schema/storeLayout.model.js";
|
|
76
|
-
import planogramModel from "./schema/planogram.model.js";
|
|
77
|
-
import emailersModel from "./schema/emailers.model.js";
|
|
78
|
-
import planoMappingModel from './schema/planoMapping.model.js';
|
|
79
|
-
import planoProductModel from './schema/planoProductDetail.model.js';
|
|
80
|
-
import planoVmModel from './schema/planoVmDetail.model.js';
|
|
81
|
-
import planoComplianceModel from './schema/planoCompliance.model.js';
|
|
82
|
-
import storeFixtureModel from './schema/storeFixture.model.js';
|
|
83
|
-
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
84
|
-
import fixtureShelfModel from './schema/fixtureShelf.model.js';
|
|
85
|
-
import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
|
|
86
|
-
import planoGlobalComment from './schema/planoGlobalComment.model.js';
|
|
87
|
-
import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
|
|
88
|
-
import planoStaticData from './schema/planoStaticData.model.js';
|
|
89
|
-
import suspiciousActivityModel from "./schema/suspiciousActivity.model.js";
|
|
90
|
-
import auditConfigModel from "./schema/auditConfig.model.js";
|
|
91
|
-
import revopConfigModel from "./schema/revopConfig.model.js";
|
|
92
|
-
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
93
|
-
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
94
|
-
import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
|
|
95
|
-
import vmTypeModel from "./schema/vmType.model.js";
|
|
96
|
-
import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
|
|
97
|
-
import streamingModel from './schema/streaming.model.js';
|
|
98
|
-
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
99
|
-
import notification from "./schema/notification.model.js";
|
|
100
|
-
import planoRevisionModel from "./schema/planoRevision.model.js";
|
|
101
|
-
|
|
102
|
-
import auditUserBaseSalaryModel from "./schema/auditUserBaseSalary.model.js";
|
|
103
|
-
import revopDownloadModel from "./schema/revopDownload.model.js";
|
|
104
|
-
|
|
105
|
-
import runAIFeaturesModel from "./schema/runAIFeatures.js";
|
|
106
|
-
import runAIRequestModel from "./schema/runAIRequest.js";
|
|
107
|
-
import templateLogSchema from "./schema/templateLog.model.js";
|
|
108
|
-
import eyeTestConfigurationModel from "./schema/eyeTestConfiguration.model.js";
|
|
109
|
-
import copilotMachineConfigModel from "./schema/copilotMachineConfig.model.js";
|
|
110
|
-
import findReplaceAiModel from "./schema/findReplaceAi.model.js";
|
|
111
|
-
|
|
112
|
-
import planoDuplicateModel from './schema/planogramDuplicate.model.js'
|
|
113
|
-
import storeLayoutDuplicateModel from './schema/storeLayoutDuplicate.model.js'
|
|
114
|
-
import storeFixtureDuplicateModel from './schema/storeFixtureDuplicate.model.js'
|
|
115
|
-
import fixtureConfigDuplicateModel from "./schema/fixtureConfigDuplicate.model.js";
|
|
116
|
-
import fixtureLibraryDuplicateModel from "./schema/fixtureLibraryDuplicate.model.js";
|
|
117
|
-
import fixtureShelfDuplicateModel from "./schema/fixtureShelfDuplicate.model.js";
|
|
118
|
-
import planoMappingDuplicateModel from "./schema/planoMappingDuplicate.model.js";
|
|
119
|
-
import planoVmDetailDuplicateModel from "./schema/planoVmDetailDuplicate.model.js";
|
|
120
|
-
import planoProductDetailDuplicateModel from "./schema/planoProductDetailDuplicate.model.js";
|
|
121
|
-
import vmsStoreRequestModel from './schema/vmsStoreRequest.model.js'
|
|
122
|
-
import sangeethaCamDataModel from "./schema/sangeethaCamData.model.js"
|
|
123
|
-
import storeAccuracyIssuesModel from "./schema/storeAccuracyIssues.model.js";
|
|
124
|
-
import RFIDdataModel from "./schema/RFIDdata.model.js";
|
|
125
|
-
import customZonetagsModel from "./schema/customZonetags.model.js";
|
|
126
|
-
import zonegroupsModel from "./schema/zonegroups.model.js";
|
|
127
|
-
import pidAllocationEngine from "./schema/pidAllocationEngine.model.js";
|
|
128
|
-
import audioStaticValueModel from "./schema/audioStaticValue.model.js";
|
|
129
|
-
import recurringFlagTrackerModel from "./schema/recurringFlagTracker.model.js";
|
|
130
|
-
import regionKeyModel from "./schema/regionKey.model.js";
|
|
131
|
-
import lookPlanoCollectionModel from "./schema/lookPlanoCollection.model.js";
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
export default {
|
|
135
|
-
leadModel,
|
|
136
|
-
otpModel,
|
|
137
|
-
storeModel,
|
|
138
|
-
countryCodesModel,
|
|
139
|
-
clientModel,
|
|
140
|
-
tangoTicketModel,
|
|
141
|
-
ipLogModel,
|
|
142
|
-
userModel,
|
|
143
|
-
edgeAppVersionModel,
|
|
144
|
-
applicationDefaultModel,
|
|
145
|
-
cameraModel,
|
|
146
|
-
reportModel,
|
|
147
|
-
standaredRoleModel,
|
|
148
|
-
infraReasonModel,
|
|
149
|
-
groupModel,
|
|
150
|
-
authenticationModel,
|
|
151
|
-
userAssignedStoreModel,
|
|
152
|
-
edgeappAuthModel,
|
|
153
|
-
clientRequestModel,
|
|
154
|
-
basePricingModel,
|
|
155
|
-
invoiceModel,
|
|
156
|
-
workstationModel,
|
|
157
|
-
dailyPricingModel,
|
|
158
|
-
fittingModel,
|
|
159
|
-
qualityCheckModel,
|
|
160
|
-
taggingModel,
|
|
161
|
-
userAuditModel,
|
|
162
|
-
storeAuditModel,
|
|
163
|
-
assignAuditModel,
|
|
164
|
-
auditStoreDataModel,
|
|
165
|
-
matLogModel,
|
|
166
|
-
billingModel,
|
|
167
|
-
auditLogsModel,
|
|
168
|
-
internalAuthModel,
|
|
169
|
-
paymentAccountModel,
|
|
170
|
-
externalParameterModel,
|
|
171
|
-
transactionModel,
|
|
172
|
-
bankTransactionModel,
|
|
173
|
-
dataMismatchDraftModel,
|
|
174
|
-
traxAuditDataModel,
|
|
175
|
-
binaryAuditModel,
|
|
176
|
-
userEmpDetectionModel,
|
|
177
|
-
storeEmpDetectionModel,
|
|
178
|
-
lowcountReasonModel,
|
|
179
|
-
auditUserWalletModel,
|
|
180
|
-
mailOnlyuserModel,
|
|
181
|
-
empDetectionOutputModel,
|
|
182
|
-
auditUsersModel,
|
|
183
|
-
clusterModel,
|
|
184
|
-
teamsModel,
|
|
185
|
-
checklistassignconfigModel,
|
|
186
|
-
checklistconfigModel,
|
|
187
|
-
checklistlogModel,
|
|
188
|
-
checklistquestionconfigModel,
|
|
189
|
-
processedchecklistModel,
|
|
190
|
-
processedchecklistconfigModel,
|
|
191
|
-
processeddetectionModel,
|
|
192
|
-
domainModel,
|
|
193
|
-
hotjarModel,
|
|
194
|
-
downloadModel,
|
|
195
|
-
aiTicketConfigModel,
|
|
196
|
-
appVersionModel,
|
|
197
|
-
lenskartEmployeeMappingModel,
|
|
198
|
-
locusOrderModel,
|
|
199
|
-
locusOrderUserModel,
|
|
200
|
-
controleCenterTemplateListModel,
|
|
201
|
-
liveConnectionSchemaModel,
|
|
202
|
-
taskConfigModel,
|
|
203
|
-
taskQuestionModel,
|
|
204
|
-
taskAssignModel,
|
|
205
|
-
taskProcessedModel,
|
|
206
|
-
taskProcessedConfigModel,
|
|
207
|
-
traxApproverModel,
|
|
208
|
-
nobBillingModel,
|
|
209
|
-
storeLayoutModel,
|
|
210
|
-
planogramModel,
|
|
211
|
-
emailersModel,
|
|
212
|
-
planoMappingModel,
|
|
213
|
-
planoProductModel,
|
|
214
|
-
planoComplianceModel,
|
|
215
|
-
storeFixtureModel,
|
|
216
|
-
fixtureConfigModel,
|
|
217
|
-
fixtureShelfModel,
|
|
218
|
-
planoGlobalComment,
|
|
219
|
-
planoTaskCompliance,
|
|
220
|
-
planoQrConversionRequest,
|
|
221
|
-
planoStaticData,
|
|
222
|
-
suspiciousActivityModel,
|
|
223
|
-
auditConfigModel,
|
|
224
|
-
revopConfigModel,
|
|
225
|
-
planoCrestLogModel,
|
|
226
|
-
countryCurrencyModel,
|
|
227
|
-
fixtureLibraryModel,
|
|
228
|
-
planoVmModel,
|
|
229
|
-
vmTypeModel,
|
|
230
|
-
planoProductCategoryModel,
|
|
231
|
-
streamingModel,
|
|
232
|
-
loginAttempt,
|
|
233
|
-
notification,
|
|
234
|
-
planoRevisionModel,
|
|
235
|
-
auditUserBaseSalaryModel,
|
|
236
|
-
revopDownloadModel,
|
|
237
|
-
runAIRequestModel,
|
|
238
|
-
runAIFeaturesModel,
|
|
239
|
-
templateLogSchema,
|
|
240
|
-
eyeTestConfigurationModel,
|
|
241
|
-
copilotMachineConfigModel,
|
|
242
|
-
findReplaceAiModel,
|
|
243
|
-
planoDuplicateModel,
|
|
244
|
-
storeLayoutDuplicateModel,
|
|
245
|
-
storeFixtureDuplicateModel,
|
|
246
|
-
fixtureConfigDuplicateModel,
|
|
247
|
-
fixtureLibraryDuplicateModel,
|
|
248
|
-
fixtureShelfDuplicateModel,
|
|
249
|
-
planoMappingDuplicateModel,
|
|
250
|
-
planoVmDetailDuplicateModel,
|
|
251
|
-
planoProductDetailDuplicateModel,
|
|
252
|
-
vmsStoreRequestModel,
|
|
253
|
-
sangeethaCamDataModel,
|
|
254
|
-
storeAccuracyIssuesModel,
|
|
255
|
-
RFIDdataModel,
|
|
256
|
-
customZonetagsModel,
|
|
257
|
-
zonegroupsModel,
|
|
258
|
-
pidAllocationEngine,
|
|
259
|
-
audioStaticValueModel,
|
|
260
|
-
recurringFlagTrackerModel,
|
|
261
|
-
regionKeyModel,
|
|
262
|
-
lookPlanoCollectionModel
|
|
1
|
+
import leadModel from "./schema/lead.model.js";
|
|
2
|
+
import otpModel from "./schema/otp.model.js";
|
|
3
|
+
import storeModel from "./schema/store.model.js";
|
|
4
|
+
import countryCodesModel from "./schema/countryCodes.model.js";
|
|
5
|
+
import clientModel from "./schema/client.model.js";
|
|
6
|
+
import tangoTicketModel from "./schema/tangoTicket.model.js";
|
|
7
|
+
import ipLogModel from "./schema/ipLogs.model.js";
|
|
8
|
+
import userModel from "./schema/user.model.js";
|
|
9
|
+
import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
|
|
10
|
+
import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
11
|
+
import cameraModel from "./schema/camera.model.js";
|
|
12
|
+
import reportModel from "./schema/report.model.js";
|
|
13
|
+
import standaredRoleModel from "./schema/standaredRole.model.js";
|
|
14
|
+
import infraReasonModel from "./schema/infraReason.model.js";
|
|
15
|
+
import groupModel from "./schema/group.model.js";
|
|
16
|
+
import authenticationModel from "./schema/authentication.model.js";
|
|
17
|
+
import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
|
|
18
|
+
import edgeappAuthModel from "./schema/edgeappAuth.model.js";
|
|
19
|
+
import clientRequestModel from "./schema/clientRequest.model.js";
|
|
20
|
+
import basePricingModel from "./schema/basePricing.model.js";
|
|
21
|
+
import invoiceModel from "./schema/invoice.model.js";
|
|
22
|
+
import workstationModel from "./schema/workstation.model.js";
|
|
23
|
+
import dailyPricingModel from "./schema/dailyPricing.model.js";
|
|
24
|
+
import fittingModel from "./schema/fitting.model.js";
|
|
25
|
+
import qualityCheckModel from "./schema/quality.model.js";
|
|
26
|
+
import taggingModel from "./schema/tagging.model.js";
|
|
27
|
+
import userAuditModel from "./schema/userAudit.model.js";
|
|
28
|
+
import storeAuditModel from "./schema/storeAudit.model.js";
|
|
29
|
+
import assignAuditModel from "./schema/assignAudit.model.js";
|
|
30
|
+
import auditStoreDataModel from "./schema/auditStoreData.model.js";
|
|
31
|
+
import matLogModel from "./schema/matLog.model.js";
|
|
32
|
+
import billingModel from "./schema/billing.model.js";
|
|
33
|
+
import auditLogsModel from "./schema/auditLogs.model.js";
|
|
34
|
+
import internalAuthModel from "./schema/internalAuth.model.js";
|
|
35
|
+
import paymentAccountModel from "./schema/paymentAccount.model.js";
|
|
36
|
+
import externalParameterModel from "./schema/externalParameter.model.js";
|
|
37
|
+
import transactionModel from "./schema/transaction.model.js";
|
|
38
|
+
import bankTransactionModel from "./schema/bankTransaction.model.js";
|
|
39
|
+
import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
|
|
40
|
+
import traxAuditDataModel from "./schema/traxAuditData.model.js";
|
|
41
|
+
import binaryAuditModel from "./schema/binaryAudit.model.js";
|
|
42
|
+
import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
|
|
43
|
+
import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
44
|
+
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
45
|
+
import auditUserWalletModel from "./schema/auditUserWallet.model.js";
|
|
46
|
+
import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
|
|
47
|
+
import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
|
|
48
|
+
import auditUsersModel from "./schema/auditUsers.model.js";
|
|
49
|
+
import clusterModel from "./schema/cluster.model.js";
|
|
50
|
+
import teamsModel from "./schema/teams.model.js";
|
|
51
|
+
import checklistassignconfigModel from "./schema/checklistassignconfig.js";
|
|
52
|
+
import checklistconfigModel from "./schema/checklistconfig.js";
|
|
53
|
+
import checklistlogModel from "./schema/checklistlog.js";
|
|
54
|
+
import checklistquestionconfigModel from "./schema/checklistquestionconfig.js";
|
|
55
|
+
import processedchecklistModel from "./schema/processedchecklist.js";
|
|
56
|
+
import processedchecklistconfigModel from "./schema/processedchecklistconfig.js";
|
|
57
|
+
import processeddetectionModel from "./schema/processeddetection.js";
|
|
58
|
+
import domainModel from "./schema/domain.js";
|
|
59
|
+
import hotjarModel from "./schema/hotjar.model.js";
|
|
60
|
+
import downloadModel from "./schema/download.js";
|
|
61
|
+
import aiTicketConfigModel from "./schema/aiTicketConfig.js";
|
|
62
|
+
import appVersionModel from "./schema/appVersion.js";
|
|
63
|
+
import lenskartEmployeeMappingModel from "./schema/lenskartEmployeeMapping.model.js";
|
|
64
|
+
import locusOrderModel from "./schema/locusOrder.model.js";
|
|
65
|
+
import locusOrderUserModel from "./schema/locusOrderUser.model.js";
|
|
66
|
+
import controleCenterTemplateListModel from "./schema/controlCenterTemplateList.model.js";
|
|
67
|
+
import liveConnectionSchemaModel from './schema/liveConnection.model.js';
|
|
68
|
+
import taskConfigModel from './schema/taskConfig.model.js';
|
|
69
|
+
import taskQuestionModel from './schema/taskQuestion.model.js';
|
|
70
|
+
import taskAssignModel from './schema/taskAssign.model.js';
|
|
71
|
+
import taskProcessedModel from './schema/taskProcessed.model.js';
|
|
72
|
+
import taskProcessedConfigModel from './schema/taskProcessedConfig.model.js';
|
|
73
|
+
import traxApproverModel from './schema/traxApprover.model.js';
|
|
74
|
+
import nobBillingModel from "./schema/nobBilling.model.js";
|
|
75
|
+
import storeLayoutModel from "./schema/storeLayout.model.js";
|
|
76
|
+
import planogramModel from "./schema/planogram.model.js";
|
|
77
|
+
import emailersModel from "./schema/emailers.model.js";
|
|
78
|
+
import planoMappingModel from './schema/planoMapping.model.js';
|
|
79
|
+
import planoProductModel from './schema/planoProductDetail.model.js';
|
|
80
|
+
import planoVmModel from './schema/planoVmDetail.model.js';
|
|
81
|
+
import planoComplianceModel from './schema/planoCompliance.model.js';
|
|
82
|
+
import storeFixtureModel from './schema/storeFixture.model.js';
|
|
83
|
+
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
84
|
+
import fixtureShelfModel from './schema/fixtureShelf.model.js';
|
|
85
|
+
import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
|
|
86
|
+
import planoGlobalComment from './schema/planoGlobalComment.model.js';
|
|
87
|
+
import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
|
|
88
|
+
import planoStaticData from './schema/planoStaticData.model.js';
|
|
89
|
+
import suspiciousActivityModel from "./schema/suspiciousActivity.model.js";
|
|
90
|
+
import auditConfigModel from "./schema/auditConfig.model.js";
|
|
91
|
+
import revopConfigModel from "./schema/revopConfig.model.js";
|
|
92
|
+
import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
93
|
+
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
94
|
+
import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
|
|
95
|
+
import vmTypeModel from "./schema/vmType.model.js";
|
|
96
|
+
import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
|
|
97
|
+
import streamingModel from './schema/streaming.model.js';
|
|
98
|
+
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
99
|
+
import notification from "./schema/notification.model.js";
|
|
100
|
+
import planoRevisionModel from "./schema/planoRevision.model.js";
|
|
101
|
+
|
|
102
|
+
import auditUserBaseSalaryModel from "./schema/auditUserBaseSalary.model.js";
|
|
103
|
+
import revopDownloadModel from "./schema/revopDownload.model.js";
|
|
104
|
+
|
|
105
|
+
import runAIFeaturesModel from "./schema/runAIFeatures.js";
|
|
106
|
+
import runAIRequestModel from "./schema/runAIRequest.js";
|
|
107
|
+
import templateLogSchema from "./schema/templateLog.model.js";
|
|
108
|
+
import eyeTestConfigurationModel from "./schema/eyeTestConfiguration.model.js";
|
|
109
|
+
import copilotMachineConfigModel from "./schema/copilotMachineConfig.model.js";
|
|
110
|
+
import findReplaceAiModel from "./schema/findReplaceAi.model.js";
|
|
111
|
+
|
|
112
|
+
import planoDuplicateModel from './schema/planogramDuplicate.model.js'
|
|
113
|
+
import storeLayoutDuplicateModel from './schema/storeLayoutDuplicate.model.js'
|
|
114
|
+
import storeFixtureDuplicateModel from './schema/storeFixtureDuplicate.model.js'
|
|
115
|
+
import fixtureConfigDuplicateModel from "./schema/fixtureConfigDuplicate.model.js";
|
|
116
|
+
import fixtureLibraryDuplicateModel from "./schema/fixtureLibraryDuplicate.model.js";
|
|
117
|
+
import fixtureShelfDuplicateModel from "./schema/fixtureShelfDuplicate.model.js";
|
|
118
|
+
import planoMappingDuplicateModel from "./schema/planoMappingDuplicate.model.js";
|
|
119
|
+
import planoVmDetailDuplicateModel from "./schema/planoVmDetailDuplicate.model.js";
|
|
120
|
+
import planoProductDetailDuplicateModel from "./schema/planoProductDetailDuplicate.model.js";
|
|
121
|
+
import vmsStoreRequestModel from './schema/vmsStoreRequest.model.js'
|
|
122
|
+
import sangeethaCamDataModel from "./schema/sangeethaCamData.model.js"
|
|
123
|
+
import storeAccuracyIssuesModel from "./schema/storeAccuracyIssues.model.js";
|
|
124
|
+
import RFIDdataModel from "./schema/RFIDdata.model.js";
|
|
125
|
+
import customZonetagsModel from "./schema/customZonetags.model.js";
|
|
126
|
+
import zonegroupsModel from "./schema/zonegroups.model.js";
|
|
127
|
+
import pidAllocationEngine from "./schema/pidAllocationEngine.model.js";
|
|
128
|
+
import audioStaticValueModel from "./schema/audioStaticValue.model.js";
|
|
129
|
+
import recurringFlagTrackerModel from "./schema/recurringFlagTracker.model.js";
|
|
130
|
+
import regionKeyModel from "./schema/regionKey.model.js";
|
|
131
|
+
import lookPlanoCollectionModel from "./schema/lookPlanoCollection.model.js";
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
export default {
|
|
135
|
+
leadModel,
|
|
136
|
+
otpModel,
|
|
137
|
+
storeModel,
|
|
138
|
+
countryCodesModel,
|
|
139
|
+
clientModel,
|
|
140
|
+
tangoTicketModel,
|
|
141
|
+
ipLogModel,
|
|
142
|
+
userModel,
|
|
143
|
+
edgeAppVersionModel,
|
|
144
|
+
applicationDefaultModel,
|
|
145
|
+
cameraModel,
|
|
146
|
+
reportModel,
|
|
147
|
+
standaredRoleModel,
|
|
148
|
+
infraReasonModel,
|
|
149
|
+
groupModel,
|
|
150
|
+
authenticationModel,
|
|
151
|
+
userAssignedStoreModel,
|
|
152
|
+
edgeappAuthModel,
|
|
153
|
+
clientRequestModel,
|
|
154
|
+
basePricingModel,
|
|
155
|
+
invoiceModel,
|
|
156
|
+
workstationModel,
|
|
157
|
+
dailyPricingModel,
|
|
158
|
+
fittingModel,
|
|
159
|
+
qualityCheckModel,
|
|
160
|
+
taggingModel,
|
|
161
|
+
userAuditModel,
|
|
162
|
+
storeAuditModel,
|
|
163
|
+
assignAuditModel,
|
|
164
|
+
auditStoreDataModel,
|
|
165
|
+
matLogModel,
|
|
166
|
+
billingModel,
|
|
167
|
+
auditLogsModel,
|
|
168
|
+
internalAuthModel,
|
|
169
|
+
paymentAccountModel,
|
|
170
|
+
externalParameterModel,
|
|
171
|
+
transactionModel,
|
|
172
|
+
bankTransactionModel,
|
|
173
|
+
dataMismatchDraftModel,
|
|
174
|
+
traxAuditDataModel,
|
|
175
|
+
binaryAuditModel,
|
|
176
|
+
userEmpDetectionModel,
|
|
177
|
+
storeEmpDetectionModel,
|
|
178
|
+
lowcountReasonModel,
|
|
179
|
+
auditUserWalletModel,
|
|
180
|
+
mailOnlyuserModel,
|
|
181
|
+
empDetectionOutputModel,
|
|
182
|
+
auditUsersModel,
|
|
183
|
+
clusterModel,
|
|
184
|
+
teamsModel,
|
|
185
|
+
checklistassignconfigModel,
|
|
186
|
+
checklistconfigModel,
|
|
187
|
+
checklistlogModel,
|
|
188
|
+
checklistquestionconfigModel,
|
|
189
|
+
processedchecklistModel,
|
|
190
|
+
processedchecklistconfigModel,
|
|
191
|
+
processeddetectionModel,
|
|
192
|
+
domainModel,
|
|
193
|
+
hotjarModel,
|
|
194
|
+
downloadModel,
|
|
195
|
+
aiTicketConfigModel,
|
|
196
|
+
appVersionModel,
|
|
197
|
+
lenskartEmployeeMappingModel,
|
|
198
|
+
locusOrderModel,
|
|
199
|
+
locusOrderUserModel,
|
|
200
|
+
controleCenterTemplateListModel,
|
|
201
|
+
liveConnectionSchemaModel,
|
|
202
|
+
taskConfigModel,
|
|
203
|
+
taskQuestionModel,
|
|
204
|
+
taskAssignModel,
|
|
205
|
+
taskProcessedModel,
|
|
206
|
+
taskProcessedConfigModel,
|
|
207
|
+
traxApproverModel,
|
|
208
|
+
nobBillingModel,
|
|
209
|
+
storeLayoutModel,
|
|
210
|
+
planogramModel,
|
|
211
|
+
emailersModel,
|
|
212
|
+
planoMappingModel,
|
|
213
|
+
planoProductModel,
|
|
214
|
+
planoComplianceModel,
|
|
215
|
+
storeFixtureModel,
|
|
216
|
+
fixtureConfigModel,
|
|
217
|
+
fixtureShelfModel,
|
|
218
|
+
planoGlobalComment,
|
|
219
|
+
planoTaskCompliance,
|
|
220
|
+
planoQrConversionRequest,
|
|
221
|
+
planoStaticData,
|
|
222
|
+
suspiciousActivityModel,
|
|
223
|
+
auditConfigModel,
|
|
224
|
+
revopConfigModel,
|
|
225
|
+
planoCrestLogModel,
|
|
226
|
+
countryCurrencyModel,
|
|
227
|
+
fixtureLibraryModel,
|
|
228
|
+
planoVmModel,
|
|
229
|
+
vmTypeModel,
|
|
230
|
+
planoProductCategoryModel,
|
|
231
|
+
streamingModel,
|
|
232
|
+
loginAttempt,
|
|
233
|
+
notification,
|
|
234
|
+
planoRevisionModel,
|
|
235
|
+
auditUserBaseSalaryModel,
|
|
236
|
+
revopDownloadModel,
|
|
237
|
+
runAIRequestModel,
|
|
238
|
+
runAIFeaturesModel,
|
|
239
|
+
templateLogSchema,
|
|
240
|
+
eyeTestConfigurationModel,
|
|
241
|
+
copilotMachineConfigModel,
|
|
242
|
+
findReplaceAiModel,
|
|
243
|
+
planoDuplicateModel,
|
|
244
|
+
storeLayoutDuplicateModel,
|
|
245
|
+
storeFixtureDuplicateModel,
|
|
246
|
+
fixtureConfigDuplicateModel,
|
|
247
|
+
fixtureLibraryDuplicateModel,
|
|
248
|
+
fixtureShelfDuplicateModel,
|
|
249
|
+
planoMappingDuplicateModel,
|
|
250
|
+
planoVmDetailDuplicateModel,
|
|
251
|
+
planoProductDetailDuplicateModel,
|
|
252
|
+
vmsStoreRequestModel,
|
|
253
|
+
sangeethaCamDataModel,
|
|
254
|
+
storeAccuracyIssuesModel,
|
|
255
|
+
RFIDdataModel,
|
|
256
|
+
customZonetagsModel,
|
|
257
|
+
zonegroupsModel,
|
|
258
|
+
pidAllocationEngine,
|
|
259
|
+
audioStaticValueModel,
|
|
260
|
+
recurringFlagTrackerModel,
|
|
261
|
+
regionKeyModel,
|
|
262
|
+
lookPlanoCollectionModel
|
|
263
263
|
};
|
package/package.json
CHANGED
|
@@ -1,74 +1,79 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
// Bank-statement transactions uploaded from the billing "Transactions" tab.
|
|
4
|
-
// Separate from the existing `transaction` collection, which holds payment /
|
|
5
|
-
// wallet (Razorpay) entries. Each row is one statement line; `status` drives
|
|
6
|
-
// the reconciliation buckets shown in the UI.
|
|
7
|
-
const bankTransactionSchema = new mongoose.Schema(
|
|
8
|
-
{
|
|
9
|
-
date: {
|
|
10
|
-
type: Date
|
|
11
|
-
},
|
|
12
|
-
valueDate: {
|
|
13
|
-
type: Date
|
|
14
|
-
},
|
|
15
|
-
narration: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
refNo: {
|
|
19
|
-
type: String,
|
|
20
|
-
index: true
|
|
21
|
-
},
|
|
22
|
-
withdrawalAmt: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 0
|
|
25
|
-
},
|
|
26
|
-
depositAmt: {
|
|
27
|
-
type: Number,
|
|
28
|
-
default: 0
|
|
29
|
-
},
|
|
30
|
-
// Signed convenience amount: deposit - withdrawal.
|
|
31
|
-
amount: {
|
|
32
|
-
type: Number
|
|
33
|
-
},
|
|
34
|
-
// Counterparty name extracted from the narration at upload time.
|
|
35
|
-
payer: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
source: {
|
|
39
|
-
type: String,
|
|
40
|
-
enum: [ 'bank', 'va', 'gateway' ],
|
|
41
|
-
default: 'bank',
|
|
42
|
-
},
|
|
43
|
-
status: {
|
|
44
|
-
type: String,
|
|
45
|
-
enum: [ 'reconciled', 'needs_review', 'unmatched', 'excluded' ],
|
|
46
|
-
default: 'unmatched',
|
|
47
|
-
},
|
|
48
|
-
// Filled by the (future) classification pass / manual resolve.
|
|
49
|
-
identifiedClientId: {
|
|
50
|
-
type: String
|
|
51
|
-
},
|
|
52
|
-
identifiedClientName: {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
invoice: {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
// Bank-statement transactions uploaded from the billing "Transactions" tab.
|
|
4
|
+
// Separate from the existing `transaction` collection, which holds payment /
|
|
5
|
+
// wallet (Razorpay) entries. Each row is one statement line; `status` drives
|
|
6
|
+
// the reconciliation buckets shown in the UI.
|
|
7
|
+
const bankTransactionSchema = new mongoose.Schema(
|
|
8
|
+
{
|
|
9
|
+
date: {
|
|
10
|
+
type: Date
|
|
11
|
+
},
|
|
12
|
+
valueDate: {
|
|
13
|
+
type: Date
|
|
14
|
+
},
|
|
15
|
+
narration: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
refNo: {
|
|
19
|
+
type: String,
|
|
20
|
+
index: true
|
|
21
|
+
},
|
|
22
|
+
withdrawalAmt: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 0
|
|
25
|
+
},
|
|
26
|
+
depositAmt: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
// Signed convenience amount: deposit - withdrawal.
|
|
31
|
+
amount: {
|
|
32
|
+
type: Number
|
|
33
|
+
},
|
|
34
|
+
// Counterparty name extracted from the narration at upload time.
|
|
35
|
+
payer: {
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
source: {
|
|
39
|
+
type: String,
|
|
40
|
+
enum: [ 'bank', 'va', 'gateway' ],
|
|
41
|
+
default: 'bank',
|
|
42
|
+
},
|
|
43
|
+
status: {
|
|
44
|
+
type: String,
|
|
45
|
+
enum: [ 'reconciled', 'needs_review', 'unmatched', 'excluded' ],
|
|
46
|
+
default: 'unmatched',
|
|
47
|
+
},
|
|
48
|
+
// Filled by the (future) classification pass / manual resolve.
|
|
49
|
+
identifiedClientId: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
identifiedClientName: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
55
|
+
invoice: {
|
|
56
|
+
type: String
|
|
57
|
+
},
|
|
58
|
+
// Mongo _id of the matched invoice — lets the UI open the invoice
|
|
59
|
+
// preview directly from a reconciled transaction.
|
|
60
|
+
invoiceId: {
|
|
61
|
+
type: String
|
|
62
|
+
},
|
|
63
|
+
resultNote: {
|
|
64
|
+
type: String
|
|
65
|
+
},
|
|
66
|
+
fileName: {
|
|
67
|
+
type: String
|
|
68
|
+
},
|
|
69
|
+
uploadedBy: {
|
|
70
|
+
type: String
|
|
71
|
+
},
|
|
72
|
+
}, {
|
|
73
|
+
strict: true,
|
|
74
|
+
versionKey: false,
|
|
75
|
+
timestamps: true,
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
|
|
74
79
|
export default mongoose.model('banktransaction', bankTransactionSchema);
|
|
@@ -122,7 +122,7 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
122
122
|
checkListType: {
|
|
123
123
|
type: String,
|
|
124
124
|
default: "custom",
|
|
125
|
-
enum: ["storeopenandclose", "mobileusagedetection", "uniformdetection", "custom", "customerunattended", "staffleftinthemiddle", 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'staffgrouping','employeeCount','unattendeddetection',"employeemonitoring"]
|
|
125
|
+
enum: ["storeopenandclose", "mobileusagedetection", "uniformdetection", "custom", "customerunattended", "staffleftinthemiddle", 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'staffgrouping','employeeCount','unattendeddetection',"employeemonitoring","activitymonitoring"]
|
|
126
126
|
},
|
|
127
127
|
createdAt: {
|
|
128
128
|
type: Date,
|
|
@@ -731,6 +731,10 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
731
731
|
type:String,
|
|
732
732
|
enum:['sec','min','hour'],
|
|
733
733
|
default:'min'
|
|
734
|
+
},
|
|
735
|
+
isPresenceCount:{
|
|
736
|
+
type:Boolean,
|
|
737
|
+
default:false
|
|
734
738
|
}
|
|
735
739
|
|
|
736
740
|
}
|
|
@@ -81,7 +81,7 @@ const processedchecklistSchema = new mongoose.Schema({
|
|
|
81
81
|
checkListType: {
|
|
82
82
|
type: String,
|
|
83
83
|
default: "custom",
|
|
84
|
-
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance','cameratampering','staffgrouping','employeeCount']
|
|
84
|
+
enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance','cameratampering','staffgrouping','employeeCount','employeemonitoring','activitymonitoring']
|
|
85
85
|
},
|
|
86
86
|
store_id: {
|
|
87
87
|
type: String,
|
|
@@ -81,7 +81,7 @@ const processedchecklistconfigSchema = new mongoose.Schema({
|
|
|
81
81
|
checkListType: {
|
|
82
82
|
type: String,
|
|
83
83
|
default: "custom",
|
|
84
|
-
enum: ["storeopenandclose", "mobileusagedetection", "uniformdetection", "custom", "customerunattended", "staffleftinthemiddle", 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance','cameratampering','staffgrouping','employeeCount','unattendeddetection','employeemonitoring']
|
|
84
|
+
enum: ["storeopenandclose", "mobileusagedetection", "uniformdetection", "custom", "customerunattended", "staffleftinthemiddle", 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance','cameratampering','staffgrouping','employeeCount','unattendeddetection','employeemonitoring','activitymonitoring']
|
|
85
85
|
},
|
|
86
86
|
startTime: {
|
|
87
87
|
type: Date
|
|
@@ -671,9 +671,13 @@ const processedchecklistconfigSchema = new mongoose.Schema({
|
|
|
671
671
|
type:String,
|
|
672
672
|
enum:['sec','min','hour'],
|
|
673
673
|
default:'min'
|
|
674
|
+
},
|
|
675
|
+
isPresenceCount:{
|
|
676
|
+
type:Boolean,
|
|
677
|
+
default:false
|
|
674
678
|
}
|
|
675
679
|
|
|
676
|
-
}
|
|
680
|
+
}
|
|
677
681
|
|
|
678
682
|
|
|
679
683
|
]
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
import { randomUUID } from 'crypto';
|
|
3
|
-
|
|
4
|
-
// schema
|
|
5
|
-
const collection = new mongoose.Schema({
|
|
6
|
-
apiKey: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
unique: true,
|
|
10
|
-
default: () => randomUUID()
|
|
11
|
-
},
|
|
12
|
-
countryName: {
|
|
13
|
-
type: String,
|
|
14
|
-
},
|
|
15
|
-
countryCode: {
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
clientId: {
|
|
19
|
-
type: String,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
timestamps: true,
|
|
24
|
-
strict: true,
|
|
25
|
-
versionKey: false,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
collection.index({ apiKey: 1 });
|
|
30
|
-
|
|
31
|
-
export default mongoose.model('regionKey', collection, 'regionKey');
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { randomUUID } from 'crypto';
|
|
3
|
+
|
|
4
|
+
// schema
|
|
5
|
+
const collection = new mongoose.Schema({
|
|
6
|
+
apiKey: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
default: () => randomUUID()
|
|
11
|
+
},
|
|
12
|
+
countryName: {
|
|
13
|
+
type: String,
|
|
14
|
+
},
|
|
15
|
+
countryCode: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
clientId: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
timestamps: true,
|
|
24
|
+
strict: true,
|
|
25
|
+
versionKey: false,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
collection.index({ apiKey: 1 });
|
|
30
|
+
|
|
31
|
+
export default mongoose.model('regionKey', collection, 'regionKey');
|