@restorecommerce/facade 0.3.2 → 0.3.3
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/CHANGELOG.md +8 -0
- package/codegen/index.js +1 -1
- package/dist/gql/helpers/schema.d.ts +2 -6
- package/dist/gql/index.js +5 -1
- package/dist/gql/protos/graphql.d.ts +5 -7
- package/dist/gql/protos/graphql.js +43 -44
- package/dist/gql/protos/index.js +5 -1
- package/dist/gql/protos/protos.d.ts +1 -1
- package/dist/gql/protos/protos.js +4 -4
- package/dist/gql/protos/registry.d.ts +1 -1
- package/dist/gql/protos/registry.js +31 -31
- package/dist/gql/protos/types.d.ts +1 -1
- package/dist/gql/protos/utils.js +5 -5
- package/dist/gql/types/AccessControlTypes.js +2 -2
- package/dist/gql/types/DateType.d.ts +1 -1
- package/dist/gql/types/index.js +5 -1
- package/dist/index.js +13 -6
- package/dist/middlewares/index.js +5 -1
- package/dist/middlewares/req-res-logger/index.js +2 -2
- package/dist/modules/access-control/gql/federation.js +4 -3
- package/dist/modules/access-control/gql/schema.generated.d.ts +91 -94
- package/dist/modules/access-control/gql/schema.js +2 -2
- package/dist/modules/access-control/gql/types.js +1 -1
- package/dist/modules/access-control/grpc/index.js +4 -4
- package/dist/modules/access-control/index.js +2 -2
- package/dist/modules/catalog/gql/federation.js +4 -3
- package/dist/modules/catalog/gql/schema.generated.d.ts +127 -130
- package/dist/modules/catalog/gql/schema.js +2 -2
- package/dist/modules/catalog/gql/types.js +1 -1
- package/dist/modules/catalog/grpc/index.js +5 -5
- package/dist/modules/catalog/index.js +2 -2
- package/dist/modules/facade-status/gql/index.js +2 -2
- package/dist/modules/facade-status/gql/schema.generated.d.ts +6 -7
- package/dist/modules/facade-status/gql/types.js +1 -1
- package/dist/modules/facade-status/index.js +1 -1
- package/dist/modules/fulfillment/gql/federation.js +4 -3
- package/dist/modules/fulfillment/gql/schema.generated.d.ts +120 -123
- package/dist/modules/fulfillment/gql/schema.js +2 -2
- package/dist/modules/fulfillment/gql/types.js +1 -1
- package/dist/modules/fulfillment/grpc/index.js +2 -2
- package/dist/modules/fulfillment/index.js +2 -2
- package/dist/modules/identity/api-key/api-key.js +1 -1
- package/dist/modules/identity/gql/federation.js +4 -3
- package/dist/modules/identity/gql/schema.generated.d.ts +169 -172
- package/dist/modules/identity/gql/schema.js +2 -2
- package/dist/modules/identity/gql/types.js +1 -1
- package/dist/modules/identity/grpc/index.js +5 -5
- package/dist/modules/identity/index.js +5 -5
- package/dist/modules/identity/oauth/oauth.js +11 -11
- package/dist/modules/identity/oidc/adapter.js +2 -2
- package/dist/modules/identity/oidc/in-memory-adapter.js +10 -6
- package/dist/modules/identity/oidc/index.js +6 -6
- package/dist/modules/identity/oidc/password-grant.js +4 -4
- package/dist/modules/identity/oidc/user.js +2 -2
- package/dist/modules/identity/oidc/utils.js +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/indexing/gql/federation.js +4 -3
- package/dist/modules/indexing/gql/schema.generated.d.ts +10 -13
- package/dist/modules/indexing/gql/schema.js +2 -2
- package/dist/modules/indexing/gql/types.js +1 -1
- package/dist/modules/indexing/grpc/index.js +1 -1
- package/dist/modules/indexing/index.js +2 -2
- package/dist/modules/invoicing/gql/federation.js +4 -3
- package/dist/modules/invoicing/gql/schema.generated.d.ts +61 -64
- package/dist/modules/invoicing/gql/schema.js +2 -2
- package/dist/modules/invoicing/gql/types.js +1 -1
- package/dist/modules/invoicing/grpc/index.js +1 -1
- package/dist/modules/invoicing/index.js +2 -2
- package/dist/modules/notification/gql/federation.js +4 -3
- package/dist/modules/notification/gql/schema.generated.d.ts +59 -62
- package/dist/modules/notification/gql/schema.js +2 -2
- package/dist/modules/notification/gql/types.js +1 -1
- package/dist/modules/notification/grpc/index.js +1 -1
- package/dist/modules/notification/index.js +2 -2
- package/dist/modules/ordering/gql/federation.js +4 -3
- package/dist/modules/ordering/gql/schema.generated.d.ts +92 -95
- package/dist/modules/ordering/gql/schema.js +2 -2
- package/dist/modules/ordering/gql/types.js +1 -1
- package/dist/modules/ordering/grpc/index.js +1 -1
- package/dist/modules/ordering/index.js +2 -2
- package/dist/modules/ostorage/gql/federation.js +4 -3
- package/dist/modules/ostorage/gql/schema.generated.d.ts +61 -64
- package/dist/modules/ostorage/gql/schema.js +2 -2
- package/dist/modules/ostorage/gql/types.js +1 -1
- package/dist/modules/ostorage/grpc/index.js +1 -1
- package/dist/modules/ostorage/index.js +2 -2
- package/dist/modules/payment/gql/federation.js +4 -3
- package/dist/modules/payment/gql/schema.generated.d.ts +32 -35
- package/dist/modules/payment/gql/schema.js +2 -2
- package/dist/modules/payment/gql/types.js +1 -1
- package/dist/modules/payment/grpc/index.js +1 -1
- package/dist/modules/payment/index.js +2 -2
- package/dist/modules/resource/gql/federation.js +4 -3
- package/dist/modules/resource/gql/schema.generated.d.ts +179 -182
- package/dist/modules/resource/gql/schema.js +2 -2
- package/dist/modules/resource/gql/types.js +1 -1
- package/dist/modules/resource/grpc/index.js +12 -12
- package/dist/modules/resource/index.js +2 -2
- package/dist/modules/scheduling/gql/federation.js +4 -3
- package/dist/modules/scheduling/gql/schema.generated.d.ts +55 -58
- package/dist/modules/scheduling/gql/schema.js +2 -2
- package/dist/modules/scheduling/gql/types.js +1 -1
- package/dist/modules/scheduling/grpc/index.js +1 -1
- package/dist/modules/scheduling/index.js +2 -2
- package/package.json +42 -42
@@ -1,6 +1,7 @@
|
|
1
1
|
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
2
2
|
import { ResourceContext } from '../interfaces';
|
3
3
|
export declare type Maybe<T> = T | undefined;
|
4
|
+
export declare type InputMaybe<T> = T | undefined;
|
4
5
|
export declare type Exact<T extends {
|
5
6
|
[key: string]: unknown;
|
6
7
|
}> = {
|
@@ -12,9 +13,7 @@ export declare type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
12
13
|
export declare type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
13
14
|
[SubKey in K]: Maybe<T[SubKey]>;
|
14
15
|
};
|
15
|
-
export declare type RequireFields<T, K extends keyof T> = {
|
16
|
-
[X in Exclude<keyof T, K>]?: T[X];
|
17
|
-
} & {
|
16
|
+
export declare type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
18
17
|
[P in K]-?: NonNullable<T[P]>;
|
19
18
|
};
|
20
19
|
/** All built-in and custom scalars, mapped to their actual values */
|
@@ -122,19 +121,19 @@ export declare type IoRestorecommerceStatusOperationStatus = {
|
|
122
121
|
message?: Maybe<Scalars['String']>;
|
123
122
|
};
|
124
123
|
export declare type IIoRestorecommerceResourcebaseReadRequest = {
|
125
|
-
offset?:
|
126
|
-
limit?:
|
127
|
-
sort?:
|
128
|
-
filters?:
|
129
|
-
field?:
|
130
|
-
search?:
|
131
|
-
localesLimiter?:
|
132
|
-
customQueries?:
|
133
|
-
customArguments?:
|
124
|
+
offset?: InputMaybe<Scalars['Int']>;
|
125
|
+
limit?: InputMaybe<Scalars['Int']>;
|
126
|
+
sort?: InputMaybe<Array<IIoRestorecommerceResourcebaseSort>>;
|
127
|
+
filters?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilterOp>>;
|
128
|
+
field?: InputMaybe<Array<IIoRestorecommerceResourcebaseFieldFilter>>;
|
129
|
+
search?: InputMaybe<Array<Scalars['String']>>;
|
130
|
+
localesLimiter?: InputMaybe<Array<Scalars['String']>>;
|
131
|
+
customQueries?: InputMaybe<Array<Scalars['String']>>;
|
132
|
+
customArguments?: InputMaybe<IGoogleProtobufAny>;
|
134
133
|
};
|
135
134
|
export declare type IIoRestorecommerceResourcebaseSort = {
|
136
|
-
field?:
|
137
|
-
order?:
|
135
|
+
field?: InputMaybe<Scalars['String']>;
|
136
|
+
order?: InputMaybe<IoRestorecommerceResourcebaseSortSortOrder>;
|
138
137
|
};
|
139
138
|
export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
140
139
|
Unsorted = 0,
|
@@ -142,15 +141,15 @@ export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
|
142
141
|
Descending = 2
|
143
142
|
}
|
144
143
|
export declare type IIoRestorecommerceResourcebaseFilterOp = {
|
145
|
-
filter?:
|
146
|
-
operator?:
|
144
|
+
filter?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilter>>;
|
145
|
+
operator?: InputMaybe<IoRestorecommerceResourcebaseFilterOpOperator>;
|
147
146
|
};
|
148
147
|
export declare type IIoRestorecommerceResourcebaseFilter = {
|
149
|
-
field?:
|
150
|
-
operation?:
|
151
|
-
value?:
|
152
|
-
type?:
|
153
|
-
filters?:
|
148
|
+
field?: InputMaybe<Scalars['String']>;
|
149
|
+
operation?: InputMaybe<IoRestorecommerceResourcebaseFilterOperation>;
|
150
|
+
value?: InputMaybe<Scalars['String']>;
|
151
|
+
type?: InputMaybe<IoRestorecommerceResourcebaseFilterValueType>;
|
152
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
154
153
|
};
|
155
154
|
export declare enum IoRestorecommerceResourcebaseFilterOperation {
|
156
155
|
Eq = 0,
|
@@ -171,15 +170,15 @@ export declare enum IoRestorecommerceResourcebaseFilterValueType {
|
|
171
170
|
Array = 4
|
172
171
|
}
|
173
172
|
export declare type IIoRestorecommerceFilterFilterOp = {
|
174
|
-
filter?:
|
175
|
-
operator?:
|
173
|
+
filter?: InputMaybe<Array<IIoRestorecommerceFilterFilter>>;
|
174
|
+
operator?: InputMaybe<IoRestorecommerceFilterFilterOpOperator>;
|
176
175
|
};
|
177
176
|
export declare type IIoRestorecommerceFilterFilter = {
|
178
|
-
field?:
|
179
|
-
operation?:
|
180
|
-
value?:
|
181
|
-
type?:
|
182
|
-
filters?:
|
177
|
+
field?: InputMaybe<Scalars['String']>;
|
178
|
+
operation?: InputMaybe<IoRestorecommerceFilterFilterOperation>;
|
179
|
+
value?: InputMaybe<Scalars['String']>;
|
180
|
+
type?: InputMaybe<IoRestorecommerceFilterFilterValueType>;
|
181
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
183
182
|
};
|
184
183
|
export declare enum IoRestorecommerceFilterFilterOperation {
|
185
184
|
Eq = 0,
|
@@ -208,12 +207,12 @@ export declare enum IoRestorecommerceResourcebaseFilterOpOperator {
|
|
208
207
|
Or = 1
|
209
208
|
}
|
210
209
|
export declare type IIoRestorecommerceResourcebaseFieldFilter = {
|
211
|
-
name?:
|
212
|
-
include?:
|
210
|
+
name?: InputMaybe<Scalars['String']>;
|
211
|
+
include?: InputMaybe<Scalars['Boolean']>;
|
213
212
|
};
|
214
213
|
export declare type IGoogleProtobufAny = {
|
215
|
-
typeUrl?:
|
216
|
-
value?:
|
214
|
+
typeUrl?: InputMaybe<Scalars['String']>;
|
215
|
+
value?: InputMaybe<Scalars['Upload']>;
|
217
216
|
};
|
218
217
|
export declare type ResourceCountryQuery = {
|
219
218
|
__typename?: 'ResourceCountryQuery';
|
@@ -626,45 +625,45 @@ export declare type ResourceAddressMutationDeleteArgs = {
|
|
626
625
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
627
626
|
};
|
628
627
|
export declare type IIoRestorecommerceAddressAddressList = {
|
629
|
-
items?:
|
630
|
-
totalCount?:
|
631
|
-
mode?:
|
628
|
+
items?: InputMaybe<Array<IIoRestorecommerceAddressAddress>>;
|
629
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
630
|
+
mode?: InputMaybe<ModeType>;
|
632
631
|
};
|
633
632
|
export declare type IIoRestorecommerceAddressAddress = {
|
634
|
-
id?:
|
635
|
-
meta?:
|
636
|
-
postcode?:
|
637
|
-
countryId?:
|
638
|
-
locality?:
|
639
|
-
street?:
|
640
|
-
region?:
|
641
|
-
geoCoordinates?:
|
642
|
-
altitude?:
|
643
|
-
buildingNumber?:
|
644
|
-
addressAddition?:
|
633
|
+
id?: InputMaybe<Scalars['String']>;
|
634
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
635
|
+
postcode?: InputMaybe<Scalars['String']>;
|
636
|
+
countryId?: InputMaybe<Scalars['String']>;
|
637
|
+
locality?: InputMaybe<Scalars['String']>;
|
638
|
+
street?: InputMaybe<Scalars['String']>;
|
639
|
+
region?: InputMaybe<Scalars['String']>;
|
640
|
+
geoCoordinates?: InputMaybe<IIoRestorecommerceAddressAddressGeoPoint>;
|
641
|
+
altitude?: InputMaybe<Scalars['Float']>;
|
642
|
+
buildingNumber?: InputMaybe<Scalars['String']>;
|
643
|
+
addressAddition?: InputMaybe<IIoRestorecommerceAddressAddressAddition>;
|
645
644
|
};
|
646
645
|
export declare type IIoRestorecommerceMetaMeta = {
|
647
|
-
created?:
|
648
|
-
modified?:
|
649
|
-
modifiedBy?:
|
650
|
-
owner?:
|
651
|
-
acl?:
|
646
|
+
created?: InputMaybe<Scalars['Float']>;
|
647
|
+
modified?: InputMaybe<Scalars['Float']>;
|
648
|
+
modifiedBy?: InputMaybe<Scalars['String']>;
|
649
|
+
owner?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
650
|
+
acl?: InputMaybe<Array<IIoRestorecommerceAttributeAttributeObj>>;
|
652
651
|
};
|
653
652
|
export declare type IIoRestorecommerceAttributeAttribute = {
|
654
|
-
id?:
|
655
|
-
value?:
|
656
|
-
attribute?:
|
653
|
+
id?: InputMaybe<Scalars['String']>;
|
654
|
+
value?: InputMaybe<Scalars['String']>;
|
655
|
+
attribute?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
657
656
|
};
|
658
657
|
export declare type IIoRestorecommerceAttributeAttributeObj = {
|
659
|
-
attribute?:
|
658
|
+
attribute?: InputMaybe<IIoRestorecommerceAttributeAttribute>;
|
660
659
|
};
|
661
660
|
export declare type IIoRestorecommerceAddressAddressGeoPoint = {
|
662
|
-
latitude?:
|
663
|
-
longitude?:
|
661
|
+
latitude?: InputMaybe<Scalars['Float']>;
|
662
|
+
longitude?: InputMaybe<Scalars['Float']>;
|
664
663
|
};
|
665
664
|
export declare type IIoRestorecommerceAddressAddressAddition = {
|
666
|
-
field1?:
|
667
|
-
field2?:
|
665
|
+
field1?: InputMaybe<Scalars['String']>;
|
666
|
+
field2?: InputMaybe<Scalars['String']>;
|
668
667
|
};
|
669
668
|
export declare enum ModeType {
|
670
669
|
Create = "CREATE",
|
@@ -681,8 +680,8 @@ export declare type IoRestorecommerceResourcebaseDeleteResponse = {
|
|
681
680
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
682
681
|
};
|
683
682
|
export declare type IIoRestorecommerceResourcebaseDeleteRequest = {
|
684
|
-
collection?:
|
685
|
-
ids?:
|
683
|
+
collection?: InputMaybe<Scalars['Boolean']>;
|
684
|
+
ids?: InputMaybe<Array<Scalars['String']>>;
|
686
685
|
};
|
687
686
|
export declare type ResourceCountryMutation = {
|
688
687
|
__typename?: 'ResourceCountryMutation';
|
@@ -696,17 +695,17 @@ export declare type ResourceCountryMutationDeleteArgs = {
|
|
696
695
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
697
696
|
};
|
698
697
|
export declare type IIoRestorecommerceCountryCountryList = {
|
699
|
-
items?:
|
700
|
-
totalCount?:
|
701
|
-
mode?:
|
698
|
+
items?: InputMaybe<Array<IIoRestorecommerceCountryCountry>>;
|
699
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
700
|
+
mode?: InputMaybe<ModeType>;
|
702
701
|
};
|
703
702
|
export declare type IIoRestorecommerceCountryCountry = {
|
704
|
-
id?:
|
705
|
-
meta?:
|
706
|
-
name?:
|
707
|
-
countryCode?:
|
708
|
-
geographicalName?:
|
709
|
-
economicAreas?:
|
703
|
+
id?: InputMaybe<Scalars['String']>;
|
704
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
705
|
+
name?: InputMaybe<Scalars['String']>;
|
706
|
+
countryCode?: InputMaybe<Scalars['String']>;
|
707
|
+
geographicalName?: InputMaybe<Scalars['String']>;
|
708
|
+
economicAreas?: InputMaybe<Array<Scalars['String']>>;
|
710
709
|
};
|
711
710
|
export declare type ResourceTimezoneMutation = {
|
712
711
|
__typename?: 'ResourceTimezoneMutation';
|
@@ -720,14 +719,14 @@ export declare type ResourceTimezoneMutationDeleteArgs = {
|
|
720
719
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
721
720
|
};
|
722
721
|
export declare type IIoRestorecommerceTimezoneTimezoneList = {
|
723
|
-
items?:
|
724
|
-
totalCount?:
|
725
|
-
mode?:
|
722
|
+
items?: InputMaybe<Array<IIoRestorecommerceTimezoneTimezone>>;
|
723
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
724
|
+
mode?: InputMaybe<ModeType>;
|
726
725
|
};
|
727
726
|
export declare type IIoRestorecommerceTimezoneTimezone = {
|
728
|
-
id?:
|
729
|
-
meta?:
|
730
|
-
description?:
|
727
|
+
id?: InputMaybe<Scalars['String']>;
|
728
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
729
|
+
description?: InputMaybe<Scalars['String']>;
|
731
730
|
};
|
732
731
|
export declare type ResourceContactPointTypeMutation = {
|
733
732
|
__typename?: 'ResourceContactPointTypeMutation';
|
@@ -741,14 +740,14 @@ export declare type ResourceContactPointTypeMutationDeleteArgs = {
|
|
741
740
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
742
741
|
};
|
743
742
|
export declare type IIoRestorecommerceContactPointTypeContactPointTypeList = {
|
744
|
-
items?:
|
745
|
-
totalCount?:
|
746
|
-
mode?:
|
743
|
+
items?: InputMaybe<Array<IIoRestorecommerceContactPointTypeContactPointType>>;
|
744
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
745
|
+
mode?: InputMaybe<ModeType>;
|
747
746
|
};
|
748
747
|
export declare type IIoRestorecommerceContactPointTypeContactPointType = {
|
749
|
-
id?:
|
750
|
-
meta?:
|
751
|
-
type?:
|
748
|
+
id?: InputMaybe<Scalars['String']>;
|
749
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
750
|
+
type?: InputMaybe<Scalars['String']>;
|
752
751
|
};
|
753
752
|
export declare type ResourceCustomerMutation = {
|
754
753
|
__typename?: 'ResourceCustomerMutation';
|
@@ -762,30 +761,30 @@ export declare type ResourceCustomerMutationDeleteArgs = {
|
|
762
761
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
763
762
|
};
|
764
763
|
export declare type IIoRestorecommerceCustomerCustomerList = {
|
765
|
-
items?:
|
766
|
-
totalCount?:
|
767
|
-
mode?:
|
764
|
+
items?: InputMaybe<Array<IIoRestorecommerceCustomerCustomer>>;
|
765
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
766
|
+
mode?: InputMaybe<ModeType>;
|
768
767
|
};
|
769
768
|
export declare type IIoRestorecommerceCustomerCustomer = {
|
770
|
-
id?:
|
771
|
-
meta?:
|
772
|
-
individualUser?:
|
773
|
-
orgUser?:
|
774
|
-
guest?:
|
769
|
+
id?: InputMaybe<Scalars['String']>;
|
770
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
771
|
+
individualUser?: InputMaybe<IIoRestorecommerceCustomerIndividualUser>;
|
772
|
+
orgUser?: InputMaybe<IIoRestorecommerceCustomerOrgUser>;
|
773
|
+
guest?: InputMaybe<IIoRestorecommerceCustomerGuest>;
|
775
774
|
};
|
776
775
|
export declare type IIoRestorecommerceCustomerIndividualUser = {
|
777
|
-
userId?:
|
778
|
-
addressId?:
|
779
|
-
contactPointIds?:
|
776
|
+
userId?: InputMaybe<Scalars['String']>;
|
777
|
+
addressId?: InputMaybe<Scalars['String']>;
|
778
|
+
contactPointIds?: InputMaybe<Array<Scalars['String']>>;
|
780
779
|
};
|
781
780
|
export declare type IIoRestorecommerceCustomerOrgUser = {
|
782
|
-
userId?:
|
783
|
-
organizationId?:
|
781
|
+
userId?: InputMaybe<Scalars['String']>;
|
782
|
+
organizationId?: InputMaybe<Scalars['String']>;
|
784
783
|
};
|
785
784
|
export declare type IIoRestorecommerceCustomerGuest = {
|
786
|
-
guest?:
|
787
|
-
addressId?:
|
788
|
-
contactPointIds?:
|
785
|
+
guest?: InputMaybe<Scalars['Boolean']>;
|
786
|
+
addressId?: InputMaybe<Scalars['String']>;
|
787
|
+
contactPointIds?: InputMaybe<Array<Scalars['String']>>;
|
789
788
|
};
|
790
789
|
export declare type ResourceContactPointMutation = {
|
791
790
|
__typename?: 'ResourceContactPointMutation';
|
@@ -799,20 +798,20 @@ export declare type ResourceContactPointMutationDeleteArgs = {
|
|
799
798
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
800
799
|
};
|
801
800
|
export declare type IIoRestorecommerceContactPointContactPointList = {
|
802
|
-
items?:
|
803
|
-
totalCount?:
|
804
|
-
mode?:
|
801
|
+
items?: InputMaybe<Array<IIoRestorecommerceContactPointContactPoint>>;
|
802
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
803
|
+
mode?: InputMaybe<ModeType>;
|
805
804
|
};
|
806
805
|
export declare type IIoRestorecommerceContactPointContactPoint = {
|
807
|
-
id?:
|
808
|
-
meta?:
|
809
|
-
physicalAddressId?:
|
810
|
-
website?:
|
811
|
-
email?:
|
812
|
-
contactPointTypeId?:
|
813
|
-
telephone?:
|
814
|
-
timezoneId?:
|
815
|
-
localeId?:
|
806
|
+
id?: InputMaybe<Scalars['String']>;
|
807
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
808
|
+
physicalAddressId?: InputMaybe<Scalars['String']>;
|
809
|
+
website?: InputMaybe<Scalars['String']>;
|
810
|
+
email?: InputMaybe<Scalars['String']>;
|
811
|
+
contactPointTypeId?: InputMaybe<Scalars['String']>;
|
812
|
+
telephone?: InputMaybe<Scalars['String']>;
|
813
|
+
timezoneId?: InputMaybe<Scalars['String']>;
|
814
|
+
localeId?: InputMaybe<Scalars['String']>;
|
816
815
|
};
|
817
816
|
export declare type ResourceLocaleMutation = {
|
818
817
|
__typename?: 'ResourceLocaleMutation';
|
@@ -826,15 +825,15 @@ export declare type ResourceLocaleMutationDeleteArgs = {
|
|
826
825
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
827
826
|
};
|
828
827
|
export declare type IIoRestorecommerceLocaleLocaleList = {
|
829
|
-
items?:
|
830
|
-
totalCount?:
|
831
|
-
mode?:
|
828
|
+
items?: InputMaybe<Array<IIoRestorecommerceLocaleLocale>>;
|
829
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
830
|
+
mode?: InputMaybe<ModeType>;
|
832
831
|
};
|
833
832
|
export declare type IIoRestorecommerceLocaleLocale = {
|
834
|
-
id?:
|
835
|
-
meta?:
|
836
|
-
value?:
|
837
|
-
description?:
|
833
|
+
id?: InputMaybe<Scalars['String']>;
|
834
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
835
|
+
value?: InputMaybe<Scalars['String']>;
|
836
|
+
description?: InputMaybe<Scalars['String']>;
|
838
837
|
};
|
839
838
|
export declare type ResourceLocationMutation = {
|
840
839
|
__typename?: 'ResourceLocationMutation';
|
@@ -848,20 +847,20 @@ export declare type ResourceLocationMutationDeleteArgs = {
|
|
848
847
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
849
848
|
};
|
850
849
|
export declare type IIoRestorecommerceLocationLocationList = {
|
851
|
-
items?:
|
852
|
-
totalCount?:
|
853
|
-
mode?:
|
850
|
+
items?: InputMaybe<Array<IIoRestorecommerceLocationLocation>>;
|
851
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
852
|
+
mode?: InputMaybe<ModeType>;
|
854
853
|
};
|
855
854
|
export declare type IIoRestorecommerceLocationLocation = {
|
856
|
-
id?:
|
857
|
-
meta?:
|
858
|
-
name?:
|
859
|
-
description?:
|
860
|
-
organizationId?:
|
861
|
-
parentId?:
|
862
|
-
addressId?:
|
863
|
-
data?:
|
864
|
-
type?:
|
855
|
+
id?: InputMaybe<Scalars['String']>;
|
856
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
857
|
+
name?: InputMaybe<Scalars['String']>;
|
858
|
+
description?: InputMaybe<Scalars['String']>;
|
859
|
+
organizationId?: InputMaybe<Scalars['String']>;
|
860
|
+
parentId?: InputMaybe<Scalars['String']>;
|
861
|
+
addressId?: InputMaybe<Scalars['String']>;
|
862
|
+
data?: InputMaybe<IGoogleProtobufAny>;
|
863
|
+
type?: InputMaybe<Scalars['String']>;
|
865
864
|
};
|
866
865
|
export declare type ResourceOrganizationMutation = {
|
867
866
|
__typename?: 'ResourceOrganizationMutation';
|
@@ -875,26 +874,26 @@ export declare type ResourceOrganizationMutationDeleteArgs = {
|
|
875
874
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
876
875
|
};
|
877
876
|
export declare type IIoRestorecommerceOrganizationOrganizationList = {
|
878
|
-
items?:
|
879
|
-
totalCount?:
|
880
|
-
mode?:
|
877
|
+
items?: InputMaybe<Array<IIoRestorecommerceOrganizationOrganization>>;
|
878
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
879
|
+
mode?: InputMaybe<ModeType>;
|
881
880
|
};
|
882
881
|
export declare type IIoRestorecommerceOrganizationOrganization = {
|
883
|
-
id?:
|
884
|
-
meta?:
|
885
|
-
addressId?:
|
886
|
-
parentId?:
|
887
|
-
contactPointIds?:
|
888
|
-
website?:
|
889
|
-
email?:
|
890
|
-
logo?:
|
891
|
-
vatId?:
|
892
|
-
isicV4?:
|
893
|
-
registration?:
|
894
|
-
registrationCourt?:
|
895
|
-
name?:
|
896
|
-
paymentMethodIds?:
|
897
|
-
data?:
|
882
|
+
id?: InputMaybe<Scalars['String']>;
|
883
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
884
|
+
addressId?: InputMaybe<Scalars['String']>;
|
885
|
+
parentId?: InputMaybe<Scalars['String']>;
|
886
|
+
contactPointIds?: InputMaybe<Array<Scalars['String']>>;
|
887
|
+
website?: InputMaybe<Scalars['String']>;
|
888
|
+
email?: InputMaybe<Scalars['String']>;
|
889
|
+
logo?: InputMaybe<Scalars['String']>;
|
890
|
+
vatId?: InputMaybe<Scalars['String']>;
|
891
|
+
isicV4?: InputMaybe<Scalars['String']>;
|
892
|
+
registration?: InputMaybe<Scalars['String']>;
|
893
|
+
registrationCourt?: InputMaybe<Scalars['String']>;
|
894
|
+
name?: InputMaybe<Scalars['String']>;
|
895
|
+
paymentMethodIds?: InputMaybe<Array<Scalars['String']>>;
|
896
|
+
data?: InputMaybe<IGoogleProtobufAny>;
|
898
897
|
};
|
899
898
|
export declare type ResourceTaxMutation = {
|
900
899
|
__typename?: 'ResourceTaxMutation';
|
@@ -908,17 +907,17 @@ export declare type ResourceTaxMutationDeleteArgs = {
|
|
908
907
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
909
908
|
};
|
910
909
|
export declare type IIoRestorecommerceTaxTaxList = {
|
911
|
-
items?:
|
912
|
-
totalCount?:
|
913
|
-
mode?:
|
910
|
+
items?: InputMaybe<Array<IIoRestorecommerceTaxTax>>;
|
911
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
912
|
+
mode?: InputMaybe<ModeType>;
|
914
913
|
};
|
915
914
|
export declare type IIoRestorecommerceTaxTax = {
|
916
|
-
id?:
|
917
|
-
meta?:
|
918
|
-
countryId?:
|
919
|
-
rate?:
|
920
|
-
variant?:
|
921
|
-
typeId?:
|
915
|
+
id?: InputMaybe<Scalars['String']>;
|
916
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
917
|
+
countryId?: InputMaybe<Scalars['String']>;
|
918
|
+
rate?: InputMaybe<Scalars['Float']>;
|
919
|
+
variant?: InputMaybe<Scalars['String']>;
|
920
|
+
typeId?: InputMaybe<Scalars['String']>;
|
922
921
|
};
|
923
922
|
export declare type ResourceTaxTypeMutation = {
|
924
923
|
__typename?: 'ResourceTaxTypeMutation';
|
@@ -932,15 +931,15 @@ export declare type ResourceTaxTypeMutationDeleteArgs = {
|
|
932
931
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
933
932
|
};
|
934
933
|
export declare type IIoRestorecommerceTaxTypeTaxTypeList = {
|
935
|
-
items?:
|
936
|
-
totalCount?:
|
937
|
-
mode?:
|
934
|
+
items?: InputMaybe<Array<IIoRestorecommerceTaxTypeTaxType>>;
|
935
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
936
|
+
mode?: InputMaybe<ModeType>;
|
938
937
|
};
|
939
938
|
export declare type IIoRestorecommerceTaxTypeTaxType = {
|
940
|
-
id?:
|
941
|
-
meta?:
|
942
|
-
type?:
|
943
|
-
description?:
|
939
|
+
id?: InputMaybe<Scalars['String']>;
|
940
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
941
|
+
type?: InputMaybe<Scalars['String']>;
|
942
|
+
description?: InputMaybe<Scalars['String']>;
|
944
943
|
};
|
945
944
|
export declare type ResourceCommandMutation = {
|
946
945
|
__typename?: 'ResourceCommandMutation';
|
@@ -954,29 +953,32 @@ export declare type ResourceCommandMutationDeleteArgs = {
|
|
954
953
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
955
954
|
};
|
956
955
|
export declare type IIoRestorecommerceCommandCommandList = {
|
957
|
-
items?:
|
958
|
-
totalCount?:
|
959
|
-
mode?:
|
956
|
+
items?: InputMaybe<Array<IIoRestorecommerceCommandCommand>>;
|
957
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
958
|
+
mode?: InputMaybe<ModeType>;
|
960
959
|
};
|
961
960
|
export declare type IIoRestorecommerceCommandCommand = {
|
962
|
-
id?:
|
963
|
-
meta?:
|
964
|
-
name?:
|
965
|
-
parameters?:
|
966
|
-
description?:
|
961
|
+
id?: InputMaybe<Scalars['String']>;
|
962
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
963
|
+
name?: InputMaybe<Scalars['String']>;
|
964
|
+
parameters?: InputMaybe<Array<IIoRestorecommerceCommandCommandParameter>>;
|
965
|
+
description?: InputMaybe<Scalars['String']>;
|
967
966
|
};
|
968
967
|
export declare type IIoRestorecommerceCommandCommandParameter = {
|
969
|
-
field?:
|
970
|
-
description?:
|
971
|
-
type?:
|
972
|
-
properties?:
|
968
|
+
field?: InputMaybe<Scalars['String']>;
|
969
|
+
description?: InputMaybe<Scalars['String']>;
|
970
|
+
type?: InputMaybe<IoRestorecommerceCommandCommandParameterParameterType>;
|
971
|
+
properties?: InputMaybe<Scalars['String']>;
|
973
972
|
};
|
974
973
|
export declare type WithIndex<TObject> = TObject & Record<string, any>;
|
975
974
|
export declare type ResolversObject<TObject> = WithIndex<TObject>;
|
976
975
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
977
|
-
export declare type
|
976
|
+
export declare type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
977
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
978
|
+
};
|
979
|
+
export declare type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
978
980
|
export declare type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
979
|
-
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) =>
|
981
|
+
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
980
982
|
export declare type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
981
983
|
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
982
984
|
subscribe: SubscriptionSubscribeFn<{
|
@@ -1968,8 +1970,3 @@ export declare type Resolvers<ContextType = ResourceContext> = ResolversObject<{
|
|
1968
1970
|
ResourceTaxTypeMutation?: ResourceTaxTypeMutationResolvers<ContextType>;
|
1969
1971
|
ResourceCommandMutation?: ResourceCommandMutationResolvers<ContextType>;
|
1970
1972
|
}>;
|
1971
|
-
/**
|
1972
|
-
* @deprecated
|
1973
|
-
* Use "Resolvers" root object instead. If you wish to get "IResolvers", add "typesPrefix: I" to your config.
|
1974
|
-
*/
|
1975
|
-
export declare type IResolvers<ContextType = ResourceContext> = Resolvers<ContextType>;
|
@@ -4,6 +4,6 @@ exports.schema = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
5
5
|
const protos_1 = require("../../../gql/protos");
|
6
6
|
const interfaces_1 = require("../interfaces");
|
7
|
-
types_1.registerTypings();
|
8
|
-
const schema = (cfg) => protos_1.generateSubServiceSchemas(types_1.subServices, cfg, interfaces_1.namespace, 'Resource');
|
7
|
+
(0, types_1.registerTypings)();
|
8
|
+
const schema = (cfg) => (0, protos_1.generateSubServiceSchemas)(types_1.subServices, cfg, interfaces_1.namespace, 'Resource');
|
9
9
|
exports.schema = schema;
|
@@ -15,7 +15,7 @@ const tax_type_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/r
|
|
15
15
|
const command_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/command");
|
16
16
|
const protos_1 = require("../../../gql/protos");
|
17
17
|
function registerTypings() {
|
18
|
-
protos_1.registerPackagesRecursive(address_1.protoMetadata, country_1.protoMetadata, timezone_1.protoMetadata, contact_point_type_1.protoMetadata, customer_1.protoMetadata, contact_point_1.protoMetadata, locale_1.protoMetadata, location_1.protoMetadata, organization_1.protoMetadata, tax_type_1.protoMetadata, tax_1.protoMetadata, command_1.protoMetadata);
|
18
|
+
(0, protos_1.registerPackagesRecursive)(address_1.protoMetadata, country_1.protoMetadata, timezone_1.protoMetadata, contact_point_type_1.protoMetadata, customer_1.protoMetadata, contact_point_1.protoMetadata, locale_1.protoMetadata, location_1.protoMetadata, organization_1.protoMetadata, tax_type_1.protoMetadata, tax_1.protoMetadata, command_1.protoMetadata);
|
19
19
|
}
|
20
20
|
exports.registerTypings = registerTypings;
|
21
21
|
exports.subServices = [
|
@@ -18,18 +18,18 @@ const protos_1 = require("../../../gql/protos");
|
|
18
18
|
class ResourceSrvGrpcClient extends rc_grpc_clients_1.RestoreCommerceGrpcClient {
|
19
19
|
constructor(cfg, logger) {
|
20
20
|
super(cfg, logger);
|
21
|
-
this.address = protos_1.getGRPCService(this, address_1.protobufPackage, address_1.protoMetadata.fileDescriptor.service[0]);
|
22
|
-
this.country = protos_1.getGRPCService(this, country_1.protobufPackage, country_1.protoMetadata.fileDescriptor.service[0]);
|
23
|
-
this.timezone = protos_1.getGRPCService(this, timezone_1.protobufPackage, timezone_1.protoMetadata.fileDescriptor.service[0]);
|
24
|
-
this.contact_point_type = protos_1.getGRPCService(this, contact_point_type_1.protobufPackage, contact_point_type_1.protoMetadata.fileDescriptor.service[0]);
|
25
|
-
this.customer = protos_1.getGRPCService(this, customer_1.protobufPackage, customer_1.protoMetadata.fileDescriptor.service[0]);
|
26
|
-
this.contact_point = protos_1.getGRPCService(this, contact_point_1.protobufPackage, contact_point_1.protoMetadata.fileDescriptor.service[0]);
|
27
|
-
this.locale = protos_1.getGRPCService(this, locale_1.protobufPackage, locale_1.protoMetadata.fileDescriptor.service[0]);
|
28
|
-
this.location = protos_1.getGRPCService(this, location_1.protobufPackage, location_1.protoMetadata.fileDescriptor.service[0]);
|
29
|
-
this.organization = protos_1.getGRPCService(this, organization_1.protobufPackage, organization_1.protoMetadata.fileDescriptor.service[0]);
|
30
|
-
this.tax = protos_1.getGRPCService(this, tax_1.protobufPackage, tax_1.protoMetadata.fileDescriptor.service[0]);
|
31
|
-
this.tax_type = protos_1.getGRPCService(this, tax_type_1.protobufPackage, tax_type_1.protoMetadata.fileDescriptor.service[0]);
|
32
|
-
this.command = protos_1.getGRPCService(this, command_1.protobufPackage, command_1.protoMetadata.fileDescriptor.service[0]);
|
21
|
+
this.address = (0, protos_1.getGRPCService)(this, address_1.protobufPackage, address_1.protoMetadata.fileDescriptor.service[0]);
|
22
|
+
this.country = (0, protos_1.getGRPCService)(this, country_1.protobufPackage, country_1.protoMetadata.fileDescriptor.service[0]);
|
23
|
+
this.timezone = (0, protos_1.getGRPCService)(this, timezone_1.protobufPackage, timezone_1.protoMetadata.fileDescriptor.service[0]);
|
24
|
+
this.contact_point_type = (0, protos_1.getGRPCService)(this, contact_point_type_1.protobufPackage, contact_point_type_1.protoMetadata.fileDescriptor.service[0]);
|
25
|
+
this.customer = (0, protos_1.getGRPCService)(this, customer_1.protobufPackage, customer_1.protoMetadata.fileDescriptor.service[0]);
|
26
|
+
this.contact_point = (0, protos_1.getGRPCService)(this, contact_point_1.protobufPackage, contact_point_1.protoMetadata.fileDescriptor.service[0]);
|
27
|
+
this.locale = (0, protos_1.getGRPCService)(this, locale_1.protobufPackage, locale_1.protoMetadata.fileDescriptor.service[0]);
|
28
|
+
this.location = (0, protos_1.getGRPCService)(this, location_1.protobufPackage, location_1.protoMetadata.fileDescriptor.service[0]);
|
29
|
+
this.organization = (0, protos_1.getGRPCService)(this, organization_1.protobufPackage, organization_1.protoMetadata.fileDescriptor.service[0]);
|
30
|
+
this.tax = (0, protos_1.getGRPCService)(this, tax_1.protobufPackage, tax_1.protoMetadata.fileDescriptor.service[0]);
|
31
|
+
this.tax_type = (0, protos_1.getGRPCService)(this, tax_type_1.protobufPackage, tax_type_1.protoMetadata.fileDescriptor.service[0]);
|
32
|
+
this.command = (0, protos_1.getGRPCService)(this, command_1.protobufPackage, command_1.protoMetadata.fileDescriptor.service[0]);
|
33
33
|
}
|
34
34
|
}
|
35
35
|
exports.ResourceSrvGrpcClient = ResourceSrvGrpcClient;
|
@@ -5,13 +5,13 @@ const federation_1 = require("./gql/federation");
|
|
5
5
|
const interfaces_1 = require("./interfaces");
|
6
6
|
const grpc_1 = require("./grpc");
|
7
7
|
const utils_1 = require("../../utils");
|
8
|
-
exports.resourceModule = utils_1.createFacadeModuleFactory(interfaces_1.namespace, (facade, config) => {
|
8
|
+
exports.resourceModule = (0, utils_1.createFacadeModuleFactory)(interfaces_1.namespace, (facade, config) => {
|
9
9
|
const resource = {
|
10
10
|
client: new grpc_1.ResourceSrvGrpcClient(config.config.client, facade.logger)
|
11
11
|
};
|
12
12
|
facade.addApolloService({
|
13
13
|
name: interfaces_1.namespace,
|
14
|
-
schema: federation_1.FederatedResourceSchema(config.config)
|
14
|
+
schema: (0, federation_1.FederatedResourceSchema)(config.config)
|
15
15
|
});
|
16
16
|
facade.koa.use(async (ctx, next) => {
|
17
17
|
ctx.resource = resource;
|
@@ -7,10 +7,11 @@ const schema_1 = require("./schema");
|
|
7
7
|
const interfaces_1 = require("../interfaces");
|
8
8
|
const protos_1 = require("../../../gql/protos");
|
9
9
|
const types_1 = require("./types");
|
10
|
+
const graphql_1 = require("graphql");
|
10
11
|
// TODO There is currently no way of building a federated schema from GraphQLSchema Object
|
11
12
|
// See https://github.com/apollographql/apollo-server/pull/4310
|
12
|
-
const FederatedSchedulingSchema = (cfg) => federation_1.buildFederatedSchema({
|
13
|
-
typeDefs: apollo_server_koa_1.gql(
|
14
|
-
resolvers: protos_1.generateSubServiceResolvers(types_1.subServices, cfg, interfaces_1.namespace)
|
13
|
+
const FederatedSchedulingSchema = (cfg) => (0, federation_1.buildFederatedSchema)({
|
14
|
+
typeDefs: (0, apollo_server_koa_1.gql)((0, graphql_1.printSchema)((0, schema_1.schema)(cfg))),
|
15
|
+
resolvers: (0, protos_1.generateSubServiceResolvers)(types_1.subServices, cfg, interfaces_1.namespace)
|
15
16
|
});
|
16
17
|
exports.FederatedSchedulingSchema = FederatedSchedulingSchema;
|