phx-node 1.0.67 → 1.0.69
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/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/module/user-devices/user-devices.service.d.ts +17 -0
- package/dist/module/user-devices/user-devices.service.js +74 -0
- package/dist/module/user-devices/user-devices.service.js.map +1 -0
- package/dist/phx.module.d.ts +2 -1
- package/dist/phx.module.js +4 -0
- package/dist/phx.module.js.map +1 -1
- package/dist/query/user-devices/index.d.ts +2 -0
- package/dist/query/user-devices/index.js +34 -0
- package/dist/query/user-devices/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,4 +39,5 @@ import { GetSchoolYearServiceV3 } from "./module/school-year-v3/schoolYearV3.ser
|
|
|
39
39
|
import { PHXQueryListDetailFeeAdjustment, PHXQueryAdmissionTuition, PHXQueryListDetailFeeAdjustmentBM, PHXQueryAdmissionTuitionBM } from "./query/tuition/debt-record";
|
|
40
40
|
import { PHXNotificationByModuleService } from "./module/notification/notification.service";
|
|
41
41
|
import { PHXStatisticalNotificationByModuleService } from "./module/notification/statistical-notification.service";
|
|
42
|
-
|
|
42
|
+
import { PHXUserDevicesService } from "./module/user-devices/user-devices.service";
|
|
43
|
+
export { PHXNestModule, GetSchoolYearService, GetListActiveSchoolYearService, GetActiveSchoolYearAndNextYearService, GetListActiveSchoolYearAndNextYearService, GetListNextSchoolYearService, PHXGraphqlService, PHXGraphqlV2Service, ApiService, PHXStudentInfoService, PHXStudentInfoServiceV3, PHXStudentInfoServiceSystemV3, PHXDateHelpers, PHXGrpcClientService, PHXGrpcClientSystemService, GetActiveSchoolYearAndNextYearServiceV3, GetActiveSchoolYearAndNextYearServiceSystemV3, GetListActiveSchoolYearAndNextYearServiceV3, GetListActiveSchoolYearAndNextYearServiceSystemV3, GetListActiveSchoolYearServiceV3, GetListActiveSchoolYearServiceSystemV3, GetListNextSchoolYearServiceV3, GetListNextSchoolYearServiceSystemV3, GetSchoolYearServiceV3, GetSchoolYearServiceSystemV3, PHXDevToolDataService, PHXCronjobManagerService, PHXCloneCronjob, runWithSentryCheckIn, PHXHostnameService, PHXEnvPublicService, PHXContextStorageService, PHXSettingFormulaPromotion, PHXQueryListDetailFeeAdjustment, PHXQueryAdmissionTuition, PHXQueryListDetailFeeAdjustmentBM, PHXQueryAdmissionTuitionBM, PHXSchoolMonthSystemService, PHXSchoolMonthClientService, PHXNotificationByModuleService, PHXStatisticalNotificationByModuleService, GetPrevCurrentNextYearsService, GetPrevCurrentNextYearsServiceSystem, PHXTransactionContentService, PHXUserDevicesService };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHXTransactionContentService = exports.GetPrevCurrentNextYearsServiceSystem = exports.GetPrevCurrentNextYearsService = exports.PHXStatisticalNotificationByModuleService = exports.PHXNotificationByModuleService = exports.PHXSchoolMonthClientService = exports.PHXSchoolMonthSystemService = exports.PHXQueryAdmissionTuitionBM = exports.PHXQueryListDetailFeeAdjustmentBM = exports.PHXQueryAdmissionTuition = exports.PHXQueryListDetailFeeAdjustment = exports.PHXSettingFormulaPromotion = exports.PHXContextStorageService = exports.PHXEnvPublicService = exports.PHXHostnameService = exports.runWithSentryCheckIn = exports.PHXCloneCronjob = exports.PHXCronjobManagerService = exports.PHXDevToolDataService = exports.GetSchoolYearServiceSystemV3 = exports.GetSchoolYearServiceV3 = exports.GetListNextSchoolYearServiceSystemV3 = exports.GetListNextSchoolYearServiceV3 = exports.GetListActiveSchoolYearServiceSystemV3 = exports.GetListActiveSchoolYearServiceV3 = exports.GetListActiveSchoolYearAndNextYearServiceSystemV3 = exports.GetListActiveSchoolYearAndNextYearServiceV3 = exports.GetActiveSchoolYearAndNextYearServiceSystemV3 = exports.GetActiveSchoolYearAndNextYearServiceV3 = exports.PHXGrpcClientSystemService = exports.PHXGrpcClientService = exports.PHXDateHelpers = exports.PHXStudentInfoServiceSystemV3 = exports.PHXStudentInfoServiceV3 = exports.PHXStudentInfoService = exports.ApiService = exports.PHXGraphqlV2Service = exports.PHXGraphqlService = exports.GetListNextSchoolYearService = exports.GetListActiveSchoolYearAndNextYearService = exports.GetActiveSchoolYearAndNextYearService = exports.GetListActiveSchoolYearService = exports.GetSchoolYearService = exports.PHXNestModule = void 0;
|
|
3
|
+
exports.PHXUserDevicesService = exports.PHXTransactionContentService = exports.GetPrevCurrentNextYearsServiceSystem = exports.GetPrevCurrentNextYearsService = exports.PHXStatisticalNotificationByModuleService = exports.PHXNotificationByModuleService = exports.PHXSchoolMonthClientService = exports.PHXSchoolMonthSystemService = exports.PHXQueryAdmissionTuitionBM = exports.PHXQueryListDetailFeeAdjustmentBM = exports.PHXQueryAdmissionTuition = exports.PHXQueryListDetailFeeAdjustment = exports.PHXSettingFormulaPromotion = exports.PHXContextStorageService = exports.PHXEnvPublicService = exports.PHXHostnameService = exports.runWithSentryCheckIn = exports.PHXCloneCronjob = exports.PHXCronjobManagerService = exports.PHXDevToolDataService = exports.GetSchoolYearServiceSystemV3 = exports.GetSchoolYearServiceV3 = exports.GetListNextSchoolYearServiceSystemV3 = exports.GetListNextSchoolYearServiceV3 = exports.GetListActiveSchoolYearServiceSystemV3 = exports.GetListActiveSchoolYearServiceV3 = exports.GetListActiveSchoolYearAndNextYearServiceSystemV3 = exports.GetListActiveSchoolYearAndNextYearServiceV3 = exports.GetActiveSchoolYearAndNextYearServiceSystemV3 = exports.GetActiveSchoolYearAndNextYearServiceV3 = exports.PHXGrpcClientSystemService = exports.PHXGrpcClientService = exports.PHXDateHelpers = exports.PHXStudentInfoServiceSystemV3 = exports.PHXStudentInfoServiceV3 = exports.PHXStudentInfoService = exports.ApiService = exports.PHXGraphqlV2Service = exports.PHXGraphqlService = exports.GetListNextSchoolYearService = exports.GetListActiveSchoolYearAndNextYearService = exports.GetActiveSchoolYearAndNextYearService = exports.GetListActiveSchoolYearService = exports.GetSchoolYearService = exports.PHXNestModule = void 0;
|
|
4
4
|
const create_content_transaction_service_1 = require("./module/helpers-service/tuition-helper-service/create-content-transaction.service");
|
|
5
5
|
Object.defineProperty(exports, "PHXTransactionContentService", { enumerable: true, get: function () { return create_content_transaction_service_1.PHXTransactionContentService; } });
|
|
6
6
|
const listPrevCurrentNextYears_service_1 = require("./module/school-year-system-v3/listPrevCurrentNextYears.service");
|
|
@@ -86,4 +86,6 @@ const notification_service_1 = require("./module/notification/notification.servi
|
|
|
86
86
|
Object.defineProperty(exports, "PHXNotificationByModuleService", { enumerable: true, get: function () { return notification_service_1.PHXNotificationByModuleService; } });
|
|
87
87
|
const statistical_notification_service_1 = require("./module/notification/statistical-notification.service");
|
|
88
88
|
Object.defineProperty(exports, "PHXStatisticalNotificationByModuleService", { enumerable: true, get: function () { return statistical_notification_service_1.PHXStatisticalNotificationByModuleService; } });
|
|
89
|
+
const user_devices_service_1 = require("./module/user-devices/user-devices.service");
|
|
90
|
+
Object.defineProperty(exports, "PHXUserDevicesService", { enumerable: true, get: function () { return user_devices_service_1.PHXUserDevicesService; } });
|
|
89
91
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2IAAkI;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2IAAkI;AA4FhI,6GA5FO,iEAA4B,OA4FP;AA3F9B,sHAAuH;AA0FrH,qHA1FO,uEAAoC,OA0FP;AAzFtC,+GAA0G;AAwFxG,+GAxFO,iEAA8B,OAwFP;AAvFhC,mGAAgG;AAoF9F,4GApFO,yDAA2B,OAoFP;AAnF7B,mGAAgG;AAkF9F,4GAlFO,yDAA2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AAtBvC,0HAAyH;AAuBvH,0HAvBO,mFAAyC,OAuBP;AAtB3C,kFAAgF;AA+B9E,qGA/BO,0CAAoB,OA+BP;AA9BtB,2FAAwF;AA2BtF,wGA3BO,iDAAuB,OA2BP;AA1BzB,yHAAwH;AA+BtH,wHA/BO,+EAAuC,OA+BP;AA9BzC,iIAAgI;AAgC9H,4HAhCO,uFAA2C,OAgCP;AA/B7C,yGAAyG;AAiCvG,iHAjCO,gEAAgC,OAiCP;AAhClC,uGAAsG;AAkCpG,+GAlCO,6DAA8B,OAkCP;AAjChC,uFAAsF;AAmCpF,uGAnCO,6CAAsB,OAmCP;AAlCxB,6DAKqC;AAuCnC,gHA3CA,6CAA+B,OA2CA;AAC/B,yGA3CA,sCAAwB,OA2CA;AACxB,kHA3CA,+CAAiC,OA2CA;AACjC,2GA3CA,wCAA0B,OA2CA;AAzC5B,qFAA4F;AA4C1F,+GA5CO,qDAA8B,OA4CP;AA3ChC,6GAAmH;AA4CjH,0HA5CO,4EAAyC,OA4CP;AA3C3C,qFAAmF;AA+CjF,sGA/CO,4CAAqB,OA+CP"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Logger } from '@nestjs/common';
|
|
2
|
+
import { PHXGrpcClientSystemService } from "../grpc-client/grpc-client-system.service";
|
|
3
|
+
export declare class PHXUserDevicesService {
|
|
4
|
+
private readonly grpcClientSystemService;
|
|
5
|
+
logger: Logger;
|
|
6
|
+
constructor(grpcClientSystemService: PHXGrpcClientSystemService);
|
|
7
|
+
saveUserDevice({ userId, deviceId, deviceModel, os, app, firebaseToken, hostname, }: {
|
|
8
|
+
userId: number;
|
|
9
|
+
firebaseToken: string;
|
|
10
|
+
hostname: string;
|
|
11
|
+
deviceId: string;
|
|
12
|
+
app: string;
|
|
13
|
+
app_store_id: string;
|
|
14
|
+
os: string;
|
|
15
|
+
deviceModel: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var PHXUserDevicesService_1;
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.PHXUserDevicesService = void 0;
|
|
23
|
+
const common_1 = require("@nestjs/common");
|
|
24
|
+
const grpc_client_system_service_1 = require("../grpc-client/grpc-client-system.service");
|
|
25
|
+
const user_devices_1 = require("../../query/user-devices");
|
|
26
|
+
let PHXUserDevicesService = PHXUserDevicesService_1 = class PHXUserDevicesService {
|
|
27
|
+
constructor(grpcClientSystemService) {
|
|
28
|
+
this.grpcClientSystemService = grpcClientSystemService;
|
|
29
|
+
this.logger = new common_1.Logger(PHXUserDevicesService_1.name);
|
|
30
|
+
}
|
|
31
|
+
saveUserDevice(_a) {
|
|
32
|
+
return __awaiter(this, arguments, void 0, function* ({ userId, deviceId, deviceModel, os, app, firebaseToken, hostname, }) {
|
|
33
|
+
try {
|
|
34
|
+
yield this.grpcClientSystemService
|
|
35
|
+
.mutation({
|
|
36
|
+
query: user_devices_1.MUTATION_UPDATE_USER_DEVICE,
|
|
37
|
+
hostname,
|
|
38
|
+
variables: {
|
|
39
|
+
user_id: userId,
|
|
40
|
+
device_id: deviceId,
|
|
41
|
+
token: firebaseToken,
|
|
42
|
+
app_name: app,
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
.then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const isUpdateSuccess = response.update_user_device.returning.length > 0;
|
|
47
|
+
if (isUpdateSuccess)
|
|
48
|
+
return;
|
|
49
|
+
yield this.grpcClientSystemService.mutation({
|
|
50
|
+
query: user_devices_1.MUTATION_INSERT_USER_DEVICE,
|
|
51
|
+
variables: {
|
|
52
|
+
user_id: userId,
|
|
53
|
+
device_id: deviceId,
|
|
54
|
+
token: firebaseToken,
|
|
55
|
+
os,
|
|
56
|
+
device_model: deviceModel,
|
|
57
|
+
app_name: app,
|
|
58
|
+
},
|
|
59
|
+
hostname,
|
|
60
|
+
});
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.PHXUserDevicesService = PHXUserDevicesService;
|
|
70
|
+
exports.PHXUserDevicesService = PHXUserDevicesService = PHXUserDevicesService_1 = __decorate([
|
|
71
|
+
(0, common_1.Injectable)(),
|
|
72
|
+
__metadata("design:paramtypes", [grpc_client_system_service_1.PHXGrpcClientSystemService])
|
|
73
|
+
], PHXUserDevicesService);
|
|
74
|
+
//# sourceMappingURL=user-devices.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-devices.service.js","sourceRoot":"","sources":["../../../src/module/user-devices/user-devices.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAkD;AAClD,0FAAqF;AACrF,2DAAkG;AAG3F,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAE9B,YACqB,uBAAmD;QAAnD,4BAAuB,GAAvB,uBAAuB,CAA4B;QAFxE,WAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IAG7C,CAAC;IAES,cAAc;6DAAC,EAC3B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,EAAE,EACF,GAAG,EACH,aAAa,EACb,QAAQ,GAUR;YACG,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,uBAAuB;qBAC7B,QAAQ,CAAC;oBACN,KAAK,EAAE,0CAA2B;oBAClC,QAAQ;oBACR,SAAS,EAAE;wBACP,OAAO,EAAE,MAAM;wBACf,SAAS,EAAE,QAAQ;wBACnB,KAAK,EAAE,aAAa;wBACpB,QAAQ,EAAE,GAAG;qBAChB;iBACJ,CAAC;qBACD,IAAI,CAAC,CAAO,QAAQ,EAAE,EAAE;oBACrB,MAAM,eAAe,GACjB,QAAQ,CAAC,kBAAkB,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;oBAErD,IAAI,eAAe;wBAAE,OAAO;oBAG5B,MAAM,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC;wBACxC,KAAK,EAAE,0CAA2B;wBAClC,SAAS,EAAE;4BACP,OAAO,EAAE,MAAM;4BACf,SAAS,EAAE,QAAQ;4BACnB,KAAK,EAAE,aAAa;4BACpB,EAAE;4BACF,YAAY,EAAE,WAAW;4BACzB,QAAQ,EAAE,GAAG;yBAChB;wBACD,QAAQ;qBACX,CAAC,CAAC;gBACP,CAAC,CAAA,CAAC,CAAC;YACX,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,MAAM,KAAK,CAAA;YACf,CAAC;QACL,CAAC;KAAA;CACJ,CAAA;AA5DY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAIqC,uDAA0B;GAH/D,qBAAqB,CA4DjC"}
|
package/dist/phx.module.d.ts
CHANGED
|
@@ -38,10 +38,11 @@ import { ApiService } from "./module/api/api.service";
|
|
|
38
38
|
import { GetPrevCurrentNextYearsService } from "./module/school-year-v3/listPrevCurrentNextYears.service";
|
|
39
39
|
import { GetPrevCurrentNextYearsServiceSystem } from "./module/school-year-system-v3/listPrevCurrentNextYears.service";
|
|
40
40
|
import { PHXTransactionContentService } from "./module/helpers-service/tuition-helper-service/create-content-transaction.service";
|
|
41
|
+
import { PHXUserDevicesService } from "./module/user-devices/user-devices.service";
|
|
41
42
|
export declare class PHXNestModule {
|
|
42
43
|
static register(): {
|
|
43
44
|
module: typeof PHXNestModule;
|
|
44
|
-
providers: (typeof PHXTransactionContentService | typeof PHXGrpcClientSystemService | typeof GetPrevCurrentNextYearsServiceSystem | typeof PHXGrpcClientService | typeof GetPrevCurrentNextYearsService | typeof PHXSchoolMonthClientService | typeof PHXSchoolMonthSystemService | typeof PHXSettingFormulaPromotion | typeof PHXContextStorageService | typeof GetSchoolYearServiceSystemV3 | typeof GetListNextSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearAndNextYearServiceSystemV3 | typeof GetActiveSchoolYearAndNextYearServiceSystemV3 | typeof PHXStudentInfoServiceSystemV3 | typeof PHXHostnameService | typeof PHXEnvPublicService | typeof PHXGraphqlV2Service | typeof PHXCloneCronjob | typeof PHXCronjobManagerService | typeof PHXDevToolDataService | typeof PHXDateHelpers | typeof PHXGraphqlService | typeof PHXStudentInfoService | typeof ApiService | typeof GetSchoolYearService | typeof GetListActiveSchoolYearService | typeof GetActiveSchoolYearAndNextYearService | typeof GetListActiveSchoolYearAndNextYearService | typeof GetListNextSchoolYearService | typeof PHXStudentInfoServiceV3 | typeof GetActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearServiceV3 | typeof GetListNextSchoolYearServiceV3 | typeof GetSchoolYearServiceV3 | typeof PHXStatisticalNotificationByModuleService | typeof PHXNotificationByModuleService)[];
|
|
45
|
+
providers: (typeof PHXTransactionContentService | typeof PHXGrpcClientSystemService | typeof GetPrevCurrentNextYearsServiceSystem | typeof PHXGrpcClientService | typeof GetPrevCurrentNextYearsService | typeof PHXSchoolMonthClientService | typeof PHXSchoolMonthSystemService | typeof PHXSettingFormulaPromotion | typeof PHXContextStorageService | typeof GetSchoolYearServiceSystemV3 | typeof GetListNextSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearServiceSystemV3 | typeof GetListActiveSchoolYearAndNextYearServiceSystemV3 | typeof GetActiveSchoolYearAndNextYearServiceSystemV3 | typeof PHXStudentInfoServiceSystemV3 | typeof PHXHostnameService | typeof PHXEnvPublicService | typeof PHXGraphqlV2Service | typeof PHXCloneCronjob | typeof PHXCronjobManagerService | typeof PHXDevToolDataService | typeof PHXDateHelpers | typeof PHXGraphqlService | typeof PHXStudentInfoService | typeof ApiService | typeof GetSchoolYearService | typeof GetListActiveSchoolYearService | typeof GetActiveSchoolYearAndNextYearService | typeof GetListActiveSchoolYearAndNextYearService | typeof GetListNextSchoolYearService | typeof PHXStudentInfoServiceV3 | typeof GetActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearAndNextYearServiceV3 | typeof GetListActiveSchoolYearServiceV3 | typeof GetListNextSchoolYearServiceV3 | typeof GetSchoolYearServiceV3 | typeof PHXStatisticalNotificationByModuleService | typeof PHXNotificationByModuleService | typeof PHXUserDevicesService)[];
|
|
45
46
|
};
|
|
46
47
|
static forRoot(graphQlConfig?: GraphQlEnv): DynamicModule;
|
|
47
48
|
static forRootV2(graphQlConfig?: GraphQlV2Env): DynamicModule;
|
package/dist/phx.module.js
CHANGED
|
@@ -52,6 +52,7 @@ const api_service_1 = require("./module/api/api.service");
|
|
|
52
52
|
const listPrevCurrentNextYears_service_1 = require("./module/school-year-v3/listPrevCurrentNextYears.service");
|
|
53
53
|
const listPrevCurrentNextYears_service_2 = require("./module/school-year-system-v3/listPrevCurrentNextYears.service");
|
|
54
54
|
const create_content_transaction_service_1 = require("./module/helpers-service/tuition-helper-service/create-content-transaction.service");
|
|
55
|
+
const user_devices_service_1 = require("./module/user-devices/user-devices.service");
|
|
55
56
|
let PHXNestModule = PHXNestModule_1 = class PHXNestModule {
|
|
56
57
|
static register() {
|
|
57
58
|
return {
|
|
@@ -95,6 +96,7 @@ let PHXNestModule = PHXNestModule_1 = class PHXNestModule {
|
|
|
95
96
|
listPrevCurrentNextYears_service_1.GetPrevCurrentNextYearsService,
|
|
96
97
|
listPrevCurrentNextYears_service_2.GetPrevCurrentNextYearsServiceSystem,
|
|
97
98
|
create_content_transaction_service_1.PHXTransactionContentService,
|
|
99
|
+
user_devices_service_1.PHXUserDevicesService
|
|
98
100
|
],
|
|
99
101
|
};
|
|
100
102
|
}
|
|
@@ -187,6 +189,7 @@ exports.PHXNestModule = PHXNestModule = PHXNestModule_1 = __decorate([
|
|
|
187
189
|
listPrevCurrentNextYears_service_1.GetPrevCurrentNextYearsService,
|
|
188
190
|
listPrevCurrentNextYears_service_2.GetPrevCurrentNextYearsServiceSystem,
|
|
189
191
|
create_content_transaction_service_1.PHXTransactionContentService,
|
|
192
|
+
user_devices_service_1.PHXUserDevicesService
|
|
190
193
|
],
|
|
191
194
|
exports: [
|
|
192
195
|
graphql_service_1.PHXGraphqlService,
|
|
@@ -227,6 +230,7 @@ exports.PHXNestModule = PHXNestModule = PHXNestModule_1 = __decorate([
|
|
|
227
230
|
listPrevCurrentNextYears_service_1.GetPrevCurrentNextYearsService,
|
|
228
231
|
listPrevCurrentNextYears_service_2.GetPrevCurrentNextYearsServiceSystem,
|
|
229
232
|
create_content_transaction_service_1.PHXTransactionContentService,
|
|
233
|
+
user_devices_service_1.PHXUserDevicesService
|
|
230
234
|
],
|
|
231
235
|
})
|
|
232
236
|
], PHXNestModule);
|
package/dist/phx.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phx.module.js","sourceRoot":"","sources":["../src/phx.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,gFAA+E;AAC/E,+DAA8D;AAC9D,kGAAkG;AAClG,kHAAiH;AACjH,0HAAyH;AACzH,gGAA+F;AAE/F,6CAA6D;AAC7D,wDAAoD;AACpD,qFAAmF;AACnF,8EAA0E;AAC1E,kFAAgF;AAChF,yCAA2C;AAC3C,2FAAwF;AACxF,yHAAwH;AACxH,iIAAgI;AAChI,yGAAyG;AACzG,uGAAsG;AACtG,uFAAsF;AACtF,gGAA6F;AAC7F,wFAAqF;AACrF,8FAA4F;AAC5F,0FAAiF;AACjF,qEAAmE;AACnE,+CAAkD;AAClD,gDAAoD;AACpD,yEAAwE;AACxE,yGAAqG;AACrG,4HAAmI;AACnI,oIAA2I;AAC3I,4GAAoH;AACpH,0GAAiH;AACjH,0FAAiG;AACjG,6EAA2E;AAC3E,8FAA4F;AAC5F,yIAA+H;AAC/H,mGAAgG;AAChG,mGAAgG;AAChG,qFAA4F;AAC5F,6GAAmH;AACnH,0DAAsD;AACtD,+GAA0G;AAC1G,sHAAuH;AACvH,2IAAkI;
|
|
1
|
+
{"version":3,"file":"phx.module.js","sourceRoot":"","sources":["../src/phx.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,gFAA+E;AAC/E,+DAA8D;AAC9D,kGAAkG;AAClG,kHAAiH;AACjH,0HAAyH;AACzH,gGAA+F;AAE/F,6CAA6D;AAC7D,wDAAoD;AACpD,qFAAmF;AACnF,8EAA0E;AAC1E,kFAAgF;AAChF,yCAA2C;AAC3C,2FAAwF;AACxF,yHAAw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AC3C,2FAAiD;YACjD,iEAAoC;YACpC,iDAA4B;YAC5B,gEAAgC;YAChC,6DAA8B;YAC9B,6CAAsB;YACtB,6CAAqB;YACrB,kDAAwB;YACxB,uCAAe;YACf,qCAAkB;YAClB,wCAAmB;YACnB,kDAAwB;YACxB,8DAA0B;YAC1B,yDAA2B;YAC3B,yDAA2B;YAC3B,wBAAU;YACV,qDAA8B;YAC9B,4EAAyC;YACzC,iEAA8B;YAC9B,uEAAoC;YACpC,iEAA4B;YAC5B,4CAAqB;SACtB;QACD,OAAO,EAAE;YACP,mCAAiB;YACjB,wCAAmB;YACnB,0CAAoB;YACpB,uDAA0B;YAC1B,yCAAoB;YACpB,4DAA8B;YAC9B,2EAAqC;YACrC,mFAAyC;YACzC,yDAA4B;YAC5B,gCAAc;YACd,4CAAqB;YACrB,iDAAuB;YACvB,8DAA6B;YAC7B,+EAAuC;YACvC,mFAA6C;YAC7C,oEAAsC;YACtC,uFAA2C;YAC3C,2FAAiD;YACjD,iEAAoC;YACpC,iDAA4B;YAC5B,gEAAgC;YAChC,6DAA8B;YAC9B,6CAAsB;YACtB,6CAAqB;YACrB,kDAAwB;YACxB,uCAAe;YACf,qCAAkB;YAClB,wCAAmB;YACnB,kDAAwB;YACxB,8DAA0B;YAC1B,yDAA2B;YAC3B,yDAA2B;YAC3B,qDAA8B;YAC9B,4EAAyC;YACzC,wBAAU;YACV,iEAA8B;YAC9B,uEAAoC;YACpC,iEAA4B;YAC5B,4CAAqB;SACtB;KACF,CAAC;GACW,aAAa,CA0FzB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MUTATION_UPDATE_USER_DEVICE = exports.MUTATION_INSERT_USER_DEVICE = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
exports.MUTATION_INSERT_USER_DEVICE = (0, graphql_request_1.gql) `
|
|
6
|
+
mutation MyMutation($app_name: String!, $device_id: String!, $device_model: String!, $os: String!, $token: String!, $user_id: Int!) {
|
|
7
|
+
insert_user_device(objects: {device_id: $device_id, user_id: $user_id, token: $token, os: $os, device_model: $device_model, app_name: $app_name, created_at: "now"}) {
|
|
8
|
+
affected_rows
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
exports.MUTATION_UPDATE_USER_DEVICE = (0, graphql_request_1.gql) `
|
|
13
|
+
mutation MyMutation(
|
|
14
|
+
$app_name: String!
|
|
15
|
+
$device_id: String!
|
|
16
|
+
$user_id: Int!
|
|
17
|
+
$token: String!
|
|
18
|
+
) {
|
|
19
|
+
update_user_device(
|
|
20
|
+
where: {
|
|
21
|
+
app_name: { _eq: $app_name }
|
|
22
|
+
device_id: { _eq: $device_id }
|
|
23
|
+
deleted_at: { _is_null: true }
|
|
24
|
+
user_id: { _eq: $user_id }
|
|
25
|
+
}
|
|
26
|
+
_set: { token: $token, updated_at: "now" }
|
|
27
|
+
) {
|
|
28
|
+
returning {
|
|
29
|
+
id
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query/user-devices/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoC;AAEvB,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA;;;;;;CAM7C,CAAC;AAEW,QAAA,2BAA2B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;CAqB7C,CAAC"}
|