blixify-server 0.3.29 → 1.0.0

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.
Files changed (37) hide show
  1. package/dist/apis/authWrapper.d.ts.map +1 -1
  2. package/dist/apis/authWrapper.js +1 -228
  3. package/dist/apis/crypto.d.ts.map +1 -1
  4. package/dist/apis/crypto.js +1 -63
  5. package/dist/apis/dayjs.d.ts +3 -0
  6. package/dist/apis/dayjs.d.ts.map +1 -0
  7. package/dist/apis/dayjs.js +1 -0
  8. package/dist/apis/fbWrapper.d.ts +6 -6
  9. package/dist/apis/fbWrapper.d.ts.map +1 -1
  10. package/dist/apis/fbWrapper.js +1 -839
  11. package/dist/apis/googleAnalyticsWrapper.d.ts.map +1 -1
  12. package/dist/apis/googleAnalyticsWrapper.js +1 -223
  13. package/dist/apis/index.js +1 -21
  14. package/dist/apis/mondayWrapper.d.ts +2 -2
  15. package/dist/apis/mondayWrapper.d.ts.map +1 -1
  16. package/dist/apis/mondayWrapper.js +32 -527
  17. package/dist/apis/mongoWrapper.d.ts +6 -6
  18. package/dist/apis/mongoWrapper.d.ts.map +1 -1
  19. package/dist/apis/mongoWrapper.js +1 -1526
  20. package/dist/apis/postgresqlWrapper.d.ts +3 -3
  21. package/dist/apis/postgresqlWrapper.d.ts.map +1 -1
  22. package/dist/apis/postgresqlWrapper.js +1 -514
  23. package/dist/apis/security.d.ts.map +1 -1
  24. package/dist/apis/security.js +1 -80
  25. package/dist/apis/trackVisionWrapper.d.ts.map +1 -1
  26. package/dist/apis/trackVisionWrapper.js +1 -150
  27. package/dist/apis/uploadWrapper.d.ts.map +1 -1
  28. package/dist/apis/uploadWrapper.js +1 -481
  29. package/dist/apis/utils.d.ts +1 -1
  30. package/dist/apis/utils.d.ts.map +1 -1
  31. package/dist/apis/utils.js +1 -25
  32. package/dist/buildtsconfig.tsbuildinfo +1 -0
  33. package/dist/model/Log.js +1 -2
  34. package/dist/model/QueryModel.d.ts.map +1 -1
  35. package/dist/model/QueryModel.js +1 -118
  36. package/dist/model/SecurityConfig.js +1 -2
  37. package/package.json +21 -12
