@gapi/core 1.8.175 → 1.8.177
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/README.md +35 -105
- package/gapi-cli.conf.yml +5 -16
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ Bootstrap(
|
|
|
178
178
|
{ name: 'accounts', url: 'http://localhost:9000/graphql' },
|
|
179
179
|
{ name: 'products', url: 'http://localhost:9001/graphql' },
|
|
180
180
|
],
|
|
181
|
-
})
|
|
181
|
+
}),
|
|
182
182
|
).subscribe(() => console.log('started'));
|
|
183
183
|
```
|
|
184
184
|
|
|
@@ -300,7 +300,7 @@ npm start
|
|
|
300
300
|
##### Open browser to
|
|
301
301
|
|
|
302
302
|
```bash
|
|
303
|
-
http://localhost:9000/
|
|
303
|
+
http://localhost:9000/altair
|
|
304
304
|
```
|
|
305
305
|
|
|
306
306
|
### Testing
|
|
@@ -417,7 +417,7 @@ describe('User Queries Controller', () => {
|
|
|
417
417
|
map((res) => {
|
|
418
418
|
expect(res.success).toBeTruthy();
|
|
419
419
|
return res.data.findUser;
|
|
420
|
-
})
|
|
420
|
+
}),
|
|
421
421
|
)
|
|
422
422
|
.subscribe(
|
|
423
423
|
async (res) => {
|
|
@@ -429,35 +429,12 @@ describe('User Queries Controller', () => {
|
|
|
429
429
|
(err) => {
|
|
430
430
|
expect(err).toBe(null);
|
|
431
431
|
done();
|
|
432
|
-
}
|
|
432
|
+
},
|
|
433
433
|
);
|
|
434
434
|
});
|
|
435
435
|
});
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
Filepath: `root/src/app/core/test-util/testing.service.ts`
|
|
439
|
-
|
|
440
|
-
```typescript
|
|
441
|
-
disableAuthorization() {
|
|
442
|
-
this.tester = tester({ url: process.env.ENDPOINT_TESTING, contentType: 'application/json' });
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
enableAuthorization() {
|
|
446
|
-
this.tester = tester({ url: process.env.ENDPOINT_TESTING, contentType: 'application/json', authorization: process.env.TOKEN_TESTING});
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
sendRequest<T>(query: SendRequestQueryType): Observable<Response<T>> {
|
|
450
|
-
if (query.signiture) {
|
|
451
|
-
this.tester = tester({
|
|
452
|
-
url: process.env.ENDPOINT_TESTING,
|
|
453
|
-
contentType: 'application/json',
|
|
454
|
-
authorization: query.signiture.token
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
return from(this.tester(JSON.stringify(query)));
|
|
458
|
-
}
|
|
459
|
-
```
|
|
460
|
-
|
|
461
438
|
### Effects
|
|
462
439
|
|
|
463
440
|
```typescript
|
|
@@ -591,7 +568,7 @@ export class MyHapiPlugin implements PluginInterface {
|
|
|
591
568
|
|
|
592
569
|
constructor(
|
|
593
570
|
private testService: TestService,
|
|
594
|
-
@Inject(HAPI_SERVER) private server: Server
|
|
571
|
+
@Inject(HAPI_SERVER) private server: Server,
|
|
595
572
|
) {}
|
|
596
573
|
|
|
597
574
|
async register() {
|
|
@@ -626,7 +603,7 @@ export class MODULE_DI_CONFIG {
|
|
|
626
603
|
}
|
|
627
604
|
|
|
628
605
|
const MY_MODULE_CONFIG = new InjectionToken<MODULE_DI_CONFIG>(
|
|
629
|
-
'my-module-config'
|
|
606
|
+
'my-module-config',
|
|
630
607
|
);
|
|
631
608
|
|
|
632
609
|
@Module({
|
|
@@ -664,8 +641,7 @@ export class YourModule {
|
|
|
664
641
|
extension: 'js',
|
|
665
642
|
typings: '',
|
|
666
643
|
outputFolder: '/node_modules/',
|
|
667
|
-
link:
|
|
668
|
-
'https://ipfs.infura.io/ipfs/QmdQtC3drfQ6M6GFpDdrhYRKoky8BycKzWbTkc4NEzGLug',
|
|
644
|
+
link: 'https://ipfs.infura.io/ipfs/QmdQtC3drfQ6M6GFpDdrhYRKoky8BycKzWbTkc4NEzGLug',
|
|
669
645
|
},
|
|
670
646
|
},
|
|
671
647
|
],
|
|
@@ -744,16 +720,7 @@ const GapiCoreModule = CoreModule.forRoot({
|
|
|
744
720
|
},
|
|
745
721
|
graphql: {
|
|
746
722
|
path: '/graphql',
|
|
747
|
-
openBrowser: false,
|
|
748
723
|
writeEffects: false,
|
|
749
|
-
graphiQlPath: '/graphiql',
|
|
750
|
-
graphiqlOptions: {
|
|
751
|
-
endpointURL: '/graphql',
|
|
752
|
-
subscriptionsEndpoint: `ws://localhost:9000/subscriptions`,
|
|
753
|
-
websocketConnectionParams: {
|
|
754
|
-
token: process.env.GRAPHIQL_TOKEN,
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
724
|
graphqlOptions: {
|
|
758
725
|
schema: null,
|
|
759
726
|
},
|
|
@@ -776,7 +743,7 @@ BootstrapFramework(AppModule, [GapiCoreModule], {
|
|
|
776
743
|
},
|
|
777
744
|
}).subscribe(
|
|
778
745
|
() => console.log('Started!'),
|
|
779
|
-
(e) => console.error(e)
|
|
746
|
+
(e) => console.error(e),
|
|
780
747
|
);
|
|
781
748
|
```
|
|
782
749
|
|
|
@@ -830,8 +797,7 @@ import { CoreModule } from './core/core.module';
|
|
|
830
797
|
MicroserviceModule.forRoot([
|
|
831
798
|
{
|
|
832
799
|
name: 'microservice1',
|
|
833
|
-
link:
|
|
834
|
-
'https://hkzdqnc1i2.execute-api.us-east-2.amazonaws.com/development/graphql',
|
|
800
|
+
link: 'https://hkzdqnc1i2.execute-api.us-east-2.amazonaws.com/development/graphql',
|
|
835
801
|
},
|
|
836
802
|
]),
|
|
837
803
|
],
|
|
@@ -857,26 +823,8 @@ const DEFAULT_CONFIG = {
|
|
|
857
823
|
},
|
|
858
824
|
graphql: {
|
|
859
825
|
path: '/graphql',
|
|
860
|
-
openBrowser: true,
|
|
861
826
|
writeEffects: true,
|
|
862
|
-
graphiql: true,
|
|
863
|
-
graphiQlPlayground: false,
|
|
864
|
-
graphiQlPath: '/graphiql',
|
|
865
827
|
watcherPort: '',
|
|
866
|
-
graphiqlOptions: {
|
|
867
|
-
endpointURL: '/graphql',
|
|
868
|
-
subscriptionsEndpoint: `${
|
|
869
|
-
process.env.GRAPHIQL_WS_SSH ? 'wss' : 'ws'
|
|
870
|
-
}://${process.env.GRAPHIQL_WS_PATH || 'localhost'}${
|
|
871
|
-
process.env.DEPLOY_PLATFORM === 'heroku'
|
|
872
|
-
? ''
|
|
873
|
-
: `:${process.env.API_PORT ||
|
|
874
|
-
process.env.PORT}`
|
|
875
|
-
}/subscriptions`,
|
|
876
|
-
websocketConnectionParams: {
|
|
877
|
-
token: process.env.GRAPHIQL_TOKEN
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
828
|
graphqlOptions: {
|
|
881
829
|
schema: null
|
|
882
830
|
}
|
|
@@ -924,28 +872,9 @@ import { readFileSync } from 'fs';
|
|
|
924
872
|
},
|
|
925
873
|
graphql: {
|
|
926
874
|
path: process.env.GRAPHQL_PATH,
|
|
927
|
-
openBrowser: process.env.OPEN_BROWSER === 'true' ? true : false,
|
|
928
875
|
watcherPort: 8967,
|
|
929
876
|
writeEffects: process.env.WRITE_EFFECTS === 'true' ? true : false,
|
|
930
|
-
graphiql: process.env.GRAPHIQL === 'true' ? true : false,
|
|
931
|
-
graphiQlPlayground:
|
|
932
|
-
process.env.ENABLE_GRAPHIQL_PLAYGROUND === 'true' ? true : false,
|
|
933
|
-
graphiQlPath: process.env.GRAPHIQL_PATH,
|
|
934
877
|
authentication: AuthService,
|
|
935
|
-
graphiqlOptions: {
|
|
936
|
-
endpointURL: process.env.GRAPHQL_PATH,
|
|
937
|
-
passHeader: `'Authorization':'${process.env.GRAPHIQL_TOKEN}'`,
|
|
938
|
-
subscriptionsEndpoint: `${
|
|
939
|
-
process.env.GRAPHIQL_WS_SSH ? 'wss' : 'ws'
|
|
940
|
-
}://${process.env.GRAPHIQL_WS_PATH || 'localhost'}${
|
|
941
|
-
process.env.DEPLOY_PLATFORM === 'heroku'
|
|
942
|
-
? ''
|
|
943
|
-
: `:${process.env.API_PORT || process.env.PORT}`
|
|
944
|
-
}/subscriptions`,
|
|
945
|
-
websocketConnectionParams: {
|
|
946
|
-
token: process.env.GRAPHIQL_TOKEN,
|
|
947
|
-
},
|
|
948
|
-
},
|
|
949
878
|
graphqlOptions: {
|
|
950
879
|
schema: null,
|
|
951
880
|
},
|
|
@@ -1162,7 +1091,7 @@ import { IUserType, IUserTokenType } from '../core/api-introspection/index';
|
|
|
1162
1091
|
export class UserQueriesController {
|
|
1163
1092
|
constructor(
|
|
1164
1093
|
private userService: UserService,
|
|
1165
|
-
private authService: AuthPrivateService
|
|
1094
|
+
private authService: AuthPrivateService,
|
|
1166
1095
|
) {}
|
|
1167
1096
|
|
|
1168
1097
|
@Type(UserType)
|
|
@@ -1236,7 +1165,7 @@ import { GraphQLNonNull, GraphQLString, GraphQLInt } from 'graphql';
|
|
|
1236
1165
|
export class UserMutationsController {
|
|
1237
1166
|
constructor(
|
|
1238
1167
|
private userService: UserService,
|
|
1239
|
-
private pubsub: PubSubService
|
|
1168
|
+
private pubsub: PubSubService,
|
|
1240
1169
|
) {}
|
|
1241
1170
|
|
|
1242
1171
|
@Scope('ADMIN')
|
|
@@ -1252,11 +1181,11 @@ export class UserMutationsController {
|
|
|
1252
1181
|
})
|
|
1253
1182
|
publishSignal(root, { message, signal }, context): UserMessage {
|
|
1254
1183
|
console.log(
|
|
1255
|
-
`${signal} Signal Published message: ${message} by ${context.email}
|
|
1184
|
+
`${signal} Signal Published message: ${message} by ${context.email}`,
|
|
1256
1185
|
);
|
|
1257
1186
|
this.pubsub.publish(
|
|
1258
1187
|
signal,
|
|
1259
|
-
`${signal} Signal Published message: ${message} by ${context.email}
|
|
1188
|
+
`${signal} Signal Published message: ${message} by ${context.email}`,
|
|
1260
1189
|
);
|
|
1261
1190
|
return { message };
|
|
1262
1191
|
}
|
|
@@ -1316,7 +1245,7 @@ export class UserSubscriptionsController {
|
|
|
1316
1245
|
@Type(UserMessage)
|
|
1317
1246
|
@Public()
|
|
1318
1247
|
@Subscribe((self: UserSubscriptionsController) =>
|
|
1319
|
-
self.pubsub.asyncIterator('CREATE_SIGNAL_BASIC')
|
|
1248
|
+
self.pubsub.asyncIterator('CREATE_SIGNAL_BASIC'),
|
|
1320
1249
|
)
|
|
1321
1250
|
@Subscription()
|
|
1322
1251
|
subscribeToUserMessagesBasic(message): UserMessage {
|
|
@@ -1332,8 +1261,8 @@ export class UserSubscriptionsController {
|
|
|
1332
1261
|
(payload, { id }, context) => {
|
|
1333
1262
|
console.log('Subscribed User: ', id, JSON.stringify(context));
|
|
1334
1263
|
return true;
|
|
1335
|
-
}
|
|
1336
|
-
)
|
|
1264
|
+
},
|
|
1265
|
+
),
|
|
1337
1266
|
)
|
|
1338
1267
|
@Subscription({
|
|
1339
1268
|
id: {
|
|
@@ -1473,7 +1402,7 @@ BootstrapFramework(AppModule, [CoreModule], {
|
|
|
1473
1402
|
},
|
|
1474
1403
|
}).subscribe(
|
|
1475
1404
|
() => console.log('Started!'),
|
|
1476
|
-
(e) => console.error(e)
|
|
1405
|
+
(e) => console.error(e),
|
|
1477
1406
|
);
|
|
1478
1407
|
```
|
|
1479
1408
|
|
|
@@ -1519,7 +1448,8 @@ export interface UserInfo {
|
|
|
1519
1448
|
|
|
1520
1449
|
@Service()
|
|
1521
1450
|
export class AuthPrivateService {
|
|
1522
|
-
constructor() {
|
|
1451
|
+
constructor() {
|
|
1452
|
+
// private connectionHookService: ConnectionHookService // private authService: AuthService,
|
|
1523
1453
|
// this.connectionHookService.modifyHooks.onSubConnection = this.onSubConnection.bind(this);
|
|
1524
1454
|
// this.authService.modifyFunctions.validateToken = this.validateToken.bind(this);
|
|
1525
1455
|
}
|
|
@@ -1534,7 +1464,7 @@ export class AuthPrivateService {
|
|
|
1534
1464
|
|
|
1535
1465
|
validateToken(
|
|
1536
1466
|
token: string,
|
|
1537
|
-
requestType: 'Query' | 'Subscription' = 'Query'
|
|
1467
|
+
requestType: 'Query' | 'Subscription' = 'Query',
|
|
1538
1468
|
): UserInfo {
|
|
1539
1469
|
const user = <UserInfo>this.verifyToken(token);
|
|
1540
1470
|
user.type = user.scope[0];
|
|
@@ -1632,7 +1562,7 @@ export class UserQueriesController {
|
|
|
1632
1562
|
constructor(
|
|
1633
1563
|
@Inject('UserId') private userId: { id: number }, // Value injection
|
|
1634
1564
|
@Inject(UserIdToken) private userId: UserId, // Token injection
|
|
1635
|
-
@Inject(UserIdToken) private userId: UserId // Class injection
|
|
1565
|
+
@Inject(UserIdToken) private userId: UserId, // Class injection
|
|
1636
1566
|
) {
|
|
1637
1567
|
console.log(this.userId.id);
|
|
1638
1568
|
// Will print 1
|
|
@@ -1671,13 +1601,13 @@ import { PubSubService } from '@rxdi/graphql-pubsub';
|
|
|
1671
1601
|
export class UserSubscriptionsController {
|
|
1672
1602
|
constructor(
|
|
1673
1603
|
@Inject('Observable') private observable: BehaviorSubject<number>,
|
|
1674
|
-
private pubsub: PubSubService
|
|
1604
|
+
private pubsub: PubSubService,
|
|
1675
1605
|
) {
|
|
1676
1606
|
this.observable.subscribe(() =>
|
|
1677
1607
|
this.pubsub.publish(
|
|
1678
1608
|
'CREATE_SIGNAL_BASIC',
|
|
1679
|
-
`Signal Published message: ${this.observable.getValue()}
|
|
1680
|
-
)
|
|
1609
|
+
`Signal Published message: ${this.observable.getValue()}`,
|
|
1610
|
+
),
|
|
1681
1611
|
);
|
|
1682
1612
|
}
|
|
1683
1613
|
}
|
|
@@ -1717,7 +1647,7 @@ export class UserService {
|
|
|
1717
1647
|
@Inject(() => AnotherService) private anotherService: AnotherService
|
|
1718
1648
|
```
|
|
1719
1649
|
|
|
1720
|
-
**You can see the subscription when you subscribe to basic chanel inside
|
|
1650
|
+
**You can see the subscription when you subscribe to basic chanel inside Altair dev panel**
|
|
1721
1651
|
|
|
1722
1652
|
```typescript
|
|
1723
1653
|
subscription {
|
|
@@ -1796,7 +1726,7 @@ export class UserWalletType {
|
|
|
1796
1726
|
readonly id: number | GraphQLScalarType = GraphQLInt;
|
|
1797
1727
|
readonly address: string | GraphQLScalarType = GraphQLString;
|
|
1798
1728
|
readonly settings: string | UserWalletSettingsType = InjectType(
|
|
1799
|
-
UserWalletSettingsType
|
|
1729
|
+
UserWalletSettingsType,
|
|
1800
1730
|
);
|
|
1801
1731
|
}
|
|
1802
1732
|
|
|
@@ -1807,15 +1737,15 @@ export class UserType {
|
|
|
1807
1737
|
readonly firstname: string | GraphQLScalarType = GraphQLString;
|
|
1808
1738
|
readonly lastname: string | GraphQLScalarType = GraphQLString;
|
|
1809
1739
|
readonly settings: string | UserSettingsType = InjectType(
|
|
1810
|
-
UserWalletSettingsType
|
|
1740
|
+
UserWalletSettingsType,
|
|
1811
1741
|
);
|
|
1812
1742
|
readonly wallets: UserWalletType = new GraphQLList(
|
|
1813
|
-
InjectType(UserWalletType)
|
|
1743
|
+
InjectType(UserWalletType),
|
|
1814
1744
|
);
|
|
1815
1745
|
}
|
|
1816
1746
|
```
|
|
1817
1747
|
|
|
1818
|
-
##### When you create such a query from
|
|
1748
|
+
##### When you create such a query from altair dev tools
|
|
1819
1749
|
|
|
1820
1750
|
```typescript
|
|
1821
1751
|
query {
|
|
@@ -2079,7 +2009,7 @@ export class AdminOnly implements CanActivateResolver {
|
|
|
2079
2009
|
canActivate(
|
|
2080
2010
|
context: UserType,
|
|
2081
2011
|
payload,
|
|
2082
|
-
descriptor: GenericGapiResolversType
|
|
2012
|
+
descriptor: GenericGapiResolversType,
|
|
2083
2013
|
) {
|
|
2084
2014
|
return context.type === 'ADMIN';
|
|
2085
2015
|
}
|
|
@@ -2094,7 +2024,7 @@ export class AdminOnly implements CanActivateResolver {
|
|
|
2094
2024
|
canActivate(
|
|
2095
2025
|
context: UserType,
|
|
2096
2026
|
payload,
|
|
2097
|
-
descriptor: GenericGapiResolversType
|
|
2027
|
+
descriptor: GenericGapiResolversType,
|
|
2098
2028
|
) {
|
|
2099
2029
|
return Observable.create((o) => o.next(true));
|
|
2100
2030
|
|
|
@@ -2132,12 +2062,12 @@ export class LoggerInterceptor implements InterceptResolver {
|
|
|
2132
2062
|
chainable$: Observable<any>,
|
|
2133
2063
|
context: UserType,
|
|
2134
2064
|
payload,
|
|
2135
|
-
descriptor: GenericGapiResolversType
|
|
2065
|
+
descriptor: GenericGapiResolversType,
|
|
2136
2066
|
) {
|
|
2137
2067
|
console.log('Before...');
|
|
2138
2068
|
const now = Date.now();
|
|
2139
2069
|
return chainable$.pipe(
|
|
2140
|
-
tap(() => console.log(`After... ${Date.now() - now}ms`))
|
|
2070
|
+
tap(() => console.log(`After... ${Date.now() - now}ms`)),
|
|
2141
2071
|
);
|
|
2142
2072
|
}
|
|
2143
2073
|
}
|
|
@@ -2178,7 +2108,7 @@ export class ModifyInterceptor implements InterceptResolver {
|
|
|
2178
2108
|
chainable$: Observable<any>,
|
|
2179
2109
|
context: UserType,
|
|
2180
2110
|
payload,
|
|
2181
|
-
descriptor: GenericGapiResolversType
|
|
2111
|
+
descriptor: GenericGapiResolversType,
|
|
2182
2112
|
) {
|
|
2183
2113
|
console.log('Before...');
|
|
2184
2114
|
const now = Date.now();
|
|
@@ -2186,7 +2116,7 @@ export class ModifyInterceptor implements InterceptResolver {
|
|
|
2186
2116
|
map((res) => {
|
|
2187
2117
|
console.log(`After... ${Date.now() - now}ms`);
|
|
2188
2118
|
return res;
|
|
2189
|
-
})
|
|
2119
|
+
}),
|
|
2190
2120
|
);
|
|
2191
2121
|
}
|
|
2192
2122
|
}
|
package/gapi-cli.conf.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
config:
|
|
2
|
-
# Application configuration
|
|
2
|
+
# Application configuration
|
|
3
3
|
app:
|
|
4
4
|
local:
|
|
5
5
|
API_PORT: 9000
|
|
@@ -7,22 +7,14 @@ config:
|
|
|
7
7
|
NODE_ENV: development
|
|
8
8
|
AMQP_HOST: 182.10.0.5
|
|
9
9
|
AMQP_PORT: 5672
|
|
10
|
-
GRAPHIQL: true
|
|
11
|
-
GRAPHIQL_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtyaXN0aXFuLnRhY2hldkBnbWFpbC5jb20iLCJpZCI6MSwic2NvcGUiOlsiQURNSU4iXSwiaWF0IjoxNTIwMjkxMzkyfQ.9hpIDPkSiGvjTmUEyg_R_izW-ra2RzzLbe3Uh3IFsZg
|
|
12
|
-
ENDPOINT_TESTING: http://localhost:9000/graphql
|
|
13
|
-
TOKEN_TESTING: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtyaXN0aXFuLnRhY2hldkBnbWFpbC5jb20iLCJzY29wZSI6WyJBRE1JTiJdLCJpZCI6MSwiaWF0IjoxNTE2OTk2MzYxfQ.7ANr5VHrViD3NkCaDr0nSWYwk46UAEbOwB52pqye4AM
|
|
14
10
|
prod:
|
|
15
11
|
API_PORT: 9000
|
|
16
12
|
API_CERT: ./cert.key
|
|
17
13
|
NODE_ENV: production
|
|
18
14
|
AMQP_HOST: 182.10.0.5
|
|
19
15
|
AMQP_PORT: 5672
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ENDPOINT_TESTING: http://localhost:9000/graphql
|
|
23
|
-
TOKEN_TESTING: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtyaXN0aXFuLnRhY2hldkBnbWFpbC5jb20iLCJzY29wZSI6WyJBRE1JTiJdLCJpZCI6MSwiaWF0IjoxNTE2OTk2MzYxfQ.7ANr5VHrViD3NkCaDr0nSWYwk46UAEbOwB52pqye4AM
|
|
24
|
-
# Testing configuration for local(dev) or worker(running tests as a separate worker with separate environment)
|
|
25
|
-
test:
|
|
16
|
+
# Testing configuration for local(dev) or worker(running tests as a separate worker with separate environment)
|
|
17
|
+
test:
|
|
26
18
|
local: extends app/prod
|
|
27
19
|
worker:
|
|
28
20
|
API_PORT: 9000
|
|
@@ -30,15 +22,12 @@ config:
|
|
|
30
22
|
NODE_ENV: production
|
|
31
23
|
AMQP_HOST: 182.10.0.5
|
|
32
24
|
AMQP_PORT: 5672
|
|
33
|
-
ENDPOINT_TESTING: http://182.10.0.101:9000/graphql
|
|
34
|
-
TOKEN_TESTING: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImtyaXN0aXFuLnRhY2hldkBnbWFpbC5jb20iLCJzY29wZSI6WyJBRE1JTiJdLCJpZCI6MSwiaWF0IjoxNTE2OTk2MzYxfQ.7ANr5VHrViD3NkCaDr0nSWYwk46UAEbOwB52pqye4AM
|
|
35
25
|
|
|
36
26
|
schema:
|
|
37
27
|
introspectionEndpoint: http://localhost:9000/graphql
|
|
38
28
|
introspectionOutputFolder: ./src/api-introspection
|
|
39
29
|
|
|
40
30
|
commands:
|
|
41
|
-
|
|
42
31
|
testing:
|
|
43
32
|
stop:
|
|
44
33
|
- docker rm -f gapi-api-prod-worker-tests-executor
|
|
@@ -102,8 +91,8 @@ commands:
|
|
|
102
91
|
clean:
|
|
103
92
|
- rm -rf dist
|
|
104
93
|
- rm -rf .cache
|
|
105
|
-
# You can define your custom commands for example
|
|
94
|
+
# You can define your custom commands for example
|
|
106
95
|
# commands:
|
|
107
96
|
# your-cli:
|
|
108
97
|
# my-command: 'npm -v'
|
|
109
|
-
# This command can be executed as "gapi your-cli my-command"
|
|
98
|
+
# This command can be executed as "gapi your-cli my-command"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.177",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi.git"
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"url": "https://github.com/Stradivario/gapi/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@gapi/daemon": "^1.8.
|
|
29
|
-
"@rxdi/core": "^0.7.
|
|
30
|
-
"@rxdi/graphql": "^0.7.
|
|
31
|
-
"@rxdi/graphql-pubsub": "^0.7.
|
|
32
|
-
"@rxdi/hapi": "^0.7.
|
|
28
|
+
"@gapi/daemon": "^1.8.176",
|
|
29
|
+
"@rxdi/core": "^0.7.200",
|
|
30
|
+
"@rxdi/graphql": "^0.7.200",
|
|
31
|
+
"@rxdi/graphql-pubsub": "^0.7.200",
|
|
32
|
+
"@rxdi/hapi": "^0.7.200",
|
|
33
33
|
"graphql": "^16.12.0",
|
|
34
34
|
"graphql-geojson": "^1.0.0",
|
|
35
35
|
"graphql-tools": "^5.0.0"
|