@xxmachina/common 19.2.1 → 19.3.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/domain/models/index.d.ts +100 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -1
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -1
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -1
- package/fesm2022/xxmachina-common-domain-models.mjs +22 -23
- package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -1
- package/fesm2022/xxmachina-common-firebase-auth.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +1 -1
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-external.mjs +1 -2
- package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +3 -4
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +1 -2
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -1
- package/fesm2022/xxmachina-common-infra.mjs +2 -4
- package/fesm2022/xxmachina-common-infra.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs.map +1 -1
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-graphql.mjs +266 -3
- package/fesm2022/xxmachina-common-services-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-query-config.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-query.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-speech.mjs.map +1 -1
- package/fesm2022/xxmachina-common-services-transformer.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -1
- package/fesm2022/xxmachina-common-stores-inmemory.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -1
- package/fesm2022/xxmachina-common-usecase.mjs.map +1 -1
- package/fesm2022/xxmachina-common-utils.mjs.map +1 -1
- package/infra/converters/google/index.d.ts +1 -3
- package/infra/index.d.ts +1 -1
- package/infra/query/firestore/index.d.ts +3 -3
- package/infra/repository/firestore/index.d.ts +2 -2
- package/package.json +11 -11
- package/services/graphql/index.d.ts +67 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { IsString, IsOptional, ValidateNested } from 'class-validator';
|
|
3
3
|
import { Nullable, Optional, IsDayjs as IsDayjs$1 } from 'class-validator-extended';
|
|
4
|
-
import { Firestore } from '@nx-ddd/firestore
|
|
4
|
+
import { Firestore } from '@nx-ddd/firestore';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import { Domain, TransformToDayjs as TransformToDayjs$1 } from '@nx-ddd/common/domain';
|
|
7
7
|
import { get, merge, pick, camelCase } from 'lodash-es';
|
|
@@ -13,7 +13,6 @@ import { gql } from 'apollo-angular';
|
|
|
13
13
|
import { format } from 'prettier';
|
|
14
14
|
import graphqlParser from 'prettier/parser-graphql';
|
|
15
15
|
import { IsDayjs } from '@nx-ddd/core';
|
|
16
|
-
import { Firestore as Firestore$1 } from '@nx-ddd/firestore';
|
|
17
16
|
|
|
18
17
|
class Assistant {
|
|
19
18
|
id;
|
|
@@ -534,34 +533,34 @@ class QueryGraphql {
|
|
|
534
533
|
}
|
|
535
534
|
__decorate([
|
|
536
535
|
IsString(),
|
|
537
|
-
Firestore
|
|
536
|
+
Firestore.String(),
|
|
538
537
|
Hasura.Text(),
|
|
539
538
|
__metadata("design:type", String)
|
|
540
539
|
], QueryGraphql.prototype, "endpoint", void 0);
|
|
541
540
|
__decorate([
|
|
542
541
|
IsString(),
|
|
543
|
-
Firestore
|
|
542
|
+
Firestore.String(),
|
|
544
543
|
Hasura.Text(),
|
|
545
544
|
__metadata("design:type", String)
|
|
546
545
|
], QueryGraphql.prototype, "query", void 0);
|
|
547
546
|
__decorate([
|
|
548
547
|
Optional(),
|
|
549
548
|
IsString(),
|
|
550
|
-
Firestore
|
|
549
|
+
Firestore.String(),
|
|
551
550
|
Hasura.Text(),
|
|
552
551
|
__metadata("design:type", String)
|
|
553
552
|
], QueryGraphql.prototype, "headersJson", void 0);
|
|
554
553
|
__decorate([
|
|
555
554
|
Optional(),
|
|
556
555
|
IsString(),
|
|
557
|
-
Firestore
|
|
556
|
+
Firestore.String(),
|
|
558
557
|
Hasura.Text(),
|
|
559
558
|
__metadata("design:type", String)
|
|
560
559
|
], QueryGraphql.prototype, "variablesJson", void 0);
|
|
561
560
|
__decorate([
|
|
562
561
|
Optional(),
|
|
563
562
|
IsString(),
|
|
564
|
-
Firestore
|
|
563
|
+
Firestore.String(),
|
|
565
564
|
Hasura.Text(),
|
|
566
565
|
__metadata("design:type", String)
|
|
567
566
|
], QueryGraphql.prototype, "transformerTs", void 0);
|
|
@@ -596,39 +595,39 @@ class Query {
|
|
|
596
595
|
}
|
|
597
596
|
__decorate([
|
|
598
597
|
IsString(),
|
|
599
|
-
Firestore
|
|
598
|
+
Firestore.String(),
|
|
600
599
|
Hasura.Text(),
|
|
601
600
|
__metadata("design:type", String)
|
|
602
601
|
], Query.prototype, "id", void 0);
|
|
603
602
|
__decorate([
|
|
604
603
|
IsString(),
|
|
605
|
-
Firestore
|
|
604
|
+
Firestore.String(),
|
|
606
605
|
Hasura.Text(),
|
|
607
606
|
__metadata("design:type", String)
|
|
608
607
|
], Query.prototype, "projectId", void 0);
|
|
609
608
|
__decorate([
|
|
610
609
|
IsString(),
|
|
611
|
-
Firestore
|
|
610
|
+
Firestore.String(),
|
|
612
611
|
Hasura.Text(),
|
|
613
612
|
__metadata("design:type", String)
|
|
614
613
|
], Query.prototype, "title", void 0);
|
|
615
614
|
__decorate([
|
|
616
615
|
IsString(),
|
|
617
|
-
Firestore
|
|
616
|
+
Firestore.String(),
|
|
618
617
|
Hasura.Text(),
|
|
619
618
|
__metadata("design:type", String)
|
|
620
619
|
], Query.prototype, "summary", void 0);
|
|
621
620
|
__decorate([
|
|
622
621
|
Optional(),
|
|
623
622
|
IsString(),
|
|
624
|
-
Firestore
|
|
623
|
+
Firestore.String(),
|
|
625
624
|
Hasura.Text(),
|
|
626
625
|
__metadata("design:type", String)
|
|
627
626
|
], Query.prototype, "type", void 0);
|
|
628
627
|
__decorate([
|
|
629
628
|
Optional(),
|
|
630
629
|
ValidateNested(),
|
|
631
|
-
Firestore
|
|
630
|
+
Firestore.Map(),
|
|
632
631
|
Hasura.JSON(),
|
|
633
632
|
__metadata("design:type", QueryGraphql)
|
|
634
633
|
], Query.prototype, "graphql", void 0);
|
|
@@ -637,7 +636,7 @@ __decorate([
|
|
|
637
636
|
Optional(),
|
|
638
637
|
IsDayjs(),
|
|
639
638
|
TransformToDayjs(),
|
|
640
|
-
Firestore
|
|
639
|
+
Firestore.Timestamp(),
|
|
641
640
|
__metadata("design:type", dayjs.Dayjs)
|
|
642
641
|
], Query.prototype, "createdAt", void 0);
|
|
643
642
|
__decorate([
|
|
@@ -645,7 +644,7 @@ __decorate([
|
|
|
645
644
|
Optional(),
|
|
646
645
|
IsDayjs(),
|
|
647
646
|
TransformToDayjs(),
|
|
648
|
-
Firestore
|
|
647
|
+
Firestore.Timestamp(),
|
|
649
648
|
__metadata("design:type", dayjs.Dayjs)
|
|
650
649
|
], Query.prototype, "updatedAt", void 0);
|
|
651
650
|
|
|
@@ -672,39 +671,39 @@ let Resource = class Resource {
|
|
|
672
671
|
};
|
|
673
672
|
__decorate([
|
|
674
673
|
Domain.Lang('ID'),
|
|
675
|
-
Firestore
|
|
674
|
+
Firestore.String(),
|
|
676
675
|
Hasura.Text(),
|
|
677
676
|
__metadata("design:type", String)
|
|
678
677
|
], Resource.prototype, "id", void 0);
|
|
679
678
|
__decorate([
|
|
680
679
|
Domain.Lang('プロジェクトID'),
|
|
681
|
-
Firestore
|
|
680
|
+
Firestore.String(),
|
|
682
681
|
Hasura.Text(),
|
|
683
682
|
__metadata("design:type", String)
|
|
684
683
|
], Resource.prototype, "projectId", void 0);
|
|
685
684
|
__decorate([
|
|
686
685
|
Domain.Lang('名称'),
|
|
687
|
-
Firestore
|
|
686
|
+
Firestore.String(),
|
|
688
687
|
Hasura.Text(),
|
|
689
688
|
__metadata("design:type", String)
|
|
690
689
|
], Resource.prototype, "name", void 0);
|
|
691
690
|
__decorate([
|
|
692
691
|
Domain.Lang('種別'),
|
|
693
|
-
Firestore
|
|
692
|
+
Firestore.String(),
|
|
694
693
|
Hasura.Text(),
|
|
695
694
|
__metadata("design:type", String)
|
|
696
695
|
], Resource.prototype, "type", void 0);
|
|
697
696
|
__decorate([
|
|
698
697
|
Domain.Lang('OpenAPI設定'),
|
|
699
698
|
Optional(),
|
|
700
|
-
Firestore
|
|
699
|
+
Firestore.Map(),
|
|
701
700
|
Hasura.JSON(),
|
|
702
701
|
__metadata("design:type", Object)
|
|
703
702
|
], Resource.prototype, "openapi", void 0);
|
|
704
703
|
__decorate([
|
|
705
704
|
Domain.Lang('GraphQL設定'),
|
|
706
705
|
Optional(),
|
|
707
|
-
Firestore
|
|
706
|
+
Firestore.Map(),
|
|
708
707
|
Hasura.JSON(),
|
|
709
708
|
__metadata("design:type", Object)
|
|
710
709
|
], Resource.prototype, "graphql", void 0);
|
|
@@ -713,7 +712,7 @@ __decorate([
|
|
|
713
712
|
Optional(),
|
|
714
713
|
IsDayjs(),
|
|
715
714
|
TransformToDayjs$1(),
|
|
716
|
-
Firestore
|
|
715
|
+
Firestore.Timestamp(),
|
|
717
716
|
Hasura.Timestamp(),
|
|
718
717
|
__metadata("design:type", dayjs.Dayjs)
|
|
719
718
|
], Resource.prototype, "createdAt", void 0);
|
|
@@ -722,7 +721,7 @@ __decorate([
|
|
|
722
721
|
Optional(),
|
|
723
722
|
IsDayjs(),
|
|
724
723
|
TransformToDayjs$1(),
|
|
725
|
-
Firestore
|
|
724
|
+
Firestore.Timestamp(),
|
|
726
725
|
Hasura.Timestamp(),
|
|
727
726
|
__metadata("design:type", dayjs.Dayjs)
|
|
728
727
|
], Resource.prototype, "updatedAt", void 0);
|