@@ -1 +1 @@
1
- {"version":3,"file":"authWrapper.d.ts","sourceRoot":"","sources":["../../src/apis/authWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;GAGG;AACH,qBAAa,WAAW;IACtB,OAAO,EAAE,GAAG,CAAM;IAClB,MAAM,UAAS;IACf,GAAG,EAAE,UAAU,CAAC;gBAEJ,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU;IAM1D,mBAAmB,QAAe,GAAG,OAAO,GAAG,mBAyB7C;IAEF,iBAAiB,QACV,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAwB7B;IAEF,kBAAkB,QACX,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAa7B;IAEF,kBAAkB,QACX,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAa7B;IAEF,eAAe,QACR,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAiB7B;IAEF,kBAAkB,QACX,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAa7B;IAEF,iBAAiB,QACV,GAAG,OACH,GAAG,aACG,MAAM,QAAQ,GAAG,CAAC,mBAY7B;IAEF,IAAI,YAsEF;CACH"}
1
+ {"version":3,"file":"authWrapper.d.ts","sourceRoot":"","sources":["../../src/apis/authWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;GAGG;AACH,qBAAa,WAAW;IACtB,OAAO,EAAE,GAAG,CAAM;IAClB,MAAM,UAAS;IACf,GAAG,EAAE,UAAU,CAAC;gBAEJ,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU;IAM1D,mBAAmB,GAAU,KAAK,GAAG,EAAE,KAAK,GAAG,mBAyB7C;IAEF,iBAAiB,GACf,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAwB7B;IAEF,kBAAkB,GAChB,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAa7B;IAEF,kBAAkB,GAChB,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAa7B;IAEF,eAAe,GACb,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAiB7B;IAEF,kBAAkB,GAChB,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAa7B;IAEF,iBAAiB,GACf,KAAK,GAAG,EACR,KAAK,GAAG,EACR,WAAW,MAAM,OAAO,CAAC,GAAG,CAAC,mBAY7B;IAEF,IAAI,YAsEF;CACH"}
@@ -1,228 +1 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AuthWrapper = void 0;
13
- /**
14
- * @Wrapper
15
- *
16
- */
17
- class AuthWrapper {
18
- constructor(fbAdmin, isProd, lib) {
19
- this.fbAdmin = "";
20
- this.isProd = false;
21
- this.initCheckAuthMethod = (req, res) => __awaiter(this, void 0, void 0, function* () {
22
- var _a;
23
- const adminAuth = this.fbAdmin.auth();
24
- try {
25
- const userId = req.body.userId;
26
- if (!userId)
27
- throw "Invalid Configuration";
28
- const userRecord = yield adminAuth.getUser(userId);
29
- const provider = {};
30
- (_a = userRecord.providerData) === null || _a === void 0 ? void 0 : _a.map((eachRecord) => {
31
- switch (eachRecord.providerId) {
32
- case "phone":
33
- provider["phone"] = eachRecord.phoneNumber;
34
- break;
35
- case "password":
36
- provider["email"] = eachRecord.email;
37
- break;
38
- case "google.com":
39
- provider["google"] = eachRecord.email;
40
- break;
41
- }
42
- });
43
- provider["disabled"] = userRecord.disabled;
44
- res.send({ provider: provider });
45
- }
46
- catch (err) {
47
- res.status(400).json({ err: err });
48
- }
49
- });
50
- this.initCreateAccount = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
51
- const adminAuth = this.fbAdmin.auth();
52
- try {
53
- const userId = req.body.userId;
54
- const phoneNumber = req.body.phoneNumber;
55
- const email = req.body.email;
56
- const password = req.body.password;
57
- if (!userId)
58
- throw "Invalid Configuration";
59
- const userData = {
60
- uid: userId,
61
- };
62
- if (phoneNumber)
63
- userData["phoneNumber"] = phoneNumber;
64
- if (email)
65
- userData["email"] = email;
66
- if (password)
67
- userData["password"] = password;
68
- const createdCredentials = yield adminAuth.createUser(userData);
69
- if (workflow)
70
- yield workflow();
71
- res.send({ success: createdCredentials.uid });
72
- }
73
- catch (err) {
74
- res.status(400).json({ err: err });
75
- }
76
- });
77
- this.initDisableAccount = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
78
- const adminAuth = this.fbAdmin.auth();
79
- try {
80
- const userId = req.body.userId;
81
- const disable = req.body.disable;
82
- if (!userId)
83
- throw "Invalid Configuration";
84
- yield adminAuth.updateUser(userId, { disabled: disable ? true : false });
85
- if (workflow)
86
- yield workflow();
87
- res.send({ success: true });
88
- }
89
- catch (err) {
90
- res.status(400).json({ err: err });
91
- }
92
- });
93
- this.initUpdatePassword = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
94
- const adminAuth = this.fbAdmin.auth();
95
- try {
96
- const userId = req.body.userId;
97
- const password = req.body.password;
98
- if (!userId || !password)
99
- throw "Invalid Configuration";
100
- yield adminAuth.updateUser(userId, { password: password });
101
- if (workflow)
102
- yield workflow();
103
- res.send({ success: true });
104
- }
105
- catch (err) {
106
- res.status(400).json({ err: err });
107
- }
108
- });
109
- this.initUpdateEmail = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
110
- const adminAuth = this.fbAdmin.auth();
111
- try {
112
- const userId = req.body.userId;
113
- const email = req.body.email;
114
- const password = req.body.password;
115
- if (!userId || !email)
116
- throw "Invalid Configuration";
117
- const data = { email: email };
118
- if (password)
119
- data["password"] = password;
120
- yield adminAuth.updateUser(userId, data);
121
- if (workflow)
122
- yield workflow();
123
- res.send({ success: true });
124
- }
125
- catch (err) {
126
- res.status(400).json({ err: err });
127
- }
128
- });
129
- this.initUpdateMobileNo = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
130
- const adminAuth = this.fbAdmin.auth();
131
- try {
132
- const userId = req.body.userId;
133
- const phoneNumber = req.body.phoneNumber;
134
- if (!userId || !phoneNumber)
135
- throw "Invalid Configuration";
136
- yield adminAuth.updateUser(userId, { phoneNumber: phoneNumber });
137
- if (workflow)
138
- yield workflow();
139
- res.send({ success: true });
140
- }
141
- catch (err) {
142
- res.status(400).json({ err: err });
143
- }
144
- });
145
- this.initDeleteAccount = (req, res, workflow) => __awaiter(this, void 0, void 0, function* () {
146
- const adminAuth = this.fbAdmin.auth();
147
- try {
148
- const userId = req.body.userId;
149
- if (!userId)
150
- throw "Invalid Configuration";
151
- yield adminAuth.deleteUser(userId);
152
- if (workflow)
153
- yield workflow();
154
- res.send({ success: true });
155
- }
156
- catch (err) {
157
- res.status(400).json({ err: err });
158
- }
159
- });
160
- this.init = () => {
161
- const router = this.lib.express.Router();
162
- /**
163
- * @Input
164
- * userId - string
165
- * disable - boolean
166
- */
167
- router.post("/disable", (req, res) => {
168
- this.initDisableAccount(req, res);
169
- });
170
- /**
171
- * @Input
172
- * userId - string
173
- */
174
- router.post("/method", (req, res) => {
175
- this.initCheckAuthMethod(req, res);
176
- });
177
- /**
178
- * @Input
179
- * userId - string
180
- * phoneNumber? - string
181
- * email? - string
182
- * password? - string
183
- *
184
- */
185
- router.post("/create", (req, res) => {
186
- this.initCreateAccount(req, res);
187
- });
188
- /**
189
- * @Input
190
- * userId - string
191
- * password - string
192
- */
193
- router.post("/reset", (req, res) => {
194
- this.initUpdatePassword(req, res);
195
- });
196
- /**
197
- * @Input
198
- * userId - string
199
- * email - string
200
- * password? - string
201
- */
202
- router.post("/email", (req, res) => {
203
- this.initUpdateEmail(req, res);
204
- });
205
- /**
206
- * @Input
207
- * userId - string
208
- * phoneNumber - string
209
- */
210
- router.post("/mobile", (req, res) => {
211
- this.initUpdateMobileNo(req, res);
212
- });
213
- /**
214
- * @Input
215
- * userId - string
216
- *
217
- */
218
- router.post("/delete", (req, res) => {
219
- this.initDeleteAccount(req, res);
220
- });
221
- return router;
222
- };
223
- this.fbAdmin = fbAdmin;
224
- this.isProd = isProd;
225
- this.lib = lib;
226
- }
227
- }
228
- exports.AuthWrapper = AuthWrapper;
1
+ var __awaiter=this&&this.__awaiter||function(i,o,d,n){return new(d=d||Promise)(function(e,t){function s(i){try{r(n.next(i))}catch(i){t(i)}}function a(i){try{r(n.throw(i))}catch(i){t(i)}}function r(i){var t;i.done?e(i.value):((t=i.value)instanceof d?t:new d(function(i){i(t)})).then(s,a)}r((n=n.apply(i,o||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthWrapper=void 0;class AuthWrapper{constructor(i,t,e){this.fbAdmin="",this.isProd=!1,this.initCheckAuthMethod=(r,o)=>__awaiter(this,void 0,void 0,function*(){var i,e=this.fbAdmin.auth();try{var s=r.body.userId;if(!s)throw"Invalid Configuration";var a=yield e.getUser(s);let t={};null!=(i=a.providerData)&&i.map(i=>{switch(i.providerId){case"phone":t.phone=i.phoneNumber;break;case"password":t.email=i.email;break;case"google.com":t.google=i.email}}),t.disabled=a.disabled,o.send({provider:t})}catch(i){o.status(400).json({err:i})}}),this.initCreateAccount=(d,n,h)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=d.body.userId,e=d.body.phoneNumber,s=d.body.email,a=d.body.password;if(!t)throw"Invalid Configuration";var r={uid:t},o=(e&&(r.phoneNumber=e),s&&(r.email=s),a&&(r.password=a),yield i.createUser(r));h&&(yield h()),n.send({success:o.uid})}catch(i){n.status(400).json({err:i})}}),this.initDisableAccount=(s,a,r)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=s.body.userId,e=s.body.disable;if(!t)throw"Invalid Configuration";yield i.updateUser(t,{disabled:!!e}),r&&(yield r()),a.send({success:!0})}catch(i){a.status(400).json({err:i})}}),this.initUpdatePassword=(s,a,r)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=s.body.userId,e=s.body.password;if(!t||!e)throw"Invalid Configuration";yield i.updateUser(t,{password:e}),r&&(yield r()),a.send({success:!0})}catch(i){a.status(400).json({err:i})}}),this.initUpdateEmail=(r,o,d)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=r.body.userId,e=r.body.email,s=r.body.password;if(!t||!e)throw"Invalid Configuration";var a={email:e};s&&(a.password=s),yield i.updateUser(t,a),d&&(yield d()),o.send({success:!0})}catch(i){o.status(400).json({err:i})}}),this.initUpdateMobileNo=(s,a,r)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=s.body.userId,e=s.body.phoneNumber;if(!t||!e)throw"Invalid Configuration";yield i.updateUser(t,{phoneNumber:e}),r&&(yield r()),a.send({success:!0})}catch(i){a.status(400).json({err:i})}}),this.initDeleteAccount=(e,s,a)=>__awaiter(this,void 0,void 0,function*(){var i=this.fbAdmin.auth();try{var t=e.body.userId;if(!t)throw"Invalid Configuration";yield i.deleteUser(t),a&&(yield a()),s.send({success:!0})}catch(i){s.status(400).json({err:i})}}),this.init=()=>{var i=this.lib.express.Router();return i.post("/disable",(i,t)=>{this.initDisableAccount(i,t)}),i.post("/method",(i,t)=>{this.initCheckAuthMethod(i,t)}),i.post("/create",(i,t)=>{this.initCreateAccount(i,t)}),i.post("/reset",(i,t)=>{this.initUpdatePassword(i,t)}),i.post("/email",(i,t)=>{this.initUpdateEmail(i,t)}),i.post("/mobile",(i,t)=>{this.initUpdateMobileNo(i,t)}),i.post("/delete",(i,t)=>{this.initDeleteAccount(i,t)}),i},this.fbAdmin=i,this.isProd=t,this.lib=e}}exports.AuthWrapper=AuthWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/apis/crypto.ts"],"names":[],"mappings":"AACA,qBAAa,gBAAgB;IAC3B,SAAS,SAAM;IACf,eAAe,UAAS;gBAEZ,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO;IAKvD,gBAAgB,SAAU,MAAM,SAoB9B;IAEF,IAAI,UAGsC,GAAG,OAAO,GAAG,SAAS,GAAG;CAqBpE"}
1
+ {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/apis/crypto.ts"],"names":[],"mappings":"AACA,qBAAa,gBAAgB;IAC3B,SAAS,SAAM;IACf,eAAe,UAAS;gBAEZ,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO;IAKvD,gBAAgB,GAAI,MAAM,MAAM,SAoB9B;IAEF,IAAI,UAGsC,GAAG,OAAO,GAAG,SAAS,GAAG;CAqBpE"}
@@ -1,63 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CryptoMiddleware = void 0;
4
- const CryptoJS = require("crypto-js");
5
- class CryptoMiddleware {
6
- constructor(secretKey, forceDecryption) {
7
- this.secretKey = "";
8
- this.forceDecryption = false;
9
- this.handleDecryption = (data) => {
10
- //INFO : Decrypt the data
11
- const bytes = CryptoJS.AES.decrypt(data, this.secretKey);
12
- const decrypted = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
13
- if (decrypted) {
14
- if (decrypted.baseSignDate) {
15
- //TODO : Add date timing
16
- delete decrypted["baseSignDate"];
17
- return decrypted;
18
- // const tolerance = moment.duration(1, "minute");
19
- // const startWindow = moment(decrypted.baseSignDate).utc();
20
- // const endWindow = startWindow.clone().add(tolerance);
21
- // const currentUTCDate = moment().utc();
22
- // if (currentUTCDate.isBetween(startWindow, endWindow)) {
23
- // delete decrypted["baseSignDate"];
24
- // return decrypted;
25
- // } else throw "Error";
26
- }
27
- else
28
- throw "Error";
29
- }
30
- return {};
31
- };
32
- this.secretKey = secretKey;
33
- this.forceDecryption = forceDecryption;
34
- }
35
- init() {
36
- // eslint-disable-next-line
37
- const wrapper = this;
38
- const cryptoMiddleware = function (req, res, next) {
39
- var _a, _b;
40
- try {
41
- if (wrapper.forceDecryption && !req.body.sign) {
42
- throw new Error("Missing signature for signing");
43
- }
44
- try {
45
- if ((_a = req.body) === null || _a === void 0 ? void 0 : _a.sign)
46
- req.body = wrapper.handleDecryption(req.body.sign);
47
- }
48
- catch (err) {
49
- throw new Error("Wrong Signature");
50
- }
51
- if (next)
52
- next();
53
- }
54
- catch (err) {
55
- if (next)
56
- next(err);
57
- return res.status(400).json({ error: (_b = err === null || err === void 0 ? void 0 : err.message) !== null && _b !== void 0 ? _b : "" });
58
- }
59
- };
60
- return cryptoMiddleware;
61
- }
62
- }
63
- exports.CryptoMiddleware = CryptoMiddleware;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.CryptoMiddleware=void 0;let CryptoJS=require("crypto-js");class CryptoMiddleware{constructor(r,e){this.secretKey="",this.forceDecryption=!1,this.handleDecryption=r=>{r=CryptoJS.AES.decrypt(r,this.secretKey),r=JSON.parse(r.toString(CryptoJS.enc.Utf8));if(r){if(r.baseSignDate)return delete r.baseSignDate,r;throw"Error"}return{}},this.secretKey=r,this.forceDecryption=e}init(){let i=this;return function(r,e,t){var o;try{if(i.forceDecryption&&!r.body.sign)throw new Error("Missing signature for signing");try{null!=(o=r.body)&&o.sign&&(r.body=i.handleDecryption(r.body.sign))}catch(r){throw new Error("Wrong Signature")}t&&t()}catch(r){return t&&t(r),e.status(400).json({error:null!=(o=null==r?void 0:r.message)?o:""})}}}}exports.CryptoMiddleware=CryptoMiddleware;
@@ -0,0 +1,3 @@
1
+ import dayjs from "dayjs";
2
+ export default dayjs;
3
+ //# sourceMappingURL=dayjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dayjs.d.ts","sourceRoot":"","sources":["../../src/apis/dayjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAe,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let dayjs_1=__importDefault(require("dayjs")),customParseFormat_1=__importDefault(require("dayjs/plugin/customParseFormat")),timezone_1=__importDefault(require("dayjs/plugin/timezone")),utc_1=__importDefault(require("dayjs/plugin/utc"));dayjs_1.default.extend(utc_1.default),dayjs_1.default.extend(timezone_1.default),dayjs_1.default.extend(customParseFormat_1.default),exports.default=dayjs_1.default;
@@ -13,13 +13,13 @@ export declare class FirebaseWrapper {
13
13
  modelChecker: (obj: any) => boolean;
14
14
  constructor(fbAdmin: any, collection: string, isProd: boolean, config: SecurityConfig, modelChecker: (obj: any, ignore?: boolean) => boolean, lib: WrapperLib);
15
15
  parseModel: (data: any) => any;
16
- initBatchCreate: (req: any, res: any, workflow?: ((dataList: any[]) => Promise<any>) | undefined) => Promise<void>;
17
- initCreate: (req: any, res: any, workflow?: ((data: any) => Promise<any>) | undefined) => Promise<void>;
16
+ initBatchCreate: (req: any, res: any, workflow?: (dataList: any[]) => Promise<any>) => Promise<void>;
17
+ initCreate: (req: any, res: any, workflow?: (data: any) => Promise<any>) => Promise<void>;
18
18
  initGet: (req: any, res: any) => Promise<void>;
19
- initBatchUpdate: (req: any, res: any, workflow?: ((data: any) => Promise<any>) | undefined) => Promise<void>;
20
- initUpdate: (req: any, res: any, workflow?: ((data: any) => Promise<any>) | undefined) => Promise<void>;
21
- initBatchDelete: (req: any, res: any, workflow?: ((dataList: any[]) => Promise<any>) | undefined) => Promise<void>;
22
- initDelete: (req: any, res: any, workflow?: ((data: any) => Promise<any>) | undefined) => Promise<void>;
19
+ initBatchUpdate: (req: any, res: any, workflow?: (data: any) => Promise<any>) => Promise<void>;
20
+ initUpdate: (req: any, res: any, workflow?: (data: any) => Promise<any>) => Promise<void>;
21
+ initBatchDelete: (req: any, res: any, workflow?: (dataList: any[]) => Promise<any>) => Promise<void>;
22
+ initDelete: (req: any, res: any, workflow?: (data: any) => Promise<any>) => Promise<void>;
23
23
  initList: (req: any, res: any) => Promise<void>;
24
24
  init: () => any;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fbWrapper.d.ts","sourceRoot":"","sources":["../../src/apis/fbWrapper.ts"],"names":[],"mappings":"AASA,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,EAAE,GAAG,CAAM;IAClB,UAAU,SAAM;IAChB,MAAM,UAAS;IACf,MAAM,EAAE,cAAc,CAQpB;IACF,GAAG,EAAE,UAAU,CAAC;IAEhB,YAAY,QAAS,GAAG,aAEtB;gBAGA,OAAO,EAAE,GAAG,EACZ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,OAAO,EACrD,GAAG,EAAE,UAAU;IAUjB,UAAU,SAAU,GAAG,SAIrB;IAEF,eAAe,QACR,GAAG,OACH,GA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