@ambushsoftworks/nestjs-payments-graphql 0.1.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/constants.d.ts +17 -0
- package/dist/constants.js +21 -0
- package/dist/constants.js.map +1 -0
- package/dist/dto/create-installment.input.d.ts +5 -0
- package/dist/dto/create-installment.input.js +39 -0
- package/dist/dto/create-installment.input.js.map +1 -0
- package/dist/dto/create-invoice.input.d.ts +13 -0
- package/dist/dto/create-invoice.input.js +95 -0
- package/dist/dto/create-invoice.input.js.map +1 -0
- package/dist/dto/create-line-item.input.d.ts +10 -0
- package/dist/dto/create-line-item.input.js +77 -0
- package/dist/dto/create-line-item.input.js.map +1 -0
- package/dist/dto/create-payment-plan.input.d.ts +11 -0
- package/dist/dto/create-payment-plan.input.js +76 -0
- package/dist/dto/create-payment-plan.input.js.map +1 -0
- package/dist/dto/create-recurring-invoice.input.d.ts +18 -0
- package/dist/dto/create-recurring-invoice.input.js +117 -0
- package/dist/dto/create-recurring-invoice.input.js.map +1 -0
- package/dist/dto/create-recurring-line-item.input.d.ts +10 -0
- package/dist/dto/create-recurring-line-item.input.js +77 -0
- package/dist/dto/create-recurring-line-item.input.js.map +1 -0
- package/dist/dto/create-refund.input.d.ts +5 -0
- package/dist/dto/create-refund.input.js +43 -0
- package/dist/dto/create-refund.input.js.map +1 -0
- package/dist/dto/index.d.ts +8 -0
- package/dist/dto/index.js +20 -0
- package/dist/dto/index.js.map +1 -0
- package/dist/dto/invoice-filter.input.d.ts +10 -0
- package/dist/dto/invoice-filter.input.js +64 -0
- package/dist/dto/invoice-filter.input.js.map +1 -0
- package/dist/dto/payment-plan-filter.input.d.ts +7 -0
- package/dist/dto/payment-plan-filter.input.js +46 -0
- package/dist/dto/payment-plan-filter.input.js.map +1 -0
- package/dist/dto/record-manual-payment.input.d.ts +9 -0
- package/dist/dto/record-manual-payment.input.js +58 -0
- package/dist/dto/record-manual-payment.input.js.map +1 -0
- package/dist/dto/recurring-invoice-filter.input.d.ts +7 -0
- package/dist/dto/recurring-invoice-filter.input.js +46 -0
- package/dist/dto/recurring-invoice-filter.input.js.map +1 -0
- package/dist/dto/update-invoice-metadata.input.d.ts +3 -0
- package/dist/dto/update-invoice-metadata.input.js +30 -0
- package/dist/dto/update-invoice-metadata.input.js.map +1 -0
- package/dist/dto/update-payment-config.input.d.ts +8 -0
- package/dist/dto/update-payment-config.input.js +61 -0
- package/dist/dto/update-payment-config.input.js.map +1 -0
- package/dist/dto/update-recurring-template.input.d.ts +12 -0
- package/dist/dto/update-recurring-template.input.js +89 -0
- package/dist/dto/update-recurring-template.input.js.map +1 -0
- package/dist/dto/upsert-payment-provider.input.d.ts +5 -0
- package/dist/dto/upsert-payment-provider.input.js +43 -0
- package/dist/dto/upsert-payment-provider.input.js.map +1 -0
- package/dist/dto/validators/is-metadata.d.ts +1 -0
- package/dist/dto/validators/is-metadata.js +41 -0
- package/dist/dto/validators/is-metadata.js.map +1 -0
- package/dist/exceptions/index.d.ts +34 -0
- package/dist/exceptions/index.js +73 -0
- package/dist/exceptions/index.js.map +1 -0
- package/dist/gateways/gateway-registry.service.d.ts +10 -0
- package/dist/gateways/gateway-registry.service.js +45 -0
- package/dist/gateways/gateway-registry.service.js.map +1 -0
- package/dist/gateways/payment-gateway.interface.d.ts +50 -0
- package/dist/gateways/payment-gateway.interface.js +3 -0
- package/dist/gateways/payment-gateway.interface.js.map +1 -0
- package/dist/gateways/recurring-payment-gateway.interface.d.ts +32 -0
- package/dist/gateways/recurring-payment-gateway.interface.js +3 -0
- package/dist/gateways/recurring-payment-gateway.interface.js.map +1 -0
- package/dist/gateways/stripe/stripe-webhook.controller.d.ts +24 -0
- package/dist/gateways/stripe/stripe-webhook.controller.js +150 -0
- package/dist/gateways/stripe/stripe-webhook.controller.js.map +1 -0
- package/dist/gateways/stripe/stripe.gateway.d.ts +84 -0
- package/dist/gateways/stripe/stripe.gateway.js +424 -0
- package/dist/gateways/stripe/stripe.gateway.js.map +1 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +147 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/invoice-repository.interface.d.ts +23 -0
- package/dist/interfaces/invoice-repository.interface.js +3 -0
- package/dist/interfaces/invoice-repository.interface.js.map +1 -0
- package/dist/interfaces/payment-config-repository.interface.d.ts +11 -0
- package/dist/interfaces/payment-config-repository.interface.js +3 -0
- package/dist/interfaces/payment-config-repository.interface.js.map +1 -0
- package/dist/interfaces/payment-customer-repository.interface.d.ts +6 -0
- package/dist/interfaces/payment-customer-repository.interface.js +3 -0
- package/dist/interfaces/payment-customer-repository.interface.js.map +1 -0
- package/dist/interfaces/payment-email.interfaces.d.ts +74 -0
- package/dist/interfaces/payment-email.interfaces.js +3 -0
- package/dist/interfaces/payment-email.interfaces.js.map +1 -0
- package/dist/interfaces/payment-event-listener.interface.d.ts +61 -0
- package/dist/interfaces/payment-event-listener.interface.js +3 -0
- package/dist/interfaces/payment-event-listener.interface.js.map +1 -0
- package/dist/interfaces/payment-plan-repository.interface.d.ts +16 -0
- package/dist/interfaces/payment-plan-repository.interface.js +3 -0
- package/dist/interfaces/payment-plan-repository.interface.js.map +1 -0
- package/dist/interfaces/payment-repository.interface.d.ts +13 -0
- package/dist/interfaces/payment-repository.interface.js +3 -0
- package/dist/interfaces/payment-repository.interface.js.map +1 -0
- package/dist/interfaces/recurring-invoice-repository.interface.d.ts +16 -0
- package/dist/interfaces/recurring-invoice-repository.interface.js +3 -0
- package/dist/interfaces/recurring-invoice-repository.interface.js.map +1 -0
- package/dist/interfaces/refund-repository.interface.d.ts +8 -0
- package/dist/interfaces/refund-repository.interface.js +3 -0
- package/dist/interfaces/refund-repository.interface.js.map +1 -0
- package/dist/interfaces/transaction-manager.interface.d.ts +19 -0
- package/dist/interfaces/transaction-manager.interface.js +3 -0
- package/dist/interfaces/transaction-manager.interface.js.map +1 -0
- package/dist/interfaces/webhook-idempotency-repository.interface.d.ts +5 -0
- package/dist/interfaces/webhook-idempotency-repository.interface.js +3 -0
- package/dist/interfaces/webhook-idempotency-repository.interface.js.map +1 -0
- package/dist/models/e-transfer-instructions.model.d.ts +11 -0
- package/dist/models/e-transfer-instructions.model.js +56 -0
- package/dist/models/e-transfer-instructions.model.js.map +1 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +36 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/invoice-client.model.d.ts +5 -0
- package/dist/models/invoice-client.model.js +32 -0
- package/dist/models/invoice-client.model.js.map +1 -0
- package/dist/models/invoice-line-item.model.d.ts +14 -0
- package/dist/models/invoice-line-item.model.js +72 -0
- package/dist/models/invoice-line-item.model.js.map +1 -0
- package/dist/models/invoice.model.d.ts +86 -0
- package/dist/models/invoice.model.js +210 -0
- package/dist/models/invoice.model.js.map +1 -0
- package/dist/models/online-payment-session.model.d.ts +6 -0
- package/dist/models/online-payment-session.model.js +40 -0
- package/dist/models/online-payment-session.model.js.map +1 -0
- package/dist/models/paginated-invoices.model.d.ts +5 -0
- package/dist/models/paginated-invoices.model.js +19 -0
- package/dist/models/paginated-invoices.model.js.map +1 -0
- package/dist/models/paginated-payment-plans.model.d.ts +5 -0
- package/dist/models/paginated-payment-plans.model.js +19 -0
- package/dist/models/paginated-payment-plans.model.js.map +1 -0
- package/dist/models/paginated-recurring-invoices.model.d.ts +5 -0
- package/dist/models/paginated-recurring-invoices.model.js +19 -0
- package/dist/models/paginated-recurring-invoices.model.js.map +1 -0
- package/dist/models/paginated.model.d.ts +6 -0
- package/dist/models/paginated.model.js +30 -0
- package/dist/models/paginated.model.js.map +1 -0
- package/dist/models/payment-config.model.d.ts +21 -0
- package/dist/models/payment-config.model.js +98 -0
- package/dist/models/payment-config.model.js.map +1 -0
- package/dist/models/payment-method-setup.model.d.ts +4 -0
- package/dist/models/payment-method-setup.model.js +32 -0
- package/dist/models/payment-method-setup.model.js.map +1 -0
- package/dist/models/payment-plan-installment.model.d.ts +12 -0
- package/dist/models/payment-plan-installment.model.js +57 -0
- package/dist/models/payment-plan-installment.model.js.map +1 -0
- package/dist/models/payment-plan.model.d.ts +25 -0
- package/dist/models/payment-plan.model.js +105 -0
- package/dist/models/payment-plan.model.js.map +1 -0
- package/dist/models/payment.model.d.ts +23 -0
- package/dist/models/payment.model.js +102 -0
- package/dist/models/payment.model.js.map +1 -0
- package/dist/models/recurring-invoice-line-item.model.d.ts +14 -0
- package/dist/models/recurring-invoice-line-item.model.js +72 -0
- package/dist/models/recurring-invoice-line-item.model.js.map +1 -0
- package/dist/models/recurring-invoice.model.d.ts +43 -0
- package/dist/models/recurring-invoice.model.js +157 -0
- package/dist/models/recurring-invoice.model.js.map +1 -0
- package/dist/models/refund.model.d.ts +15 -0
- package/dist/models/refund.model.js +73 -0
- package/dist/models/refund.model.js.map +1 -0
- package/dist/payments.module.d.ts +54 -0
- package/dist/payments.module.js +211 -0
- package/dist/payments.module.js.map +1 -0
- package/dist/register-payment-enums.d.ts +1 -0
- package/dist/register-payment-enums.js +18 -0
- package/dist/register-payment-enums.js.map +1 -0
- package/dist/services/customer.service.d.ts +15 -0
- package/dist/services/customer.service.js +63 -0
- package/dist/services/customer.service.js.map +1 -0
- package/dist/services/default-payment-email-templates.d.ts +8 -0
- package/dist/services/default-payment-email-templates.js +249 -0
- package/dist/services/default-payment-email-templates.js.map +1 -0
- package/dist/services/e-transfer.service.d.ts +35 -0
- package/dist/services/e-transfer.service.js +93 -0
- package/dist/services/e-transfer.service.js.map +1 -0
- package/dist/services/invoice-number.service.d.ts +9 -0
- package/dist/services/invoice-number.service.js +56 -0
- package/dist/services/invoice-number.service.js.map +1 -0
- package/dist/services/invoice.service.d.ts +66 -0
- package/dist/services/invoice.service.js +293 -0
- package/dist/services/invoice.service.js.map +1 -0
- package/dist/services/payment-config.service.d.ts +26 -0
- package/dist/services/payment-config.service.js +90 -0
- package/dist/services/payment-config.service.js.map +1 -0
- package/dist/services/payment-email.service.d.ts +20 -0
- package/dist/services/payment-email.service.js +153 -0
- package/dist/services/payment-email.service.js.map +1 -0
- package/dist/services/payment-plan.service.d.ts +47 -0
- package/dist/services/payment-plan.service.js +264 -0
- package/dist/services/payment-plan.service.js.map +1 -0
- package/dist/services/payment.service.d.ts +65 -0
- package/dist/services/payment.service.js +532 -0
- package/dist/services/payment.service.js.map +1 -0
- package/dist/services/recurring-interval.util.d.ts +3 -0
- package/dist/services/recurring-interval.util.js +43 -0
- package/dist/services/recurring-interval.util.js.map +1 -0
- package/dist/services/recurring-invoice.service.d.ts +88 -0
- package/dist/services/recurring-invoice.service.js +450 -0
- package/dist/services/recurring-invoice.service.js.map +1 -0
- package/dist/services/refund.service.d.ts +44 -0
- package/dist/services/refund.service.js +373 -0
- package/dist/services/refund.service.js.map +1 -0
- package/dist/services/static-branding-resolver.d.ts +6 -0
- package/dist/services/static-branding-resolver.js +13 -0
- package/dist/services/static-branding-resolver.js.map +1 -0
- package/dist/types/index.d.ts +240 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/payment-customer.types.d.ts +15 -0
- package/dist/types/payment-customer.types.js +3 -0
- package/dist/types/payment-customer.types.js.map +1 -0
- package/dist/types/recurring-invoice.types.d.ts +84 -0
- package/dist/types/recurring-invoice.types.js +3 -0
- package/dist/types/recurring-invoice.types.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,43 @@
|
|
|
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.CreateRefundInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let CreateRefundInput = class CreateRefundInput {
|
|
16
|
+
};
|
|
17
|
+
exports.CreateRefundInput = CreateRefundInput;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)(),
|
|
20
|
+
(0, class_validator_1.IsUUID)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateRefundInput.prototype, "paymentId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
25
|
+
nullable: true,
|
|
26
|
+
description: 'Amount in cents. If omitted, a full refund is issued.',
|
|
27
|
+
}),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsInt)(),
|
|
30
|
+
(0, class_validator_1.Min)(1),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CreateRefundInput.prototype, "amount", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateRefundInput.prototype, "reason", void 0);
|
|
40
|
+
exports.CreateRefundInput = CreateRefundInput = __decorate([
|
|
41
|
+
(0, graphql_1.InputType)()
|
|
42
|
+
], CreateRefundInput);
|
|
43
|
+
//# sourceMappingURL=create-refund.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refund.input.js","sourceRoot":"","sources":["../../src/dto/create-refund.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,qDAOyB;AAGlB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAmB7B,CAAA;AAnBY,8CAAiB;AAG5B;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,wBAAM,GAAE;;oDACS;AASlB;IAPC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uDAAuD;KACrE,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACS;AAMhB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;iDACA;4BAlBL,iBAAiB;IAD7B,IAAA,mBAAS,GAAE;GACC,iBAAiB,CAmB7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CreateInvoiceInput } from './create-invoice.input';
|
|
2
|
+
export { CreateLineItemInput } from './create-line-item.input';
|
|
3
|
+
export { RecordManualPaymentInput } from './record-manual-payment.input';
|
|
4
|
+
export { UpdatePaymentConfigInput } from './update-payment-config.input';
|
|
5
|
+
export { UpdateInvoiceMetadataInput } from './update-invoice-metadata.input';
|
|
6
|
+
export { UpsertPaymentProviderInput } from './upsert-payment-provider.input';
|
|
7
|
+
export { InvoiceFilterInput } from './invoice-filter.input';
|
|
8
|
+
export { IsMetadata } from './validators/is-metadata';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IsMetadata = exports.InvoiceFilterInput = exports.UpsertPaymentProviderInput = exports.UpdateInvoiceMetadataInput = exports.UpdatePaymentConfigInput = exports.RecordManualPaymentInput = exports.CreateLineItemInput = exports.CreateInvoiceInput = void 0;
|
|
4
|
+
var create_invoice_input_1 = require("./create-invoice.input");
|
|
5
|
+
Object.defineProperty(exports, "CreateInvoiceInput", { enumerable: true, get: function () { return create_invoice_input_1.CreateInvoiceInput; } });
|
|
6
|
+
var create_line_item_input_1 = require("./create-line-item.input");
|
|
7
|
+
Object.defineProperty(exports, "CreateLineItemInput", { enumerable: true, get: function () { return create_line_item_input_1.CreateLineItemInput; } });
|
|
8
|
+
var record_manual_payment_input_1 = require("./record-manual-payment.input");
|
|
9
|
+
Object.defineProperty(exports, "RecordManualPaymentInput", { enumerable: true, get: function () { return record_manual_payment_input_1.RecordManualPaymentInput; } });
|
|
10
|
+
var update_payment_config_input_1 = require("./update-payment-config.input");
|
|
11
|
+
Object.defineProperty(exports, "UpdatePaymentConfigInput", { enumerable: true, get: function () { return update_payment_config_input_1.UpdatePaymentConfigInput; } });
|
|
12
|
+
var update_invoice_metadata_input_1 = require("./update-invoice-metadata.input");
|
|
13
|
+
Object.defineProperty(exports, "UpdateInvoiceMetadataInput", { enumerable: true, get: function () { return update_invoice_metadata_input_1.UpdateInvoiceMetadataInput; } });
|
|
14
|
+
var upsert_payment_provider_input_1 = require("./upsert-payment-provider.input");
|
|
15
|
+
Object.defineProperty(exports, "UpsertPaymentProviderInput", { enumerable: true, get: function () { return upsert_payment_provider_input_1.UpsertPaymentProviderInput; } });
|
|
16
|
+
var invoice_filter_input_1 = require("./invoice-filter.input");
|
|
17
|
+
Object.defineProperty(exports, "InvoiceFilterInput", { enumerable: true, get: function () { return invoice_filter_input_1.InvoiceFilterInput; } });
|
|
18
|
+
var is_metadata_1 = require("./validators/is-metadata");
|
|
19
|
+
Object.defineProperty(exports, "IsMetadata", { enumerable: true, get: function () { return is_metadata_1.IsMetadata; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAC3B,mEAA+D;AAAtD,6HAAA,mBAAmB,OAAA;AAC5B,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAC3B,wDAAsD;AAA7C,yGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InvoiceStatus } from '../types';
|
|
2
|
+
export declare class InvoiceFilterInput {
|
|
3
|
+
status?: InvoiceStatus;
|
|
4
|
+
clientDetailsId?: string;
|
|
5
|
+
referenceType?: string;
|
|
6
|
+
referenceId?: string;
|
|
7
|
+
createdAfter?: Date;
|
|
8
|
+
createdBefore?: Date;
|
|
9
|
+
recurringInvoiceId?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.InvoiceFilterInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const invoice_model_1 = require("../models/invoice.model");
|
|
16
|
+
let InvoiceFilterInput = class InvoiceFilterInput {
|
|
17
|
+
};
|
|
18
|
+
exports.InvoiceFilterInput = InvoiceFilterInput;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => invoice_model_1.InvoiceStatusEnum, { nullable: true }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], InvoiceFilterInput.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], InvoiceFilterInput.prototype, "clientDetailsId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(100),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], InvoiceFilterInput.prototype, "referenceType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsUUID)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], InvoiceFilterInput.prototype, "referenceId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsDate)(),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], InvoiceFilterInput.prototype, "createdAfter", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsDate)(),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], InvoiceFilterInput.prototype, "createdBefore", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsUUID)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], InvoiceFilterInput.prototype, "recurringInvoiceId", void 0);
|
|
61
|
+
exports.InvoiceFilterInput = InvoiceFilterInput = __decorate([
|
|
62
|
+
(0, graphql_1.InputType)()
|
|
63
|
+
], InvoiceFilterInput);
|
|
64
|
+
//# sourceMappingURL=invoice-filter.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-filter.input.js","sourceRoot":"","sources":["../../src/dto/invoice-filter.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAMyB;AACzB,2DAA4D;AAIrD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAmC9B,CAAA;AAnCY,gDAAkB;AAG7B;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,4BAAU,GAAE;;kDACU;AAKvB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACgB;AAMzB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;yDACQ;AAKvB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACY;AAKrB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACM,IAAI;wDAAC;AAKpB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACO,IAAI;yDAAC;AAKrB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACmB;6BAlCjB,kBAAkB;IAD9B,IAAA,mBAAS,GAAE;GACC,kBAAkB,CAmC9B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.PaymentPlanFilterInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const invoice_model_1 = require("../models/invoice.model");
|
|
16
|
+
let PaymentPlanFilterInput = class PaymentPlanFilterInput {
|
|
17
|
+
};
|
|
18
|
+
exports.PaymentPlanFilterInput = PaymentPlanFilterInput;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => invoice_model_1.PaymentPlanStatusEnum, { nullable: true }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PaymentPlanFilterInput.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PaymentPlanFilterInput.prototype, "clientDetailsId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(100),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PaymentPlanFilterInput.prototype, "referenceType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsUUID)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PaymentPlanFilterInput.prototype, "referenceId", void 0);
|
|
43
|
+
exports.PaymentPlanFilterInput = PaymentPlanFilterInput = __decorate([
|
|
44
|
+
(0, graphql_1.InputType)()
|
|
45
|
+
], PaymentPlanFilterInput);
|
|
46
|
+
//# sourceMappingURL=payment-plan-filter.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-plan-filter.input.js","sourceRoot":"","sources":["../../src/dto/payment-plan-filter.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAA0E;AAC1E,2DAAgE;AAIzD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAoBlC,CAAA;AApBY,wDAAsB;AAGjC;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,4BAAU,GAAE;;sDACc;AAK3B;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACgB;AAMzB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;6DACQ;AAKvB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACY;iCAnBV,sBAAsB;IADlC,IAAA,mBAAS,GAAE;GACC,sBAAsB,CAoBlC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.RecordManualPaymentInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const invoice_model_1 = require("../models/invoice.model");
|
|
16
|
+
let RecordManualPaymentInput = class RecordManualPaymentInput {
|
|
17
|
+
};
|
|
18
|
+
exports.RecordManualPaymentInput = RecordManualPaymentInput;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(),
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RecordManualPaymentInput.prototype, "invoiceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
26
|
+
(0, class_validator_1.IsInt)(),
|
|
27
|
+
(0, class_validator_1.Min)(1),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], RecordManualPaymentInput.prototype, "amount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)(() => invoice_model_1.PaymentMethodEnum),
|
|
32
|
+
(0, class_validator_1.IsEnum)(invoice_model_1.PaymentMethodEnum),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], RecordManualPaymentInput.prototype, "method", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(200),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], RecordManualPaymentInput.prototype, "referenceNumber", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], RecordManualPaymentInput.prototype, "notes", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsDate)(),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], RecordManualPaymentInput.prototype, "processedAt", void 0);
|
|
55
|
+
exports.RecordManualPaymentInput = RecordManualPaymentInput = __decorate([
|
|
56
|
+
(0, graphql_1.InputType)()
|
|
57
|
+
], RecordManualPaymentInput);
|
|
58
|
+
//# sourceMappingURL=record-manual-payment.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-manual-payment.input.js","sourceRoot":"","sources":["../../src/dto/record-manual-payment.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,qDASyB;AACzB,2DAA4D;AAGrD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CA8BpC,CAAA;AA9BY,4DAAwB;AAGnC;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,wBAAM,GAAE;;2DACS;AAKlB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;IAChB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;wDACQ;AAIf;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iCAAiB,CAAC;IAC9B,IAAA,wBAAM,EAAC,iCAAiB,CAAC;;wDACA;AAM1B;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;iEACU;AAMzB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;uDACD;AAKf;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACK,IAAI;6DAAC;mCA7BR,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CA8BpC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.RecurringInvoiceFilterInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const recurring_invoice_model_1 = require("../models/recurring-invoice.model");
|
|
16
|
+
let RecurringInvoiceFilterInput = class RecurringInvoiceFilterInput {
|
|
17
|
+
};
|
|
18
|
+
exports.RecurringInvoiceFilterInput = RecurringInvoiceFilterInput;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => recurring_invoice_model_1.RecurringInvoiceStatusEnum, { nullable: true }),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RecurringInvoiceFilterInput.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsUUID)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RecurringInvoiceFilterInput.prototype, "clientDetailsId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(100),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], RecurringInvoiceFilterInput.prototype, "referenceType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsUUID)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], RecurringInvoiceFilterInput.prototype, "referenceId", void 0);
|
|
43
|
+
exports.RecurringInvoiceFilterInput = RecurringInvoiceFilterInput = __decorate([
|
|
44
|
+
(0, graphql_1.InputType)()
|
|
45
|
+
], RecurringInvoiceFilterInput);
|
|
46
|
+
//# sourceMappingURL=recurring-invoice-filter.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurring-invoice-filter.input.js","sourceRoot":"","sources":["../../src/dto/recurring-invoice-filter.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAA0E;AAC1E,+EAA+E;AAIxE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAoBvC,CAAA;AApBY,kEAA2B;AAGtC;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oDAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAA,4BAAU,GAAE;;2DACmB;AAKhC;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oEACgB;AAMzB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;kEACQ;AAKvB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACY;sCAnBV,2BAA2B;IADvC,IAAA,mBAAS,GAAE;GACC,2BAA2B,CAoBvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateInvoiceMetadataInput = void 0;
|
|
16
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
+
const graphql_type_json_1 = __importDefault(require("graphql-type-json"));
|
|
18
|
+
const is_metadata_1 = require("./validators/is-metadata");
|
|
19
|
+
let UpdateInvoiceMetadataInput = class UpdateInvoiceMetadataInput {
|
|
20
|
+
};
|
|
21
|
+
exports.UpdateInvoiceMetadataInput = UpdateInvoiceMetadataInput;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
24
|
+
(0, is_metadata_1.IsMetadata)(),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], UpdateInvoiceMetadataInput.prototype, "metadata", void 0);
|
|
27
|
+
exports.UpdateInvoiceMetadataInput = UpdateInvoiceMetadataInput = __decorate([
|
|
28
|
+
(0, graphql_1.InputType)()
|
|
29
|
+
], UpdateInvoiceMetadataInput);
|
|
30
|
+
//# sourceMappingURL=update-invoice-metadata.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-invoice-metadata.input.js","sourceRoot":"","sources":["../../src/dto/update-invoice-metadata.input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,0EAA4C;AAC5C,0DAAsD;AAG/C,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAItC,CAAA;AAJY,gEAA0B;AAGrC;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAA,wBAAU,GAAE;;4DAC2B;qCAH7B,0BAA0B;IADtC,IAAA,mBAAS,GAAE;GACC,0BAA0B,CAItC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.UpdatePaymentConfigInput = void 0;
|
|
13
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
let UpdatePaymentConfigInput = class UpdatePaymentConfigInput {
|
|
16
|
+
};
|
|
17
|
+
exports.UpdatePaymentConfigInput = UpdatePaymentConfigInput;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsBoolean)(),
|
|
22
|
+
__metadata("design:type", Boolean)
|
|
23
|
+
], UpdatePaymentConfigInput.prototype, "eTransferEnabled", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpdatePaymentConfigInput.prototype, "eTransferEmail", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(255),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpdatePaymentConfigInput.prototype, "eTransferRecipient", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], UpdatePaymentConfigInput.prototype, "eTransferAutoDeposit", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.MaxLength)(3),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UpdatePaymentConfigInput.prototype, "defaultCurrency", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsNumber)(),
|
|
54
|
+
(0, class_validator_1.Min)(0),
|
|
55
|
+
(0, class_validator_1.Max)(1),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UpdatePaymentConfigInput.prototype, "defaultTaxRate", void 0);
|
|
58
|
+
exports.UpdatePaymentConfigInput = UpdatePaymentConfigInput = __decorate([
|
|
59
|
+
(0, graphql_1.InputType)()
|
|
60
|
+
], UpdatePaymentConfigInput);
|
|
61
|
+
//# sourceMappingURL=update-payment-config.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-payment-config.input.js","sourceRoot":"","sources":["../../src/dto/update-payment-config.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA0D;AAC1D,qDASyB;AAGlB,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAkCpC,CAAA;AAlCY,4DAAwB;AAInC;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;kEACe;AAK3B;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;gEACc;AAMxB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;oEACa;AAK5B;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sEACmB;AAM/B;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;iEACY;AAOzB;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,CAAC,CAAC;;gEACiB;mCAjCb,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CAkCpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CreateRecurringLineItemInput } from './create-recurring-line-item.input';
|
|
2
|
+
export declare class UpdateRecurringTemplateInput {
|
|
3
|
+
taxRate?: number;
|
|
4
|
+
currency?: string;
|
|
5
|
+
notes?: string;
|
|
6
|
+
clientNotes?: string;
|
|
7
|
+
referenceType?: string;
|
|
8
|
+
referenceId?: string;
|
|
9
|
+
metadata?: Record<string, string>;
|
|
10
|
+
autoSend?: boolean;
|
|
11
|
+
lineItems?: CreateRecurringLineItemInput[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateRecurringTemplateInput = void 0;
|
|
16
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
const graphql_type_json_1 = __importDefault(require("graphql-type-json"));
|
|
20
|
+
const create_recurring_line_item_input_1 = require("./create-recurring-line-item.input");
|
|
21
|
+
const is_metadata_1 = require("./validators/is-metadata");
|
|
22
|
+
let UpdateRecurringTemplateInput = class UpdateRecurringTemplateInput {
|
|
23
|
+
};
|
|
24
|
+
exports.UpdateRecurringTemplateInput = UpdateRecurringTemplateInput;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.Min)(0),
|
|
30
|
+
(0, class_validator_1.Max)(1),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], UpdateRecurringTemplateInput.prototype, "taxRate", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.MaxLength)(3),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UpdateRecurringTemplateInput.prototype, "currency", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], UpdateRecurringTemplateInput.prototype, "notes", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], UpdateRecurringTemplateInput.prototype, "clientNotes", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
(0, class_validator_1.MaxLength)(100),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UpdateRecurringTemplateInput.prototype, "referenceType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsUUID)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateRecurringTemplateInput.prototype, "referenceId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, is_metadata_1.IsMetadata)(),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], UpdateRecurringTemplateInput.prototype, "metadata", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsBoolean)(),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], UpdateRecurringTemplateInput.prototype, "autoSend", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, graphql_1.Field)(() => [create_recurring_line_item_input_1.CreateRecurringLineItemInput], { nullable: true }),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
83
|
+
(0, class_transformer_1.Type)(() => create_recurring_line_item_input_1.CreateRecurringLineItemInput),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], UpdateRecurringTemplateInput.prototype, "lineItems", void 0);
|
|
86
|
+
exports.UpdateRecurringTemplateInput = UpdateRecurringTemplateInput = __decorate([
|
|
87
|
+
(0, graphql_1.InputType)()
|
|
88
|
+
], UpdateRecurringTemplateInput);
|
|
89
|
+
//# sourceMappingURL=update-recurring-template.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-recurring-template.input.js","sourceRoot":"","sources":["../../src/dto/update-recurring-template.input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA0D;AAC1D,yDAAyC;AACzC,qDAUyB;AACzB,0EAA4C;AAC5C,yFAAkF;AAClF,0DAAsD;AAG/C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAoDxC,CAAA;AApDY,oEAA4B;AAMvC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,CAAC,CAAC;;6DACU;AAMjB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;;8DACK;AAMlB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;2DACD;AAMf;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;iEACK;AAMrB;IAJC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;mEACQ;AAKvB;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iEACY;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAU,GAAE;;8DACqB;AAKlC;IAHC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8DACO;AAMnB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,+DAA4B,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/D,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+DAA4B,CAAC;;+DACE;uCAnDhC,4BAA4B;IADxC,IAAA,mBAAS,GAAE;GACC,4BAA4B,CAoDxC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpsertPaymentProviderInput = void 0;
|
|
16
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
17
|
+
const graphql_type_json_1 = __importDefault(require("graphql-type-json"));
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
let UpsertPaymentProviderInput = class UpsertPaymentProviderInput {
|
|
20
|
+
};
|
|
21
|
+
exports.UpsertPaymentProviderInput = UpsertPaymentProviderInput;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, graphql_1.Field)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(50),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpsertPaymentProviderInput.prototype, "providerType", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, graphql_1.Field)({ nullable: true, defaultValue: true }),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], UpsertPaymentProviderInput.prototype, "isActive", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], UpsertPaymentProviderInput.prototype, "config", void 0);
|
|
40
|
+
exports.UpsertPaymentProviderInput = UpsertPaymentProviderInput = __decorate([
|
|
41
|
+
(0, graphql_1.InputType)()
|
|
42
|
+
], UpsertPaymentProviderInput);
|
|
43
|
+
//# sourceMappingURL=upsert-payment-provider.input.js.map
|