@things-factory/quotation 10.1.124 → 10.1.130

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.
Files changed (98) hide show
  1. package/dist-client/bootstrap.js +1 -7
  2. package/dist-client/bootstrap.js.map +1 -1
  3. package/dist-client/index.d.ts +2 -1
  4. package/dist-client/index.js +2 -1
  5. package/dist-client/index.js.map +1 -1
  6. package/dist-client/pages/quotation-editor.d.ts +44 -0
  7. package/dist-client/pages/quotation-editor.js +315 -0
  8. package/dist-client/pages/quotation-editor.js.map +1 -0
  9. package/dist-client/pages/quotation-list.d.ts +36 -0
  10. package/dist-client/pages/quotation-list.js +113 -0
  11. package/dist-client/pages/quotation-list.js.map +1 -0
  12. package/dist-client/quotation-attach.d.ts +16 -0
  13. package/dist-client/quotation-attach.js +8 -0
  14. package/dist-client/quotation-attach.js.map +1 -0
  15. package/dist-client/quotation-words.d.ts +1 -0
  16. package/dist-client/quotation-words.js +13 -0
  17. package/dist-client/quotation-words.js.map +1 -0
  18. package/dist-client/route.d.ts +1 -1
  19. package/dist-client/route.js +4 -4
  20. package/dist-client/route.js.map +1 -1
  21. package/dist-client/tsconfig.tsbuildinfo +1 -1
  22. package/dist-server/index.d.ts +1 -0
  23. package/dist-server/index.js +1 -0
  24. package/dist-server/index.js.map +1 -1
  25. package/dist-server/service/index.d.ts +8 -3
  26. package/dist-server/service/index.js +9 -17
  27. package/dist-server/service/index.js.map +1 -1
  28. package/dist-server/service/quotation/index.d.ts +8 -5
  29. package/dist-server/service/quotation/index.js +8 -6
  30. package/dist-server/service/quotation/index.js.map +1 -1
  31. package/dist-server/service/quotation/quotation-event-query.d.ts +9 -0
  32. package/dist-server/service/quotation/quotation-event-query.js +55 -0
  33. package/dist-server/service/quotation/quotation-event-query.js.map +1 -0
  34. package/dist-server/service/quotation/quotation-event.d.ts +22 -0
  35. package/dist-server/service/quotation/quotation-event.js +98 -0
  36. package/dist-server/service/quotation/quotation-event.js.map +1 -0
  37. package/dist-server/service/quotation/quotation-item-query.d.ts +8 -0
  38. package/dist-server/service/quotation/quotation-item-query.js +45 -0
  39. package/dist-server/service/quotation/quotation-item-query.js.map +1 -0
  40. package/dist-server/service/quotation/quotation-item.d.ts +18 -0
  41. package/dist-server/service/quotation/quotation-item.js +75 -0
  42. package/dist-server/service/quotation/quotation-item.js.map +1 -0
  43. package/dist-server/service/quotation/quotation-mutation.d.ts +7 -6
  44. package/dist-server/service/quotation/quotation-mutation.js +66 -140
  45. package/dist-server/service/quotation/quotation-mutation.js.map +1 -1
  46. package/dist-server/service/quotation/quotation-query.d.ts +10 -5
  47. package/dist-server/service/quotation/quotation-query.js +69 -41
  48. package/dist-server/service/quotation/quotation-query.js.map +1 -1
  49. package/dist-server/service/quotation/quotation-rules.d.ts +6 -0
  50. package/dist-server/service/quotation/quotation-rules.js +22 -0
  51. package/dist-server/service/quotation/quotation-rules.js.map +1 -0
  52. package/dist-server/service/quotation/quotation-service.d.ts +23 -0
  53. package/dist-server/service/quotation/quotation-service.js +114 -0
  54. package/dist-server/service/quotation/quotation-service.js.map +1 -0
  55. package/dist-server/service/quotation/quotation-type.d.ts +4 -18
  56. package/dist-server/service/quotation/quotation-type.js +9 -63
  57. package/dist-server/service/quotation/quotation-type.js.map +1 -1
  58. package/dist-server/service/quotation/quotation.d.ts +19 -11
  59. package/dist-server/service/quotation/quotation.js +41 -44
  60. package/dist-server/service/quotation/quotation.js.map +1 -1
  61. package/dist-server/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +16 -6
  63. package/things-factory.config.js +2 -2
  64. package/translations/en.json +36 -1
  65. package/translations/ko.json +36 -1
  66. package/dist-client/actions/main.d.ts +0 -1
  67. package/dist-client/actions/main.js +0 -2
  68. package/dist-client/actions/main.js.map +0 -1
  69. package/dist-client/activities/activity-quotation-edit.d.ts +0 -14
  70. package/dist-client/activities/activity-quotation-edit.js +0 -87
  71. package/dist-client/activities/activity-quotation-edit.js.map +0 -1
  72. package/dist-client/activities/activity-quotation-view.d.ts +0 -14
  73. package/dist-client/activities/activity-quotation-view.js +0 -87
  74. package/dist-client/activities/activity-quotation-view.js.map +0 -1
  75. package/dist-client/pages/main.d.ts +0 -1
  76. package/dist-client/pages/main.js +0 -36
  77. package/dist-client/pages/main.js.map +0 -1
  78. package/dist-client/pages/quotation/quotation-importer.d.ts +0 -23
  79. package/dist-client/pages/quotation/quotation-importer.js +0 -93
  80. package/dist-client/pages/quotation/quotation-importer.js.map +0 -1
  81. package/dist-client/pages/quotation/quotation-list-page.d.ts +0 -55
  82. package/dist-client/pages/quotation/quotation-list-page.js +0 -262
  83. package/dist-client/pages/quotation/quotation-list-page.js.map +0 -1
  84. package/dist-client/reducers/main.d.ts +0 -6
  85. package/dist-client/reducers/main.js +0 -14
  86. package/dist-client/reducers/main.js.map +0 -1
  87. package/dist-server/activities/activity-quotation.d.ts +0 -42
  88. package/dist-server/activities/activity-quotation.js +0 -114
  89. package/dist-server/activities/activity-quotation.js.map +0 -1
  90. package/dist-server/activities/index.d.ts +0 -1
  91. package/dist-server/activities/index.js +0 -17
  92. package/dist-server/activities/index.js.map +0 -1
  93. package/dist-server/service/quotation/event-subscriber.d.ts +0 -7
  94. package/dist-server/service/quotation/event-subscriber.js +0 -21
  95. package/dist-server/service/quotation/event-subscriber.js.map +0 -1
  96. package/dist-server/service/quotation/quotation-history.d.ts +0 -25
  97. package/dist-server/service/quotation/quotation-history.js +0 -132
  98. package/dist-server/service/quotation/quotation-history.js.map +0 -1
