@duvdu-v1/duvdu 1.1.264 → 1.1.266
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/models/Bookmark-projects.model.d.ts +2 -2
- package/build/models/Bookmark.model.d.ts +1 -1
- package/build/models/Plan.model.d.ts +1 -1
- package/build/models/Review.model.d.ts +2 -2
- package/build/models/Role.model.d.ts +1 -1
- package/build/models/Term.model.d.ts +3 -3
- package/build/models/Ticket.model.d.ts +3 -3
- package/build/models/User.model.d.ts +1 -1
- package/build/models/all-contracts.model.d.ts +2 -2
- package/build/models/allProjects.model.d.ts +1 -1
- package/build/models/category.model.d.ts +3 -3
- package/build/models/contractCancel.model.d.ts +2 -2
- package/build/models/contractCancel.model.js +4 -4
- package/build/models/contracts.model.d.ts +2 -2
- package/build/models/copyright-contract.model.d.ts +2 -2
- package/build/models/copyrights-booking.model.d.ts +2 -2
- package/build/models/copyrights.model.d.ts +2 -2
- package/build/models/coupon.model.d.ts +2 -2
- package/build/models/favourites.model.d.ts +2 -2
- package/build/models/follow.model.d.ts +2 -2
- package/build/models/messages.model.d.ts +2 -2
- package/build/models/notification.model.d.ts +2 -2
- package/build/models/portfolio-post.model.d.ts +2 -2
- package/build/models/producer.model.d.ts +2 -2
- package/build/models/producerPlatform.model.d.ts +1 -1
- package/build/models/producer_contracts.model.d.ts +2 -2
- package/build/models/projectContract.model.d.ts +2 -2
- package/build/models/projectViews.model.d.ts +1 -1
- package/build/models/ranks.model.d.ts +1 -1
- package/build/models/rental-contracts.model.d.ts +2 -2
- package/build/models/rental.model.d.ts +2 -2
- package/build/models/report.model.d.ts +2 -2
- package/build/models/session.model.d.ts +2 -2
- package/build/models/settings.model.d.ts +1 -1
- package/build/models/studio-booking-book.model.d.ts +2 -2
- package/build/models/studio-booking.model.d.ts +3 -3
- package/build/models/teamProject.model.d.ts +3 -3
- package/build/models/transactions.model.d.ts +2 -2
- package/build/models/userSession.model.d.ts +2 -2
- package/build/models/withdrawMethods.model.d.ts +2 -2
- package/build/models/withdrawMethods.model.js +3 -3
- package/build/services/paymob.service.d.ts +203 -0
- package/build/services/paymob.service.js +346 -0
- package/build/services/rank.service.d.ts +2 -2
- package/build/types/Bookmarks.d.ts +1 -1
- package/build/types/Plan.d.ts +1 -1
- package/build/types/Projects.d.ts +1 -1
- package/build/types/Rate.d.ts +1 -1
- package/build/types/Ticket.d.ts +1 -1
- package/build/types/User.d.ts +1 -1
- package/build/types/copyrights-order.d.ts +2 -2
- package/build/types/portfolio-post-order.d.ts +2 -2
- package/build/utils/api-feature.d.ts +3 -3
- package/package.json +2 -1
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.PaymobService = void 0;
|
|
39
|
+
const crypto = __importStar(require("crypto"));
|
|
40
|
+
const axios_1 = __importDefault(require("axios"));
|
|
41
|
+
/**
|
|
42
|
+
* Paymob Service Configuration for Flash Integration
|
|
43
|
+
*
|
|
44
|
+
* Required Keys:
|
|
45
|
+
* - secretKey: Your Paymob Secret Key (for API authentication)
|
|
46
|
+
* - publicKey: Your Paymob Public Key (for client-side)
|
|
47
|
+
* - integrationId: Your Paymob Integration ID
|
|
48
|
+
* - hmacSecret: Your Paymob HMAC Secret (for webhook verification)
|
|
49
|
+
*/
|
|
50
|
+
class PaymobService {
|
|
51
|
+
constructor() {
|
|
52
|
+
this.secretKey = process.env.PAYMOB_SECRET_KEY;
|
|
53
|
+
this.publicKey = process.env.PAYMOB_PUBLIC_KEY;
|
|
54
|
+
this.integrationId = parseInt(process.env.PAYMOB_INTEGRATION_ID);
|
|
55
|
+
this.baseUrl = process.env.PAYMOB_BASE_URL || 'https://accept.paymob.com';
|
|
56
|
+
this.hmacSecret = process.env.PAYMOB_HMAC_SECRET;
|
|
57
|
+
console.log('PayMob configuration:', {
|
|
58
|
+
integrationId: this.integrationId,
|
|
59
|
+
publicKey: this.publicKey,
|
|
60
|
+
baseUrl: this.baseUrl,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Creates a payment intention using the Flash API
|
|
65
|
+
* @param amount The payment amount
|
|
66
|
+
* @param billingData The user data for billing
|
|
67
|
+
* @param items The order items
|
|
68
|
+
* @param currency The currency code (default: EGP)
|
|
69
|
+
* @param extras Custom metadata
|
|
70
|
+
* @returns The payment URL and client secret
|
|
71
|
+
*/
|
|
72
|
+
createPaymentIntention(amount, billingData, items, currency = 'EGP', extras) {
|
|
73
|
+
var _a;
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
try {
|
|
76
|
+
const intentionData = {
|
|
77
|
+
amount,
|
|
78
|
+
currency,
|
|
79
|
+
payment_methods: [this.integrationId, 'card'],
|
|
80
|
+
items,
|
|
81
|
+
billing_data: billingData,
|
|
82
|
+
customer: {
|
|
83
|
+
first_name: billingData.first_name,
|
|
84
|
+
last_name: billingData.last_name,
|
|
85
|
+
email: billingData.email,
|
|
86
|
+
extras: extras || {},
|
|
87
|
+
},
|
|
88
|
+
extras: extras || {},
|
|
89
|
+
};
|
|
90
|
+
const response = yield axios_1.default.post(`${this.baseUrl}/v1/intention/`, intentionData, {
|
|
91
|
+
headers: {
|
|
92
|
+
'Authorization': `Token ${this.secretKey}`,
|
|
93
|
+
'Content-Type': 'application/json',
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
// Create the payment URL for Flash Checkout
|
|
97
|
+
const paymentUrl = `${this.baseUrl}/unifiedcheckout/?publicKey=${this.publicKey}&clientSecret=${response.data.client_secret}`;
|
|
98
|
+
return {
|
|
99
|
+
paymentUrl,
|
|
100
|
+
clientSecret: response.data.client_secret,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
const axiosError = error;
|
|
105
|
+
console.log('PayMob intention error:', (_a = axiosError.response) === null || _a === void 0 ? void 0 : _a.data);
|
|
106
|
+
throw new Error(`Failed to create Paymob payment intention: ${axiosError.message}`);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a payment URL with user data and custom metadata
|
|
112
|
+
* @param amount The payment amount
|
|
113
|
+
* @param userId The user ID
|
|
114
|
+
* @param contractId The contract ID
|
|
115
|
+
* @param userData The user data for billing
|
|
116
|
+
* @param serviceType The service type identifier
|
|
117
|
+
* @returns The payment URL and related data
|
|
118
|
+
*/
|
|
119
|
+
createPaymentUrlWithUserData(amount, userId, contractId, userData, serviceType) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
// Create metadata with custom data
|
|
122
|
+
const extras = {
|
|
123
|
+
contractId,
|
|
124
|
+
userId,
|
|
125
|
+
service_type: serviceType,
|
|
126
|
+
booking_id: 'BOOK_' + Date.now(),
|
|
127
|
+
timestamp: new Date().toISOString(),
|
|
128
|
+
};
|
|
129
|
+
const billingData = {
|
|
130
|
+
first_name: userData.firstName,
|
|
131
|
+
last_name: userData.lastName,
|
|
132
|
+
email: userData.email,
|
|
133
|
+
phone_number: userData.phone,
|
|
134
|
+
apartment: '123',
|
|
135
|
+
floor: '1',
|
|
136
|
+
street: '123 Main St',
|
|
137
|
+
building: '123',
|
|
138
|
+
state: 'Cairo',
|
|
139
|
+
country: 'EGY',
|
|
140
|
+
};
|
|
141
|
+
const items = [
|
|
142
|
+
{
|
|
143
|
+
name: `${serviceType} Payment`,
|
|
144
|
+
description: `Payment for contract ${contractId}`,
|
|
145
|
+
amount,
|
|
146
|
+
quantity: 1,
|
|
147
|
+
},
|
|
148
|
+
];
|
|
149
|
+
const result = yield this.createPaymentIntention(amount, billingData, items, 'EGP', extras);
|
|
150
|
+
return { paymentUrl: result.paymentUrl };
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
verifyPayment(hmac, data) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const concatenatedString = Object.entries(data)
|
|
156
|
+
.sort()
|
|
157
|
+
.map(([key, value]) => `${key}=${value}`)
|
|
158
|
+
.join('');
|
|
159
|
+
const calculatedHmac = crypto
|
|
160
|
+
.createHmac('sha512', this.secretKey)
|
|
161
|
+
.update(concatenatedString)
|
|
162
|
+
.digest('hex');
|
|
163
|
+
return calculatedHmac === hmac;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Verify webhook HMAC signature for query parameters
|
|
168
|
+
* Uses the correct field order as per Paymob documentation
|
|
169
|
+
*/
|
|
170
|
+
verifyWebhookHmac(queryParams) {
|
|
171
|
+
// Define the exact order of fields for HMAC calculation as per Paymob docs
|
|
172
|
+
const orderedFields = [
|
|
173
|
+
'amount_cents',
|
|
174
|
+
'created_at',
|
|
175
|
+
'currency',
|
|
176
|
+
'error_occured',
|
|
177
|
+
'has_parent_transaction',
|
|
178
|
+
'id',
|
|
179
|
+
'integration_id',
|
|
180
|
+
'is_3d_secure',
|
|
181
|
+
'is_auth',
|
|
182
|
+
'is_capture',
|
|
183
|
+
'is_refunded',
|
|
184
|
+
'is_standalone_payment',
|
|
185
|
+
'is_voided',
|
|
186
|
+
'order',
|
|
187
|
+
'owner',
|
|
188
|
+
'pending',
|
|
189
|
+
'source_data.pan',
|
|
190
|
+
'source_data.sub_type',
|
|
191
|
+
'source_data.type',
|
|
192
|
+
'success',
|
|
193
|
+
];
|
|
194
|
+
// Concatenate values in the exact order (no keys, just values)
|
|
195
|
+
const concatenatedString = orderedFields.map((field) => queryParams[field] || '').join('');
|
|
196
|
+
// Calculate HMAC using the secret key
|
|
197
|
+
const calculatedHmac = crypto
|
|
198
|
+
.createHmac('sha512', this.hmacSecret)
|
|
199
|
+
.update(concatenatedString)
|
|
200
|
+
.digest('hex');
|
|
201
|
+
return calculatedHmac === queryParams.hmac;
|
|
202
|
+
}
|
|
203
|
+
handleWebhook(webhookData) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
try {
|
|
206
|
+
// Verify the webhook signature
|
|
207
|
+
const isValid = yield this.verifyPayment(webhookData.obj.hmac, webhookData.obj);
|
|
208
|
+
if (!isValid) {
|
|
209
|
+
return { isValid: false, transactionData: null };
|
|
210
|
+
}
|
|
211
|
+
// Extract relevant transaction data
|
|
212
|
+
const transactionData = {
|
|
213
|
+
orderId: webhookData.obj.order.id,
|
|
214
|
+
amount: webhookData.obj.amount_cents / 100, // Convert from cents to actual currency
|
|
215
|
+
success: webhookData.obj.success,
|
|
216
|
+
currency: webhookData.obj.currency,
|
|
217
|
+
transactionId: webhookData.obj.id,
|
|
218
|
+
createdAt: webhookData.obj.created_at,
|
|
219
|
+
isRefunded: webhookData.obj.is_refunded,
|
|
220
|
+
isCaptured: webhookData.obj.is_captured,
|
|
221
|
+
isVoided: webhookData.obj.is_voided,
|
|
222
|
+
metadata: webhookData.obj.order.metadata || {},
|
|
223
|
+
};
|
|
224
|
+
return { isValid: true, transactionData };
|
|
225
|
+
}
|
|
226
|
+
catch (error) {
|
|
227
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
228
|
+
throw new Error(`Failed to handle webhook: ${errorMessage}`);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Handle webhook with query parameters (GET request)
|
|
234
|
+
* This is for webhooks that come as URL query parameters instead of JSON body
|
|
235
|
+
*/
|
|
236
|
+
handleWebhookQuery(queryParams) {
|
|
237
|
+
try {
|
|
238
|
+
// Verify the webhook HMAC signature
|
|
239
|
+
const isValid = this.verifyWebhookHmac(queryParams);
|
|
240
|
+
if (!isValid) {
|
|
241
|
+
return { isValid: false, transactionData: null };
|
|
242
|
+
}
|
|
243
|
+
// Extract and parse transaction data from query parameters
|
|
244
|
+
const transactionData = {
|
|
245
|
+
orderId: parseInt(queryParams.order || '0'),
|
|
246
|
+
amount: parseInt(queryParams.amount_cents || '0') / 100, // Convert from cents
|
|
247
|
+
success: queryParams.success === 'true',
|
|
248
|
+
currency: queryParams.currency || 'EGP',
|
|
249
|
+
transactionId: parseInt(queryParams.id || '0'),
|
|
250
|
+
createdAt: queryParams.created_at || '',
|
|
251
|
+
isRefunded: queryParams.is_refunded === 'true',
|
|
252
|
+
isCaptured: queryParams.is_capture === 'true',
|
|
253
|
+
isVoided: queryParams.is_voided === 'true',
|
|
254
|
+
isAuth: queryParams.is_auth === 'true',
|
|
255
|
+
isStandalone: queryParams.is_standalone_payment === 'true',
|
|
256
|
+
is3dSecure: queryParams.is_3d_secure === 'true',
|
|
257
|
+
sourceData: {
|
|
258
|
+
type: queryParams['source_data.type'] || '',
|
|
259
|
+
pan: queryParams['source_data.pan'] || '',
|
|
260
|
+
subType: queryParams['source_data.sub_type'] || '',
|
|
261
|
+
},
|
|
262
|
+
responseCode: queryParams.txn_response_code || '',
|
|
263
|
+
message: queryParams['data.message'] || '',
|
|
264
|
+
metadata: {}, // Adding the missing metadata property
|
|
265
|
+
};
|
|
266
|
+
return { isValid: true, transactionData };
|
|
267
|
+
}
|
|
268
|
+
catch (error) {
|
|
269
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
270
|
+
throw new Error(`Failed to handle webhook query: ${errorMessage}`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
getTransactionStatus(transactionId) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
try {
|
|
276
|
+
const response = yield axios_1.default.get(`${this.baseUrl}/api/acceptance/transactions/${transactionId}`, {
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
'Authorization': `Token ${this.secretKey}`,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
return {
|
|
283
|
+
success: response.data.success,
|
|
284
|
+
status: response.data.status,
|
|
285
|
+
amount: response.data.amount_cents / 100,
|
|
286
|
+
currency: response.data.currency,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
const axiosError = error;
|
|
291
|
+
throw new Error(`Failed to get transaction status: ${axiosError.message}`);
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Get order details including metadata
|
|
297
|
+
*/
|
|
298
|
+
getOrderDetails(orderId) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
try {
|
|
301
|
+
const response = yield axios_1.default.get(`${this.baseUrl}/api/ecommerce/orders/${orderId}`, {
|
|
302
|
+
headers: {
|
|
303
|
+
'Content-Type': 'application/json',
|
|
304
|
+
'Authorization': `Token ${this.secretKey}`,
|
|
305
|
+
},
|
|
306
|
+
});
|
|
307
|
+
return {
|
|
308
|
+
id: response.data.id,
|
|
309
|
+
amount_cents: response.data.amount_cents,
|
|
310
|
+
currency: response.data.currency,
|
|
311
|
+
items: response.data.items || [],
|
|
312
|
+
created_at: response.data.created_at,
|
|
313
|
+
merchant_order_id: response.data.merchant_order_id,
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
catch (error) {
|
|
317
|
+
const axiosError = error;
|
|
318
|
+
throw new Error(`Failed to get order details: ${axiosError.message}`);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Handle webhook query and fetch items from order
|
|
324
|
+
*/
|
|
325
|
+
handleWebhookQueryWithItems(queryParams) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
try {
|
|
328
|
+
// First verify the webhook
|
|
329
|
+
const webhookResult = this.handleWebhookQuery(queryParams);
|
|
330
|
+
if (!webhookResult.isValid || !webhookResult.transactionData) {
|
|
331
|
+
return { isValid: false, transactionData: null };
|
|
332
|
+
}
|
|
333
|
+
// Fetch order details to get items
|
|
334
|
+
const orderDetails = yield this.getOrderDetails(webhookResult.transactionData.orderId);
|
|
335
|
+
// Combine webhook data with items
|
|
336
|
+
const transactionData = Object.assign(Object.assign({}, webhookResult.transactionData), { items: orderDetails.items });
|
|
337
|
+
return { isValid: true, transactionData };
|
|
338
|
+
}
|
|
339
|
+
catch (error) {
|
|
340
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
341
|
+
throw new Error(`Failed to handle webhook with items: ${errorMessage}`);
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
exports.PaymobService = PaymobService;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/document" />
|
|
2
|
-
/// <reference types="mongoose/types/types" />
|
|
3
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
2
|
/// <reference types="mongoose/types/callback" />
|
|
5
3
|
/// <reference types="mongoose/types/collection" />
|
|
6
4
|
/// <reference types="mongoose/types/connection" />
|
|
7
5
|
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
8
7
|
/// <reference types="mongoose/types/error" />
|
|
9
8
|
/// <reference types="mongoose/types/expressions" />
|
|
10
9
|
/// <reference types="mongoose/types/helpers" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
package/build/types/Plan.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
package/build/types/Rate.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
package/build/types/Ticket.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
package/build/types/User.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/types" />
|
|
2
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
3
2
|
/// <reference types="mongoose/types/callback" />
|
|
4
3
|
/// <reference types="mongoose/types/collection" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/document" />
|
|
2
|
-
/// <reference types="mongoose/types/types" />
|
|
3
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
2
|
/// <reference types="mongoose/types/callback" />
|
|
5
3
|
/// <reference types="mongoose/types/collection" />
|
|
6
4
|
/// <reference types="mongoose/types/connection" />
|
|
7
5
|
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
8
7
|
/// <reference types="mongoose/types/error" />
|
|
9
8
|
/// <reference types="mongoose/types/expressions" />
|
|
10
9
|
/// <reference types="mongoose/types/helpers" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/document" />
|
|
2
|
-
/// <reference types="mongoose/types/types" />
|
|
3
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
4
2
|
/// <reference types="mongoose/types/callback" />
|
|
5
3
|
/// <reference types="mongoose/types/collection" />
|
|
6
4
|
/// <reference types="mongoose/types/connection" />
|
|
7
5
|
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
8
7
|
/// <reference types="mongoose/types/error" />
|
|
9
8
|
/// <reference types="mongoose/types/expressions" />
|
|
10
9
|
/// <reference types="mongoose/types/helpers" />
|
|
@@ -18,6 +17,7 @@
|
|
|
18
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
20
19
|
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
21
|
/// <reference types="mongoose/types/utility" />
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/query" />
|
|
2
|
-
/// <reference types="mongoose/types/document" />
|
|
3
|
-
/// <reference types="mongoose/types/models" />
|
|
4
1
|
/// <reference types="mongoose/types/aggregate" />
|
|
5
2
|
/// <reference types="mongoose/types/callback" />
|
|
6
3
|
/// <reference types="mongoose/types/collection" />
|
|
7
4
|
/// <reference types="mongoose/types/connection" />
|
|
8
5
|
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
9
7
|
/// <reference types="mongoose/types/error" />
|
|
10
8
|
/// <reference types="mongoose/types/expressions" />
|
|
11
9
|
/// <reference types="mongoose/types/helpers" />
|
|
12
10
|
/// <reference types="mongoose/types/middlewares" />
|
|
13
11
|
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
14
13
|
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
14
|
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
15
|
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
17
|
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
18
|
/// <reference types="mongoose/types/schematypes" />
|
|
19
19
|
/// <reference types="mongoose/types/session" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duvdu-v1/duvdu",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.266",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"types": "./build/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
28
28
|
"@typescript-eslint/parser": "^6.19.0",
|
|
29
29
|
"aws-sdk": "^2.1595.0",
|
|
30
|
+
"axios": "^1.10.0",
|
|
30
31
|
"connect-redis": "^7.1.1",
|
|
31
32
|
"express": "^4.18.2",
|
|
32
33
|
"express-async-errors": "^3.1.1",
|