@restorecommerce/facade 0.3.0 → 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 +27 -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 +13 -14
- 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 +43 -42
@@ -1,6 +1,7 @@
|
|
1
1
|
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
2
2
|
import { IdentityContext } 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 */
|
@@ -172,19 +171,19 @@ export declare type IoRestorecommerceStatusOperationStatus = {
|
|
172
171
|
message?: Maybe<Scalars['String']>;
|
173
172
|
};
|
174
173
|
export declare type IIoRestorecommerceResourcebaseReadRequest = {
|
175
|
-
offset?:
|
176
|
-
limit?:
|
177
|
-
sort?:
|
178
|
-
filters?:
|
179
|
-
field?:
|
180
|
-
search?:
|
181
|
-
localesLimiter?:
|
182
|
-
customQueries?:
|
183
|
-
customArguments?:
|
174
|
+
offset?: InputMaybe<Scalars['Int']>;
|
175
|
+
limit?: InputMaybe<Scalars['Int']>;
|
176
|
+
sort?: InputMaybe<Array<IIoRestorecommerceResourcebaseSort>>;
|
177
|
+
filters?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilterOp>>;
|
178
|
+
field?: InputMaybe<Array<IIoRestorecommerceResourcebaseFieldFilter>>;
|
179
|
+
search?: InputMaybe<Array<Scalars['String']>>;
|
180
|
+
localesLimiter?: InputMaybe<Array<Scalars['String']>>;
|
181
|
+
customQueries?: InputMaybe<Array<Scalars['String']>>;
|
182
|
+
customArguments?: InputMaybe<IGoogleProtobufAny>;
|
184
183
|
};
|
185
184
|
export declare type IIoRestorecommerceResourcebaseSort = {
|
186
|
-
field?:
|
187
|
-
order?:
|
185
|
+
field?: InputMaybe<Scalars['String']>;
|
186
|
+
order?: InputMaybe<IoRestorecommerceResourcebaseSortSortOrder>;
|
188
187
|
};
|
189
188
|
export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
190
189
|
Unsorted = 0,
|
@@ -192,15 +191,15 @@ export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
|
192
191
|
Descending = 2
|
193
192
|
}
|
194
193
|
export declare type IIoRestorecommerceResourcebaseFilterOp = {
|
195
|
-
filter?:
|
196
|
-
operator?:
|
194
|
+
filter?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilter>>;
|
195
|
+
operator?: InputMaybe<IoRestorecommerceResourcebaseFilterOpOperator>;
|
197
196
|
};
|
198
197
|
export declare type IIoRestorecommerceResourcebaseFilter = {
|
199
|
-
field?:
|
200
|
-
operation?:
|
201
|
-
value?:
|
202
|
-
type?:
|
203
|
-
filters?:
|
198
|
+
field?: InputMaybe<Scalars['String']>;
|
199
|
+
operation?: InputMaybe<IoRestorecommerceResourcebaseFilterOperation>;
|
200
|
+
value?: InputMaybe<Scalars['String']>;
|
201
|
+
type?: InputMaybe<IoRestorecommerceResourcebaseFilterValueType>;
|
202
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
204
203
|
};
|
205
204
|
export declare enum IoRestorecommerceResourcebaseFilterOperation {
|
206
205
|
Eq = 0,
|
@@ -221,15 +220,15 @@ export declare enum IoRestorecommerceResourcebaseFilterValueType {
|
|
221
220
|
Array = 4
|
222
221
|
}
|
223
222
|
export declare type IIoRestorecommerceFilterFilterOp = {
|
224
|
-
filter?:
|
225
|
-
operator?:
|
223
|
+
filter?: InputMaybe<Array<IIoRestorecommerceFilterFilter>>;
|
224
|
+
operator?: InputMaybe<IoRestorecommerceFilterFilterOpOperator>;
|
226
225
|
};
|
227
226
|
export declare type IIoRestorecommerceFilterFilter = {
|
228
|
-
field?:
|
229
|
-
operation?:
|
230
|
-
value?:
|
231
|
-
type?:
|
232
|
-
filters?:
|
227
|
+
field?: InputMaybe<Scalars['String']>;
|
228
|
+
operation?: InputMaybe<IoRestorecommerceFilterFilterOperation>;
|
229
|
+
value?: InputMaybe<Scalars['String']>;
|
230
|
+
type?: InputMaybe<IoRestorecommerceFilterFilterValueType>;
|
231
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
233
232
|
};
|
234
233
|
export declare enum IoRestorecommerceFilterFilterOperation {
|
235
234
|
Eq = 0,
|
@@ -258,33 +257,33 @@ export declare enum IoRestorecommerceResourcebaseFilterOpOperator {
|
|
258
257
|
Or = 1
|
259
258
|
}
|
260
259
|
export declare type IIoRestorecommerceResourcebaseFieldFilter = {
|
261
|
-
name?:
|
262
|
-
include?:
|
260
|
+
name?: InputMaybe<Scalars['String']>;
|
261
|
+
include?: InputMaybe<Scalars['Boolean']>;
|
263
262
|
};
|
264
263
|
export declare type IGoogleProtobufAny = {
|
265
|
-
typeUrl?:
|
266
|
-
value?:
|
264
|
+
typeUrl?: InputMaybe<Scalars['String']>;
|
265
|
+
value?: InputMaybe<Scalars['Upload']>;
|
267
266
|
};
|
268
267
|
export declare type IIoRestorecommerceUserFindRequest = {
|
269
|
-
id?:
|
270
|
-
name?:
|
271
|
-
email?:
|
268
|
+
id?: InputMaybe<Scalars['String']>;
|
269
|
+
name?: InputMaybe<Scalars['String']>;
|
270
|
+
email?: InputMaybe<Scalars['String']>;
|
272
271
|
};
|
273
272
|
export declare type IIoRestorecommerceUserFindByRoleRequest = {
|
274
|
-
role?:
|
275
|
-
attributes?:
|
273
|
+
role?: InputMaybe<Scalars['String']>;
|
274
|
+
attributes?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
276
275
|
};
|
277
276
|
export declare type IIoRestorecommerceAttributeAttribute = {
|
278
|
-
id?:
|
279
|
-
value?:
|
280
|
-
attribute?:
|
277
|
+
id?: InputMaybe<Scalars['String']>;
|
278
|
+
value?: InputMaybe<Scalars['String']>;
|
279
|
+
attribute?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
281
280
|
};
|
282
281
|
export declare type ProtoIoRestorecommerceUserUserResponse = {
|
283
282
|
__typename?: 'ProtoIoRestorecommerceUserUserResponse';
|
284
283
|
details?: Maybe<IoRestorecommerceUserUserResponse>;
|
285
284
|
};
|
286
285
|
export declare type IIoRestorecommerceUserFindByTokenRequest = {
|
287
|
-
token?:
|
286
|
+
token?: InputMaybe<Scalars['String']>;
|
288
287
|
};
|
289
288
|
export declare type IdentityRoleQuery = {
|
290
289
|
__typename?: 'IdentityRoleQuery';
|
@@ -363,8 +362,8 @@ export declare type ProtoGoogleProtobufAny = {
|
|
363
362
|
details?: Maybe<GoogleProtobufAny>;
|
364
363
|
};
|
365
364
|
export declare type IIoRestorecommerceTokenIdentifier = {
|
366
|
-
id?:
|
367
|
-
type?:
|
365
|
+
id?: InputMaybe<Scalars['String']>;
|
366
|
+
type?: InputMaybe<Scalars['String']>;
|
368
367
|
};
|
369
368
|
export declare type IdentityOauthQuery = {
|
370
369
|
__typename?: 'IdentityOauthQuery';
|
@@ -463,72 +462,72 @@ export declare type IdentityUserMutationSendActivationEmailArgs = {
|
|
463
462
|
input: IIoRestorecommerceUserSendActivationEmailRequest;
|
464
463
|
};
|
465
464
|
export declare type IIoRestorecommerceUserUserList = {
|
466
|
-
items?:
|
467
|
-
totalCount?:
|
468
|
-
mode?:
|
465
|
+
items?: InputMaybe<Array<IIoRestorecommerceUserUser>>;
|
466
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
467
|
+
mode?: InputMaybe<ModeType>;
|
469
468
|
};
|
470
469
|
export declare type IIoRestorecommerceUserUser = {
|
471
|
-
id?:
|
472
|
-
meta?:
|
473
|
-
name?:
|
474
|
-
firstName?:
|
475
|
-
lastName?:
|
476
|
-
email?:
|
477
|
-
newEmail?:
|
478
|
-
active?:
|
479
|
-
activationCode?:
|
480
|
-
password?:
|
481
|
-
passwordHash?:
|
482
|
-
roleAssociations?:
|
483
|
-
timezoneId?:
|
484
|
-
localeId?:
|
485
|
-
defaultScope?:
|
486
|
-
unauthenticated?:
|
487
|
-
guest?:
|
488
|
-
image?:
|
489
|
-
userType?:
|
490
|
-
invite?:
|
491
|
-
invitedByUserName?:
|
492
|
-
invitedByUserFirstName?:
|
493
|
-
invitedByUserLastName?:
|
494
|
-
tokens?:
|
495
|
-
lastAccess?:
|
496
|
-
data?:
|
470
|
+
id?: InputMaybe<Scalars['String']>;
|
471
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
472
|
+
name?: InputMaybe<Scalars['String']>;
|
473
|
+
firstName?: InputMaybe<Scalars['String']>;
|
474
|
+
lastName?: InputMaybe<Scalars['String']>;
|
475
|
+
email?: InputMaybe<Scalars['String']>;
|
476
|
+
newEmail?: InputMaybe<Scalars['String']>;
|
477
|
+
active?: InputMaybe<Scalars['Boolean']>;
|
478
|
+
activationCode?: InputMaybe<Scalars['String']>;
|
479
|
+
password?: InputMaybe<Scalars['String']>;
|
480
|
+
passwordHash?: InputMaybe<Scalars['String']>;
|
481
|
+
roleAssociations?: InputMaybe<Array<IIoRestorecommerceAuthRoleAssociation>>;
|
482
|
+
timezoneId?: InputMaybe<Scalars['String']>;
|
483
|
+
localeId?: InputMaybe<Scalars['String']>;
|
484
|
+
defaultScope?: InputMaybe<Scalars['String']>;
|
485
|
+
unauthenticated?: InputMaybe<Scalars['Boolean']>;
|
486
|
+
guest?: InputMaybe<Scalars['Boolean']>;
|
487
|
+
image?: InputMaybe<IIoRestorecommerceImageImage>;
|
488
|
+
userType?: InputMaybe<IoRestorecommerceUserUserType>;
|
489
|
+
invite?: InputMaybe<Scalars['Boolean']>;
|
490
|
+
invitedByUserName?: InputMaybe<Scalars['String']>;
|
491
|
+
invitedByUserFirstName?: InputMaybe<Scalars['String']>;
|
492
|
+
invitedByUserLastName?: InputMaybe<Scalars['String']>;
|
493
|
+
tokens?: InputMaybe<Array<IIoRestorecommerceAuthTokens>>;
|
494
|
+
lastAccess?: InputMaybe<Scalars['Float']>;
|
495
|
+
data?: InputMaybe<IGoogleProtobufAny>;
|
497
496
|
};
|
498
497
|
export declare type IIoRestorecommerceMetaMeta = {
|
499
|
-
created?:
|
500
|
-
modified?:
|
501
|
-
modifiedBy?:
|
502
|
-
owner?:
|
503
|
-
acl?:
|
498
|
+
created?: InputMaybe<Scalars['Float']>;
|
499
|
+
modified?: InputMaybe<Scalars['Float']>;
|
500
|
+
modifiedBy?: InputMaybe<Scalars['String']>;
|
501
|
+
owner?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
502
|
+
acl?: InputMaybe<Array<IIoRestorecommerceAttributeAttributeObj>>;
|
504
503
|
};
|
505
504
|
export declare type IIoRestorecommerceAttributeAttributeObj = {
|
506
|
-
attribute?:
|
505
|
+
attribute?: InputMaybe<IIoRestorecommerceAttributeAttribute>;
|
507
506
|
};
|
508
507
|
export declare type IIoRestorecommerceAuthRoleAssociation = {
|
509
|
-
role?:
|
510
|
-
attributes?:
|
511
|
-
id?:
|
512
|
-
created?:
|
508
|
+
role?: InputMaybe<Scalars['String']>;
|
509
|
+
attributes?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
510
|
+
id?: InputMaybe<Scalars['String']>;
|
511
|
+
created?: InputMaybe<Scalars['Float']>;
|
513
512
|
};
|
514
513
|
export declare type IIoRestorecommerceImageImage = {
|
515
|
-
id?:
|
516
|
-
caption?:
|
517
|
-
filename?:
|
518
|
-
contentType?:
|
519
|
-
url?:
|
520
|
-
width?:
|
521
|
-
height?:
|
522
|
-
length?:
|
514
|
+
id?: InputMaybe<Scalars['String']>;
|
515
|
+
caption?: InputMaybe<Scalars['String']>;
|
516
|
+
filename?: InputMaybe<Scalars['String']>;
|
517
|
+
contentType?: InputMaybe<Scalars['String']>;
|
518
|
+
url?: InputMaybe<Scalars['String']>;
|
519
|
+
width?: InputMaybe<Scalars['Float']>;
|
520
|
+
height?: InputMaybe<Scalars['Float']>;
|
521
|
+
length?: InputMaybe<Scalars['Float']>;
|
523
522
|
};
|
524
523
|
export declare type IIoRestorecommerceAuthTokens = {
|
525
|
-
name?:
|
526
|
-
expiresIn?:
|
527
|
-
token?:
|
528
|
-
scopes?:
|
529
|
-
type?:
|
530
|
-
interactive?:
|
531
|
-
lastLogin?:
|
524
|
+
name?: InputMaybe<Scalars['String']>;
|
525
|
+
expiresIn?: InputMaybe<Scalars['Float']>;
|
526
|
+
token?: InputMaybe<Scalars['String']>;
|
527
|
+
scopes?: InputMaybe<Array<Scalars['String']>>;
|
528
|
+
type?: InputMaybe<Scalars['String']>;
|
529
|
+
interactive?: InputMaybe<Scalars['Boolean']>;
|
530
|
+
lastLogin?: InputMaybe<Scalars['Float']>;
|
532
531
|
};
|
533
532
|
export declare enum ModeType {
|
534
533
|
Create = "CREATE",
|
@@ -545,23 +544,23 @@ export declare type IoRestorecommerceResourcebaseDeleteResponse = {
|
|
545
544
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
546
545
|
};
|
547
546
|
export declare type IIoRestorecommerceResourcebaseDeleteRequest = {
|
548
|
-
collection?:
|
549
|
-
ids?:
|
547
|
+
collection?: InputMaybe<Scalars['Boolean']>;
|
548
|
+
ids?: InputMaybe<Array<Scalars['String']>>;
|
550
549
|
};
|
551
550
|
export declare type IIoRestorecommerceUserRegisterRequest = {
|
552
|
-
id?:
|
553
|
-
guest?:
|
554
|
-
meta?:
|
555
|
-
name?:
|
556
|
-
firstName?:
|
557
|
-
lastName?:
|
558
|
-
email?:
|
559
|
-
password?:
|
560
|
-
timezoneId?:
|
561
|
-
localeId?:
|
562
|
-
defaultScope?:
|
563
|
-
userType?:
|
564
|
-
captchaCode?:
|
551
|
+
id?: InputMaybe<Scalars['String']>;
|
552
|
+
guest?: InputMaybe<Scalars['Boolean']>;
|
553
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
554
|
+
name?: InputMaybe<Scalars['String']>;
|
555
|
+
firstName?: InputMaybe<Scalars['String']>;
|
556
|
+
lastName?: InputMaybe<Scalars['String']>;
|
557
|
+
email?: InputMaybe<Scalars['String']>;
|
558
|
+
password?: InputMaybe<Scalars['String']>;
|
559
|
+
timezoneId?: InputMaybe<Scalars['String']>;
|
560
|
+
localeId?: InputMaybe<Scalars['String']>;
|
561
|
+
defaultScope?: InputMaybe<Scalars['String']>;
|
562
|
+
userType?: InputMaybe<IoRestorecommerceUserUserType>;
|
563
|
+
captchaCode?: InputMaybe<Scalars['String']>;
|
565
564
|
};
|
566
565
|
export declare type ProtoIoRestorecommerceStatusOperationStatusObj = {
|
567
566
|
__typename?: 'ProtoIoRestorecommerceStatusOperationStatusObj';
|
@@ -572,37 +571,37 @@ export declare type IoRestorecommerceStatusOperationStatusObj = {
|
|
572
571
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
573
572
|
};
|
574
573
|
export declare type IIoRestorecommerceUserActivateRequest = {
|
575
|
-
identifier?:
|
576
|
-
activationCode?:
|
574
|
+
identifier?: InputMaybe<Scalars['String']>;
|
575
|
+
activationCode?: InputMaybe<Scalars['String']>;
|
577
576
|
};
|
578
577
|
export declare type IIoRestorecommerceUserChangePasswordRequest = {
|
579
|
-
identifier?:
|
580
|
-
password?:
|
581
|
-
newPassword?:
|
578
|
+
identifier?: InputMaybe<Scalars['String']>;
|
579
|
+
password?: InputMaybe<Scalars['String']>;
|
580
|
+
newPassword?: InputMaybe<Scalars['String']>;
|
582
581
|
};
|
583
582
|
export declare type IIoRestorecommerceUserRequestPasswordChangeRequest = {
|
584
|
-
identifier?:
|
583
|
+
identifier?: InputMaybe<Scalars['String']>;
|
585
584
|
};
|
586
585
|
export declare type IIoRestorecommerceUserChangeEmailRequest = {
|
587
|
-
identifier?:
|
588
|
-
newEmail?:
|
586
|
+
identifier?: InputMaybe<Scalars['String']>;
|
587
|
+
newEmail?: InputMaybe<Scalars['String']>;
|
589
588
|
};
|
590
589
|
export declare type IIoRestorecommerceUserConfirmPasswordChangeRequest = {
|
591
|
-
identifier?:
|
592
|
-
activationCode?:
|
593
|
-
password?:
|
590
|
+
identifier?: InputMaybe<Scalars['String']>;
|
591
|
+
activationCode?: InputMaybe<Scalars['String']>;
|
592
|
+
password?: InputMaybe<Scalars['String']>;
|
594
593
|
};
|
595
594
|
export declare type IIoRestorecommerceUserConfirmEmailChangeRequest = {
|
596
|
-
identifier?:
|
597
|
-
activationCode?:
|
595
|
+
identifier?: InputMaybe<Scalars['String']>;
|
596
|
+
activationCode?: InputMaybe<Scalars['String']>;
|
598
597
|
};
|
599
598
|
export declare type IIoRestorecommerceUserUnregisterRequest = {
|
600
|
-
identifier?:
|
599
|
+
identifier?: InputMaybe<Scalars['String']>;
|
601
600
|
};
|
602
601
|
export declare type IIoRestorecommerceUserLoginRequest = {
|
603
|
-
identifier?:
|
604
|
-
password?:
|
605
|
-
token?:
|
602
|
+
identifier?: InputMaybe<Scalars['String']>;
|
603
|
+
password?: InputMaybe<Scalars['String']>;
|
604
|
+
token?: InputMaybe<Scalars['String']>;
|
606
605
|
};
|
607
606
|
export declare type ProtoIoRestorecommerceUserDeleteUsersByOrgResponse = {
|
608
607
|
__typename?: 'ProtoIoRestorecommerceUserDeleteUsersByOrgResponse';
|
@@ -614,19 +613,19 @@ export declare type IoRestorecommerceUserDeleteUsersByOrgResponse = {
|
|
614
613
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
615
614
|
};
|
616
615
|
export declare type IIoRestorecommerceUserOrgIdRequest = {
|
617
|
-
orgIds?:
|
616
|
+
orgIds?: InputMaybe<Array<Scalars['String']>>;
|
618
617
|
};
|
619
618
|
export declare type IIoRestorecommerceUserConfirmUserInvitationRequest = {
|
620
|
-
identifier?:
|
621
|
-
password?:
|
622
|
-
activationCode?:
|
619
|
+
identifier?: InputMaybe<Scalars['String']>;
|
620
|
+
password?: InputMaybe<Scalars['String']>;
|
621
|
+
activationCode?: InputMaybe<Scalars['String']>;
|
623
622
|
};
|
624
623
|
export declare type IIoRestorecommerceUserSendInvitationEmailRequest = {
|
625
|
-
identifier?:
|
626
|
-
invitedByUserIdentifier?:
|
624
|
+
identifier?: InputMaybe<Scalars['String']>;
|
625
|
+
invitedByUserIdentifier?: InputMaybe<Scalars['String']>;
|
627
626
|
};
|
628
627
|
export declare type IIoRestorecommerceUserSendActivationEmailRequest = {
|
629
|
-
identifier?:
|
628
|
+
identifier?: InputMaybe<Scalars['String']>;
|
630
629
|
};
|
631
630
|
export declare type IdentityRoleMutation = {
|
632
631
|
__typename?: 'IdentityRoleMutation';
|
@@ -640,16 +639,16 @@ export declare type IdentityRoleMutationDeleteArgs = {
|
|
640
639
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
641
640
|
};
|
642
641
|
export declare type IIoRestorecommerceRoleRoleList = {
|
643
|
-
items?:
|
644
|
-
totalCount?:
|
645
|
-
mode?:
|
642
|
+
items?: InputMaybe<Array<IIoRestorecommerceRoleRole>>;
|
643
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
644
|
+
mode?: InputMaybe<ModeType>;
|
646
645
|
};
|
647
646
|
export declare type IIoRestorecommerceRoleRole = {
|
648
|
-
id?:
|
649
|
-
meta?:
|
650
|
-
name?:
|
651
|
-
description?:
|
652
|
-
assignableByRoles?:
|
647
|
+
id?: InputMaybe<Scalars['String']>;
|
648
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
649
|
+
name?: InputMaybe<Scalars['String']>;
|
650
|
+
description?: InputMaybe<Scalars['String']>;
|
651
|
+
assignableByRoles?: InputMaybe<Array<Scalars['String']>>;
|
653
652
|
};
|
654
653
|
export declare type IdentityAuthenticationLogMutation = {
|
655
654
|
__typename?: 'IdentityAuthenticationLogMutation';
|
@@ -663,21 +662,21 @@ export declare type IdentityAuthenticationLogMutationDeleteArgs = {
|
|
663
662
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
664
663
|
};
|
665
664
|
export declare type IIoRestorecommerceAuthenticationLogAuthenticationLogList = {
|
666
|
-
items?:
|
667
|
-
totalCount?:
|
668
|
-
mode?:
|
665
|
+
items?: InputMaybe<Array<IIoRestorecommerceAuthenticationLogAuthenticationLog>>;
|
666
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
667
|
+
mode?: InputMaybe<ModeType>;
|
669
668
|
};
|
670
669
|
export declare type IIoRestorecommerceAuthenticationLogAuthenticationLog = {
|
671
|
-
id?:
|
672
|
-
ipv4Address?:
|
673
|
-
ipv6Address?:
|
674
|
-
operatingSystem?:
|
675
|
-
userAgent?:
|
676
|
-
date?:
|
677
|
-
activity?:
|
678
|
-
meta?:
|
679
|
-
subjectId?:
|
680
|
-
tokenName?:
|
670
|
+
id?: InputMaybe<Scalars['String']>;
|
671
|
+
ipv4Address?: InputMaybe<Scalars['String']>;
|
672
|
+
ipv6Address?: InputMaybe<Scalars['String']>;
|
673
|
+
operatingSystem?: InputMaybe<Scalars['String']>;
|
674
|
+
userAgent?: InputMaybe<Scalars['String']>;
|
675
|
+
date?: InputMaybe<Scalars['Float']>;
|
676
|
+
activity?: InputMaybe<Scalars['String']>;
|
677
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
678
|
+
subjectId?: InputMaybe<Scalars['String']>;
|
679
|
+
tokenName?: InputMaybe<Scalars['String']>;
|
681
680
|
};
|
682
681
|
export declare type IdentityTokenMutation = {
|
683
682
|
__typename?: 'IdentityTokenMutation';
|
@@ -699,13 +698,13 @@ export declare type IdentityTokenMutationConsumeArgs = {
|
|
699
698
|
input: IIoRestorecommerceTokenIdentifier;
|
700
699
|
};
|
701
700
|
export declare type IIoRestorecommerceTokenTokenData = {
|
702
|
-
id?:
|
703
|
-
payload?:
|
704
|
-
expiresIn?:
|
705
|
-
type?:
|
701
|
+
id?: InputMaybe<Scalars['String']>;
|
702
|
+
payload?: InputMaybe<IGoogleProtobufAny>;
|
703
|
+
expiresIn?: InputMaybe<Scalars['Float']>;
|
704
|
+
type?: InputMaybe<Scalars['String']>;
|
706
705
|
};
|
707
706
|
export declare type IIoRestorecommerceTokenGrantId = {
|
708
|
-
grantId?:
|
707
|
+
grantId?: InputMaybe<Scalars['String']>;
|
709
708
|
};
|
710
709
|
export declare type IdentityOauthMutation = {
|
711
710
|
__typename?: 'IdentityOauthMutation';
|
@@ -725,16 +724,19 @@ export declare type IoRestorecommerceOauthExchangeCodeResponse = {
|
|
725
724
|
token?: Maybe<IoRestorecommerceAuthTokens>;
|
726
725
|
};
|
727
726
|
export declare type IIoRestorecommerceOauthExchangeCodeRequest = {
|
728
|
-
service?:
|
729
|
-
code?:
|
730
|
-
state?:
|
727
|
+
service?: InputMaybe<Scalars['String']>;
|
728
|
+
code?: InputMaybe<Scalars['String']>;
|
729
|
+
state?: InputMaybe<Scalars['String']>;
|
731
730
|
};
|
732
731
|
export declare type WithIndex<TObject> = TObject & Record<string, any>;
|
733
732
|
export declare type ResolversObject<TObject> = WithIndex<TObject>;
|
734
733
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
735
|
-
export declare type
|
734
|
+
export declare type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
735
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
736
|
+
};
|
737
|
+
export declare type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
736
738
|
export declare type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
737
|
-
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) =>
|
739
|
+
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
738
740
|
export declare type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
739
741
|
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
740
742
|
subscribe: SubscriptionSubscribeFn<{
|
@@ -1391,8 +1393,3 @@ export declare type Resolvers<ContextType = IdentityContext> = ResolversObject<{
|
|
1391
1393
|
ProtoIoRestorecommerceOauthExchangeCodeResponse?: ProtoIoRestorecommerceOauthExchangeCodeResponseResolvers<ContextType>;
|
1392
1394
|
IoRestorecommerceOauthExchangeCodeResponse?: IoRestorecommerceOauthExchangeCodeResponseResolvers<ContextType>;
|
1393
1395
|
}>;
|
1394
|
-
/**
|
1395
|
-
* @deprecated
|
1396
|
-
* Use "Resolvers" root object instead. If you wish to get "IResolvers", add "typesPrefix: I" to your config.
|
1397
|
-
*/
|
1398
|
-
export declare type IResolvers<ContextType = IdentityContext> = 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, 'Identity');
|
7
|
+
(0, types_1.registerTypings)();
|
8
|
+
const schema = (cfg) => (0, protos_1.generateSubServiceSchemas)(types_1.subServices, cfg, interfaces_1.namespace, 'Identity');
|
9
9
|
exports.schema = schema;
|
@@ -8,7 +8,7 @@ const token_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/rest
|
|
8
8
|
const oauth_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/oauth");
|
9
9
|
const protos_1 = require("../../../gql/protos");
|
10
10
|
function registerTypings() {
|
11
|
-
protos_1.registerPackagesRecursive(user_1.protoMetadata, role_1.protoMetadata, authentication_log_1.protoMetadata, token_1.protoMetadata, oauth_1.protoMetadata);
|
11
|
+
(0, protos_1.registerPackagesRecursive)(user_1.protoMetadata, role_1.protoMetadata, authentication_log_1.protoMetadata, token_1.protoMetadata, oauth_1.protoMetadata);
|
12
12
|
}
|
13
13
|
exports.registerTypings = registerTypings;
|
14
14
|
exports.subServices = [
|
@@ -11,11 +11,11 @@ const protos_1 = require("../../../gql/protos");
|
|
11
11
|
class IdentitySrvGrpcClient extends rc_grpc_clients_1.RestoreCommerceGrpcClient {
|
12
12
|
constructor(cfg, logger) {
|
13
13
|
super(cfg, logger);
|
14
|
-
this.user = protos_1.getGRPCService(this, user_1.protobufPackage, user_1.protoMetadata.fileDescriptor.service[0]);
|
15
|
-
this.role = protos_1.getGRPCService(this, role_1.protobufPackage, role_1.protoMetadata.fileDescriptor.service[0]);
|
16
|
-
this.authentication_log = protos_1.getGRPCService(this, authentication_log_1.protobufPackage, authentication_log_1.protoMetadata.fileDescriptor.service[0]);
|
17
|
-
this.token = protos_1.getGRPCService(this, token_1.protobufPackage, token_1.protoMetadata.fileDescriptor.service[0]);
|
18
|
-
this.oauth = protos_1.getGRPCService(this, oauth_1.protobufPackage, oauth_1.protoMetadata.fileDescriptor.service[0]);
|
14
|
+
this.user = (0, protos_1.getGRPCService)(this, user_1.protobufPackage, user_1.protoMetadata.fileDescriptor.service[0]);
|
15
|
+
this.role = (0, protos_1.getGRPCService)(this, role_1.protobufPackage, role_1.protoMetadata.fileDescriptor.service[0]);
|
16
|
+
this.authentication_log = (0, protos_1.getGRPCService)(this, authentication_log_1.protobufPackage, authentication_log_1.protoMetadata.fileDescriptor.service[0]);
|
17
|
+
this.token = (0, protos_1.getGRPCService)(this, token_1.protobufPackage, token_1.protoMetadata.fileDescriptor.service[0]);
|
18
|
+
this.oauth = (0, protos_1.getGRPCService)(this, oauth_1.protobufPackage, oauth_1.protoMetadata.fileDescriptor.service[0]);
|
19
19
|
}
|
20
20
|
}
|
21
21
|
exports.IdentitySrvGrpcClient = IdentitySrvGrpcClient;
|
@@ -8,10 +8,10 @@ const api_key_1 = require("./api-key/api-key");
|
|
8
8
|
const grpc_1 = require("./grpc");
|
9
9
|
const oauth_1 = require("./oauth/oauth");
|
10
10
|
const mount = eval('require("koa-mount")');
|
11
|
-
exports.identityModule = utils_1.createFacadeModuleFactory('identity', (facade, config) => {
|
11
|
+
exports.identityModule = (0, utils_1.createFacadeModuleFactory)('identity', (facade, config) => {
|
12
12
|
const identitySrvClient = new grpc_1.IdentitySrvGrpcClient(config.identitySrvClientConfig, facade.logger);
|
13
13
|
if (!!config.apiKey) {
|
14
|
-
const apiKey = api_key_1.setupApiKey({
|
14
|
+
const apiKey = (0, api_key_1.setupApiKey)({
|
15
15
|
logger: facade.logger,
|
16
16
|
apiKey: config.apiKey
|
17
17
|
});
|
@@ -21,7 +21,7 @@ exports.identityModule = utils_1.createFacadeModuleFactory('identity', (facade,
|
|
21
21
|
}
|
22
22
|
}
|
23
23
|
if (config.oidc) {
|
24
|
-
const { provider, router } = oidc_1.createOIDC({
|
24
|
+
const { provider, router } = (0, oidc_1.createOIDC)({
|
25
25
|
identitySrvClient,
|
26
26
|
env: facade.env,
|
27
27
|
logger: facade.logger,
|
@@ -31,7 +31,7 @@ exports.identityModule = utils_1.createFacadeModuleFactory('identity', (facade,
|
|
31
31
|
facade.koa.use(mount(provider.app));
|
32
32
|
}
|
33
33
|
if (config.oauth) {
|
34
|
-
facade.koa.use(oauth_1.createOAuth().routes());
|
34
|
+
facade.koa.use((0, oauth_1.createOAuth)().routes());
|
35
35
|
}
|
36
36
|
const identity = {
|
37
37
|
client: identitySrvClient
|
@@ -39,7 +39,7 @@ exports.identityModule = utils_1.createFacadeModuleFactory('identity', (facade,
|
|
39
39
|
facade.koa.context.identitySrvClient = identitySrvClient;
|
40
40
|
facade.addApolloService({
|
41
41
|
name: 'identity',
|
42
|
-
schema: federation_1.FederatedResourceSchema(config.config)
|
42
|
+
schema: (0, federation_1.FederatedResourceSchema)(config.config)
|
43
43
|
});
|
44
44
|
facade.koa.use(async (ctx, next) => {
|
45
45
|
ctx.identity = identity;
|