@@ -1,132 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuotationHistory = void 0;
4
- const tslib_1 = require("tslib");
5
- const type_graphql_1 = require("type-graphql");
6
- const typeorm_1 = require("typeorm");
7
- const typeorm_history_1 = require("@operato/typeorm-history");
8
- const auth_base_1 = require("@things-factory/auth-base");
9
- const env_1 = require("@things-factory/env");
10
- const shell_1 = require("@things-factory/shell");
11
- const quotation_1 = require("./quotation");
12
- const ORMCONFIG = env_1.config.get('ormconfig', {});
13
- const DATABASE_TYPE = ORMCONFIG.type;
14
- let QuotationHistory = class QuotationHistory {
15
- constructor() {
16
- this.version = 1;
17
- }
18
- };
19
- exports.QuotationHistory = QuotationHistory;
20
- tslib_1.__decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
23
- tslib_1.__metadata("design:type", String)
24
- ], QuotationHistory.prototype, "id", void 0);
25
- tslib_1.__decorate([
26
- (0, typeorm_1.Column)({ nullable: true, default: 1 }),
27
- (0, type_graphql_1.Field)({ nullable: true }),
28
- tslib_1.__metadata("design:type", Number)
29
- ], QuotationHistory.prototype, "version", void 0);
30
- tslib_1.__decorate([
31
- (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
32
- (0, type_graphql_1.Field)(type => shell_1.Domain),
33
- tslib_1.__metadata("design:type", shell_1.Domain)
34
- ], QuotationHistory.prototype, "domain", void 0);
35
- tslib_1.__decorate([
36
- (0, typeorm_1.RelationId)((quotation) => quotation.domain),
37
- tslib_1.__metadata("design:type", String)
38
- ], QuotationHistory.prototype, "domainId", void 0);
39
- tslib_1.__decorate([
40
- (0, typeorm_1.Column)(),
41
- (0, type_graphql_1.Field)(),
42
- tslib_1.__metadata("design:type", String)
43
- ], QuotationHistory.prototype, "name", void 0);
44
- tslib_1.__decorate([
45
- (0, typeorm_1.Column)({ nullable: true }),
46
- (0, type_graphql_1.Field)({ nullable: true }),
47
- tslib_1.__metadata("design:type", String)
48
- ], QuotationHistory.prototype, "description", void 0);
49
- tslib_1.__decorate([
50
- (0, typeorm_1.Column)({ nullable: true }),
51
- (0, type_graphql_1.Field)({ nullable: true }),
52
- tslib_1.__metadata("design:type", Boolean)
53
- ], QuotationHistory.prototype, "active", void 0);
54
- tslib_1.__decorate([
55
- (0, typeorm_1.Column)({ nullable: true }),
56
- (0, type_graphql_1.Field)({ nullable: true }),
57
- tslib_1.__metadata("design:type", String)
58
- ], QuotationHistory.prototype, "state", void 0);
59
- tslib_1.__decorate([
60
- (0, typeorm_1.Column)({ nullable: true }),
61
- (0, type_graphql_1.Field)({ nullable: true }),
62
- tslib_1.__metadata("design:type", String)
63
- ], QuotationHistory.prototype, "params", void 0);
64
- tslib_1.__decorate([
65
- (0, typeorm_1.Column)({ nullable: true }),
66
- (0, type_graphql_1.Field)({ nullable: true }),
67
- tslib_1.__metadata("design:type", Date)
68
- ], QuotationHistory.prototype, "createdAt", void 0);
69
- tslib_1.__decorate([
70
- (0, typeorm_1.Column)({ nullable: true }),
71
- (0, type_graphql_1.Field)({ nullable: true }),
72
- tslib_1.__metadata("design:type", Date)
73
- ], QuotationHistory.prototype, "updatedAt", void 0);
74
- tslib_1.__decorate([
75
- (0, typeorm_1.Column)({ nullable: true }),
76
- (0, type_graphql_1.Field)({ nullable: true }),
77
- tslib_1.__metadata("design:type", Date)
78
- ], QuotationHistory.prototype, "deletedAt", void 0);
79
- tslib_1.__decorate([
80
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
81
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
82
- tslib_1.__metadata("design:type", auth_base_1.User)
83
- ], QuotationHistory.prototype, "creator", void 0);
84
- tslib_1.__decorate([
85
- (0, typeorm_1.RelationId)((quotation) => quotation.creator),
86
- tslib_1.__metadata("design:type", String)
87
- ], QuotationHistory.prototype, "creatorId", void 0);
88
- tslib_1.__decorate([
89
- (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
90
- (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
91
- tslib_1.__metadata("design:type", auth_base_1.User)
92
- ], QuotationHistory.prototype, "updater", void 0);
93
- tslib_1.__decorate([
94
- (0, typeorm_1.RelationId)((quotation) => quotation.updater),
95
- tslib_1.__metadata("design:type", String)
96
- ], QuotationHistory.prototype, "updaterId", void 0);
97
- tslib_1.__decorate([
98
- (0, type_graphql_1.Field)(type => String, { nullable: true }),
99
- tslib_1.__metadata("design:type", String)
100
- ], QuotationHistory.prototype, "thumbnail", void 0);
101
- tslib_1.__decorate([
102
- (0, typeorm_history_1.HistoryOriginalIdColumn)(),
103
- tslib_1.__metadata("design:type", String)
104
- ], QuotationHistory.prototype, "originalId", void 0);
105
- tslib_1.__decorate([
106
- (0, typeorm_history_1.HistoryActionColumn)({
107
- nullable: false,
108
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
109
- ? 'enum'
110
- : DATABASE_TYPE == 'oracle'
111
- ? 'varchar2'
112
- : DATABASE_TYPE == 'mssql'
113
- ? 'nvarchar'
114
- : 'varchar',
115
- enum: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
116
- ? typeorm_history_1.HistoryActionType
117
- : undefined,
118
- length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
119
- }),
120
- tslib_1.__metadata("design:type", String)
121
- ], QuotationHistory.prototype, "action", void 0);
122
- exports.QuotationHistory = QuotationHistory = tslib_1.__decorate([
123
- (0, typeorm_1.Entity)(),
124
- (0, typeorm_1.Index)('ix_quotation_history_0', (quotationHistory) => [quotationHistory.originalId, quotationHistory.version], { unique: true }),
125
- (0, typeorm_1.Index)('ix_quotation_history_1', (quotationHistory) => [
126
- quotationHistory.domain,
127
- quotationHistory.originalId,
128
- quotationHistory.version
129
- ], { unique: true }),
130
- (0, type_graphql_1.ObjectType)({ description: 'History Entity of Quotation' })
131
- ], QuotationHistory);
132
- //# sourceMappingURL=quotation-history.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quotation-history.js","sourceRoot":"","sources":["../../../server/service/quotation/quotation-history.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,8DAKiC;AACjC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA8C;AAE9C,2CAAwD;AAExD,M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E,WAAW,EAAE,6BAA6B,EAAE,CAAC;GAC9C,gBAAgB,CAqF5B","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@operato/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain } from '@things-factory/shell'\n\nimport { Quotation, QuotationStatus } from './quotation'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_quotation_history_0',\n (quotationHistory: QuotationHistory) => [quotationHistory.originalId, quotationHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_quotation_history_1',\n (quotationHistory: QuotationHistory) => [\n quotationHistory.domain,\n quotationHistory.originalId,\n quotationHistory.version\n ],\n { unique: true }\n)\n@ObjectType({ description: 'History Entity of Quotation' })\nexport class QuotationHistory implements HistoryEntityInterface<Quotation> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((quotation: Quotation) => quotation.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n state?: QuotationStatus\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n params?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n createdAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n updatedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n creator?: User\n\n @RelationId((quotation: Quotation) => quotation.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field(type => User, { nullable: true })\n updater?: User\n\n @RelationId((quotation: Quotation) => quotation.updater)\n updaterId?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n\n @HistoryOriginalIdColumn()\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : DATABASE_TYPE == 'mssql'\n ? 'nvarchar'\n : 'varchar',\n enum:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? HistoryActionType\n : undefined,\n length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10\n })\n public action!: HistoryActionType\n}\n"]}