@things-factory/accounting 7.1.20 → 7.1.22

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 (23) hide show
  1. package/dist-server/service/account/account-history.js +7 -2
  2. package/dist-server/service/account/account-history.js.map +1 -1
  3. package/dist-server/service/accounting-category/accounting-category-history.js +7 -2
  4. package/dist-server/service/accounting-category/accounting-category-history.js.map +1 -1
  5. package/dist-server/service/accounting-document/accounting-document-history.js +7 -2
  6. package/dist-server/service/accounting-document/accounting-document-history.js.map +1 -1
  7. package/dist-server/service/financial-statement/financial-statement-history.js +7 -2
  8. package/dist-server/service/financial-statement/financial-statement-history.js.map +1 -1
  9. package/dist-server/service/income-statement/income-statement-history.js +7 -2
  10. package/dist-server/service/income-statement/income-statement-history.js.map +1 -1
  11. package/dist-server/service/payment/payment-history.js +7 -2
  12. package/dist-server/service/payment/payment-history.js.map +1 -1
  13. package/dist-server/service/transaction/transaction-history.js +7 -2
  14. package/dist-server/service/transaction/transaction-history.js.map +1 -1
  15. package/dist-server/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +5 -5
  17. package/server/service/account/account-history.ts +8 -2
  18. package/server/service/accounting-category/accounting-category-history.ts +8 -2
  19. package/server/service/accounting-document/accounting-document-history.ts +8 -2
  20. package/server/service/financial-statement/financial-statement-history.ts +8 -2
  21. package/server/service/income-statement/income-statement-history.ts +8 -2
  22. package/server/service/payment/payment-history.ts +8 -2
  23. package/server/service/transaction/transaction-history.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/accounting",
3
- "version": "7.1.20",
3
+ "version": "7.1.22",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -30,9 +30,9 @@
30
30
  "@material/web": "^2.0.0",
31
31
  "@operato/graphql": "^7.1.0",
32
32
  "@operato/shell": "^7.1.0",
33
- "@things-factory/auth-base": "^7.1.20",
34
- "@things-factory/shell": "^7.1.17",
35
- "@things-factory/worklist": "^7.1.20"
33
+ "@things-factory/auth-base": "^7.1.22",
34
+ "@things-factory/shell": "^7.1.22",
35
+ "@things-factory/worklist": "^7.1.22"
36
36
  },
37
- "gitHead": "b8381954019a1057a32c23379277c45447708d84"
37
+ "gitHead": "b4b8efde4096ab1ec02bcf7623e32131254cbfd0"
38
38
  }
@@ -104,8 +104,14 @@ export class AccountHistory implements HistoryEntityInterface<Account> {
104
104
  ? 'enum'
105
105
  : DATABASE_TYPE == 'oracle'
106
106
  ? 'varchar2'
107
- : 'smallint',
108
- enum: HistoryActionType
107
+ : DATABASE_TYPE == 'mssql'
108
+ ? 'nvarchar'
109
+ : 'varchar',
110
+ enum:
111
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
112
+ ? HistoryActionType
113
+ : undefined,
114
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
109
115
  })
110
116
  public action!: HistoryActionType
111
117
  }
@@ -116,8 +116,14 @@ export class AccountingCategoryHistory implements HistoryEntityInterface<Account
116
116
  ? 'enum'
117
117
  : DATABASE_TYPE == 'oracle'
118
118
  ? 'varchar2'
119
- : 'smallint',
120
- enum: HistoryActionType
119
+ : DATABASE_TYPE == 'mssql'
120
+ ? 'nvarchar'
121
+ : 'varchar',
122
+ enum:
123
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
124
+ ? HistoryActionType
125
+ : undefined,
126
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
121
127
  })
122
128
  public action!: HistoryActionType
123
129
  }
@@ -110,8 +110,14 @@ export class AccountingDocumentHistory implements HistoryEntityInterface<Account
110
110
  ? 'enum'
111
111
  : DATABASE_TYPE == 'oracle'
112
112
  ? 'varchar2'
113
- : 'smallint',
114
- enum: HistoryActionType
113
+ : DATABASE_TYPE == 'mssql'
114
+ ? 'nvarchar'
115
+ : 'varchar',
116
+ enum:
117
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
118
+ ? HistoryActionType
119
+ : undefined,
120
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
115
121
  })
116
122
  public action!: HistoryActionType
117
123
  }
@@ -116,8 +116,14 @@ export class FinancialStatementHistory implements HistoryEntityInterface<Financi
116
116
  ? 'enum'
117
117
  : DATABASE_TYPE == 'oracle'
118
118
  ? 'varchar2'
119
- : 'smallint',
120
- enum: HistoryActionType
119
+ : DATABASE_TYPE == 'mssql'
120
+ ? 'nvarchar'
121
+ : 'varchar',
122
+ enum:
123
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
124
+ ? HistoryActionType
125
+ : undefined,
126
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
121
127
  })
122
128
  public action!: HistoryActionType
123
129
  }
@@ -120,8 +120,14 @@ export class IncomeStatementHistory implements HistoryEntityInterface<IncomeStat
120
120
  ? 'enum'
121
121
  : DATABASE_TYPE == 'oracle'
122
122
  ? 'varchar2'
123
- : 'smallint',
124
- enum: HistoryActionType
123
+ : DATABASE_TYPE == 'mssql'
124
+ ? 'nvarchar'
125
+ : 'varchar',
126
+ enum:
127
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
128
+ ? HistoryActionType
129
+ : undefined,
130
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
125
131
  })
126
132
  public action!: HistoryActionType
127
133
  }
@@ -119,8 +119,14 @@ export class PaymentHistory implements HistoryEntityInterface<Payment> {
119
119
  ? 'enum'
120
120
  : DATABASE_TYPE == 'oracle'
121
121
  ? 'varchar2'
122
- : 'smallint',
123
- enum: HistoryActionType
122
+ : DATABASE_TYPE == 'mssql'
123
+ ? 'nvarchar'
124
+ : 'varchar',
125
+ enum:
126
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
127
+ ? HistoryActionType
128
+ : undefined,
129
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
124
130
  })
125
131
  public action!: HistoryActionType
126
132
  }
@@ -148,8 +148,14 @@ export class TransactionHistory implements HistoryEntityInterface<Transaction> {
148
148
  ? 'enum'
149
149
  : DATABASE_TYPE == 'oracle'
150
150
  ? 'varchar2'
151
- : 'smallint',
152
- enum: HistoryActionType
151
+ : DATABASE_TYPE == 'mssql'
152
+ ? 'nvarchar'
153
+ : 'varchar',
154
+ enum:
155
+ DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
156
+ ? HistoryActionType
157
+ : undefined,
158
+ length: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? undefined : 10
153
159
  })
154
160
  public action!: HistoryActionType
155
161
  }