@things-factory/tax-invoice 8.0.64 → 8.0.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/tax-invoice",
3
- "version": "8.0.64",
3
+ "version": "8.0.66",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -34,5 +34,5 @@
34
34
  "@things-factory/export-ui-excel": "^8.0.64",
35
35
  "@things-factory/shell": "^8.0.64"
36
36
  },
37
- "gitHead": "e7e5f6dc93f372f8ccc8aa406246f7a37795b53b"
37
+ "gitHead": "bad5bd7d03a5c378856ec664d1c5abde15472684"
38
38
  }
@@ -23,6 +23,12 @@ export class TaxInvoiceApiQuery {
23
23
  return { items, total }
24
24
  }
25
25
 
26
+ @Query(returns => TaxInvoiceApi, { nullable: true, description: 'To fetch a Default Tax Invoice Api' })
27
+ async defaultTaxInvoiceApi(@Ctx() context: ResolverContext): Promise<TaxInvoiceApi | null> {
28
+ const { domain } = context.state
29
+ return await getRepository(TaxInvoiceApi).findOne({ where: { isDefault: true, domain: { id: domain.id } } })
30
+ }
31
+
26
32
  @FieldResolver(type => Domain)
27
33
  async domain(@Root() taxInvoiceApi: TaxInvoiceApi): Promise<Domain> {
28
34
  return taxInvoiceApi.domainId && (await getRepository(Domain).findOneBy({ id: taxInvoiceApi.domainId }))
@@ -15,6 +15,9 @@ export class TaxInvoiceApiPatch {
15
15
  @Field({ nullable: true })
16
16
  provider?: string
17
17
 
18
+ @Field({ nullable: true })
19
+ apiKey?: string
20
+
18
21
  @Field({ nullable: true })
19
22
  apiAccountId?: string
20
23
 
@@ -3,10 +3,12 @@ import bootstrap from './dist-client/bootstrap'
3
3
 
4
4
  export default {
5
5
  route,
6
- routes: [{
6
+ routes: [
7
+ {
7
8
  tagname: 'tax-invoice-list-page',
8
9
  page: 'tax-invoice-list'
9
- }, {
10
+ },
11
+ {
10
12
  tagname: 'tax-invoice-send-page',
11
13
  page: 'tax-invoice-send'
12
14
  },
@@ -17,6 +19,10 @@ export default {
17
19
  {
18
20
  tagname: 'tax-invoice-api-page',
19
21
  page: 'tax-invoice-api'
22
+ },
23
+ {
24
+ tagname: 'tax-audit-result-list-page',
25
+ page: 'tax-audit-result-list'
20
26
  }
21
27
  ],
22
28
  bootstrap