phx-node 1.0.160 → 1.0.162
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/dist/module/grpc-client/grpc-client-system-v6.service.d.ts +2 -3
- package/dist/module/grpc-client/grpc-client-system-v6.service.js +4 -8
- package/dist/module/grpc-client/grpc-client-system-v6.service.js.map +1 -1
- package/dist/module/inapp-noti/push-notification.service.d.ts +1 -0
- package/dist/module/inapp-noti/push-notification.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HttpService } from "@nestjs/axios";
|
|
2
2
|
import { QueryOrPersistedId, SchemaGroup } from "./types";
|
|
3
3
|
export type GrpcRequestTypeV6 = QueryOrPersistedId & {
|
|
4
|
-
hostname: string;
|
|
5
4
|
variables?: Record<string, any> | null | undefined;
|
|
6
5
|
} & SchemaGroup;
|
|
7
6
|
export declare class PHXGrpcClientSystemServiceV6 {
|
|
@@ -11,6 +10,6 @@ export declare class PHXGrpcClientSystemServiceV6 {
|
|
|
11
10
|
private readonly projectSource;
|
|
12
11
|
constructor(httpService: HttpService);
|
|
13
12
|
debug(hostname: string): void;
|
|
14
|
-
query({ query, variables,
|
|
15
|
-
mutation({ query, variables,
|
|
13
|
+
query({ query, variables, persistedId, schemaGroup, }: GrpcRequestTypeV6): Promise<any>;
|
|
14
|
+
mutation({ query, variables, persistedId, schemaGroup }: GrpcRequestTypeV6): Promise<any>;
|
|
16
15
|
}
|
|
@@ -35,12 +35,10 @@ let PHXGrpcClientSystemServiceV6 = PHXGrpcClientSystemServiceV6_1 = class PHXGrp
|
|
|
35
35
|
this.logger.debug(this.internalGrpcGateway);
|
|
36
36
|
}
|
|
37
37
|
query(_a) {
|
|
38
|
-
return __awaiter(this, arguments, void 0, function* ({ query, variables,
|
|
39
|
-
if (!hostname)
|
|
40
|
-
return;
|
|
38
|
+
return __awaiter(this, arguments, void 0, function* ({ query, variables, persistedId, schemaGroup, }) {
|
|
41
39
|
try {
|
|
42
40
|
const response = yield this.httpService
|
|
43
|
-
.post(`${this.internalGrpcGateway}/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, persisted_id: persistedId, headers: {
|
|
41
|
+
.post(`${this.internalGrpcGateway}/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, persisted_id: persistedId, headers: { [constant_1.HEADER_KEY_REQUIRED_SCHOOL_ID]: true }, schemaGroup }))
|
|
44
42
|
.toPromise();
|
|
45
43
|
return response.data;
|
|
46
44
|
}
|
|
@@ -51,12 +49,10 @@ let PHXGrpcClientSystemServiceV6 = PHXGrpcClientSystemServiceV6_1 = class PHXGrp
|
|
|
51
49
|
});
|
|
52
50
|
}
|
|
53
51
|
mutation(_a) {
|
|
54
|
-
return __awaiter(this, arguments, void 0, function* ({ query, variables,
|
|
55
|
-
if (!hostname)
|
|
56
|
-
return;
|
|
52
|
+
return __awaiter(this, arguments, void 0, function* ({ query, variables, persistedId, schemaGroup }) {
|
|
57
53
|
try {
|
|
58
54
|
const response = yield this.httpService
|
|
59
|
-
.post(`${this.internalGrpcGateway}/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, persisted_id: persistedId, headers: {
|
|
55
|
+
.post(`${this.internalGrpcGateway}/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, persisted_id: persistedId, headers: { [constant_1.HEADER_KEY_REQUIRED_SCHOOL_ID]: true }, schemaGroup }))
|
|
60
56
|
.toPromise();
|
|
61
57
|
return response.data;
|
|
62
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grpc-client-system-v6.service.js","sourceRoot":"","sources":["../../../src/module/grpc-client/grpc-client-system-v6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yCAA4C;AAE5C,iDAAiE;
|
|
1
|
+
{"version":3,"file":"grpc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CAAC;QACH,CAAC;KAAA;IAEY,QAAQ;6DAAC,EACpB,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACO;YAClB,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,IAAI,CAAC,mBAAmB,WAAW,kCACvC,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,KAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,EAC1B,KAAK,EACL,YAAY,EAAE,WAAW,EACzB,OAAO,EAAE,EAAE,CAAC,wCAA6B,CAAC,EAAE,IAAI,EAAE,EAClD,WAAW,IACX;qBACD,SAAS,EAAE,CAAC;gBACf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AA9DY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,mBAAU,GAAE;qCAM+B,mBAAW;GAL1C,4BAA4B,CA8DxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-notification.service.js","sourceRoot":"","sources":["../../../src/module/inapp-noti/push-notification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAyE;AACzE,2CAA+C;AAC/C,+BAAqC;AAarC,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,sCAAyB,CAAA;IACzB,4CAA+B,CAAA;IAC/B,sDAAyC,CAAA;AAC3C,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AACD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;
|
|
1
|
+
{"version":3,"file":"push-notification.service.js","sourceRoot":"","sources":["../../../src/module/inapp-noti/push-notification.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAyE;AACzE,2CAA+C;AAC/C,+BAAqC;AAarC,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oDAAuC,CAAA;IACvC,sCAAyB,CAAA;IACzB,4CAA+B,CAAA;IAC/B,sDAAyC,CAAA;AAC3C,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AACD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AA+DM,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAErC,YACmB,WAAwB,EACxB,aAA4B;QAD5B,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GAAb,aAAa,CAAe;QAH9B,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI,CAAC,CAAC;IAInE,CAAC;IAEU,QAAQ,CAAC,OAAsB;;;YAC3C,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;YAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAC3D,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,MAAM,YAAY,GAAG,GAAG,QAAQ,kCAAkC,CAAC;gBACnE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBAChC,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;YAChC,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,oBAAa,EAClC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,WAAW,kBAAkB,EAAE,OAAO,EAAE;oBAC/D,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