@restorecommerce/facade 0.3.2 → 0.3.5
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 +31 -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 +44 -45
- 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 +38 -38
- package/dist/gql/protos/types.d.ts +1 -1
- package/dist/gql/protos/utils.d.ts +0 -14
- package/dist/gql/protos/utils.js +16 -40
- 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 +135 -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 +185 -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 +180 -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 +251 -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 +12 -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 +89 -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 +87 -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 +130 -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 +91 -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 +40 -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 +263 -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 +83 -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 { FulfillmentContext } 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 */
|
@@ -103,19 +102,23 @@ export declare type IoRestorecommerceStatusOperationStatus = {
|
|
103
102
|
message?: Maybe<Scalars['String']>;
|
104
103
|
};
|
105
104
|
export declare type IIoRestorecommerceResourcebaseReadRequest = {
|
106
|
-
offset?:
|
107
|
-
limit?:
|
108
|
-
sort?:
|
109
|
-
filters?:
|
110
|
-
field?:
|
111
|
-
search?:
|
112
|
-
localesLimiter?:
|
113
|
-
customQueries?:
|
114
|
-
customArguments?:
|
105
|
+
offset?: InputMaybe<Scalars['Int']>;
|
106
|
+
limit?: InputMaybe<Scalars['Int']>;
|
107
|
+
sort?: InputMaybe<Array<IIoRestorecommerceResourcebaseSort>>;
|
108
|
+
filters?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilterOp>>;
|
109
|
+
field?: InputMaybe<Array<IIoRestorecommerceResourcebaseFieldFilter>>;
|
110
|
+
search?: InputMaybe<Array<Scalars['String']>>;
|
111
|
+
localesLimiter?: InputMaybe<Array<Scalars['String']>>;
|
112
|
+
customQueries?: InputMaybe<Array<Scalars['String']>>;
|
113
|
+
customArguments?: InputMaybe<IGoogleProtobufAny>;
|
114
|
+
/** target scope */
|
115
|
+
scope?: InputMaybe<Scalars['String']>;
|
115
116
|
};
|
116
117
|
export declare type IIoRestorecommerceResourcebaseSort = {
|
117
|
-
field?:
|
118
|
-
order?:
|
118
|
+
field?: InputMaybe<Scalars['String']>;
|
119
|
+
order?: InputMaybe<IoRestorecommerceResourcebaseSortSortOrder>;
|
120
|
+
/** target scope */
|
121
|
+
scope?: InputMaybe<Scalars['String']>;
|
119
122
|
};
|
120
123
|
export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
121
124
|
Unsorted = 0,
|
@@ -123,15 +126,19 @@ export declare enum IoRestorecommerceResourcebaseSortSortOrder {
|
|
123
126
|
Descending = 2
|
124
127
|
}
|
125
128
|
export declare type IIoRestorecommerceResourcebaseFilterOp = {
|
126
|
-
filter?:
|
127
|
-
operator?:
|
129
|
+
filter?: InputMaybe<Array<IIoRestorecommerceResourcebaseFilter>>;
|
130
|
+
operator?: InputMaybe<IoRestorecommerceResourcebaseFilterOpOperator>;
|
131
|
+
/** target scope */
|
132
|
+
scope?: InputMaybe<Scalars['String']>;
|
128
133
|
};
|
129
134
|
export declare type IIoRestorecommerceResourcebaseFilter = {
|
130
|
-
field?:
|
131
|
-
operation?:
|
132
|
-
value?:
|
133
|
-
type?:
|
134
|
-
filters?:
|
135
|
+
field?: InputMaybe<Scalars['String']>;
|
136
|
+
operation?: InputMaybe<IoRestorecommerceResourcebaseFilterOperation>;
|
137
|
+
value?: InputMaybe<Scalars['String']>;
|
138
|
+
type?: InputMaybe<IoRestorecommerceResourcebaseFilterValueType>;
|
139
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
140
|
+
/** target scope */
|
141
|
+
scope?: InputMaybe<Scalars['String']>;
|
135
142
|
};
|
136
143
|
export declare enum IoRestorecommerceResourcebaseFilterOperation {
|
137
144
|
Eq = 0,
|
@@ -152,15 +159,19 @@ export declare enum IoRestorecommerceResourcebaseFilterValueType {
|
|
152
159
|
Array = 4
|
153
160
|
}
|
154
161
|
export declare type IIoRestorecommerceFilterFilterOp = {
|
155
|
-
filter?:
|
156
|
-
operator?:
|
162
|
+
filter?: InputMaybe<Array<IIoRestorecommerceFilterFilter>>;
|
163
|
+
operator?: InputMaybe<IoRestorecommerceFilterFilterOpOperator>;
|
164
|
+
/** target scope */
|
165
|
+
scope?: InputMaybe<Scalars['String']>;
|
157
166
|
};
|
158
167
|
export declare type IIoRestorecommerceFilterFilter = {
|
159
|
-
field?:
|
160
|
-
operation?:
|
161
|
-
value?:
|
162
|
-
type?:
|
163
|
-
filters?:
|
168
|
+
field?: InputMaybe<Scalars['String']>;
|
169
|
+
operation?: InputMaybe<IoRestorecommerceFilterFilterOperation>;
|
170
|
+
value?: InputMaybe<Scalars['String']>;
|
171
|
+
type?: InputMaybe<IoRestorecommerceFilterFilterValueType>;
|
172
|
+
filters?: InputMaybe<Array<IIoRestorecommerceFilterFilterOp>>;
|
173
|
+
/** target scope */
|
174
|
+
scope?: InputMaybe<Scalars['String']>;
|
164
175
|
};
|
165
176
|
export declare enum IoRestorecommerceFilterFilterOperation {
|
166
177
|
Eq = 0,
|
@@ -189,12 +200,16 @@ export declare enum IoRestorecommerceResourcebaseFilterOpOperator {
|
|
189
200
|
Or = 1
|
190
201
|
}
|
191
202
|
export declare type IIoRestorecommerceResourcebaseFieldFilter = {
|
192
|
-
name?:
|
193
|
-
include?:
|
203
|
+
name?: InputMaybe<Scalars['String']>;
|
204
|
+
include?: InputMaybe<Scalars['Boolean']>;
|
205
|
+
/** target scope */
|
206
|
+
scope?: InputMaybe<Scalars['String']>;
|
194
207
|
};
|
195
208
|
export declare type IGoogleProtobufAny = {
|
196
|
-
typeUrl?:
|
197
|
-
value?:
|
209
|
+
typeUrl?: InputMaybe<Scalars['String']>;
|
210
|
+
value?: InputMaybe<Scalars['Upload']>;
|
211
|
+
/** target scope */
|
212
|
+
scope?: InputMaybe<Scalars['String']>;
|
198
213
|
};
|
199
214
|
export declare type Mutation = {
|
200
215
|
__typename?: 'Mutation';
|
@@ -354,102 +369,134 @@ export declare enum IoRestorecommerceFulfillmentState {
|
|
354
369
|
Failed = 6
|
355
370
|
}
|
356
371
|
export declare type IIoRestorecommerceFulfillmentFulfillmentRequestList = {
|
357
|
-
items?:
|
358
|
-
totalCount?:
|
359
|
-
mode?:
|
372
|
+
items?: InputMaybe<Array<IIoRestorecommerceFulfillmentFulfillmentRequest>>;
|
373
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
374
|
+
mode?: InputMaybe<ModeType>;
|
375
|
+
/** target scope */
|
376
|
+
scope?: InputMaybe<Scalars['String']>;
|
360
377
|
};
|
361
378
|
export declare type IIoRestorecommerceFulfillmentFulfillmentRequest = {
|
362
|
-
id?:
|
363
|
-
order?:
|
364
|
-
meta?:
|
379
|
+
id?: InputMaybe<Scalars['String']>;
|
380
|
+
order?: InputMaybe<IIoRestorecommerceFulfillmentOrder>;
|
381
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
382
|
+
/** target scope */
|
383
|
+
scope?: InputMaybe<Scalars['String']>;
|
365
384
|
};
|
366
385
|
export declare type IIoRestorecommerceFulfillmentOrder = {
|
367
|
-
referenceId?:
|
368
|
-
parcels?:
|
369
|
-
sender?:
|
370
|
-
receiver?:
|
371
|
-
notify?:
|
386
|
+
referenceId?: InputMaybe<Scalars['String']>;
|
387
|
+
parcels?: InputMaybe<Array<IIoRestorecommerceFulfillmentParcel>>;
|
388
|
+
sender?: InputMaybe<IIoRestorecommerceFulfillmentAddress>;
|
389
|
+
receiver?: InputMaybe<IIoRestorecommerceFulfillmentAddress>;
|
390
|
+
notify?: InputMaybe<Scalars['String']>;
|
391
|
+
/** target scope */
|
392
|
+
scope?: InputMaybe<Scalars['String']>;
|
372
393
|
};
|
373
394
|
export declare type IIoRestorecommerceFulfillmentParcel = {
|
374
|
-
productId?:
|
375
|
-
productVariantId?:
|
376
|
-
items?:
|
377
|
-
weightInKg?:
|
378
|
-
heightInCm?:
|
379
|
-
widthInCm?:
|
380
|
-
lengthInCm?:
|
395
|
+
productId?: InputMaybe<Scalars['String']>;
|
396
|
+
productVariantId?: InputMaybe<Scalars['String']>;
|
397
|
+
items?: InputMaybe<Array<IIoRestorecommerceFulfillmentParcelItem>>;
|
398
|
+
weightInKg?: InputMaybe<Scalars['Float']>;
|
399
|
+
heightInCm?: InputMaybe<Scalars['Float']>;
|
400
|
+
widthInCm?: InputMaybe<Scalars['Float']>;
|
401
|
+
lengthInCm?: InputMaybe<Scalars['Float']>;
|
402
|
+
/** target scope */
|
403
|
+
scope?: InputMaybe<Scalars['String']>;
|
381
404
|
};
|
382
405
|
export declare type IIoRestorecommerceFulfillmentParcelItem = {
|
383
|
-
itemId?:
|
384
|
-
quantity?:
|
406
|
+
itemId?: InputMaybe<Scalars['String']>;
|
407
|
+
quantity?: InputMaybe<Scalars['Int']>;
|
408
|
+
/** target scope */
|
409
|
+
scope?: InputMaybe<Scalars['String']>;
|
385
410
|
};
|
386
411
|
export declare type IIoRestorecommerceFulfillmentAddress = {
|
387
|
-
title?:
|
388
|
-
name?:
|
389
|
-
address?:
|
390
|
-
packstation?:
|
391
|
-
branch?:
|
392
|
-
country?:
|
393
|
-
contact?:
|
412
|
+
title?: InputMaybe<Scalars['String']>;
|
413
|
+
name?: InputMaybe<Array<Scalars['String']>>;
|
414
|
+
address?: InputMaybe<IIoRestorecommerceAddressAddress>;
|
415
|
+
packstation?: InputMaybe<IIoRestorecommerceFulfillmentPackstation>;
|
416
|
+
branch?: InputMaybe<IIoRestorecommerceFulfillmentBranch>;
|
417
|
+
country?: InputMaybe<IIoRestorecommerceCountryCountry>;
|
418
|
+
contact?: InputMaybe<IIoRestorecommerceFulfillmentContact>;
|
419
|
+
/** target scope */
|
420
|
+
scope?: InputMaybe<Scalars['String']>;
|
394
421
|
};
|
395
422
|
export declare type IIoRestorecommerceAddressAddress = {
|
396
|
-
id?:
|
397
|
-
meta?:
|
398
|
-
postcode?:
|
399
|
-
countryId?:
|
400
|
-
locality?:
|
401
|
-
street?:
|
402
|
-
region?:
|
403
|
-
geoCoordinates?:
|
404
|
-
altitude?:
|
405
|
-
buildingNumber?:
|
406
|
-
addressAddition?:
|
423
|
+
id?: InputMaybe<Scalars['String']>;
|
424
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
425
|
+
postcode?: InputMaybe<Scalars['String']>;
|
426
|
+
countryId?: InputMaybe<Scalars['String']>;
|
427
|
+
locality?: InputMaybe<Scalars['String']>;
|
428
|
+
street?: InputMaybe<Scalars['String']>;
|
429
|
+
region?: InputMaybe<Scalars['String']>;
|
430
|
+
geoCoordinates?: InputMaybe<IIoRestorecommerceAddressAddressGeoPoint>;
|
431
|
+
altitude?: InputMaybe<Scalars['Float']>;
|
432
|
+
buildingNumber?: InputMaybe<Scalars['String']>;
|
433
|
+
addressAddition?: InputMaybe<IIoRestorecommerceAddressAddressAddition>;
|
434
|
+
/** target scope */
|
435
|
+
scope?: InputMaybe<Scalars['String']>;
|
407
436
|
};
|
408
437
|
export declare type IIoRestorecommerceMetaMeta = {
|
409
|
-
created?:
|
410
|
-
modified?:
|
411
|
-
modifiedBy?:
|
412
|
-
owner?:
|
413
|
-
acl?:
|
438
|
+
created?: InputMaybe<Scalars['Float']>;
|
439
|
+
modified?: InputMaybe<Scalars['Float']>;
|
440
|
+
modifiedBy?: InputMaybe<Scalars['String']>;
|
441
|
+
owner?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
442
|
+
acl?: InputMaybe<Array<IIoRestorecommerceAttributeAttributeObj>>;
|
443
|
+
/** target scope */
|
444
|
+
scope?: InputMaybe<Scalars['String']>;
|
414
445
|
};
|
415
446
|
export declare type IIoRestorecommerceAttributeAttribute = {
|
416
|
-
id?:
|
417
|
-
value?:
|
418
|
-
attribute?:
|
447
|
+
id?: InputMaybe<Scalars['String']>;
|
448
|
+
value?: InputMaybe<Scalars['String']>;
|
449
|
+
attribute?: InputMaybe<Array<IIoRestorecommerceAttributeAttribute>>;
|
450
|
+
/** target scope */
|
451
|
+
scope?: InputMaybe<Scalars['String']>;
|
419
452
|
};
|
420
453
|
export declare type IIoRestorecommerceAttributeAttributeObj = {
|
421
|
-
attribute?:
|
454
|
+
attribute?: InputMaybe<IIoRestorecommerceAttributeAttribute>;
|
455
|
+
/** target scope */
|
456
|
+
scope?: InputMaybe<Scalars['String']>;
|
422
457
|
};
|
423
458
|
export declare type IIoRestorecommerceAddressAddressGeoPoint = {
|
424
|
-
latitude?:
|
425
|
-
longitude?:
|
459
|
+
latitude?: InputMaybe<Scalars['Float']>;
|
460
|
+
longitude?: InputMaybe<Scalars['Float']>;
|
461
|
+
/** target scope */
|
462
|
+
scope?: InputMaybe<Scalars['String']>;
|
426
463
|
};
|
427
464
|
export declare type IIoRestorecommerceAddressAddressAddition = {
|
428
|
-
field1?:
|
429
|
-
field2?:
|
465
|
+
field1?: InputMaybe<Scalars['String']>;
|
466
|
+
field2?: InputMaybe<Scalars['String']>;
|
467
|
+
/** target scope */
|
468
|
+
scope?: InputMaybe<Scalars['String']>;
|
430
469
|
};
|
431
470
|
export declare type IIoRestorecommerceFulfillmentPackstation = {
|
432
|
-
provider?:
|
433
|
-
stationNumber?:
|
434
|
-
postNumber?:
|
471
|
+
provider?: InputMaybe<Scalars['String']>;
|
472
|
+
stationNumber?: InputMaybe<Scalars['String']>;
|
473
|
+
postNumber?: InputMaybe<Scalars['String']>;
|
474
|
+
/** target scope */
|
475
|
+
scope?: InputMaybe<Scalars['String']>;
|
435
476
|
};
|
436
477
|
export declare type IIoRestorecommerceFulfillmentBranch = {
|
437
|
-
provider?:
|
438
|
-
branchNumber?:
|
439
|
-
postNumber?:
|
478
|
+
provider?: InputMaybe<Scalars['String']>;
|
479
|
+
branchNumber?: InputMaybe<Scalars['String']>;
|
480
|
+
postNumber?: InputMaybe<Scalars['String']>;
|
481
|
+
/** target scope */
|
482
|
+
scope?: InputMaybe<Scalars['String']>;
|
440
483
|
};
|
441
484
|
export declare type IIoRestorecommerceCountryCountry = {
|
442
|
-
id?:
|
443
|
-
meta?:
|
444
|
-
name?:
|
445
|
-
countryCode?:
|
446
|
-
geographicalName?:
|
447
|
-
economicAreas?:
|
485
|
+
id?: InputMaybe<Scalars['String']>;
|
486
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
487
|
+
name?: InputMaybe<Scalars['String']>;
|
488
|
+
countryCode?: InputMaybe<Scalars['String']>;
|
489
|
+
geographicalName?: InputMaybe<Scalars['String']>;
|
490
|
+
economicAreas?: InputMaybe<Array<Scalars['String']>>;
|
491
|
+
/** target scope */
|
492
|
+
scope?: InputMaybe<Scalars['String']>;
|
448
493
|
};
|
449
494
|
export declare type IIoRestorecommerceFulfillmentContact = {
|
450
|
-
name?:
|
451
|
-
email?:
|
452
|
-
phone?:
|
495
|
+
name?: InputMaybe<Scalars['String']>;
|
496
|
+
email?: InputMaybe<Scalars['String']>;
|
497
|
+
phone?: InputMaybe<Scalars['String']>;
|
498
|
+
/** target scope */
|
499
|
+
scope?: InputMaybe<Scalars['String']>;
|
453
500
|
};
|
454
501
|
export declare enum ModeType {
|
455
502
|
Create = "CREATE",
|
@@ -486,15 +533,21 @@ export declare type IoRestorecommerceFulfillmentEvent = {
|
|
486
533
|
status?: Maybe<IoRestorecommerceStatusStatus>;
|
487
534
|
};
|
488
535
|
export declare type IIoRestorecommerceFulfillmentTrackingRequestList = {
|
489
|
-
items?:
|
536
|
+
items?: InputMaybe<Array<IIoRestorecommerceFulfillmentTrackingRequest>>;
|
537
|
+
/** target scope */
|
538
|
+
scope?: InputMaybe<Scalars['String']>;
|
490
539
|
};
|
491
540
|
export declare type IIoRestorecommerceFulfillmentTrackingRequest = {
|
492
|
-
fulfillmentId?:
|
493
|
-
shipmentNumbers?:
|
494
|
-
options?:
|
541
|
+
fulfillmentId?: InputMaybe<Scalars['String']>;
|
542
|
+
shipmentNumbers?: InputMaybe<Array<Scalars['String']>>;
|
543
|
+
options?: InputMaybe<IGoogleProtobufAny>;
|
544
|
+
/** target scope */
|
545
|
+
scope?: InputMaybe<Scalars['String']>;
|
495
546
|
};
|
496
547
|
export declare type IIoRestorecommerceFulfillmentCancelRequestList = {
|
497
|
-
ids?:
|
548
|
+
ids?: InputMaybe<Array<Scalars['String']>>;
|
549
|
+
/** target scope */
|
550
|
+
scope?: InputMaybe<Scalars['String']>;
|
498
551
|
};
|
499
552
|
export declare type ProtoIoRestorecommerceResourcebaseDeleteResponse = {
|
500
553
|
__typename?: 'ProtoIoRestorecommerceResourcebaseDeleteResponse';
|
@@ -506,8 +559,10 @@ export declare type IoRestorecommerceResourcebaseDeleteResponse = {
|
|
506
559
|
operationStatus?: Maybe<IoRestorecommerceStatusOperationStatus>;
|
507
560
|
};
|
508
561
|
export declare type IIoRestorecommerceResourcebaseDeleteRequest = {
|
509
|
-
collection?:
|
510
|
-
ids?:
|
562
|
+
collection?: InputMaybe<Scalars['Boolean']>;
|
563
|
+
ids?: InputMaybe<Array<Scalars['String']>>;
|
564
|
+
/** target scope */
|
565
|
+
scope?: InputMaybe<Scalars['String']>;
|
511
566
|
};
|
512
567
|
export declare type FulfillmentFulfillmentCourierMutation = {
|
513
568
|
__typename?: 'FulfillmentFulfillmentCourierMutation';
|
@@ -521,26 +576,33 @@ export declare type FulfillmentFulfillmentCourierMutationDeleteArgs = {
|
|
521
576
|
input: IIoRestorecommerceResourcebaseDeleteRequest;
|
522
577
|
};
|
523
578
|
export declare type IIoRestorecommerceFulfillmentCourierFulfillmentCourierList = {
|
524
|
-
items?:
|
525
|
-
totalCount?:
|
526
|
-
mode?:
|
579
|
+
items?: InputMaybe<Array<IIoRestorecommerceFulfillmentCourierFulfillmentCourier>>;
|
580
|
+
totalCount?: InputMaybe<Scalars['Int']>;
|
581
|
+
mode?: InputMaybe<ModeType>;
|
582
|
+
/** target scope */
|
583
|
+
scope?: InputMaybe<Scalars['String']>;
|
527
584
|
};
|
528
585
|
export declare type IIoRestorecommerceFulfillmentCourierFulfillmentCourier = {
|
529
|
-
id?:
|
530
|
-
name?:
|
531
|
-
description?:
|
532
|
-
logo?:
|
533
|
-
website?:
|
534
|
-
stubType?:
|
535
|
-
configuration?:
|
536
|
-
meta?:
|
586
|
+
id?: InputMaybe<Scalars['String']>;
|
587
|
+
name?: InputMaybe<Scalars['String']>;
|
588
|
+
description?: InputMaybe<Scalars['String']>;
|
589
|
+
logo?: InputMaybe<Scalars['String']>;
|
590
|
+
website?: InputMaybe<Scalars['String']>;
|
591
|
+
stubType?: InputMaybe<Scalars['String']>;
|
592
|
+
configuration?: InputMaybe<IGoogleProtobufAny>;
|
593
|
+
meta?: InputMaybe<IIoRestorecommerceMetaMeta>;
|
594
|
+
/** target scope */
|
595
|
+
scope?: InputMaybe<Scalars['String']>;
|
537
596
|
};
|
538
597
|
export declare type WithIndex<TObject> = TObject & Record<string, any>;
|
539
598
|
export declare type ResolversObject<TObject> = WithIndex<TObject>;
|
540
599
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
541
|
-
export declare type
|
600
|
+
export declare type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
601
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
602
|
+
};
|
603
|
+
export declare type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
542
604
|
export declare type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
543
|
-
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) =>
|
605
|
+
export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
544
606
|
export declare type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
545
607
|
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
546
608
|
subscribe: SubscriptionSubscribeFn<{
|
@@ -1089,8 +1151,3 @@ export declare type Resolvers<ContextType = FulfillmentContext> = ResolversObjec
|
|
1089
1151
|
IoRestorecommerceResourcebaseDeleteResponse?: IoRestorecommerceResourcebaseDeleteResponseResolvers<ContextType>;
|
1090
1152
|
FulfillmentFulfillmentCourierMutation?: FulfillmentFulfillmentCourierMutationResolvers<ContextType>;
|
1091
1153
|
}>;
|
1092
|
-
/**
|
1093
|
-
* @deprecated
|
1094
|
-
* Use "Resolvers" root object instead. If you wish to get "IResolvers", add "typesPrefix: I" to your config.
|
1095
|
-
*/
|
1096
|
-
export declare type IResolvers<ContextType = FulfillmentContext> = 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, 'Fulfillment');
|
7
|
+
(0, types_1.registerTypings)();
|
8
|
+
const schema = (cfg) => (0, protos_1.generateSubServiceSchemas)(types_1.subServices, cfg, interfaces_1.namespace, 'Fulfillment');
|
9
9
|
exports.schema = schema;
|
@@ -5,7 +5,7 @@ const fulfillment_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/i
|
|
5
5
|
const fulfillment_courier_1 = require("@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/fulfillment_courier");
|
6
6
|
const protos_1 = require("../../../gql/protos");
|
7
7
|
function registerTypings() {
|
8
|
-
protos_1.registerPackagesRecursive(fulfillment_1.protoMetadata, fulfillment_courier_1.protoMetadata);
|
8
|
+
(0, protos_1.registerPackagesRecursive)(fulfillment_1.protoMetadata, fulfillment_courier_1.protoMetadata);
|
9
9
|
}
|
10
10
|
exports.registerTypings = registerTypings;
|
11
11
|
exports.subServices = [
|
@@ -8,8 +8,8 @@ const protos_1 = require("../../../gql/protos");
|
|
8
8
|
class FulfillmentSrvGrpcClient extends rc_grpc_clients_1.RestoreCommerceGrpcClient {
|
9
9
|
constructor(cfg, logger) {
|
10
10
|
super(cfg, logger);
|
11
|
-
this.fulfillment = protos_1.getGRPCService(this, fulfillment_1.protobufPackage, fulfillment_1.protoMetadata.fileDescriptor.service[0]);
|
12
|
-
this.fulfillment_courier = protos_1.getGRPCService(this, fulfillment_courier_1.protobufPackage, fulfillment_courier_1.protoMetadata.fileDescriptor.service[0]);
|
11
|
+
this.fulfillment = (0, protos_1.getGRPCService)(this, fulfillment_1.protobufPackage, fulfillment_1.protoMetadata.fileDescriptor.service[0]);
|
12
|
+
this.fulfillment_courier = (0, protos_1.getGRPCService)(this, fulfillment_courier_1.protobufPackage, fulfillment_courier_1.protoMetadata.fileDescriptor.service[0]);
|
13
13
|
}
|
14
14
|
}
|
15
15
|
exports.FulfillmentSrvGrpcClient = FulfillmentSrvGrpcClient;
|
@@ -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.fulfillmentModule = utils_1.createFacadeModuleFactory(interfaces_1.namespace, (facade, config) => {
|
8
|
+
exports.fulfillmentModule = (0, utils_1.createFacadeModuleFactory)(interfaces_1.namespace, (facade, config) => {
|
9
9
|
const fulfillment = {
|
10
10
|
client: new grpc_1.FulfillmentSrvGrpcClient(config.config.client, facade.logger)
|
11
11
|
};
|
12
12
|
facade.addApolloService({
|
13
13
|
name: interfaces_1.namespace,
|
14
|
-
schema: federation_1.FederatedFulfillmentSchema(config.config)
|
14
|
+
schema: (0, federation_1.FederatedFulfillmentSchema)(config.config)
|
15
15
|
});
|
16
16
|
facade.koa.use(async (ctx, next) => {
|
17
17
|
ctx.fulfillment = fulfillment;
|
@@ -10,7 +10,7 @@ const API_KEY_COMMAND_EVENT = 'setApiKeyCommand';
|
|
10
10
|
const API_KEY_COMMAND_RESPONSE = 'setApiKeyResponse';
|
11
11
|
const COMMAND_TOPIC_NAME = 'io.restorecommerce.command';
|
12
12
|
const exectueSetAPIKeyCommand = async (apiKey, logger) => {
|
13
|
-
const cfg = service_config_1.createServiceConfig(process.cwd());
|
13
|
+
const cfg = (0, service_config_1.createServiceConfig)(process.cwd());
|
14
14
|
if (apiKey && cfg.get('events:kafka')) {
|
15
15
|
let payload = JSON.stringify({ authentication: { apiKey } });
|
16
16
|
const eventObject = {
|
@@ -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 FederatedResourceSchema = (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 FederatedResourceSchema = (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.FederatedResourceSchema = FederatedResourceSchema;
|