@silexpert/core 1.3.66 → 1.3.68-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.
- package/dist/cjs/api/resources/Refund.d.ts +21 -1
- package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/cjs/api/resources/Refund.js +12 -0
- package/dist/cjs/api/resources/Refund.js.map +1 -1
- package/dist/cjs/types/Enum/PaymentMethod.d.ts +10 -29
- package/dist/cjs/types/Enum/PaymentMethod.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PaymentMethod.js +11 -31
- package/dist/cjs/types/Enum/PaymentMethod.js.map +1 -1
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +1 -2
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +0 -6
- package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js +50 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +0 -3
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +1 -10
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAppNotification.d.ts +3 -3
- package/dist/cjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAppNotification.js.map +1 -1
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts +2 -4
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +0 -2
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -2
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/subscription.d.ts +21 -0
- package/dist/cjs/utils/subscription.d.ts.map +1 -0
- package/dist/cjs/utils/subscription.js +97 -0
- package/dist/cjs/utils/subscription.js.map +1 -0
- package/dist/mjs/api/resources/Refund.d.ts +21 -1
- package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/mjs/api/resources/Refund.js +12 -0
- package/dist/mjs/api/resources/Refund.js.map +1 -1
- package/dist/mjs/types/Enum/PaymentMethod.d.ts +10 -29
- package/dist/mjs/types/Enum/PaymentMethod.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PaymentMethod.js +10 -30
- package/dist/mjs/types/Enum/PaymentMethod.js.map +1 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +1 -2
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +1 -8
- package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js +52 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +0 -3
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +0 -9
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAppNotification.d.ts +3 -3
- package/dist/mjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAppNotification.js.map +1 -1
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts +2 -4
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +0 -2
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -2
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -2
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/subscription.d.ts +21 -0
- package/dist/mjs/utils/subscription.d.ts.map +1 -0
- package/dist/mjs/utils/subscription.js +92 -0
- package/dist/mjs/utils/subscription.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Refund.ts +17 -1
- package/ts/types/Enum/PaymentMethod.ts +10 -30
- package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +2 -7
- package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +31 -0
- package/ts/types/Interface/api/stripe/Create.ts +0 -7
- package/ts/types/Interface/models/IAppNotification.ts +3 -3
- package/ts/types/Interface/models/IMobileNotificationLog.ts +2 -4
- package/ts/types/Interface/models/IPayment.ts +1 -3
- package/ts/types/index.ts +1 -2
- package/ts/utils/subscription.ts +124 -0
- package/dist/cjs/types/Enum/PaymentAttempt.d.ts +0 -6
- package/dist/cjs/types/Enum/PaymentAttempt.d.ts.map +0 -1
- package/dist/cjs/types/Enum/PaymentAttempt.js +0 -10
- package/dist/cjs/types/Enum/PaymentAttempt.js.map +0 -1
- package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts +0 -15
- package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IPaymentAttempt.js +0 -3
- package/dist/cjs/types/Interface/models/IPaymentAttempt.js.map +0 -1
- package/dist/mjs/types/Enum/PaymentAttempt.d.ts +0 -6
- package/dist/mjs/types/Enum/PaymentAttempt.d.ts.map +0 -1
- package/dist/mjs/types/Enum/PaymentAttempt.js +0 -7
- package/dist/mjs/types/Enum/PaymentAttempt.js.map +0 -1
- package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts +0 -15
- package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IPaymentAttempt.js +0 -2
- package/dist/mjs/types/Interface/models/IPaymentAttempt.js.map +0 -1
- package/ts/types/Enum/PaymentAttempt.ts +0 -5
- package/ts/types/Interface/models/IPaymentAttempt.ts +0 -16
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.stripeTaxRate = void 0;
|
|
5
|
+
exports.getDefaultOffer = getDefaultOffer;
|
|
6
|
+
const ComptaType_1 = require("../types/Enum/ComptaType");
|
|
7
|
+
const LegalForm_1 = require("../types/Enum/LegalForm");
|
|
8
|
+
const TaxSystem_1 = require("../types/Enum/TaxSystem");
|
|
9
|
+
const isTestKey = ['dev', 'staging', 'development', 'test', 'gitlab'].includes((_a = process.env.NODE_ENV) !== null && _a !== void 0 ? _a : '');
|
|
10
|
+
// AE | Annuel | Forfait Bilan complet
|
|
11
|
+
const ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey ? 'price_1PFyHHIHo1jEedppVjwrqPr1' : 'price_1MRyi1IHo1jEedppRKdY06Re';
|
|
12
|
+
// AE | Mensuel | Forfait Bilan complet
|
|
13
|
+
const ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey ? 'price_1LBJ4xIHo1jEedppylxr3fFa' : 'price_1LBI57IHo1jEedpppnxskfgv';
|
|
14
|
+
// Entreprise | Annuel | Forfait entreprise à l'IR
|
|
15
|
+
const ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey
|
|
16
|
+
? 'price_1PFyG8IHo1jEedpp73TUxiJd'
|
|
17
|
+
: 'price_1MRyiJIHo1jEedppUe7MnPtW';
|
|
18
|
+
// Entreprise | Mensuel | Forfaitentreprise à l'IR
|
|
19
|
+
const ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey
|
|
20
|
+
? 'price_1LBJ5YIHo1jEedppzwTErh9M'
|
|
21
|
+
: 'price_1LBIA3IHo1jEedpp2taeQ7yW';
|
|
22
|
+
// Entreprise | Annuel | Forfait entreprise à l'IS
|
|
23
|
+
const ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey
|
|
24
|
+
? 'price_1PFwE3IHo1jEedpphgWrgwkA'
|
|
25
|
+
: 'price_1MRyiWIHo1jEedppp5tnksZe';
|
|
26
|
+
// Entreprise | Mensuel | Forfait entreprise à l'IS
|
|
27
|
+
const ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey
|
|
28
|
+
? 'price_1LBJ69IHo1jEedppAWLeOk3I'
|
|
29
|
+
: 'price_1LBIB7IHo1jEedppocxyc1ft';
|
|
30
|
+
exports.stripeTaxRate = isTestKey ? 'txr_1I9X9MIHo1jEedppM0DqL4iE' : 'txr_1I9X5wIHo1jEedppYttGFc0N';
|
|
31
|
+
const list = [
|
|
32
|
+
{
|
|
33
|
+
name: 'Offre auto-entrepreneur',
|
|
34
|
+
isYearly: true,
|
|
35
|
+
isMicro: true,
|
|
36
|
+
key: ID_SUBSCRIPTION_MICRO_ANNUAL,
|
|
37
|
+
isCashBased: true,
|
|
38
|
+
isSocietyTax: false,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Offre auto-entrepreneur',
|
|
42
|
+
isYearly: false,
|
|
43
|
+
isMicro: true,
|
|
44
|
+
key: ID_SUBSCRIPTION_MICRO_MENSUAL,
|
|
45
|
+
isCashBased: true,
|
|
46
|
+
isSocietyTax: false,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Offre entreprise IS',
|
|
50
|
+
isYearly: true,
|
|
51
|
+
isMicro: false,
|
|
52
|
+
key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,
|
|
53
|
+
isCashBased: false,
|
|
54
|
+
isSocietyTax: true,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Offre entreprise IS',
|
|
58
|
+
isMicro: false,
|
|
59
|
+
isYearly: false,
|
|
60
|
+
key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,
|
|
61
|
+
isCashBased: false,
|
|
62
|
+
isSocietyTax: true,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Offre entreprise IR',
|
|
66
|
+
isMicro: false,
|
|
67
|
+
isYearly: true,
|
|
68
|
+
isCashBased: true,
|
|
69
|
+
isSocietyTax: false,
|
|
70
|
+
key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Offre entreprise IR',
|
|
74
|
+
isMicro: false,
|
|
75
|
+
isYearly: false,
|
|
76
|
+
key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,
|
|
77
|
+
isCashBased: true,
|
|
78
|
+
isSocietyTax: false,
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
function getDefaultOffer(params) {
|
|
82
|
+
const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;
|
|
83
|
+
const isMicro = LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;
|
|
84
|
+
const isCashBased = idComptaType
|
|
85
|
+
? [ComptaType_1.ComptaType.CASH_BASED, ComptaType_1.ComptaType.CASH_BASED_ASSISTANCE, ComptaType_1.ComptaType.CASH_BASED_SEIZURE].includes(idComptaType)
|
|
86
|
+
: false;
|
|
87
|
+
const isSocietyTax = idTaxSystem === TaxSystem_1.TaxSystem.IS;
|
|
88
|
+
const newPlan = list.find((l) => l.isMicro === isMicro &&
|
|
89
|
+
l.isYearly === isYearly &&
|
|
90
|
+
l.isCashBased === isCashBased &&
|
|
91
|
+
l.isSocietyTax === isSocietyTax);
|
|
92
|
+
if (newPlan) {
|
|
93
|
+
return newPlan;
|
|
94
|
+
}
|
|
95
|
+
return isYearly ? list[2] : list[3];
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../ts/utils/subscription.ts"],"names":[],"mappings":";;;;AAqGA,0CAsBC;AA3HD,yDAAsD;AACtD,uDAA4D;AAC5D,uDAAoD;AAkBpD,MAAM,SAAS,GAAY,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,mCAAI,EAAE,CAAC,CAAC;AAEpH,sCAAsC;AACtC,MAAM,4BAA4B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,gCAAgC,CAAC;AAEtH,uCAAuC;AACvC,MAAM,6BAA6B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,gCAAgC,CAAC;AAEvH,kDAAkD;AAClD,MAAM,iCAAiC,GAAG,CAAC,SAAS;IAClD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAErC,kDAAkD;AAClD,MAAM,kCAAkC,GAAG,CAAC,SAAS;IACnD,CAAC,CAAC,gCAAgC;IAClC,CAAC,CAAC,gCAAgC,CAAC;AAErC,kDAAk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C,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;KACpB;CACF,CAAC;AAEF,SAAgB,eAAe,CAAC,MAAmB;IACjD,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,OAAO,GAAG,6BAAiB,CAAC,iBAAiB,KAAK,WAAW,CAAC;IACpE,MAAM,WAAW,GAAG,YAAY;QAC9B,CAAC,CAAC,CAAC,uBAAU,CAAC,UAAU,EAAE,uBAAU,CAAC,qBAAqB,EAAE,uBAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;QACjH,CAAC,CAAC,KAAK,CAAC;IACV,MAAM,YAAY,GAAG,WAAW,KAAK,qBAAS,CAAC,EAAE,CAAC;IAElD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CACvB,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,OAAO,KAAK,OAAO;QACrB,CAAC,CAAC,QAAQ,KAAK,QAAQ;QACvB,CAAC,CAAC,WAAW,KAAK,WAAW;QAC7B,CAAC,CAAC,YAAY,KAAK,YAAY,CAClC,CAAC;IAEF,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { ComptaType } from '../types/Enum/ComptaType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { TaxSystem } from '../types/Enum/TaxSystem';\n\ninterface OfferParams {\n idLegalForm: LegalFormTypeEnum | null;\n idComptaType: ComptaType | null;\n idTaxSystem: TaxSystem | null;\n isYearly?: boolean;\n}\n\ninterface StripeOffer {\n name: string;\n isYearly: boolean;\n isMicro: boolean;\n key: string;\n isCashBased: boolean;\n isSocietyTax?: boolean;\n}\n\nconst isTestKey: boolean = ['dev', 'staging', 'development', 'test', 'gitlab'].includes(process.env.NODE_ENV ?? '');\n\n// AE | Annuel | Forfait Bilan complet\nconst ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey ? 'price_1PFyHHIHo1jEedppVjwrqPr1' : 'price_1MRyi1IHo1jEedppRKdY06Re';\n\n// AE | Mensuel | Forfait Bilan complet\nconst ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey ? 'price_1LBJ4xIHo1jEedppylxr3fFa' : 'price_1LBI57IHo1jEedpppnxskfgv';\n\n// Entreprise | Annuel | Forfait entreprise à l'IR\nconst ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey\n ? 'price_1PFyG8IHo1jEedpp73TUxiJd'\n : 'price_1MRyiJIHo1jEedppUe7MnPtW';\n\n// Entreprise | Mensuel | Forfaitentreprise à l'IR\nconst ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey\n ? 'price_1LBJ5YIHo1jEedppzwTErh9M'\n : 'price_1LBIA3IHo1jEedpp2taeQ7yW';\n\n// Entreprise | Annuel | Forfait entreprise à l'IS\nconst ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey\n ? 'price_1PFwE3IHo1jEedpphgWrgwkA'\n : 'price_1MRyiWIHo1jEedppp5tnksZe';\n\n// Entreprise | Mensuel | Forfait entreprise à l'IS\nconst ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey\n ? 'price_1LBJ69IHo1jEedppAWLeOk3I'\n : 'price_1LBIB7IHo1jEedppocxyc1ft';\n\nexport const stripeTaxRate = isTestKey ? 'txr_1I9X9MIHo1jEedppM0DqL4iE' : 'txr_1I9X5wIHo1jEedppYttGFc0N';\n\nconst list: StripeOffer[] = [\n {\n name: 'Offre auto-entrepreneur',\n isYearly: true,\n isMicro: true,\n key: ID_SUBSCRIPTION_MICRO_ANNUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n {\n name: 'Offre auto-entrepreneur',\n isYearly: false,\n isMicro: true,\n key: ID_SUBSCRIPTION_MICRO_MENSUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n {\n name: 'Offre entreprise IS',\n isYearly: true,\n isMicro: false,\n key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,\n isCashBased: false,\n isSocietyTax: true,\n },\n {\n name: 'Offre entreprise IS',\n isMicro: false,\n isYearly: false,\n key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,\n isCashBased: false,\n isSocietyTax: true,\n },\n {\n name: 'Offre entreprise IR',\n isMicro: false,\n isYearly: true,\n isCashBased: true,\n isSocietyTax: false,\n key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,\n },\n {\n name: 'Offre entreprise IR',\n isMicro: false,\n isYearly: false,\n key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,\n isCashBased: true,\n isSocietyTax: false,\n },\n];\n\nexport function getDefaultOffer(params: OfferParams): StripeOffer {\n const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;\n\n const isMicro = LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;\n const isCashBased = idComptaType\n ? [ComptaType.CASH_BASED, ComptaType.CASH_BASED_ASSISTANCE, ComptaType.CASH_BASED_SEIZURE].includes(idComptaType)\n : false;\n const isSocietyTax = idTaxSystem === TaxSystem.IS;\n\n const newPlan = list.find(\n (l) =>\n l.isMicro === isMicro &&\n l.isYearly === isYearly &&\n l.isCashBased === isCashBased &&\n l.isSocietyTax === isSocietyTax,\n );\n\n if (newPlan) {\n return newPlan;\n }\n\n return isYearly ? list[2] : list[3];\n}\n"]}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IRefund } from '../../types';
|
|
2
|
+
import { IRefund, QueryRefundPaginated } from '../../types';
|
|
3
3
|
export declare class Refund extends Resource {
|
|
4
4
|
create(payload: IRefund): Promise<IRefund>;
|
|
5
5
|
update(id: number, params: Partial<IRefund>): Promise<boolean>;
|
|
6
|
+
getAll(query: QueryRefundPaginated): Promise<import("axios").AxiosResponse<never>>;
|
|
7
|
+
getOneById(id: number): Promise<import("axios").AxiosResponse<never>>;
|
|
8
|
+
validate(id: number, params: Partial<IRefund>): Promise<import("axios").AxiosResponse<{
|
|
9
|
+
id?: number | undefined;
|
|
10
|
+
amount?: number | null | undefined;
|
|
11
|
+
comment?: string | null | undefined;
|
|
12
|
+
refundDate?: Date | null | undefined;
|
|
13
|
+
processed?: boolean | undefined;
|
|
14
|
+
isAmountChecked?: boolean | undefined;
|
|
15
|
+
idRefundMotif?: number | undefined;
|
|
16
|
+
idSociety?: number | undefined;
|
|
17
|
+
idUserDemand?: number | undefined;
|
|
18
|
+
idFile?: number | null | undefined;
|
|
19
|
+
createdAt?: (Date | null) | undefined;
|
|
20
|
+
updatedAt?: (Date | null) | undefined;
|
|
21
|
+
society?: import("../../types").ISociety | undefined;
|
|
22
|
+
file?: import("../../types").IFile | undefined;
|
|
23
|
+
userDemand?: import("../../types").IUser | undefined;
|
|
24
|
+
}>>;
|
|
25
|
+
delete(id: number): Promise<import("axios").AxiosResponse<never>>;
|
|
6
26
|
}
|
|
7
27
|
//# sourceMappingURL=Refund.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refund.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Refund.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Refund.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Refund.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5D,qBAAa,MAAO,SAAQ,QAAQ;IAC3B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAG1C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9D,MAAM,CAAC,KAAK,EAAE,oBAAoB;IAIlC,UAAU,CAAC,EAAE,EAAE,MAAM;IAIrB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;IAI7C,MAAM,CAAC,EAAE,EAAE,MAAM;CAGzB"}
|
|
@@ -6,5 +6,17 @@ export class Refund extends Resource {
|
|
|
6
6
|
update(id, params) {
|
|
7
7
|
return this.axios.$patch(`/refunds/${id}`, { ...params });
|
|
8
8
|
}
|
|
9
|
+
getAll(query) {
|
|
10
|
+
return this.axios.$get('/refunds', { params: query });
|
|
11
|
+
}
|
|
12
|
+
getOneById(id) {
|
|
13
|
+
return this.axios.$get(`/refunds/${id}`);
|
|
14
|
+
}
|
|
15
|
+
validate(id, params) {
|
|
16
|
+
return this.axios.$put(`/refunds/${id}`, { ...params });
|
|
17
|
+
}
|
|
18
|
+
delete(id) {
|
|
19
|
+
return this.axios.$delete(`/refunds/${id}`);
|
|
20
|
+
}
|
|
9
21
|
}
|
|
10
22
|
//# sourceMappingURL=Refund.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refund.js","sourceRoot":"","sources":["../../../../ts/api/resources/Refund.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAC3B,MAAM,CAAC,OAAgB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IACM,MAAM,CAAC,EAAU,EAAE,MAAwB;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IRefund } from '../../types';\n\nexport class Refund extends Resource {\n public create(payload: IRefund): Promise<IRefund> {\n return this.axios.$post('/refunds', payload);\n }\n public update(id: number, params: Partial<IRefund>): Promise<boolean> {\n return this.axios.$patch(`/refunds/${id}`, { ...params });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Refund.js","sourceRoot":"","sources":["../../../../ts/api/resources/Refund.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAC3B,MAAM,CAAC,OAAgB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IACM,MAAM,CAAC,EAAU,EAAE,MAAwB;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,KAA2B;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACxD,CAAC;IAEM,UAAU,CAAC,EAAU;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAEM,QAAQ,CAAC,EAAU,EAAE,MAAwB;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { IRefund, QueryRefundPaginated } from '../../types';\n\nexport class Refund extends Resource {\n public create(payload: IRefund): Promise<IRefund> {\n return this.axios.$post('/refunds', payload);\n }\n public update(id: number, params: Partial<IRefund>): Promise<boolean> {\n return this.axios.$patch(`/refunds/${id}`, { ...params });\n }\n\n public getAll(query: QueryRefundPaginated) {\n return this.axios.$get('/refunds', { params: query });\n }\n\n public getOneById(id: number) {\n return this.axios.$get(`/refunds/${id}`);\n }\n\n public validate(id: number, params: Partial<IRefund>) {\n return this.axios.$put(`/refunds/${id}`, { ...params });\n }\n\n public delete(id: number) {\n return this.axios.$delete(`/refunds/${id}`);\n }\n}\n"]}
|
|
@@ -1,79 +1,60 @@
|
|
|
1
|
-
export declare enum PaymentMethodIds {
|
|
2
|
-
DIRECT_DEBIT = 1,
|
|
3
|
-
BANK_TRANSFER = 2,
|
|
4
|
-
BANK_CARD = 3,
|
|
5
|
-
BANK_CHECK = 4,
|
|
6
|
-
DIRECT_DEBIT_REJECTION_1 = 5,
|
|
7
|
-
DIRECT_DEBIT_REJECTION_2 = 6,
|
|
8
|
-
VARIOUS_UNPAID = 7,
|
|
9
|
-
STRIPE_ECB = 8,
|
|
10
|
-
STRIPE = 9,
|
|
11
|
-
CASH = 10,
|
|
12
|
-
STRIPE_ECB_REJECTION = 11
|
|
13
|
-
}
|
|
14
1
|
export declare const PaymentMethod: {
|
|
15
2
|
DIRECT_DEBIT: {
|
|
16
|
-
id:
|
|
3
|
+
id: number;
|
|
17
4
|
name: string;
|
|
18
5
|
isSpecial: number;
|
|
19
6
|
isOverdue: number;
|
|
20
7
|
};
|
|
21
8
|
BANK_TRANSFER: {
|
|
22
|
-
id:
|
|
9
|
+
id: number;
|
|
23
10
|
name: string;
|
|
24
11
|
isSpecial: number;
|
|
25
12
|
isOverdue: number;
|
|
26
13
|
};
|
|
27
14
|
BANK_CARD: {
|
|
28
|
-
id:
|
|
15
|
+
id: number;
|
|
29
16
|
name: string;
|
|
30
17
|
isSpecial: number;
|
|
31
18
|
isOverdue: number;
|
|
32
19
|
};
|
|
33
20
|
BANK_CHECK: {
|
|
34
|
-
id:
|
|
21
|
+
id: number;
|
|
35
22
|
name: string;
|
|
36
23
|
isSpecial: number;
|
|
37
24
|
isOverdue: number;
|
|
38
25
|
};
|
|
39
26
|
DIRECT_DEBIT_REJECTION_1: {
|
|
40
|
-
id:
|
|
27
|
+
id: number;
|
|
41
28
|
name: string;
|
|
42
29
|
isSpecial: number;
|
|
43
30
|
isOverdue: number;
|
|
44
31
|
};
|
|
45
32
|
DIRECT_DEBIT_REJECTION_2: {
|
|
46
|
-
id:
|
|
33
|
+
id: number;
|
|
47
34
|
name: string;
|
|
48
35
|
isSpecial: number;
|
|
49
36
|
isOverdue: number;
|
|
50
37
|
};
|
|
51
38
|
VARIOUS_UNPAID: {
|
|
52
|
-
id:
|
|
39
|
+
id: number;
|
|
53
40
|
name: string;
|
|
54
41
|
isSpecial: number;
|
|
55
42
|
isOverdue: number;
|
|
56
43
|
};
|
|
57
44
|
STRIPE_ECB: {
|
|
58
|
-
id:
|
|
45
|
+
id: number;
|
|
59
46
|
name: string;
|
|
60
47
|
isSpecial: number;
|
|
61
48
|
isOverdue: number;
|
|
62
49
|
};
|
|
63
50
|
STRIPE: {
|
|
64
|
-
id:
|
|
51
|
+
id: number;
|
|
65
52
|
name: string;
|
|
66
53
|
isSpecial: number;
|
|
67
54
|
isOverdue: number;
|
|
68
55
|
};
|
|
69
56
|
CASH: {
|
|
70
|
-
id:
|
|
71
|
-
name: string;
|
|
72
|
-
isSpecial: number;
|
|
73
|
-
isOverdue: number;
|
|
74
|
-
};
|
|
75
|
-
STRIPE_ECB_REJECTION: {
|
|
76
|
-
id: PaymentMethodIds;
|
|
57
|
+
id: number;
|
|
77
58
|
name: string;
|
|
78
59
|
isSpecial: number;
|
|
79
60
|
isOverdue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethod.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/PaymentMethod.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"PaymentMethod.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/PaymentMethod.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC"}
|
|
@@ -1,84 +1,64 @@
|
|
|
1
|
-
export var PaymentMethodIds;
|
|
2
|
-
(function (PaymentMethodIds) {
|
|
3
|
-
PaymentMethodIds[PaymentMethodIds["DIRECT_DEBIT"] = 1] = "DIRECT_DEBIT";
|
|
4
|
-
PaymentMethodIds[PaymentMethodIds["BANK_TRANSFER"] = 2] = "BANK_TRANSFER";
|
|
5
|
-
PaymentMethodIds[PaymentMethodIds["BANK_CARD"] = 3] = "BANK_CARD";
|
|
6
|
-
PaymentMethodIds[PaymentMethodIds["BANK_CHECK"] = 4] = "BANK_CHECK";
|
|
7
|
-
PaymentMethodIds[PaymentMethodIds["DIRECT_DEBIT_REJECTION_1"] = 5] = "DIRECT_DEBIT_REJECTION_1";
|
|
8
|
-
PaymentMethodIds[PaymentMethodIds["DIRECT_DEBIT_REJECTION_2"] = 6] = "DIRECT_DEBIT_REJECTION_2";
|
|
9
|
-
PaymentMethodIds[PaymentMethodIds["VARIOUS_UNPAID"] = 7] = "VARIOUS_UNPAID";
|
|
10
|
-
PaymentMethodIds[PaymentMethodIds["STRIPE_ECB"] = 8] = "STRIPE_ECB";
|
|
11
|
-
PaymentMethodIds[PaymentMethodIds["STRIPE"] = 9] = "STRIPE";
|
|
12
|
-
PaymentMethodIds[PaymentMethodIds["CASH"] = 10] = "CASH";
|
|
13
|
-
PaymentMethodIds[PaymentMethodIds["STRIPE_ECB_REJECTION"] = 11] = "STRIPE_ECB_REJECTION";
|
|
14
|
-
})(PaymentMethodIds || (PaymentMethodIds = {}));
|
|
15
1
|
export const PaymentMethod = {
|
|
16
2
|
DIRECT_DEBIT: {
|
|
17
|
-
id:
|
|
3
|
+
id: 1,
|
|
18
4
|
name: 'Prélèvement',
|
|
19
5
|
isSpecial: 0,
|
|
20
6
|
isOverdue: 0,
|
|
21
7
|
},
|
|
22
8
|
BANK_TRANSFER: {
|
|
23
|
-
id:
|
|
9
|
+
id: 2,
|
|
24
10
|
name: 'Virement',
|
|
25
11
|
isSpecial: 0,
|
|
26
12
|
isOverdue: 0,
|
|
27
13
|
},
|
|
28
14
|
BANK_CARD: {
|
|
29
|
-
id:
|
|
15
|
+
id: 3,
|
|
30
16
|
name: 'CB',
|
|
31
17
|
isSpecial: 0,
|
|
32
18
|
isOverdue: 0,
|
|
33
19
|
},
|
|
34
20
|
BANK_CHECK: {
|
|
35
|
-
id:
|
|
21
|
+
id: 4,
|
|
36
22
|
name: 'Chèque',
|
|
37
23
|
isSpecial: 0,
|
|
38
24
|
isOverdue: 0,
|
|
39
25
|
},
|
|
40
26
|
DIRECT_DEBIT_REJECTION_1: {
|
|
41
|
-
id:
|
|
27
|
+
id: 5,
|
|
42
28
|
name: 'Rejet de prélèvement 1',
|
|
43
29
|
isSpecial: 1,
|
|
44
30
|
isOverdue: 1,
|
|
45
31
|
},
|
|
46
32
|
DIRECT_DEBIT_REJECTION_2: {
|
|
47
|
-
id:
|
|
33
|
+
id: 6,
|
|
48
34
|
name: 'Rejet de prélèvement 2',
|
|
49
35
|
isSpecial: 1,
|
|
50
36
|
isOverdue: 1,
|
|
51
37
|
},
|
|
52
38
|
VARIOUS_UNPAID: {
|
|
53
|
-
id:
|
|
39
|
+
id: 7,
|
|
54
40
|
name: 'Impayés divers',
|
|
55
41
|
isSpecial: 1,
|
|
56
42
|
isOverdue: 1,
|
|
57
43
|
},
|
|
58
44
|
STRIPE_ECB: {
|
|
59
|
-
id:
|
|
45
|
+
id: 8,
|
|
60
46
|
name: 'Stripe (ECB)',
|
|
61
47
|
isSpecial: 0,
|
|
62
48
|
isOverdue: 0,
|
|
63
49
|
},
|
|
64
50
|
STRIPE: {
|
|
65
|
-
id:
|
|
51
|
+
id: 9,
|
|
66
52
|
name: 'Stripe',
|
|
67
53
|
isSpecial: 0,
|
|
68
54
|
isOverdue: 0,
|
|
69
55
|
},
|
|
70
56
|
CASH: {
|
|
71
|
-
id:
|
|
57
|
+
id: 10,
|
|
72
58
|
name: 'Espèces',
|
|
73
59
|
isSpecial: 0,
|
|
74
60
|
isOverdue: 0,
|
|
75
61
|
},
|
|
76
|
-
STRIPE_ECB_REJECTION: {
|
|
77
|
-
id: PaymentMethodIds.STRIPE_ECB_REJECTION,
|
|
78
|
-
name: 'Rejet Stripe ECB',
|
|
79
|
-
isSpecial: 1,
|
|
80
|
-
isOverdue: 1,
|
|
81
|
-
},
|
|
82
62
|
};
|
|
83
63
|
export const PaymentParams = {
|
|
84
64
|
NO_INVOICE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../ts/types/Enum/PaymentMethod.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../../ts/types/Enum/PaymentMethod.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,aAAa,EAAE;QACb,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,SAAS,EAAE;QACT,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,UAAU,EAAE;QACV,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,wBAAwB;QAC9B,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,wBAAwB;QAC9B,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,cAAc,EAAE;QACd,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,UAAU,EAAE;QACV,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,CAAC;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,UAAU,EAAE;QACV,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,mBAAmB;KAC3B;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,kBAAkB;KAC1B;CACF,CAAC","sourcesContent":["export const PaymentMethod = {\n DIRECT_DEBIT: {\n id: 1,\n name: 'Prélèvement',\n isSpecial: 0,\n isOverdue: 0,\n },\n BANK_TRANSFER: {\n id: 2,\n name: 'Virement',\n isSpecial: 0,\n isOverdue: 0,\n },\n BANK_CARD: {\n id: 3,\n name: 'CB',\n isSpecial: 0,\n isOverdue: 0,\n },\n BANK_CHECK: {\n id: 4,\n name: 'Chèque',\n isSpecial: 0,\n isOverdue: 0,\n },\n DIRECT_DEBIT_REJECTION_1: {\n id: 5,\n name: 'Rejet de prélèvement 1',\n isSpecial: 1,\n isOverdue: 1,\n },\n DIRECT_DEBIT_REJECTION_2: {\n id: 6,\n name: 'Rejet de prélèvement 2',\n isSpecial: 1,\n isOverdue: 1,\n },\n VARIOUS_UNPAID: {\n id: 7,\n name: 'Impayés divers',\n isSpecial: 1,\n isOverdue: 1,\n },\n STRIPE_ECB: {\n id: 8,\n name: 'Stripe (ECB)',\n isSpecial: 0,\n isOverdue: 0,\n },\n STRIPE: {\n id: 9,\n name: 'Stripe',\n isSpecial: 0,\n isOverdue: 0,\n },\n CASH: {\n id: 10,\n name: 'Espèces',\n isSpecial: 0,\n isOverdue: 0,\n },\n};\n\nexport const PaymentParams = {\n NO_INVOICE: {\n id: 1,\n name: 'Pas de facture',\n field: 'noInternalInvoice',\n },\n HIDDEN_TO_CUSTOMER: {\n id: 2,\n name: 'Caché pour le client',\n field: 'isHiddenCustomer',\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegenerateInternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts"],"names":[],"mappings":"AAGA,qBAAa,2BAA2B;IAItC,SAAS,
|
|
1
|
+
{"version":3,"file":"RegenerateInternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts"],"names":[],"mappings":"AAGA,qBAAa,2BAA2B;IAItC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAIzB,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -7,11 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsArray,
|
|
10
|
+
import { IsArray, IsNumber, IsOptional } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
export class RegenerateInternalInvoicing {
|
|
13
13
|
idSociety;
|
|
14
|
-
idFile;
|
|
15
14
|
month;
|
|
16
15
|
year;
|
|
17
16
|
}
|
|
@@ -21,12 +20,6 @@ __decorate([
|
|
|
21
20
|
IsArray(),
|
|
22
21
|
__metadata("design:type", Array)
|
|
23
22
|
], RegenerateInternalInvoicing.prototype, "idSociety", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
ApiPropertyOptional(),
|
|
26
|
-
IsOptional(),
|
|
27
|
-
IsInt(),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], RegenerateInternalInvoicing.prototype, "idFile", void 0);
|
|
30
23
|
__decorate([
|
|
31
24
|
ApiProperty(),
|
|
32
25
|
IsNumber(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegenerateInternalInvoicing.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RegenerateInternalInvoicing.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,2BAA2B;IAItC,SAAS,CAAgB;IAIzB,KAAK,CAAS;IAId,IAAI,CAAS;CACd;AATC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;8BACC,KAAK;8DAAS;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0DACG;AAId;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACE","sourcesContent":["import { IsArray, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class RegenerateInternalInvoicing {\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n idSociety: Array<number>;\n\n @ApiProperty()\n @IsNumber()\n month: number;\n\n @ApiProperty()\n @IsNumber()\n year: number;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
2
|
+
import { Order } from '../BaseRequest';
|
|
3
|
+
export declare class QueryRefundPaginated extends RequiredQueryPaginate implements Order {
|
|
4
|
+
search?: string;
|
|
5
|
+
year: number;
|
|
6
|
+
month?: number;
|
|
7
|
+
motif?: number;
|
|
8
|
+
orderBy?: string;
|
|
9
|
+
descending?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=QueryRefundPaginated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryRefundPaginated.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/refund/QueryRefundPaginated.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,qBAAa,oBAAqB,SAAQ,qBAAsB,YAAW,KAAK;IAE9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
11
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
12
|
+
import { IsBoolean, IsInt, IsOptional } from 'class-validator';
|
|
13
|
+
export class QueryRefundPaginated extends RequiredQueryPaginate {
|
|
14
|
+
search;
|
|
15
|
+
year;
|
|
16
|
+
month;
|
|
17
|
+
motif;
|
|
18
|
+
orderBy;
|
|
19
|
+
descending;
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
ApiPropertyOptional(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], QueryRefundPaginated.prototype, "search", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
ApiProperty(),
|
|
27
|
+
IsInt(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], QueryRefundPaginated.prototype, "year", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
ApiPropertyOptional(),
|
|
32
|
+
IsInt(),
|
|
33
|
+
IsOptional(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], QueryRefundPaginated.prototype, "month", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
ApiPropertyOptional(),
|
|
38
|
+
IsInt(),
|
|
39
|
+
IsOptional(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], QueryRefundPaginated.prototype, "motif", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ApiPropertyOptional(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], QueryRefundPaginated.prototype, "orderBy", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ApiPropertyOptional(),
|
|
48
|
+
IsBoolean(),
|
|
49
|
+
IsOptional(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], QueryRefundPaginated.prototype, "descending", void 0);
|
|
52
|
+
//# sourceMappingURL=QueryRefundPaginated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryRefundPaginated.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/refund/QueryRefundPaginated.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IAE7D,MAAM,CAAU;IAIhB,IAAI,CAAS;IAKb,KAAK,CAAU;IAKf,KAAK,CAAU;IAGf,OAAO,CAAU;IAKjB,UAAU,CAAW;CACtB;AAvBC;IADC,mBAAmB,EAAE;;oDACN;AAIhB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;kDACK;AAKb;IAHC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;mDACE;AAKf;IAHC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,UAAU,EAAE;;mDACE;AAGf;IADC,mBAAmB,EAAE;;qDACL;AAKjB;IAHC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,UAAU,EAAE;;wDACQ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { RequiredQueryPaginate } from '../BasePaginate';\nimport { Order } from '../BaseRequest';\nimport { IsBoolean, IsInt, IsOptional } from 'class-validator';\n\nexport class QueryRefundPaginated extends RequiredQueryPaginate implements Order {\n @ApiPropertyOptional()\n search?: string;\n\n @ApiProperty()\n @IsInt()\n year: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n month?: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n motif?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n descending?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,E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a,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC"}
|
|
@@ -142,13 +142,4 @@ __decorate([
|
|
|
142
142
|
ApiPropertyOptional(),
|
|
143
143
|
__metadata("design:type", Object)
|
|
144
144
|
], CreatePaymentIntent.prototype, "metadata", void 0);
|
|
145
|
-
export class PostProcessPaymentAutomatically {
|
|
146
|
-
idSociety;
|
|
147
|
-
}
|
|
148
|
-
__decorate([
|
|
149
|
-
ApiPropertyOptional(),
|
|
150
|
-
IsInt(),
|
|
151
|
-
IsOptional(),
|
|
152
|
-
__metadata("design:type", Number)
|
|
153
|
-
], PostProcessPaymentAutomatically.prototype, "idSociety", void 0);
|
|
154
145
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ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,CAAS;CACjB;AATC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0DACU;AAIlB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACO;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wDACK;AAGlB,MAAM,OAAO,4BAA4B;IAIvC,gBAAgB,CAAU;IAI1B,GAAG,CAAS;IAKZ,SAAS,CAAU;CACpB;AAVC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sEACe;AAI1B;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACC;AAKZ;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+DACQ;AAGrB,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;IAIzB,eAAe,CAAS;IAIxB,aAAa,CAAS;IAGtB,QAAQ,CAAwB;CACjC;AAZC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4DACa;AAIxB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0DACc;AAGtB;IADC,mBAAmB,EAAE;;qDACU","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
|
2
2
|
import { ISociety } from './ISociety';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
export interface IAppNotification {
|
|
5
|
-
id
|
|
5
|
+
id: number;
|
|
6
6
|
title: string;
|
|
7
7
|
message: string;
|
|
8
8
|
link?: string;
|
|
@@ -14,7 +14,7 @@ export interface IAppNotification {
|
|
|
14
14
|
idBankAccount?: number;
|
|
15
15
|
createdAt?: Date | null;
|
|
16
16
|
updatedAt?: Date | null;
|
|
17
|
-
society
|
|
18
|
-
user
|
|
17
|
+
society: ISociety;
|
|
18
|
+
user: IUser;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=IAppNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAppNotification.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IAppNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,
|
|
1
|
+
{"version":3,"file":"IAppNotification.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IAppNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,oBAAoB,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAppNotification.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IAppNotification.ts"],"names":[],"mappings":"","sourcesContent":["import { NotificationTypeEnum } from '../../Enum/NotificationType';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\nexport interface IAppNotification {\n id
|
|
1
|
+
{"version":3,"file":"IAppNotification.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IAppNotification.ts"],"names":[],"mappings":"","sourcesContent":["import { NotificationTypeEnum } from '../../Enum/NotificationType';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\nexport interface IAppNotification {\n id: number;\n title: string;\n message: string;\n link?: string;\n documentId?: number;\n read: boolean;\n idNotificationtype: NotificationTypeEnum;\n idSociety: number;\n idUser: number;\n idBankAccount?: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // associations\n society: ISociety;\n user: IUser;\n}\n"]}
|
|
@@ -2,10 +2,8 @@ import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
|
2
2
|
export interface IMobileNotificationLog {
|
|
3
3
|
id: number;
|
|
4
4
|
idType: NotificationTypeEnum;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** @deprecated useless */
|
|
8
|
-
nextSend?: Date | null;
|
|
5
|
+
lastSent: Date | null;
|
|
6
|
+
nextSend: Date | null;
|
|
9
7
|
success: boolean;
|
|
10
8
|
error: string | null;
|
|
11
9
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMobileNotificationLog.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IMobileNotificationLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"IMobileNotificationLog.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IMobileNotificationLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IMobileNotificationLog.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IMobileNotificationLog.ts"],"names":[],"mappings":"","sourcesContent":["import { NotificationTypeEnum } from '../../Enum/NotificationType';\n\nexport interface IMobileNotificationLog {\n id: number;\n idType: NotificationTypeEnum;\n
|
|
1
|
+
{"version":3,"file":"IMobileNotificationLog.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IMobileNotificationLog.ts"],"names":[],"mappings":"","sourcesContent":["import { NotificationTypeEnum } from '../../Enum/NotificationType';\n\nexport interface IMobileNotificationLog {\n id: number;\n idType: NotificationTypeEnum;\n lastSent: Date | null;\n nextSend: Date | null;\n success: boolean;\n error: string | null;\n count: number;\n errorCount: number;\n idBankAccount: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
|