@antelopejs/interface-dms-saas 0.8.0 → 0.10.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/README.md +7 -7
- package/dist/db/models/billingSettings.model.d.ts +3 -3
- package/dist/db/models/creditNotes.model.d.ts +3 -3
- package/dist/db/models/features.model.d.ts +3 -3
- package/dist/db/models/invoices.model.d.ts +3 -3
- package/dist/db/models/legalDocuments.model.d.ts +3 -3
- package/dist/db/models/planMigrations.model.d.ts +3 -3
- package/dist/db/models/plans.model.d.ts +3 -3
- package/dist/db/models/platformNotes.model.d.ts +3 -3
- package/dist/db/models/refunds.model.d.ts +3 -3
- package/dist/db/models/segments.model.d.ts +3 -3
- package/dist/db/models/stripeWebhookEvents.model.d.ts +3 -3
- package/dist/db/models/tenantBillingInfo.model.d.ts +3 -3
- package/dist/db/models/tenantBillingState.model.d.ts +3 -3
- package/dist/db/models/tenantSubscriptions.model.d.ts +3 -3
- package/dist/db/models/trialConsumptions.model.d.ts +3 -3
- package/dist/db/models/userSegments.model.d.ts +3 -3
- package/dist/db/tables/creditNotes.table.d.ts +1 -26
- package/dist/db/tables/creditNotes.table.js +5 -107
- package/dist/db/tables/creditNotes.table.js.map +1 -1
- package/dist/db/tables/internal/credit-notes-refunds.table.d.ts +40 -0
- package/dist/db/tables/internal/credit-notes-refunds.table.js +164 -0
- package/dist/db/tables/internal/credit-notes-refunds.table.js.map +1 -0
- package/dist/db/tables/refunds.table.d.ts +1 -15
- package/dist/db/tables/refunds.table.js +4 -66
- package/dist/db/tables/refunds.table.js.map +1 -1
- package/dist/invoice-line-items.js +7 -7
- package/dist/invoice-line-items.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -48,13 +48,13 @@ A module may seed plans straight into the `db` plan table. It writes `name`, `de
|
|
|
48
48
|
|
|
49
49
|
<!-- antelopejs-docs-compat:start -->
|
|
50
50
|
|
|
51
|
-
| Package | Supported
|
|
52
|
-
| ------------------------------------------- |
|
|
53
|
-
| `@antelopejs/interface-core` | `>=0.
|
|
54
|
-
| `@antelopejs/interface-data-api` | `>=0.
|
|
55
|
-
| `@antelopejs/interface-database` | `>=0.
|
|
56
|
-
| `@antelopejs/interface-database-decorators` | `>=0.
|
|
57
|
-
| `@antelopejs/interface-dms` | `>=0.
|
|
51
|
+
| Package | Supported | Tested with |
|
|
52
|
+
| ------------------------------------------- | ------------------ | ----------- |
|
|
53
|
+
| `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
|
|
54
|
+
| `@antelopejs/interface-data-api` | `>=0.8.0 <0.9.0` | `0.8.0` |
|
|
55
|
+
| `@antelopejs/interface-database` | `>=0.4.0 <0.5.0` | `0.4.0` |
|
|
56
|
+
| `@antelopejs/interface-database-decorators` | `>=0.5.2 <0.6.0` | `0.5.2` |
|
|
57
|
+
| `@antelopejs/interface-dms` | `>=0.14.0 <0.15.0` | `0.14.0` |
|
|
58
58
|
|
|
59
59
|
<!-- antelopejs-docs-compat:end -->
|
|
60
60
|
|
|
@@ -3,9 +3,9 @@ declare const BillingSettingsModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<BillingSettings>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof BillingSettings, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<BillingSettings | undefined>;
|
|
7
|
+
getBy(index: keyof BillingSettings, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<BillingSettings[]>;
|
|
8
|
+
getAll(): Promise<BillingSettings[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<BillingSettings> | import("@antelopejs/interface-database-decorators").DeepPartial<BillingSettings>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<BillingSettings>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<BillingSettings> & {
|
|
@@ -4,9 +4,9 @@ declare const CreditNoteModel_base: {
|
|
|
4
4
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
5
5
|
readonly table: import("@antelopejs/interface-database").Table<CreditNote>;
|
|
6
6
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
7
|
-
get(id: string):
|
|
8
|
-
getBy(index: keyof CreditNote, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
9
|
-
getAll():
|
|
7
|
+
get(id: string): Promise<CreditNote | undefined>;
|
|
8
|
+
getBy(index: keyof CreditNote, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<CreditNote[]>;
|
|
9
|
+
getAll(): Promise<CreditNote[]>;
|
|
10
10
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<CreditNote> | import("@antelopejs/interface-database-decorators").DeepPartial<CreditNote>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
11
11
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<CreditNote>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
12
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<CreditNote> & {
|
|
@@ -3,9 +3,9 @@ declare const FeatureModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<Feature>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: "_id" | "localize" | "description" | "valueType" | "defaultValue" | "createdAt" | "updatedAt" | "order" | "displayName" | "tooltip" | "unit" | "isDetailRow", ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<Feature | undefined>;
|
|
7
|
+
getBy(index: "_id" | "localize" | "description" | "valueType" | "defaultValue" | "createdAt" | "updatedAt" | "order" | "displayName" | "tooltip" | "unit" | "isDetailRow", ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<Feature[]>;
|
|
8
|
+
getAll(): Promise<Feature[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Feature> | import("@antelopejs/interface-database-decorators").DeepPartial<Feature>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<Feature>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Feature> & {
|
|
@@ -4,9 +4,9 @@ declare const InvoiceModel_base: {
|
|
|
4
4
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
5
5
|
readonly table: import("@antelopejs/interface-database").Table<Invoice>;
|
|
6
6
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
7
|
-
get(id: string):
|
|
8
|
-
getBy(index: keyof Invoice, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
9
|
-
getAll():
|
|
7
|
+
get(id: string): Promise<Invoice | undefined>;
|
|
8
|
+
getBy(index: keyof Invoice, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<Invoice[]>;
|
|
9
|
+
getAll(): Promise<Invoice[]>;
|
|
10
10
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Invoice> | import("@antelopejs/interface-database-decorators").DeepPartial<Invoice>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
11
11
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<Invoice>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
12
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Invoice> & {
|
|
@@ -3,9 +3,9 @@ declare const LegalDocumentsModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<LegalDocuments>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof LegalDocuments, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<LegalDocuments | undefined>;
|
|
7
|
+
getBy(index: keyof LegalDocuments, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<LegalDocuments[]>;
|
|
8
|
+
getAll(): Promise<LegalDocuments[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<LegalDocuments> | import("@antelopejs/interface-database-decorators").DeepPartial<LegalDocuments>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<LegalDocuments>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<LegalDocuments> & {
|
|
@@ -4,9 +4,9 @@ declare const PlanMigrationModel_base: {
|
|
|
4
4
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
5
5
|
readonly table: import("@antelopejs/interface-database").Table<PlanMigration>;
|
|
6
6
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
7
|
-
get(id: string):
|
|
8
|
-
getBy(index: keyof PlanMigration, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
9
|
-
getAll():
|
|
7
|
+
get(id: string): Promise<PlanMigration | undefined>;
|
|
8
|
+
getBy(index: keyof PlanMigration, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<PlanMigration[]>;
|
|
9
|
+
getAll(): Promise<PlanMigration[]>;
|
|
10
10
|
insert(obj: DeepPartial<PlanMigration> | DeepPartial<PlanMigration>[], options?: ValidateOptions): Promise<string[]>;
|
|
11
11
|
update(id: string, obj: DeepPartial<PlanMigration>, options?: ValidateOptions): Promise<number>;
|
|
12
12
|
update(obj: DeepPartial<PlanMigration> & {
|
|
@@ -8,9 +8,9 @@ declare const PlanModel_base: {
|
|
|
8
8
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
9
9
|
readonly table: import("@antelopejs/interface-database").Table<Plan>;
|
|
10
10
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
11
|
-
get(id: string):
|
|
12
|
-
getBy(index: "_id" | "localize" | "description" | "createdAt" | "updatedAt" | "
|
|
13
|
-
getAll():
|
|
11
|
+
get(id: string): Promise<Plan | undefined>;
|
|
12
|
+
getBy(index: "name" | "_id" | "localize" | "description" | "createdAt" | "updatedAt" | "permissions" | "currency" | "features" | "order" | "slug" | "audience" | "price" | "interval" | "billingMode" | "inheritsFromPlanId" | "trialDays" | "maxMembers" | "isPublic" | "paymentProviderRefs" | "borderColor" | "borderLabel" | "isActive" | "isDeleted", ...keys: IndexKey[]): Promise<Plan[]>;
|
|
13
|
+
getAll(): Promise<Plan[]>;
|
|
14
14
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Plan> | import("@antelopejs/interface-database-decorators").DeepPartial<Plan>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
15
15
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<Plan>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
16
16
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Plan> & {
|
|
@@ -13,9 +13,9 @@ declare const PlatformNoteModel_base: {
|
|
|
13
13
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
14
14
|
readonly table: import("@antelopejs/interface-database").Table<PlatformNote>;
|
|
15
15
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
16
|
-
get(id: string):
|
|
17
|
-
getBy(index: keyof PlatformNote, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
18
|
-
getAll():
|
|
16
|
+
get(id: string): Promise<PlatformNote | undefined>;
|
|
17
|
+
getBy(index: keyof PlatformNote, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<PlatformNote[]>;
|
|
18
|
+
getAll(): Promise<PlatformNote[]>;
|
|
19
19
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<PlatformNote> | import("@antelopejs/interface-database-decorators").DeepPartial<PlatformNote>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
20
20
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<PlatformNote>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
21
21
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<PlatformNote> & {
|
|
@@ -3,9 +3,9 @@ declare const RefundModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<Refund>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof Refund, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<Refund | undefined>;
|
|
7
|
+
getBy(index: keyof Refund, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<Refund[]>;
|
|
8
|
+
getAll(): Promise<Refund[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Refund> | import("@antelopejs/interface-database-decorators").DeepPartial<Refund>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<Refund>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<Refund> & {
|
|
@@ -9,9 +9,9 @@ declare const SegmentModel_base: {
|
|
|
9
9
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
10
10
|
readonly table: import("@antelopejs/interface-database").Table<Segment>;
|
|
11
11
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
12
|
-
get(id: string):
|
|
13
|
-
getBy(index: keyof Segment, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
14
|
-
getAll():
|
|
12
|
+
get(id: string): Promise<Segment | undefined>;
|
|
13
|
+
getBy(index: keyof Segment, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<Segment[]>;
|
|
14
|
+
getAll(): Promise<Segment[]>;
|
|
15
15
|
insert(obj: DeepPartial<Segment> | DeepPartial<Segment>[], options?: ValidateOptions): Promise<string[]>;
|
|
16
16
|
update(id: string, obj: DeepPartial<Segment>, options?: ValidateOptions): Promise<number>;
|
|
17
17
|
update(obj: DeepPartial<Segment> & {
|
|
@@ -4,9 +4,9 @@ declare const StripeWebhookEventModel_base: {
|
|
|
4
4
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
5
5
|
readonly table: import("@antelopejs/interface-database").Table<StripeWebhookEvent>;
|
|
6
6
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
7
|
-
get(id: string):
|
|
8
|
-
getBy(index: keyof StripeWebhookEvent, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
9
|
-
getAll():
|
|
7
|
+
get(id: string): Promise<StripeWebhookEvent | undefined>;
|
|
8
|
+
getBy(index: keyof StripeWebhookEvent, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<StripeWebhookEvent[]>;
|
|
9
|
+
getAll(): Promise<StripeWebhookEvent[]>;
|
|
10
10
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<StripeWebhookEvent> | import("@antelopejs/interface-database-decorators").DeepPartial<StripeWebhookEvent>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
11
11
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<StripeWebhookEvent>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
12
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<StripeWebhookEvent> & {
|
|
@@ -3,9 +3,9 @@ declare const TenantBillingInfoModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<TenantBillingInfo>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof TenantBillingInfo, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<TenantBillingInfo | undefined>;
|
|
7
|
+
getBy(index: keyof TenantBillingInfo, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<TenantBillingInfo[]>;
|
|
8
|
+
getAll(): Promise<TenantBillingInfo[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingInfo> | import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingInfo>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingInfo>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingInfo> & {
|
|
@@ -3,9 +3,9 @@ declare const TenantBillingStateModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<TenantBillingState>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof TenantBillingState, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<TenantBillingState | undefined>;
|
|
7
|
+
getBy(index: keyof TenantBillingState, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<TenantBillingState[]>;
|
|
8
|
+
getAll(): Promise<TenantBillingState[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingState> | import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingState>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingState>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TenantBillingState> & {
|
|
@@ -5,9 +5,9 @@ declare const TenantSubscriptionModel_base: {
|
|
|
5
5
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
6
6
|
readonly table: import("@antelopejs/interface-database").Table<TenantSubscription>;
|
|
7
7
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
8
|
-
get(id: string):
|
|
9
|
-
getBy(index: keyof TenantSubscription, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
10
|
-
getAll():
|
|
8
|
+
get(id: string): Promise<TenantSubscription | undefined>;
|
|
9
|
+
getBy(index: keyof TenantSubscription, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<TenantSubscription[]>;
|
|
10
|
+
getAll(): Promise<TenantSubscription[]>;
|
|
11
11
|
insert(obj: DeepPartial<TenantSubscription> | DeepPartial<TenantSubscription>[], options?: ValidateOptions): Promise<string[]>;
|
|
12
12
|
update(id: string, obj: DeepPartial<TenantSubscription>, options?: ValidateOptions): Promise<number>;
|
|
13
13
|
update(obj: DeepPartial<TenantSubscription> & {
|
|
@@ -3,9 +3,9 @@ declare const TrialConsumptionModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<TrialConsumption>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof TrialConsumption, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<TrialConsumption | undefined>;
|
|
7
|
+
getBy(index: keyof TrialConsumption, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<TrialConsumption[]>;
|
|
8
|
+
getAll(): Promise<TrialConsumption[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialConsumption> | import("@antelopejs/interface-database-decorators").DeepPartial<TrialConsumption>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialConsumption>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialConsumption> & {
|
|
@@ -5,9 +5,9 @@ declare const UserSegmentModel_base: {
|
|
|
5
5
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
6
6
|
readonly table: import("@antelopejs/interface-database").Table<UserSegment>;
|
|
7
7
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
8
|
-
get(id: string):
|
|
9
|
-
getBy(index: keyof UserSegment, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
10
|
-
getAll():
|
|
8
|
+
get(id: string): Promise<UserSegment | undefined>;
|
|
9
|
+
getBy(index: keyof UserSegment, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<UserSegment[]>;
|
|
10
|
+
getAll(): Promise<UserSegment[]>;
|
|
11
11
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserSegment> | import("@antelopejs/interface-database-decorators").DeepPartial<UserSegment>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
12
12
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserSegment>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
13
13
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UserSegment> & {
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const creditNotesTableName = "credit_notes";
|
|
3
|
-
export declare const CREDIT_NOTE_TYPES: readonly ["pre_payment", "post_payment", "credit_to_balance", "refund", "mixed"];
|
|
4
|
-
export type CreditNoteType = (typeof CREDIT_NOTE_TYPES)[number];
|
|
5
|
-
export declare const CREDIT_NOTE_STATUSES: readonly ["issued", "void"];
|
|
6
|
-
export type CreditNoteStatus = (typeof CREDIT_NOTE_STATUSES)[number];
|
|
7
|
-
export declare class CreditNote extends Table {
|
|
8
|
-
_id: string;
|
|
9
|
-
invoiceId: string;
|
|
10
|
-
stripeCreditNoteId: string;
|
|
11
|
-
number: string;
|
|
12
|
-
amount: number;
|
|
13
|
-
currency: string;
|
|
14
|
-
reason: string;
|
|
15
|
-
memo: string | null;
|
|
16
|
-
type: CreditNoteType;
|
|
17
|
-
refundId: string | null;
|
|
18
|
-
hostedUrl: string | null;
|
|
19
|
-
pdfUrl: string | null;
|
|
20
|
-
status: CreditNoteStatus;
|
|
21
|
-
issuedAt: Date;
|
|
22
|
-
voidedAt: Date | null;
|
|
23
|
-
metadata: Record<string, string>;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
updatedAt: Date;
|
|
26
|
-
}
|
|
1
|
+
export { creditNotesTableName, CREDIT_NOTE_TYPES, type CreditNoteType, CREDIT_NOTE_STATUSES, type CreditNoteStatus, CreditNote, } from "./internal/credit-notes-refunds.table";
|
|
@@ -1,111 +1,9 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.CreditNote = exports.CREDIT_NOTE_STATUSES = exports.CREDIT_NOTE_TYPES = exports.creditNotesTableName = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports
|
|
18
|
-
exports.CREDIT_NOTE_TYPES = [
|
|
19
|
-
"pre_payment",
|
|
20
|
-
"post_payment",
|
|
21
|
-
"credit_to_balance",
|
|
22
|
-
"refund",
|
|
23
|
-
"mixed",
|
|
24
|
-
];
|
|
25
|
-
exports.CREDIT_NOTE_STATUSES = ["issued", "void"];
|
|
26
|
-
let CreditNote = class CreditNote extends interface_database_decorators_1.Table {
|
|
27
|
-
};
|
|
28
|
-
exports.CreditNote = CreditNote;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CreditNote.prototype, "_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, interface_database_decorators_1.Index)(),
|
|
35
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
36
|
-
(0, interface_database_decorators_1.Relation)({ to: () => invoices_table_1.Invoice }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], CreditNote.prototype, "invoiceId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, interface_database_decorators_1.Index)(),
|
|
41
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], CreditNote.prototype, "stripeCreditNoteId", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], CreditNote.prototype, "number", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, interface_database_decorators_1.Field)("number"),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], CreditNote.prototype, "amount", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], CreditNote.prototype, "currency", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], CreditNote.prototype, "reason", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], CreditNote.prototype, "memo", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], CreditNote.prototype, "type", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
70
|
-
(0, interface_database_decorators_1.Relation)({ to: () => refunds_table_1.Refund }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], CreditNote.prototype, "refundId", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], CreditNote.prototype, "hostedUrl", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
79
|
-
__metadata("design:type", Object)
|
|
80
|
-
], CreditNote.prototype, "pdfUrl", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], CreditNote.prototype, "status", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, interface_database_decorators_1.Index)({ crossInstance: true }),
|
|
87
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
88
|
-
__metadata("design:type", Date)
|
|
89
|
-
], CreditNote.prototype, "issuedAt", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
92
|
-
__metadata("design:type", Object)
|
|
93
|
-
], CreditNote.prototype, "voidedAt", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, interface_database_decorators_1.Field)("any"),
|
|
96
|
-
__metadata("design:type", Object)
|
|
97
|
-
], CreditNote.prototype, "metadata", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, interface_database_decorators_1.CreationTime)(),
|
|
100
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
101
|
-
__metadata("design:type", Date)
|
|
102
|
-
], CreditNote.prototype, "createdAt", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, interface_database_decorators_1.UpdateTime)(),
|
|
105
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
106
|
-
__metadata("design:type", Date)
|
|
107
|
-
], CreditNote.prototype, "updatedAt", void 0);
|
|
108
|
-
exports.CreditNote = CreditNote = __decorate([
|
|
109
|
-
(0, interface_database_decorators_1.RegisterTable)(exports.creditNotesTableName, constants_1.TENANT_SCHEMA_NAME)
|
|
110
|
-
], CreditNote);
|
|
4
|
+
var credit_notes_refunds_table_1 = require("./internal/credit-notes-refunds.table");
|
|
5
|
+
Object.defineProperty(exports, "creditNotesTableName", { enumerable: true, get: function () { return credit_notes_refunds_table_1.creditNotesTableName; } });
|
|
6
|
+
Object.defineProperty(exports, "CREDIT_NOTE_TYPES", { enumerable: true, get: function () { return credit_notes_refunds_table_1.CREDIT_NOTE_TYPES; } });
|
|
7
|
+
Object.defineProperty(exports, "CREDIT_NOTE_STATUSES", { enumerable: true, get: function () { return credit_notes_refunds_table_1.CREDIT_NOTE_STATUSES; } });
|
|
8
|
+
Object.defineProperty(exports, "CreditNote", { enumerable: true, get: function () { return credit_notes_refunds_table_1.CreditNote; } });
|
|
111
9
|
//# sourceMappingURL=creditNotes.table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditNotes.table.js","sourceRoot":"","sources":["../../../src/db/tables/creditNotes.table.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creditNotes.table.js","sourceRoot":"","sources":["../../../src/db/tables/creditNotes.table.ts"],"names":[],"mappings":";;;AAAA,oFAO+C;AAN7C,kIAAA,oBAAoB,OAAA;AACpB,+HAAA,iBAAiB,OAAA;AAEjB,kIAAA,oBAAoB,OAAA;AAEpB,wHAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
export declare const refundsTableName = "refunds";
|
|
3
|
+
export declare const REFUND_STATUSES: readonly ["pending", "succeeded", "failed", "canceled"];
|
|
4
|
+
export type RefundStatus = (typeof REFUND_STATUSES)[number];
|
|
5
|
+
export declare class Refund extends Table {
|
|
6
|
+
_id: string;
|
|
7
|
+
creditNoteId: string;
|
|
8
|
+
stripeRefundId: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
status: RefundStatus;
|
|
12
|
+
failureReason: string | null;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
16
|
+
export declare const creditNotesTableName = "credit_notes";
|
|
17
|
+
export declare const CREDIT_NOTE_TYPES: readonly ["pre_payment", "post_payment", "credit_to_balance", "refund", "mixed"];
|
|
18
|
+
export type CreditNoteType = (typeof CREDIT_NOTE_TYPES)[number];
|
|
19
|
+
export declare const CREDIT_NOTE_STATUSES: readonly ["issued", "void"];
|
|
20
|
+
export type CreditNoteStatus = (typeof CREDIT_NOTE_STATUSES)[number];
|
|
21
|
+
export declare class CreditNote extends Table {
|
|
22
|
+
_id: string;
|
|
23
|
+
invoiceId: string;
|
|
24
|
+
stripeCreditNoteId: string;
|
|
25
|
+
number: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
currency: string;
|
|
28
|
+
reason: string;
|
|
29
|
+
memo: string | null;
|
|
30
|
+
type: CreditNoteType;
|
|
31
|
+
refundId: string | null;
|
|
32
|
+
hostedUrl: string | null;
|
|
33
|
+
pdfUrl: string | null;
|
|
34
|
+
status: CreditNoteStatus;
|
|
35
|
+
issuedAt: Date;
|
|
36
|
+
voidedAt: Date | null;
|
|
37
|
+
metadata: Record<string, string>;
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
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.CreditNote = exports.CREDIT_NOTE_STATUSES = exports.CREDIT_NOTE_TYPES = exports.creditNotesTableName = exports.Refund = exports.REFUND_STATUSES = exports.refundsTableName = void 0;
|
|
13
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
|
+
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
|
+
const invoices_table_1 = require("../invoices.table");
|
|
16
|
+
exports.refundsTableName = "refunds";
|
|
17
|
+
exports.REFUND_STATUSES = [
|
|
18
|
+
"pending",
|
|
19
|
+
"succeeded",
|
|
20
|
+
"failed",
|
|
21
|
+
"canceled",
|
|
22
|
+
];
|
|
23
|
+
let Refund = class Refund extends interface_database_decorators_1.Table {
|
|
24
|
+
};
|
|
25
|
+
exports.Refund = Refund;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Refund.prototype, "_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, interface_database_decorators_1.Index)(),
|
|
32
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
33
|
+
(0, interface_database_decorators_1.Relation)({ to: () => CreditNote }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Refund.prototype, "creditNoteId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, interface_database_decorators_1.Index)(),
|
|
38
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Refund.prototype, "stripeRefundId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Refund.prototype, "amount", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Refund.prototype, "currency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Refund.prototype, "status", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], Refund.prototype, "failureReason", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, interface_database_decorators_1.CreationTime)(),
|
|
59
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], Refund.prototype, "createdAt", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, interface_database_decorators_1.UpdateTime)(),
|
|
64
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], Refund.prototype, "updatedAt", void 0);
|
|
67
|
+
exports.Refund = Refund = __decorate([
|
|
68
|
+
(0, interface_database_decorators_1.RegisterTable)(exports.refundsTableName, constants_1.TENANT_SCHEMA_NAME)
|
|
69
|
+
], Refund);
|
|
70
|
+
exports.creditNotesTableName = "credit_notes";
|
|
71
|
+
exports.CREDIT_NOTE_TYPES = [
|
|
72
|
+
"pre_payment",
|
|
73
|
+
"post_payment",
|
|
74
|
+
"credit_to_balance",
|
|
75
|
+
"refund",
|
|
76
|
+
"mixed",
|
|
77
|
+
];
|
|
78
|
+
exports.CREDIT_NOTE_STATUSES = ["issued", "void"];
|
|
79
|
+
let CreditNote = class CreditNote extends interface_database_decorators_1.Table {
|
|
80
|
+
};
|
|
81
|
+
exports.CreditNote = CreditNote;
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CreditNote.prototype, "_id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, interface_database_decorators_1.Index)(),
|
|
88
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
89
|
+
(0, interface_database_decorators_1.Relation)({ to: () => invoices_table_1.Invoice }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CreditNote.prototype, "invoiceId", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, interface_database_decorators_1.Index)(),
|
|
94
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], CreditNote.prototype, "stripeCreditNoteId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CreditNote.prototype, "number", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], CreditNote.prototype, "amount", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], CreditNote.prototype, "currency", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], CreditNote.prototype, "reason", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], CreditNote.prototype, "memo", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], CreditNote.prototype, "type", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
123
|
+
(0, interface_database_decorators_1.Relation)({ to: () => Refund }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], CreditNote.prototype, "refundId", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], CreditNote.prototype, "hostedUrl", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], CreditNote.prototype, "pdfUrl", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], CreditNote.prototype, "status", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, interface_database_decorators_1.Index)({ crossInstance: true }),
|
|
140
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
141
|
+
__metadata("design:type", Date)
|
|
142
|
+
], CreditNote.prototype, "issuedAt", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], CreditNote.prototype, "voidedAt", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, interface_database_decorators_1.Field)("any"),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], CreditNote.prototype, "metadata", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, interface_database_decorators_1.CreationTime)(),
|
|
153
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
154
|
+
__metadata("design:type", Date)
|
|
155
|
+
], CreditNote.prototype, "createdAt", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, interface_database_decorators_1.UpdateTime)(),
|
|
158
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
159
|
+
__metadata("design:type", Date)
|
|
160
|
+
], CreditNote.prototype, "updatedAt", void 0);
|
|
161
|
+
exports.CreditNote = CreditNote = __decorate([
|
|
162
|
+
(0, interface_database_decorators_1.RegisterTable)(exports.creditNotesTableName, constants_1.TENANT_SCHEMA_NAME)
|
|
163
|
+
], CreditNote);
|
|
164
|
+
//# sourceMappingURL=credit-notes-refunds.table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-notes-refunds.table.js","sourceRoot":"","sources":["../../../../src/db/tables/internal/credit-notes-refunds.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,6FAQmD;AACnD,mEAAyE;AACzE,sDAA4C;AAE/B,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAE7B,QAAA,eAAe,GAAG;IAC7B,SAAS;IACT,WAAW;IACX,QAAQ;IACR,UAAU;CACF,CAAC;AAKJ,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qCAAK;CAgChC,CAAA;AAhCY,wBAAM;AAET;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;mCACI;AAKZ;IAHP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,QAAQ,CAAC;IACf,IAAA,wCAAQ,EAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC;;4CACN;AAIrB;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;8CACe;AAGvB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;sCACO;AAGf;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;wCACS;AAGjB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C;;wCACa;AAIrB;IAFP,IAAA,qCAAK,EAAC,QAAQ,CAAC;IACf,IAAA,wCAAQ,EAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC;;4CACC;AAGxB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;6CACiB;AAGzB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;0CACc;AAGtB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;0CACiB;AAIzB;IAFP,IAAA,qCAAK,EAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACI,IAAI;4CAAC;AAGf;IADP,IAAA,qCAAK,EAAC,MAAM,CAAC;;4CACgB;AAGtB;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;4CAC4B;AAIjC;IAFP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;6CAAC;AAIhB;IAFP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;6CAAC;qBA5Db,UAAU;IADtB,IAAA,6CAAa,EAAC,4BAAoB,EAAE,8BAAkB,CAAC;GAC3C,UAAU,CA6DtB"}
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const refundsTableName = "refunds";
|
|
3
|
-
export declare const REFUND_STATUSES: readonly ["pending", "succeeded", "failed", "canceled"];
|
|
4
|
-
export type RefundStatus = (typeof REFUND_STATUSES)[number];
|
|
5
|
-
export declare class Refund extends Table {
|
|
6
|
-
_id: string;
|
|
7
|
-
creditNoteId: string;
|
|
8
|
-
stripeRefundId: string;
|
|
9
|
-
amount: number;
|
|
10
|
-
currency: string;
|
|
11
|
-
status: RefundStatus;
|
|
12
|
-
failureReason: string | null;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
}
|
|
1
|
+
export { refundsTableName, REFUND_STATUSES, type RefundStatus, Refund, } from "./internal/credit-notes-refunds.table";
|
|
@@ -1,70 +1,8 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Refund = exports.REFUND_STATUSES = exports.refundsTableName = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports
|
|
17
|
-
exports.REFUND_STATUSES = [
|
|
18
|
-
"pending",
|
|
19
|
-
"succeeded",
|
|
20
|
-
"failed",
|
|
21
|
-
"canceled",
|
|
22
|
-
];
|
|
23
|
-
let Refund = class Refund extends interface_database_decorators_1.Table {
|
|
24
|
-
};
|
|
25
|
-
exports.Refund = Refund;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], Refund.prototype, "_id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, interface_database_decorators_1.Index)(),
|
|
32
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
33
|
-
(0, interface_database_decorators_1.Relation)({ to: () => creditNotes_table_1.CreditNote }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], Refund.prototype, "creditNoteId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, interface_database_decorators_1.Index)(),
|
|
38
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Refund.prototype, "stripeRefundId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, interface_database_decorators_1.Field)("number"),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Refund.prototype, "amount", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Refund.prototype, "currency", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Refund.prototype, "status", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, interface_database_decorators_1.Field)("string"),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], Refund.prototype, "failureReason", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, interface_database_decorators_1.CreationTime)(),
|
|
59
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
60
|
-
__metadata("design:type", Date)
|
|
61
|
-
], Refund.prototype, "createdAt", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, interface_database_decorators_1.UpdateTime)(),
|
|
64
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
65
|
-
__metadata("design:type", Date)
|
|
66
|
-
], Refund.prototype, "updatedAt", void 0);
|
|
67
|
-
exports.Refund = Refund = __decorate([
|
|
68
|
-
(0, interface_database_decorators_1.RegisterTable)(exports.refundsTableName, constants_1.TENANT_SCHEMA_NAME)
|
|
69
|
-
], Refund);
|
|
4
|
+
var credit_notes_refunds_table_1 = require("./internal/credit-notes-refunds.table");
|
|
5
|
+
Object.defineProperty(exports, "refundsTableName", { enumerable: true, get: function () { return credit_notes_refunds_table_1.refundsTableName; } });
|
|
6
|
+
Object.defineProperty(exports, "REFUND_STATUSES", { enumerable: true, get: function () { return credit_notes_refunds_table_1.REFUND_STATUSES; } });
|
|
7
|
+
Object.defineProperty(exports, "Refund", { enumerable: true, get: function () { return credit_notes_refunds_table_1.Refund; } });
|
|
70
8
|
//# sourceMappingURL=refunds.table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.table.js","sourceRoot":"","sources":["../../../src/db/tables/refunds.table.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refunds.table.js","sourceRoot":"","sources":["../../../src/db/tables/refunds.table.ts"],"names":[],"mappings":";;;AAAA,oFAK+C;AAJ7C,8HAAA,gBAAgB,OAAA;AAChB,6HAAA,eAAe,OAAA;AAEf,oHAAA,MAAM,OAAA"}
|
|
@@ -22,18 +22,18 @@ const MAX_LINE_KEY_LENGTH = 150;
|
|
|
22
22
|
function isText(value) {
|
|
23
23
|
return typeof value === "string";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return isText(
|
|
25
|
+
function hasFilledText(item, field) {
|
|
26
|
+
return isText(item[field]) && item[field].trim().length > 0;
|
|
27
27
|
}
|
|
28
28
|
const REJECTION_RULES = [
|
|
29
|
-
{ reason: "invalid", isViolated: (item) => !
|
|
29
|
+
{ reason: "invalid", isViolated: (item) => !hasFilledText(item, "key") },
|
|
30
30
|
{
|
|
31
31
|
reason: "invalid",
|
|
32
32
|
isViolated: (item) => item.key.includes(exports.LINE_KEY_SEPARATOR),
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
reason: "invalid",
|
|
36
|
-
isViolated: (item) => !
|
|
36
|
+
isViolated: (item) => !hasFilledText(item, "description"),
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
reason: "invalid",
|
|
@@ -44,8 +44,8 @@ const REJECTION_RULES = [
|
|
|
44
44
|
function buildInvoiceLineKey(providerId, key) {
|
|
45
45
|
return `${providerId}${exports.LINE_KEY_SEPARATOR}${key}`;
|
|
46
46
|
}
|
|
47
|
-
function toLineKeyFragment(
|
|
48
|
-
return isText(key) ? key.trim() : String(key);
|
|
47
|
+
function toLineKeyFragment(item) {
|
|
48
|
+
return isText(item.key) ? item.key.trim() : String(item.key);
|
|
49
49
|
}
|
|
50
50
|
function findRejectionReason(item) {
|
|
51
51
|
return REJECTION_RULES.find((rule) => rule.isViolated(item))?.reason ?? null;
|
|
@@ -65,7 +65,7 @@ function selectInvoiceLineItemsToCreate(providerId, items, alreadyInjectedKeys)
|
|
|
65
65
|
const skipped = [];
|
|
66
66
|
const selectedKeys = new Set();
|
|
67
67
|
for (const item of items) {
|
|
68
|
-
const lineKey = buildInvoiceLineKey(providerId, toLineKeyFragment(item
|
|
68
|
+
const lineKey = buildInvoiceLineKey(providerId, toLineKeyFragment(item));
|
|
69
69
|
const rejection = findRejectionReason(item) ?? findOversizedKeyRejection(lineKey);
|
|
70
70
|
if (rejection) {
|
|
71
71
|
skipped.push({ lineKey, reason: rejection });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/invoice-line-items.ts"],"names":[],"mappings":";;;AA0FA,kFASC;
|
|
1
|
+
{"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/invoice-line-items.ts"],"names":[],"mappings":";;;AA0FA,kFASC;AAuFD,kDAEC;AAoCD,wEA+BC;AAyCD,4EASC;AAKD,gFAEC;AAxTD,+DAA8D;AAmFjD,QAAA,yBAAyB,GAAG,oBAAoB,CAAC;AAO9D,SAAgB,mCAAmC,CACjD,KAAqD;IAErD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IACnE,IAAI,KAAK,EAAE,MAAM,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC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AAC,gCAAgC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC5E,CAAC;AAKD,SAAgB,kCAAkC,CAAC,UAAkB;IACnE,QAAQ,CAAC,gCAAgC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACnE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/interface-dms-saas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "AntelopeJS interface for the DMS SaaS module: billing, plans, registration, workspace pages and lifecycle extension points.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"prepack": "pnpm run build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@antelopejs/interface-data-api": ">=0.
|
|
71
|
-
"@antelopejs/interface-dms": ">=0.
|
|
70
|
+
"@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
|
|
71
|
+
"@antelopejs/interface-dms": ">=0.14.0 <0.15.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@antelopejs/interface-api": ">=0.3.
|
|
75
|
-
"@antelopejs/interface-api-util": ">=0.3.2 <
|
|
76
|
-
"@antelopejs/interface-core": ">=0.
|
|
77
|
-
"@antelopejs/interface-database": ">=0.
|
|
78
|
-
"@antelopejs/interface-database-decorators": ">=0.
|
|
74
|
+
"@antelopejs/interface-api": ">=0.3.3 <0.4.0",
|
|
75
|
+
"@antelopejs/interface-api-util": ">=0.3.2 <0.4.0",
|
|
76
|
+
"@antelopejs/interface-core": ">=0.5.1 <0.6.0",
|
|
77
|
+
"@antelopejs/interface-database": ">=0.4.0 <0.5.0",
|
|
78
|
+
"@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
|
|
79
79
|
"@types/node": "^24.0.0",
|
|
80
80
|
"knip": "^6.34.0",
|
|
81
81
|
"release-it": "^19.2.4",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"typescript": "^6.0.3"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@antelopejs/interface-core": ">=0.
|
|
88
|
-
"@antelopejs/interface-database": ">=0.
|
|
89
|
-
"@antelopejs/interface-database-decorators": ">=0.
|
|
87
|
+
"@antelopejs/interface-core": ">=0.5.1 <0.6.0",
|
|
88
|
+
"@antelopejs/interface-database": ">=0.4.0 <0.5.0",
|
|
89
|
+
"@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0"
|
|
90
90
|
},
|
|
91
91
|
"packageManager": "pnpm@10.2.0",
|
|
92
92
|
"antelopeJs": {}
|