@things-factory/accounting 10.1.240 → 10.1.241
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-server/service/index.d.ts +3 -0
- package/dist-server/service/index.js +3 -0
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/recurring-cash-item/index.d.ts +2 -1
- package/dist-server/service/recurring-cash-item/index.js +2 -1
- package/dist-server/service/recurring-cash-item/index.js.map +1 -1
- package/dist-server/service/recurring-cash-item/recurring-candidate-service.d.ts +29 -0
- package/dist-server/service/recurring-cash-item/recurring-candidate-service.js +117 -0
- package/dist-server/service/recurring-cash-item/recurring-candidate-service.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-candidates.d.ts +42 -0
- package/dist-server/service/recurring-cash-item/recurring-candidates.js +57 -0
- package/dist-server/service/recurring-cash-item/recurring-candidates.js.map +1 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.d.ts +2 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js +38 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-mutation.js.map +1 -1
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.d.ts +2 -1
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js +14 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-query.js.map +1 -1
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.d.ts +14 -0
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js +55 -1
- package/dist-server/service/recurring-cash-item/recurring-cash-item-type.js.map +1 -1
- package/dist-server/service/recurring-cash-item/recurring-hidden-vendor.d.ts +24 -0
- package/dist-server/service/recurring-cash-item/recurring-hidden-vendor.js +84 -0
- package/dist-server/service/recurring-cash-item/recurring-hidden-vendor.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/translations/en.json +3 -0
- package/translations/es.json +3 -0
- package/translations/ja.json +3 -0
- package/translations/ko.json +3 -0
- package/translations/ms.json +3 -0
- package/translations/zh.json +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecurringCashItemList = exports.RecurringCashItemPatch = void 0;
|
|
3
|
+
exports.RecurringCandidate = exports.RecurringCashItemList = exports.RecurringCashItemPatch = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const type_graphql_1 = require("type-graphql");
|
|
6
6
|
const shell_1 = require("@things-factory/shell");
|
|
@@ -86,4 +86,58 @@ tslib_1.__decorate([
|
|
|
86
86
|
exports.RecurringCashItemList = RecurringCashItemList = tslib_1.__decorate([
|
|
87
87
|
(0, type_graphql_1.ObjectType)({ description: 'A page of recurring items' })
|
|
88
88
|
], RecurringCashItemList);
|
|
89
|
+
let RecurringCandidate = class RecurringCandidate {
|
|
90
|
+
};
|
|
91
|
+
exports.RecurringCandidate = RecurringCandidate;
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, type_graphql_1.Field)({ description: 'Whom it is - the counterparty id, or name: and the written name for lines no counterparty is linked to' }),
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
95
|
+
], RecurringCandidate.prototype, "key", void 0);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The vendor - a counterparty id; empty when the lines only name it' }),
|
|
98
|
+
tslib_1.__metadata("design:type", String)
|
|
99
|
+
], RecurringCandidate.prototype, "counterpartyId", void 0);
|
|
100
|
+
tslib_1.__decorate([
|
|
101
|
+
(0, type_graphql_1.Field)({ description: "The vendor's name - the counterparty's, or the one written on the lines" }),
|
|
102
|
+
tslib_1.__metadata("design:type", String)
|
|
103
|
+
], RecurringCandidate.prototype, "counterpartyName", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { description: 'The months of the last twelve money went out to it in' }),
|
|
106
|
+
tslib_1.__metadata("design:type", Number)
|
|
107
|
+
], RecurringCandidate.prototype, "months", void 0);
|
|
108
|
+
tslib_1.__decorate([
|
|
109
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { description: 'What went out a month, on average over those months' }),
|
|
110
|
+
tslib_1.__metadata("design:type", Number)
|
|
111
|
+
], RecurringCandidate.prototype, "average", void 0);
|
|
112
|
+
tslib_1.__decorate([
|
|
113
|
+
(0, type_graphql_1.Field)({ description: 'The first day money went out to it in the window - YYYY-MM-DD' }),
|
|
114
|
+
tslib_1.__metadata("design:type", String)
|
|
115
|
+
], RecurringCandidate.prototype, "firstDate", void 0);
|
|
116
|
+
tslib_1.__decorate([
|
|
117
|
+
(0, type_graphql_1.Field)({ description: 'The last day money went out to it - YYYY-MM-DD' }),
|
|
118
|
+
tslib_1.__metadata("design:type", String)
|
|
119
|
+
], RecurringCandidate.prototype, "lastDate", void 0);
|
|
120
|
+
tslib_1.__decorate([
|
|
121
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { description: 'How much went out that day' }),
|
|
122
|
+
tslib_1.__metadata("design:type", Number)
|
|
123
|
+
], RecurringCandidate.prototype, "lastAmount", void 0);
|
|
124
|
+
tslib_1.__decorate([
|
|
125
|
+
(0, type_graphql_1.Field)({ description: 'The currency' }),
|
|
126
|
+
tslib_1.__metadata("design:type", String)
|
|
127
|
+
], RecurringCandidate.prototype, "currency", void 0);
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The account subject it is booked to most - an id' }),
|
|
130
|
+
tslib_1.__metadata("design:type", String)
|
|
131
|
+
], RecurringCandidate.prototype, "subjectId", void 0);
|
|
132
|
+
tslib_1.__decorate([
|
|
133
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'The day of the month it went out on most; 31 for the last day' }),
|
|
134
|
+
tslib_1.__metadata("design:type", Number)
|
|
135
|
+
], RecurringCandidate.prototype, "dayOfMonth", void 0);
|
|
136
|
+
tslib_1.__decorate([
|
|
137
|
+
(0, type_graphql_1.Field)({ description: 'Whether a keeper hid it from the candidates' }),
|
|
138
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
139
|
+
], RecurringCandidate.prototype, "hidden", void 0);
|
|
140
|
+
exports.RecurringCandidate = RecurringCandidate = tslib_1.__decorate([
|
|
141
|
+
(0, type_graphql_1.ObjectType)({ description: 'A vendor the books show paid month after month that is no recurring item yet (ADR-0177 amendment 7-5)' })
|
|
142
|
+
], RecurringCandidate);
|
|
89
143
|
//# sourceMappingURL=recurring-cash-item-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurring-cash-item-type.js","sourceRoot":"","sources":["../../../server/service/recurring-cash-item/recurring-cash-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAE3E,iDAAiD;AAEjD,sDAAgD;AAChD,+DAAyD;AAGlD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CA6ClC,CAAA;AA7CY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;;kDACxE;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;;oDACxC;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;sCACvF,iBAAS;uDAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,6BAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;oDACnE;AAGnB;IADC,IAAA,oBAAK,E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CA5CJ,sBAAsB;IADlC,IAAA,wBAAS,EAAC,EAAE,WAAW,EAAE,sEAAsE,EAAE,CAAC;GACtF,sBAAsB,CA6ClC;AAGM,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAMjC,CAAA;AANY,sDAAqB;AAEhC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,uCAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;;oDACpD;AAG1B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;oDACpD;gCALF,qBAAqB;IADjC,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,qBAAqB,CAMjC","sourcesContent":["import { ObjectType, Field, Float, InputType, Int, ID } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { CashFlowType } from '../cash-flow-type'\nimport { RecurringCashItem } from './recurring-cash-item'\n\n@InputType({ description: 'A recurring item, or a grid row: cuFlag + adds, M changes, - deletes' })\nexport class RecurringCashItemPatch {\n @Field(type => ID, { nullable: true, description: 'The item to change or delete' })\n id?: string\n\n @Field({ nullable: true, description: 'What it is' })\n name?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account subject it is booked to' })\n account?: ObjectRef\n\n @Field(type => CashFlowType, { nullable: true, description: 'Money in or money out' })\n type?: CashFlowType\n\n @Field(type => Float, { nullable: true, description: 'Amount every month; empty when it varies' })\n amount?: number\n\n @Field({ nullable: true, description: \"Words its bank lines' descriptions hold, comma separated\" })\n matchWords?: string\n\n @Field({ nullable: true, description: 'ISO 4217 code' })\n currency?: string\n\n @Field(type => Int, { nullable: true, description: '1-31' })\n dayOfMonth?: number\n\n @Field({ nullable: true, description: 'Falls on the last day of every month' })\n lastDayOfMonth?: boolean\n\n @Field({ nullable: true, description: 'First month - YYYY-MM' })\n startMonth?: string\n\n @Field({ nullable: true, description: 'Last month - YYYY-MM' })\n endMonth?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'Who it is paid to or received from' })\n counterparty?: ObjectRef\n\n @Field({ nullable: true, description: 'Whether it still falls in its months' })\n active?: boolean\n\n @Field({ nullable: true, description: 'Notes' })\n notes?: string\n\n @Field({ nullable: true, description: '+ adds, M changes, - deletes' })\n cuFlag?: string\n}\n\n@ObjectType({ description: 'A page of recurring items' })\nexport class RecurringCashItemList {\n @Field(type => [RecurringCashItem], { description: 'The items on this page' })\n items: RecurringCashItem[]\n\n @Field(type => Int, { description: 'How many there are in all' })\n total: number\n}\n"]}
|
|
1
|
+
{"version":3,"file":"recurring-cash-item-type.js","sourceRoot":"","sources":["../../../server/service/recurring-cash-item/recurring-cash-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAA2E;AAE3E,iDAAiD;AAEjD,sDAAgD;AAChD,+DAAyD;AAGlD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CA6ClC,CAAA;AA7CY,wDAAsB;AAEjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;;kDACxE;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;;oDACxC;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;sCACvF,iBAAS;uDAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,6BAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;oDACnE;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,E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ACrB;IAApE,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;;sDAAmB;AAC/C;IAAvC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;;oDAAiB;AACoC;IAA3F,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;;qDAAmB;AACQ;IAArH,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,+DAA+D,EAAE,CAAC;;sDAAoB;AAClE;IAAtE,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,6CAA6C,EAAE,CAAC;;kDAAgB;6BAZ3E,kBAAkB;IAD9B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,uGAAuG,EAAE,CAAC;GACxH,kBAAkB,CAa9B","sourcesContent":["import { ObjectType, Field, Float, InputType, Int, ID } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { CashFlowType } from '../cash-flow-type'\nimport { RecurringCashItem } from './recurring-cash-item'\n\n@InputType({ description: 'A recurring item, or a grid row: cuFlag + adds, M changes, - deletes' })\nexport class RecurringCashItemPatch {\n @Field(type => ID, { nullable: true, description: 'The item to change or delete' })\n id?: string\n\n @Field({ nullable: true, description: 'What it is' })\n name?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'The account subject it is booked to' })\n account?: ObjectRef\n\n @Field(type => CashFlowType, { nullable: true, description: 'Money in or money out' })\n type?: CashFlowType\n\n @Field(type => Float, { nullable: true, description: 'Amount every month; empty when it varies' })\n amount?: number\n\n @Field({ nullable: true, description: \"Words its bank lines' descriptions hold, comma separated\" })\n matchWords?: string\n\n @Field({ nullable: true, description: 'ISO 4217 code' })\n currency?: string\n\n @Field(type => Int, { nullable: true, description: '1-31' })\n dayOfMonth?: number\n\n @Field({ nullable: true, description: 'Falls on the last day of every month' })\n lastDayOfMonth?: boolean\n\n @Field({ nullable: true, description: 'First month - YYYY-MM' })\n startMonth?: string\n\n @Field({ nullable: true, description: 'Last month - YYYY-MM' })\n endMonth?: string\n\n @Field(type => ObjectRef, { nullable: true, description: 'Who it is paid to or received from' })\n counterparty?: ObjectRef\n\n @Field({ nullable: true, description: 'Whether it still falls in its months' })\n active?: boolean\n\n @Field({ nullable: true, description: 'Notes' })\n notes?: string\n\n @Field({ nullable: true, description: '+ adds, M changes, - deletes' })\n cuFlag?: string\n}\n\n@ObjectType({ description: 'A page of recurring items' })\nexport class RecurringCashItemList {\n @Field(type => [RecurringCashItem], { description: 'The items on this page' })\n items: RecurringCashItem[]\n\n @Field(type => Int, { description: 'How many there are in all' })\n total: number\n}\n\n@ObjectType({ description: 'A vendor the books show paid month after month that is no recurring item yet (ADR-0177 amendment 7-5)' })\nexport class RecurringCandidate {\n @Field({ description: 'Whom it is - the counterparty id, or name: and the written name for lines no counterparty is linked to' }) key: string\n @Field({ nullable: true, description: 'The vendor - a counterparty id; empty when the lines only name it' }) counterpartyId?: string\n @Field({ description: \"The vendor's name - the counterparty's, or the one written on the lines\" }) counterpartyName: string\n @Field(type => Int, { description: 'The months of the last twelve money went out to it in' }) months: number\n @Field(type => Float, { description: 'What went out a month, on average over those months' }) average: number\n @Field({ description: 'The first day money went out to it in the window - YYYY-MM-DD' }) firstDate: string\n @Field({ description: 'The last day money went out to it - YYYY-MM-DD' }) lastDate: string\n @Field(type => Float, { description: 'How much went out that day' }) lastAmount: number\n @Field({ description: 'The currency' }) currency: string\n @Field({ nullable: true, description: 'The account subject it is booked to most - an id' }) subjectId?: string\n @Field(type => Int, { nullable: true, description: 'The day of the month it went out on most; 31 for the last day' }) dayOfMonth?: number\n @Field({ description: 'Whether a keeper hid it from the candidates' }) hidden: boolean\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Counterparty } from '@things-factory/biz-base';
|
|
4
|
+
/**
|
|
5
|
+
* Whom a keeper said is no recurring item - paid month after month but by chance - so the books stop offering it
|
|
6
|
+
* (ADR-0177 개정 1, 7-5): a counterparty, or the name written on lines no counterparty is linked to. Shown again, the
|
|
7
|
+
* row goes.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RecurringHiddenVendor {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
domain?: Domain;
|
|
12
|
+
domainId?: string;
|
|
13
|
+
counterparty?: Counterparty;
|
|
14
|
+
counterpartyId?: string;
|
|
15
|
+
/** The written name's key (biz-base `nameKey`), for lines no counterparty is linked to. */
|
|
16
|
+
nameKey?: string;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
updatedAt?: Date;
|
|
19
|
+
deletedAt?: Date;
|
|
20
|
+
creator?: User;
|
|
21
|
+
creatorId?: string;
|
|
22
|
+
updater?: User;
|
|
23
|
+
updaterId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecurringHiddenVendor = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const type_graphql_1 = require("type-graphql");
|
|
7
|
+
const shell_1 = require("@things-factory/shell");
|
|
8
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
9
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
10
|
+
/**
|
|
11
|
+
* Whom a keeper said is no recurring item - paid month after month but by chance - so the books stop offering it
|
|
12
|
+
* (ADR-0177 개정 1, 7-5): a counterparty, or the name written on lines no counterparty is linked to. Shown again, the
|
|
13
|
+
* row goes.
|
|
14
|
+
*/
|
|
15
|
+
let RecurringHiddenVendor = class RecurringHiddenVendor {
|
|
16
|
+
};
|
|
17
|
+
exports.RecurringHiddenVendor = RecurringHiddenVendor;
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Unique identifier' }),
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
|
+
], RecurringHiddenVendor.prototype, "id", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
25
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain whose row it is' }),
|
|
26
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
27
|
+
], RecurringHiddenVendor.prototype, "domain", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.RelationId)((row) => row.domain),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], RecurringHiddenVendor.prototype, "domainId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Counterparty, { nullable: true, onDelete: 'CASCADE' }),
|
|
34
|
+
(0, type_graphql_1.Field)(type => biz_base_1.Counterparty, { nullable: true, description: 'The vendor hidden' }),
|
|
35
|
+
tslib_1.__metadata("design:type", biz_base_1.Counterparty)
|
|
36
|
+
], RecurringHiddenVendor.prototype, "counterparty", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.RelationId)((row) => row.counterparty),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], RecurringHiddenVendor.prototype, "counterpartyId", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "The written name's key, for lines no counterparty is linked to" }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], RecurringHiddenVendor.prototype, "nameKey", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
48
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was hidden' }),
|
|
49
|
+
tslib_1.__metadata("design:type", Date)
|
|
50
|
+
], RecurringHiddenVendor.prototype, "createdAt", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
53
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it last changed' }),
|
|
54
|
+
tslib_1.__metadata("design:type", Date)
|
|
55
|
+
], RecurringHiddenVendor.prototype, "updatedAt", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
58
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'When it was shown again' }),
|
|
59
|
+
tslib_1.__metadata("design:type", Date)
|
|
60
|
+
], RecurringHiddenVendor.prototype, "deletedAt", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
63
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who hid it' }),
|
|
64
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
65
|
+
], RecurringHiddenVendor.prototype, "creator", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.RelationId)((row) => row.creator),
|
|
68
|
+
tslib_1.__metadata("design:type", String)
|
|
69
|
+
], RecurringHiddenVendor.prototype, "creatorId", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
72
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true, description: 'Who last changed it' }),
|
|
73
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
74
|
+
], RecurringHiddenVendor.prototype, "updater", void 0);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, typeorm_1.RelationId)((row) => row.updater),
|
|
77
|
+
tslib_1.__metadata("design:type", String)
|
|
78
|
+
], RecurringHiddenVendor.prototype, "updaterId", void 0);
|
|
79
|
+
exports.RecurringHiddenVendor = RecurringHiddenVendor = tslib_1.__decorate([
|
|
80
|
+
(0, typeorm_1.Entity)(),
|
|
81
|
+
(0, typeorm_1.Index)('ix_recurring_hidden_vendor_0', (row) => [row.domain, row.counterparty, row.nameKey]),
|
|
82
|
+
(0, type_graphql_1.ObjectType)({ description: 'A vendor a keeper hid from the recurring candidates' })
|
|
83
|
+
], RecurringHiddenVendor);
|
|
84
|
+
//# sourceMappingURL=recurring-hidden-vendor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recurring-hidden-vendor.js","sourceRoot":"","sources":["../../../server/service/recurring-cash-item/recurring-hidden-vendor.ts"],"names":[],"mappings":";;;;AAAA,qCAAoJ;AACpJ,+CAAoD;AAEpD,iDAA8C;AAC9C,yDAAgD;AAChD,uDAAuD;AAEvD;;;;GAIG;AAII,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAiDjC,CAAA;AAjDY,sDAAqB;AAGvB;IAFR,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;;iDACrC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;sCAC5E,cAAM;qDAAA;AAGf;IADC,IAAA,oBAAU,EAAC,CAAC,GAA0B,EAAE,EAAE,CAAC,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CAAC;sCACzD,gBAAI;sDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAA0B,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;wDACtC;AAIlB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;sCAClE,gBAAI;sDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAA0B,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;wDACtC;gCAhDP,qBAAqB;IAHjC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,8BAA8B,EAAE,CAAC,GAA0B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,qDAAqD,EAAE,CAAC;GACtE,qBAAqB,CAiDjC","sourcesContent":["import { CreateDateColumn, Column, DeleteDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\nimport { Field, ID, ObjectType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { Counterparty } from '@things-factory/biz-base'\n\n/**\n * Whom a keeper said is no recurring item - paid month after month but by chance - so the books stop offering it\n * (ADR-0177 개정 1, 7-5): a counterparty, or the name written on lines no counterparty is linked to. Shown again, the\n * row goes.\n */\n@Entity()\n@Index('ix_recurring_hidden_vendor_0', (row: RecurringHiddenVendor) => [row.domain, row.counterparty, row.nameKey])\n@ObjectType({ description: 'A vendor a keeper hid from the recurring candidates' })\nexport class RecurringHiddenVendor {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Unique identifier' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain whose row it is' })\n domain?: Domain\n\n @RelationId((row: RecurringHiddenVendor) => row.domain)\n domainId?: string\n\n @ManyToOne(type => Counterparty, { nullable: true, onDelete: 'CASCADE' })\n @Field(type => Counterparty, { nullable: true, description: 'The vendor hidden' })\n counterparty?: Counterparty\n\n @RelationId((row: RecurringHiddenVendor) => row.counterparty)\n counterpartyId?: string\n\n /** The written name's key (biz-base `nameKey`), for lines no counterparty is linked to. */\n @Column({ nullable: true })\n @Field({ nullable: true, description: \"The written name's key, for lines no counterparty is linked to\" })\n nameKey?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'When it was hidden' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'When it last changed' })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'When it was shown again' })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who hid it' })\n creator?: User\n\n @RelationId((row: RecurringHiddenVendor) => row.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true, description: 'Who last changed it' })\n updater?: User\n\n @RelationId((row: RecurringHiddenVendor) => row.updater)\n updaterId?: string\n}\n"]}
|