@lyxa.ai/core 1.4.33 → 1.4.34
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/dist/libraries/firebase/fcmService.js +5 -4
- package/dist/libraries/firebase/fcmService.js.map +1 -1
- package/dist/libraries/mongo/models/cart-participant.model.d.ts +2 -0
- package/dist/libraries/mongo/models/cart-participant.model.js +6 -0
- package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/order-finance.model.d.ts +2 -0
- package/dist/libraries/mongo/models/embedded/order-finance.model.js +6 -0
- package/dist/libraries/mongo/models/embedded/order-finance.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payment-infromation.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/payment-record.model.d.ts +9 -0
- package/dist/libraries/mongo/models/embedded/payment-record.model.js +48 -0
- package/dist/libraries/mongo/models/embedded/payment-record.model.js.map +1 -0
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/enum.d.ts +4 -0
- package/dist/types/utilities/enum.js +8 -2
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +24 -1
- package/dist/types/utilities/validation/common-validation.js +9 -1
- package/dist/types/utilities/validation/common-validation.js.map +1 -1
- package/dist/utilities/enum.d.ts +4 -0
- package/dist/utilities/enum.js +8 -2
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +24 -1
- package/dist/utilities/validation/common-validation.js +9 -1
- package/dist/utilities/validation/common-validation.js.map +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/payment-attempt.model.d.ts +0 -10
- package/dist/libraries/mongo/models/embedded/payment-attempt.model.js +0 -60
- package/dist/libraries/mongo/models/embedded/payment-attempt.model.js.map +0 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PaymentAttempt = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
-
const payment_infromation_model_1 = require("./payment-infromation.model");
|
|
16
|
-
class PaymentAttempt {
|
|
17
|
-
timestamp;
|
|
18
|
-
status;
|
|
19
|
-
amount;
|
|
20
|
-
currency;
|
|
21
|
-
paymentInformation;
|
|
22
|
-
errorCode;
|
|
23
|
-
errorMessage;
|
|
24
|
-
}
|
|
25
|
-
exports.PaymentAttempt = PaymentAttempt;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ required: true, default: Date.now }),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], PaymentAttempt.prototype, "timestamp", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typegoose_1.prop)({
|
|
32
|
-
type: String,
|
|
33
|
-
enum: Object.values(enum_1.PaymentStatus),
|
|
34
|
-
required: true,
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], PaymentAttempt.prototype, "status", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typegoose_1.prop)({ type: Number, required: true }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], PaymentAttempt.prototype, "amount", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typegoose_1.prop)({
|
|
44
|
-
type: String,
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], PaymentAttempt.prototype, "currency", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation }),
|
|
50
|
-
__metadata("design:type", payment_infromation_model_1.PaymentInformation)
|
|
51
|
-
], PaymentAttempt.prototype, "paymentInformation", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typegoose_1.prop)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], PaymentAttempt.prototype, "errorCode", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typegoose_1.prop)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], PaymentAttempt.prototype, "errorMessage", void 0);
|
|
60
|
-
//# sourceMappingURL=payment-attempt.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-attempt.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/payment-attempt.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAA2D;AAC3D,2EAAiE;AAEjE,MAAa,cAAc;IAE1B,SAAS,CAAO;IAOhB,MAAM,CAAS;IAGf,MAAM,CAAS;IAKf,QAAQ,CAAS;IAGjB,kBAAkB,CAAsB;IAGxC,SAAS,CAAU;IAGnB,YAAY,CAAU;CACtB;AA3BD,wCA2BC;AAzBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;8BACjC,IAAI;iDAAC;AAOhB;IALC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAa,CAAC;QAClC,QAAQ,EAAE,IAAI;KACd,CAAC;;8CACa;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACxB;AAKf;IAHC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;KACZ,CAAC;;gDACe;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACpB,8CAAkB;0DAAC;AAGxC;IADC,IAAA,gBAAI,GAAE;;iDACY;AAGnB;IADC,IAAA,gBAAI,GAAE;;oDACe","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { PaymentStatus } from '../../../../utilities/enum';\nimport { PaymentInformation } from './payment-infromation.model';\n\nexport class PaymentAttempt {\n\t@prop({ required: true, default: Date.now })\n\ttimestamp: Date;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: Object.values(PaymentStatus),\n\t\trequired: true,\n\t})\n\tstatus: string;\n\n\t@prop({ type: Number, required: true })\n\tamount: number;\n\n\t@prop({\n\t\ttype: String,\n\t})\n\tcurrency: string; // need to update with enum; discussion needed with shajeeb bhai\n\n\t@prop({ type: () => PaymentInformation })\n\tpaymentInformation?: PaymentInformation;\n\n\t@prop()\n\terrorCode?: string;\n\n\t@prop()\n\terrorMessage?: string;\n}\n"]}
|