storemw-core-api 1.0.141 → 1.0.143
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/middlewares/index.d.ts +3 -0
- package/dist/middlewares/index.js +40 -0
- package/dist/middlewares/index.js.map +1 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.js +40 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/middleware/index.d.ts +2 -0
- package/dist/schema/middleware/index.js +19 -0
- package/dist/schema/middleware/index.js.map +1 -0
- package/dist/schema/middleware/route/index.d.ts +27 -27
- package/dist/schema/middleware/route/index.js +14 -14
- package/dist/schema/middleware/route/index.js.map +1 -1
- package/dist/schema/payload/index.d.ts +74 -74
- package/dist/schema/payload/index.js +39 -39
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/services/account/AccountService.js +13 -13
- package/dist/services/account/AccountService.js.map +1 -1
- package/package.json +21 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.middlewareRoute = exports.middlewareRequest = exports.middlewareCommon = void 0;
|
|
37
|
+
exports.middlewareCommon = __importStar(require("./common"));
|
|
38
|
+
exports.middlewareRequest = __importStar(require("./request"));
|
|
39
|
+
exports.middlewareRoute = __importStar(require("./route"));
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA4C;AAC5C,+DAA8C;AAC9C,2DAA0C","sourcesContent":["export * as middlewareCommon from \"./common\"\nexport * as middlewareRequest from \"./request\"\nexport * as middlewareRoute from \"./route\""]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.schemaPayload = exports.schemaMiddleware = exports.schemaCommon = void 0;
|
|
37
|
+
exports.schemaCommon = __importStar(require("./common"));
|
|
38
|
+
exports.schemaMiddleware = __importStar(require("./middleware"));
|
|
39
|
+
exports.schemaPayload = __importStar(require("./payload"));
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwC;AACxC,iEAAgD;AAChD,2DAA0C","sourcesContent":["export * as schemaCommon from \"./common\"\nexport * as schemaMiddleware from \"./middleware\"\nexport * as schemaPayload from \"./payload\""]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
__exportStar(require("./route"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/middleware/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB","sourcesContent":["export * from \"./request\"\nexport * from \"./route\""]}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { schemaRouteDocumentList } from "
|
|
2
|
-
export { schemaRouteRepositoryList } from "
|
|
3
|
-
export { schemaRouteUserList } from "
|
|
4
|
-
export { schemaRouteBusinessList } from "
|
|
5
|
-
export { schemaRouteAccessKeyList } from "
|
|
6
|
-
export { schemaRouteOneTimeCodeList } from "
|
|
7
|
-
export { schemaRouteAccountList } from "
|
|
8
|
-
export { schemaRouteUserBranchList } from "
|
|
9
|
-
export { schemaRouteItemList } from "
|
|
10
|
-
export { schemaRouteFileList } from "
|
|
11
|
-
export { schemaRouteLocationList } from "
|
|
12
|
-
export { schemaRouteRegionList } from "
|
|
13
|
-
export { schemaQueryList } from "
|
|
14
|
-
export { schemaRouteAccessControlListPolicyOptions } from "
|
|
15
|
-
export type { QueryList } from "
|
|
16
|
-
export type { SchemaRouteUserList } from "
|
|
17
|
-
export type { SchemaRouteAccountList } from "
|
|
18
|
-
export type { SchemaRouteBusinessList } from "
|
|
19
|
-
export type { SchemaRouteAccessKeyList } from "
|
|
20
|
-
export type { SchemaRouteOneTimeCodeList } from "
|
|
21
|
-
export type { SchemaRouteUserBranchList } from "
|
|
22
|
-
export type { SchemaRouteItemList } from "
|
|
23
|
-
export type { SchemaRouteFileList } from "
|
|
24
|
-
export type { SchemaRouteRegionList } from "
|
|
25
|
-
export type { SchemaRouteDocumentList } from "
|
|
26
|
-
export type { SchemaRouteRepositoryList } from "
|
|
27
|
-
export type { SchemaRouteAccessControlListPolicyOptions } from "
|
|
1
|
+
export { schemaRouteDocumentList } from "./schemaDocument";
|
|
2
|
+
export { schemaRouteRepositoryList } from "./schemaRepository";
|
|
3
|
+
export { schemaRouteUserList } from "./schemaUser";
|
|
4
|
+
export { schemaRouteBusinessList } from "./schemaBusiness";
|
|
5
|
+
export { schemaRouteAccessKeyList } from "./schemaAccessKey";
|
|
6
|
+
export { schemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
|
|
7
|
+
export { schemaRouteAccountList } from "./schemaAccount";
|
|
8
|
+
export { schemaRouteUserBranchList } from "./schemaUserBranch";
|
|
9
|
+
export { schemaRouteItemList } from "./schemaItem";
|
|
10
|
+
export { schemaRouteFileList } from "./schemaFile";
|
|
11
|
+
export { schemaRouteLocationList } from "./schemaLocation";
|
|
12
|
+
export { schemaRouteRegionList } from "./schemaRegion";
|
|
13
|
+
export { schemaQueryList } from "./schemaQueryList";
|
|
14
|
+
export { schemaRouteAccessControlListPolicyOptions } from "./schemaAccessControl";
|
|
15
|
+
export type { QueryList } from "./schemaQueryList";
|
|
16
|
+
export type { SchemaRouteUserList } from "./schemaUser";
|
|
17
|
+
export type { SchemaRouteAccountList } from "./schemaAccount";
|
|
18
|
+
export type { SchemaRouteBusinessList } from "./schemaBusiness";
|
|
19
|
+
export type { SchemaRouteAccessKeyList } from "./schemaAccessKey";
|
|
20
|
+
export type { SchemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
|
|
21
|
+
export type { SchemaRouteUserBranchList } from "./schemaUserBranch";
|
|
22
|
+
export type { SchemaRouteItemList } from "./schemaItem";
|
|
23
|
+
export type { SchemaRouteFileList } from "./schemaFile";
|
|
24
|
+
export type { SchemaRouteRegionList } from "./schemaRegion";
|
|
25
|
+
export type { SchemaRouteDocumentList } from "./schemaDocument";
|
|
26
|
+
export type { SchemaRouteRepositoryList } from "./schemaRepository";
|
|
27
|
+
export type { SchemaRouteAccessControlListPolicyOptions } from "./schemaAccessControl";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schemaRouteAccessControlListPolicyOptions = exports.schemaQueryList = exports.schemaRouteRegionList = exports.schemaRouteLocationList = exports.schemaRouteFileList = exports.schemaRouteItemList = exports.schemaRouteUserBranchList = exports.schemaRouteAccountList = exports.schemaRouteOneTimeCodeList = exports.schemaRouteAccessKeyList = exports.schemaRouteBusinessList = exports.schemaRouteUserList = exports.schemaRouteRepositoryList = exports.schemaRouteDocumentList = void 0;
|
|
4
|
-
var schemaDocument_1 = require("
|
|
4
|
+
var schemaDocument_1 = require("./schemaDocument");
|
|
5
5
|
Object.defineProperty(exports, "schemaRouteDocumentList", { enumerable: true, get: function () { return schemaDocument_1.schemaRouteDocumentList; } });
|
|
6
|
-
var schemaRepository_1 = require("
|
|
6
|
+
var schemaRepository_1 = require("./schemaRepository");
|
|
7
7
|
Object.defineProperty(exports, "schemaRouteRepositoryList", { enumerable: true, get: function () { return schemaRepository_1.schemaRouteRepositoryList; } });
|
|
8
|
-
var schemaUser_1 = require("
|
|
8
|
+
var schemaUser_1 = require("./schemaUser");
|
|
9
9
|
Object.defineProperty(exports, "schemaRouteUserList", { enumerable: true, get: function () { return schemaUser_1.schemaRouteUserList; } });
|
|
10
|
-
var schemaBusiness_1 = require("
|
|
10
|
+
var schemaBusiness_1 = require("./schemaBusiness");
|
|
11
11
|
Object.defineProperty(exports, "schemaRouteBusinessList", { enumerable: true, get: function () { return schemaBusiness_1.schemaRouteBusinessList; } });
|
|
12
|
-
var schemaAccessKey_1 = require("
|
|
12
|
+
var schemaAccessKey_1 = require("./schemaAccessKey");
|
|
13
13
|
Object.defineProperty(exports, "schemaRouteAccessKeyList", { enumerable: true, get: function () { return schemaAccessKey_1.schemaRouteAccessKeyList; } });
|
|
14
|
-
var schemaOneTimeCode_1 = require("
|
|
14
|
+
var schemaOneTimeCode_1 = require("./schemaOneTimeCode");
|
|
15
15
|
Object.defineProperty(exports, "schemaRouteOneTimeCodeList", { enumerable: true, get: function () { return schemaOneTimeCode_1.schemaRouteOneTimeCodeList; } });
|
|
16
|
-
var schemaAccount_1 = require("
|
|
16
|
+
var schemaAccount_1 = require("./schemaAccount");
|
|
17
17
|
Object.defineProperty(exports, "schemaRouteAccountList", { enumerable: true, get: function () { return schemaAccount_1.schemaRouteAccountList; } });
|
|
18
|
-
var schemaUserBranch_1 = require("
|
|
18
|
+
var schemaUserBranch_1 = require("./schemaUserBranch");
|
|
19
19
|
Object.defineProperty(exports, "schemaRouteUserBranchList", { enumerable: true, get: function () { return schemaUserBranch_1.schemaRouteUserBranchList; } });
|
|
20
|
-
var schemaItem_1 = require("
|
|
20
|
+
var schemaItem_1 = require("./schemaItem");
|
|
21
21
|
Object.defineProperty(exports, "schemaRouteItemList", { enumerable: true, get: function () { return schemaItem_1.schemaRouteItemList; } });
|
|
22
|
-
var schemaFile_1 = require("
|
|
22
|
+
var schemaFile_1 = require("./schemaFile");
|
|
23
23
|
Object.defineProperty(exports, "schemaRouteFileList", { enumerable: true, get: function () { return schemaFile_1.schemaRouteFileList; } });
|
|
24
|
-
var schemaLocation_1 = require("
|
|
24
|
+
var schemaLocation_1 = require("./schemaLocation");
|
|
25
25
|
Object.defineProperty(exports, "schemaRouteLocationList", { enumerable: true, get: function () { return schemaLocation_1.schemaRouteLocationList; } });
|
|
26
|
-
var schemaRegion_1 = require("
|
|
26
|
+
var schemaRegion_1 = require("./schemaRegion");
|
|
27
27
|
Object.defineProperty(exports, "schemaRouteRegionList", { enumerable: true, get: function () { return schemaRegion_1.schemaRouteRegionList; } });
|
|
28
|
-
var schemaQueryList_1 = require("
|
|
28
|
+
var schemaQueryList_1 = require("./schemaQueryList");
|
|
29
29
|
Object.defineProperty(exports, "schemaQueryList", { enumerable: true, get: function () { return schemaQueryList_1.schemaQueryList; } });
|
|
30
|
-
var schemaAccessControl_1 = require("
|
|
30
|
+
var schemaAccessControl_1 = require("./schemaAccessControl");
|
|
31
31
|
Object.defineProperty(exports, "schemaRouteAccessControlListPolicyOptions", { enumerable: true, get: function () { return schemaAccessControl_1.schemaRouteAccessControlListPolicyOptions; } });
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/index.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,qDAA4D;AAAnD,2HAAA,wBAAwB,OAAA;AACjC,yDAAgE;AAAvD,+HAAA,0BAA0B,OAAA;AACnC,iDAAwD;AAA/C,uHAAA,sBAAsB,OAAA;AAC/B,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,+CAAsD;AAA7C,qHAAA,qBAAqB,OAAA;AAC9B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,6DAAiF;AAAxE,gJAAA,yCAAyC,OAAA","sourcesContent":["export { schemaRouteDocumentList } from \"./schemaDocument\"\nexport { schemaRouteRepositoryList } from \"./schemaRepository\"\nexport { schemaRouteUserList } from \"./schemaUser\"\nexport { schemaRouteBusinessList } from \"./schemaBusiness\"\nexport { schemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport { schemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport { schemaRouteAccountList } from \"./schemaAccount\"\nexport { schemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport { schemaRouteItemList } from \"./schemaItem\"\nexport { schemaRouteFileList } from \"./schemaFile\"\nexport { schemaRouteLocationList } from \"./schemaLocation\"\nexport { schemaRouteRegionList } from \"./schemaRegion\"\nexport { schemaQueryList } from \"./schemaQueryList\"\nexport { schemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\"\n\nexport type { QueryList } from \"./schemaQueryList\"\nexport type { SchemaRouteUserList } from \"./schemaUser\"\nexport type { SchemaRouteAccountList } from \"./schemaAccount\"\nexport type { SchemaRouteBusinessList } from \"./schemaBusiness\"\nexport type { SchemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport type { SchemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport type { SchemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport type { SchemaRouteItemList } from \"./schemaItem\"\nexport type { SchemaRouteFileList } from \"./schemaFile\"\nexport type { SchemaRouteRegionList } from \"./schemaRegion\"\nexport type { SchemaRouteDocumentList } from \"./schemaDocument\"\nexport type { SchemaRouteRepositoryList } from \"./schemaRepository\"\nexport type { SchemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\""]}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from "
|
|
2
|
-
export type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from "
|
|
3
|
-
export { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from "
|
|
4
|
-
export type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from "
|
|
5
|
-
export { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from "
|
|
6
|
-
export type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from "
|
|
7
|
-
export { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from "
|
|
8
|
-
export type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from "
|
|
9
|
-
export { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from "
|
|
10
|
-
export type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from "
|
|
11
|
-
export { schemaUserDeletePayload, schemaUserCredential } from "
|
|
12
|
-
export type { SchemaUserDeletePayload } from "
|
|
13
|
-
export { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from "
|
|
14
|
-
export type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from "
|
|
15
|
-
export { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from "
|
|
16
|
-
export type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from "
|
|
17
|
-
export { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from "
|
|
18
|
-
export type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from "
|
|
19
|
-
export { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from "
|
|
20
|
-
export type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from "
|
|
21
|
-
export { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from "
|
|
22
|
-
export type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from "
|
|
23
|
-
export { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from "
|
|
24
|
-
export type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from "
|
|
25
|
-
export { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from "
|
|
26
|
-
export type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from "
|
|
27
|
-
export { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from "
|
|
28
|
-
export type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from "
|
|
29
|
-
export { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from "
|
|
30
|
-
export type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from "
|
|
31
|
-
export { schemaFileUploadPayload, schemaFileDeletePayload } from "
|
|
32
|
-
export type { SchemaFileUploadPayload, SchemaFileDeletePayload } from "
|
|
33
|
-
export { schemaDocumentDeletePayload, eNumDocumentTypes } from "
|
|
34
|
-
export type { SchemaDocumentDeletePayload } from "
|
|
35
|
-
export { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from "
|
|
36
|
-
export type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from "
|
|
37
|
-
export { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from "
|
|
38
|
-
export type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from "
|
|
39
|
-
export { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from "
|
|
40
|
-
export type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from "
|
|
41
|
-
export { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from "
|
|
42
|
-
export type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from "
|
|
43
|
-
export { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from "
|
|
44
|
-
export type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from "
|
|
45
|
-
export { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from "
|
|
46
|
-
export type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from "
|
|
47
|
-
export { schemaItemDeletePayload } from "
|
|
48
|
-
export type { SchemaItemDeletePayload } from "
|
|
49
|
-
export { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from "
|
|
50
|
-
export type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from "
|
|
51
|
-
export { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from "
|
|
52
|
-
export type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from "
|
|
53
|
-
export { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from "
|
|
54
|
-
export type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from "
|
|
55
|
-
export { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from "
|
|
56
|
-
export type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from "
|
|
57
|
-
export { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from "
|
|
58
|
-
export type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from "
|
|
59
|
-
export { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from "
|
|
60
|
-
export type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from "
|
|
61
|
-
export { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from "
|
|
62
|
-
export type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from "
|
|
63
|
-
export { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from "
|
|
64
|
-
export type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from "
|
|
65
|
-
export { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from "
|
|
66
|
-
export type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from "
|
|
67
|
-
export { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from "
|
|
68
|
-
export type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from "
|
|
69
|
-
export { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from "
|
|
70
|
-
export type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from "
|
|
71
|
-
export { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from "
|
|
72
|
-
export type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from "
|
|
73
|
-
export { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from "
|
|
74
|
-
export type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from "
|
|
1
|
+
export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from "./auth/schemaAuthToken";
|
|
2
|
+
export type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from "./auth/schemaAuthToken";
|
|
3
|
+
export { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from "./access_key/schemaAccessKey";
|
|
4
|
+
export type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from "./access_key/schemaAccessKey";
|
|
5
|
+
export { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from "./reset_password/schemaResetPassword";
|
|
6
|
+
export type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from "./reset_password/schemaResetPassword";
|
|
7
|
+
export { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from "./account/schemaAccount";
|
|
8
|
+
export type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from "./account/schemaAccount";
|
|
9
|
+
export { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from "./business/schemaBusiness";
|
|
10
|
+
export type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from "./business/schemaBusiness";
|
|
11
|
+
export { schemaUserDeletePayload, schemaUserCredential } from "./user/schemaUser";
|
|
12
|
+
export type { SchemaUserDeletePayload } from "./user/schemaUser";
|
|
13
|
+
export { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from "./user/schemaUserMe";
|
|
14
|
+
export type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from "./user/schemaUserMe";
|
|
15
|
+
export { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from "./user/schemaUserOperator";
|
|
16
|
+
export type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from "./user/schemaUserOperator";
|
|
17
|
+
export { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from "./user/schemaUserCustomer";
|
|
18
|
+
export type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from "./user/schemaUserCustomer";
|
|
19
|
+
export { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from "./user/schemaUserRetailer";
|
|
20
|
+
export type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from "./user/schemaUserRetailer";
|
|
21
|
+
export { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from "./user/schemaUserAdministrator";
|
|
22
|
+
export type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from "./user/schemaUserAdministrator";
|
|
23
|
+
export { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from "./user/schemaUserWorker";
|
|
24
|
+
export type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from "./user/schemaUserWorker";
|
|
25
|
+
export { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from "./user/schemaUserDriver";
|
|
26
|
+
export type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from "./user/schemaUserDriver";
|
|
27
|
+
export { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from "./user/schemaUserMember";
|
|
28
|
+
export type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from "./user/schemaUserMember";
|
|
29
|
+
export { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from "./user/schemaUserAgent";
|
|
30
|
+
export type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from "./user/schemaUserAgent";
|
|
31
|
+
export { schemaFileUploadPayload, schemaFileDeletePayload } from "./file/schemaFile";
|
|
32
|
+
export type { SchemaFileUploadPayload, SchemaFileDeletePayload } from "./file/schemaFile";
|
|
33
|
+
export { schemaDocumentDeletePayload, eNumDocumentTypes } from "./document/schemaDocument";
|
|
34
|
+
export type { SchemaDocumentDeletePayload } from "./document/schemaDocument";
|
|
35
|
+
export { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from "./document/schemaDocumentSalesOrder";
|
|
36
|
+
export type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from "./document/schemaDocumentSalesOrder";
|
|
37
|
+
export { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from "./document/schemaDocumentProformaSales";
|
|
38
|
+
export type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from "./document/schemaDocumentProformaSales";
|
|
39
|
+
export { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from "./document/schemaDocumentDeliveryOrder";
|
|
40
|
+
export type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from "./document/schemaDocumentDeliveryOrder";
|
|
41
|
+
export { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from "./document/schemaDocumentReplacementDeliveryOrder";
|
|
42
|
+
export type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from "./document/schemaDocumentReplacementDeliveryOrder";
|
|
43
|
+
export { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from "./document/schemaDocumentCashSales";
|
|
44
|
+
export type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from "./document/schemaDocumentCashSales";
|
|
45
|
+
export { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from "./document/schemaDocumentTripOrder";
|
|
46
|
+
export type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from "./document/schemaDocumentTripOrder";
|
|
47
|
+
export { schemaItemDeletePayload } from "./item/schemaItem";
|
|
48
|
+
export type { SchemaItemDeletePayload } from "./item/schemaItem";
|
|
49
|
+
export { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from "./item/schemaItemProduct";
|
|
50
|
+
export type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from "./item/schemaItemProduct";
|
|
51
|
+
export { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from "./item/schemaItemItem";
|
|
52
|
+
export type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from "./item/schemaItemItem";
|
|
53
|
+
export { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from "./item/schemaItemCategory";
|
|
54
|
+
export type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from "./item/schemaItemCategory";
|
|
55
|
+
export { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from "./item/schemaItemBrand";
|
|
56
|
+
export type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from "./item/schemaItemBrand";
|
|
57
|
+
export { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from "./item/schemaItemUom";
|
|
58
|
+
export type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from "./item/schemaItemUom";
|
|
59
|
+
export { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from "./location/schemaLocationLocation";
|
|
60
|
+
export type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from "./location/schemaLocationLocation";
|
|
61
|
+
export { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from "./location/schemaLocationRack";
|
|
62
|
+
export type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from "./location/schemaLocationRack";
|
|
63
|
+
export { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from "./location/schemaLocationSlot";
|
|
64
|
+
export type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from "./location/schemaLocationSlot";
|
|
65
|
+
export { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from "./injection_field/schemaInjectionField";
|
|
66
|
+
export type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from "./injection_field/schemaInjectionField";
|
|
67
|
+
export { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from "./region/schemaRegionCountry";
|
|
68
|
+
export type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from "./region/schemaRegionCountry";
|
|
69
|
+
export { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from "./region/schemaRegionState";
|
|
70
|
+
export type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from "./region/schemaRegionState";
|
|
71
|
+
export { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from "./region/schemaRegionArea";
|
|
72
|
+
export type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from "./region/schemaRegionArea";
|
|
73
|
+
export { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|
|
74
|
+
export type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|
|
@@ -2,130 +2,130 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaUserAgentUpdatePayload = exports.schemaUserAgentCreatePayload = exports.schemaUserMemberUpdatePayload = exports.schemaUserMemberCreatePayload = exports.schemaUserDriverUpdatePayload = exports.schemaUserDriverCreatePayload = exports.schemaUserWorkerUpdatePayload = exports.schemaUserWorkerCreatePayload = exports.schemaUserAdministratorUpdatePayload = exports.schemaUserAdministratorCreatePayload = exports.schemaUserRetailerUpdatePayload = exports.schemaUserRetailerCreatePayload = exports.schemaUserCustomerUpdatePayload = exports.schemaUserCustomerCreatePayload = exports.schemaUserOperatorUpdatePayload = exports.schemaUserOperatorCreatePayload = exports.schemaUserMeUpdatePayload = exports.schemaUserMeChangePasswordPayload = exports.schemaUserCredential = exports.schemaUserDeletePayload = exports.schemaBusinessDeletePayload = exports.schemaBusinessUpdatePayload = exports.schemaBusiness = exports.schemaBusinessCreatePayload = exports.schemaAccountDeletePayload = exports.schemaAccountUpdatePayload = exports.schemaAccountCreatePayload = exports.schemaResetPasswordPerformPayload = exports.schemaResetPasswordValidateCodePayload = exports.schemaResetPasswordRequestPayload = exports.schemaAccessKeyRevokePayload = exports.schemaAccessKeyCreatePayload = exports.schemaAuthTokenOperatorPayload = exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = void 0;
|
|
4
4
|
exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaRegionAreaUpdatePayload = exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = exports.schemaItemProductCreatePayload = exports.schemaItemDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = void 0;
|
|
5
|
-
var schemaAuthToken_1 = require("
|
|
5
|
+
var schemaAuthToken_1 = require("./auth/schemaAuthToken");
|
|
6
6
|
Object.defineProperty(exports, "schemaAuthTokenPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenPayload; } });
|
|
7
7
|
Object.defineProperty(exports, "schemaAuthTokenOptionalAccountPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOptionalAccountPayload; } });
|
|
8
8
|
Object.defineProperty(exports, "schemaAuthTokenOperatorPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOperatorPayload; } });
|
|
9
|
-
var schemaAccessKey_1 = require("
|
|
9
|
+
var schemaAccessKey_1 = require("./access_key/schemaAccessKey");
|
|
10
10
|
Object.defineProperty(exports, "schemaAccessKeyCreatePayload", { enumerable: true, get: function () { return schemaAccessKey_1.schemaAccessKeyCreatePayload; } });
|
|
11
11
|
Object.defineProperty(exports, "schemaAccessKeyRevokePayload", { enumerable: true, get: function () { return schemaAccessKey_1.schemaAccessKeyRevokePayload; } });
|
|
12
|
-
var schemaResetPassword_1 = require("
|
|
12
|
+
var schemaResetPassword_1 = require("./reset_password/schemaResetPassword");
|
|
13
13
|
Object.defineProperty(exports, "schemaResetPasswordRequestPayload", { enumerable: true, get: function () { return schemaResetPassword_1.schemaResetPasswordRequestPayload; } });
|
|
14
14
|
Object.defineProperty(exports, "schemaResetPasswordValidateCodePayload", { enumerable: true, get: function () { return schemaResetPassword_1.schemaResetPasswordValidateCodePayload; } });
|
|
15
15
|
Object.defineProperty(exports, "schemaResetPasswordPerformPayload", { enumerable: true, get: function () { return schemaResetPassword_1.schemaResetPasswordPerformPayload; } });
|
|
16
|
-
var schemaAccount_1 = require("
|
|
16
|
+
var schemaAccount_1 = require("./account/schemaAccount");
|
|
17
17
|
Object.defineProperty(exports, "schemaAccountCreatePayload", { enumerable: true, get: function () { return schemaAccount_1.schemaAccountCreatePayload; } });
|
|
18
18
|
Object.defineProperty(exports, "schemaAccountUpdatePayload", { enumerable: true, get: function () { return schemaAccount_1.schemaAccountUpdatePayload; } });
|
|
19
19
|
Object.defineProperty(exports, "schemaAccountDeletePayload", { enumerable: true, get: function () { return schemaAccount_1.schemaAccountDeletePayload; } });
|
|
20
|
-
var schemaBusiness_1 = require("
|
|
20
|
+
var schemaBusiness_1 = require("./business/schemaBusiness");
|
|
21
21
|
Object.defineProperty(exports, "schemaBusinessCreatePayload", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusinessCreatePayload; } });
|
|
22
22
|
Object.defineProperty(exports, "schemaBusiness", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusiness; } });
|
|
23
23
|
Object.defineProperty(exports, "schemaBusinessUpdatePayload", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusinessUpdatePayload; } });
|
|
24
24
|
Object.defineProperty(exports, "schemaBusinessDeletePayload", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusinessDeletePayload; } });
|
|
25
|
-
var schemaUser_1 = require("
|
|
25
|
+
var schemaUser_1 = require("./user/schemaUser");
|
|
26
26
|
Object.defineProperty(exports, "schemaUserDeletePayload", { enumerable: true, get: function () { return schemaUser_1.schemaUserDeletePayload; } });
|
|
27
27
|
Object.defineProperty(exports, "schemaUserCredential", { enumerable: true, get: function () { return schemaUser_1.schemaUserCredential; } });
|
|
28
|
-
var schemaUserMe_1 = require("
|
|
28
|
+
var schemaUserMe_1 = require("./user/schemaUserMe");
|
|
29
29
|
Object.defineProperty(exports, "schemaUserMeChangePasswordPayload", { enumerable: true, get: function () { return schemaUserMe_1.schemaUserMeChangePasswordPayload; } });
|
|
30
30
|
Object.defineProperty(exports, "schemaUserMeUpdatePayload", { enumerable: true, get: function () { return schemaUserMe_1.schemaUserMeUpdatePayload; } });
|
|
31
|
-
var schemaUserOperator_1 = require("
|
|
31
|
+
var schemaUserOperator_1 = require("./user/schemaUserOperator");
|
|
32
32
|
Object.defineProperty(exports, "schemaUserOperatorCreatePayload", { enumerable: true, get: function () { return schemaUserOperator_1.schemaUserOperatorCreatePayload; } });
|
|
33
33
|
Object.defineProperty(exports, "schemaUserOperatorUpdatePayload", { enumerable: true, get: function () { return schemaUserOperator_1.schemaUserOperatorUpdatePayload; } });
|
|
34
|
-
var schemaUserCustomer_1 = require("
|
|
34
|
+
var schemaUserCustomer_1 = require("./user/schemaUserCustomer");
|
|
35
35
|
Object.defineProperty(exports, "schemaUserCustomerCreatePayload", { enumerable: true, get: function () { return schemaUserCustomer_1.schemaUserCustomerCreatePayload; } });
|
|
36
36
|
Object.defineProperty(exports, "schemaUserCustomerUpdatePayload", { enumerable: true, get: function () { return schemaUserCustomer_1.schemaUserCustomerUpdatePayload; } });
|
|
37
|
-
var schemaUserRetailer_1 = require("
|
|
37
|
+
var schemaUserRetailer_1 = require("./user/schemaUserRetailer");
|
|
38
38
|
Object.defineProperty(exports, "schemaUserRetailerCreatePayload", { enumerable: true, get: function () { return schemaUserRetailer_1.schemaUserRetailerCreatePayload; } });
|
|
39
39
|
Object.defineProperty(exports, "schemaUserRetailerUpdatePayload", { enumerable: true, get: function () { return schemaUserRetailer_1.schemaUserRetailerUpdatePayload; } });
|
|
40
|
-
var schemaUserAdministrator_1 = require("
|
|
40
|
+
var schemaUserAdministrator_1 = require("./user/schemaUserAdministrator");
|
|
41
41
|
Object.defineProperty(exports, "schemaUserAdministratorCreatePayload", { enumerable: true, get: function () { return schemaUserAdministrator_1.schemaUserAdministratorCreatePayload; } });
|
|
42
42
|
Object.defineProperty(exports, "schemaUserAdministratorUpdatePayload", { enumerable: true, get: function () { return schemaUserAdministrator_1.schemaUserAdministratorUpdatePayload; } });
|
|
43
|
-
var schemaUserWorker_1 = require("
|
|
43
|
+
var schemaUserWorker_1 = require("./user/schemaUserWorker");
|
|
44
44
|
Object.defineProperty(exports, "schemaUserWorkerCreatePayload", { enumerable: true, get: function () { return schemaUserWorker_1.schemaUserWorkerCreatePayload; } });
|
|
45
45
|
Object.defineProperty(exports, "schemaUserWorkerUpdatePayload", { enumerable: true, get: function () { return schemaUserWorker_1.schemaUserWorkerUpdatePayload; } });
|
|
46
|
-
var schemaUserDriver_1 = require("
|
|
46
|
+
var schemaUserDriver_1 = require("./user/schemaUserDriver");
|
|
47
47
|
Object.defineProperty(exports, "schemaUserDriverCreatePayload", { enumerable: true, get: function () { return schemaUserDriver_1.schemaUserDriverCreatePayload; } });
|
|
48
48
|
Object.defineProperty(exports, "schemaUserDriverUpdatePayload", { enumerable: true, get: function () { return schemaUserDriver_1.schemaUserDriverUpdatePayload; } });
|
|
49
|
-
var schemaUserMember_1 = require("
|
|
49
|
+
var schemaUserMember_1 = require("./user/schemaUserMember");
|
|
50
50
|
Object.defineProperty(exports, "schemaUserMemberCreatePayload", { enumerable: true, get: function () { return schemaUserMember_1.schemaUserMemberCreatePayload; } });
|
|
51
51
|
Object.defineProperty(exports, "schemaUserMemberUpdatePayload", { enumerable: true, get: function () { return schemaUserMember_1.schemaUserMemberUpdatePayload; } });
|
|
52
|
-
var schemaUserAgent_1 = require("
|
|
52
|
+
var schemaUserAgent_1 = require("./user/schemaUserAgent");
|
|
53
53
|
Object.defineProperty(exports, "schemaUserAgentCreatePayload", { enumerable: true, get: function () { return schemaUserAgent_1.schemaUserAgentCreatePayload; } });
|
|
54
54
|
Object.defineProperty(exports, "schemaUserAgentUpdatePayload", { enumerable: true, get: function () { return schemaUserAgent_1.schemaUserAgentUpdatePayload; } });
|
|
55
|
-
var schemaFile_1 = require("
|
|
55
|
+
var schemaFile_1 = require("./file/schemaFile");
|
|
56
56
|
Object.defineProperty(exports, "schemaFileUploadPayload", { enumerable: true, get: function () { return schemaFile_1.schemaFileUploadPayload; } });
|
|
57
57
|
Object.defineProperty(exports, "schemaFileDeletePayload", { enumerable: true, get: function () { return schemaFile_1.schemaFileDeletePayload; } });
|
|
58
|
-
var schemaDocument_1 = require("
|
|
58
|
+
var schemaDocument_1 = require("./document/schemaDocument");
|
|
59
59
|
Object.defineProperty(exports, "schemaDocumentDeletePayload", { enumerable: true, get: function () { return schemaDocument_1.schemaDocumentDeletePayload; } });
|
|
60
60
|
Object.defineProperty(exports, "eNumDocumentTypes", { enumerable: true, get: function () { return schemaDocument_1.eNumDocumentTypes; } });
|
|
61
|
-
var schemaDocumentSalesOrder_1 = require("
|
|
61
|
+
var schemaDocumentSalesOrder_1 = require("./document/schemaDocumentSalesOrder");
|
|
62
62
|
Object.defineProperty(exports, "schemaDocumentSalesOrderCreatePayload", { enumerable: true, get: function () { return schemaDocumentSalesOrder_1.schemaDocumentSalesOrderCreatePayload; } });
|
|
63
63
|
Object.defineProperty(exports, "schemaDocumentSalesOrderUpdatePayload", { enumerable: true, get: function () { return schemaDocumentSalesOrder_1.schemaDocumentSalesOrderUpdatePayload; } });
|
|
64
|
-
var schemaDocumentProformaSales_1 = require("
|
|
64
|
+
var schemaDocumentProformaSales_1 = require("./document/schemaDocumentProformaSales");
|
|
65
65
|
Object.defineProperty(exports, "schemaDocumentProformaSalesCreatePayload", { enumerable: true, get: function () { return schemaDocumentProformaSales_1.schemaDocumentProformaSalesCreatePayload; } });
|
|
66
66
|
Object.defineProperty(exports, "schemaDocumentProformaSalesUpdatePayload", { enumerable: true, get: function () { return schemaDocumentProformaSales_1.schemaDocumentProformaSalesUpdatePayload; } });
|
|
67
|
-
var schemaDocumentDeliveryOrder_1 = require("
|
|
67
|
+
var schemaDocumentDeliveryOrder_1 = require("./document/schemaDocumentDeliveryOrder");
|
|
68
68
|
Object.defineProperty(exports, "schemaDocumentDeliveryOrderCreatePayload", { enumerable: true, get: function () { return schemaDocumentDeliveryOrder_1.schemaDocumentDeliveryOrderCreatePayload; } });
|
|
69
69
|
Object.defineProperty(exports, "schemaDocumentDeliveryOrderUpdatePayload", { enumerable: true, get: function () { return schemaDocumentDeliveryOrder_1.schemaDocumentDeliveryOrderUpdatePayload; } });
|
|
70
|
-
var schemaDocumentReplacementDeliveryOrder_1 = require("
|
|
70
|
+
var schemaDocumentReplacementDeliveryOrder_1 = require("./document/schemaDocumentReplacementDeliveryOrder");
|
|
71
71
|
Object.defineProperty(exports, "schemaDocumentReplacementDeliveryOrderCreatePayload", { enumerable: true, get: function () { return schemaDocumentReplacementDeliveryOrder_1.schemaDocumentReplacementDeliveryOrderCreatePayload; } });
|
|
72
72
|
Object.defineProperty(exports, "schemaDocumentReplacementDeliveryOrderUpdatePayload", { enumerable: true, get: function () { return schemaDocumentReplacementDeliveryOrder_1.schemaDocumentReplacementDeliveryOrderUpdatePayload; } });
|
|
73
|
-
var schemaDocumentCashSales_1 = require("
|
|
73
|
+
var schemaDocumentCashSales_1 = require("./document/schemaDocumentCashSales");
|
|
74
74
|
Object.defineProperty(exports, "schemaDocumentCashSalesCreatePayload", { enumerable: true, get: function () { return schemaDocumentCashSales_1.schemaDocumentCashSalesCreatePayload; } });
|
|
75
75
|
Object.defineProperty(exports, "schemaDocumentCashSalesUpdatePayload", { enumerable: true, get: function () { return schemaDocumentCashSales_1.schemaDocumentCashSalesUpdatePayload; } });
|
|
76
|
-
var schemaDocumentTripOrder_1 = require("
|
|
76
|
+
var schemaDocumentTripOrder_1 = require("./document/schemaDocumentTripOrder");
|
|
77
77
|
Object.defineProperty(exports, "schemaDocumentTripOrderCreatePayload", { enumerable: true, get: function () { return schemaDocumentTripOrder_1.schemaDocumentTripOrderCreatePayload; } });
|
|
78
78
|
Object.defineProperty(exports, "schemaDocumentTripOrderUpdatePayload", { enumerable: true, get: function () { return schemaDocumentTripOrder_1.schemaDocumentTripOrderUpdatePayload; } });
|
|
79
|
-
var schemaItem_1 = require("
|
|
79
|
+
var schemaItem_1 = require("./item/schemaItem");
|
|
80
80
|
Object.defineProperty(exports, "schemaItemDeletePayload", { enumerable: true, get: function () { return schemaItem_1.schemaItemDeletePayload; } });
|
|
81
|
-
var schemaItemProduct_1 = require("
|
|
81
|
+
var schemaItemProduct_1 = require("./item/schemaItemProduct");
|
|
82
82
|
Object.defineProperty(exports, "schemaItemProductCreatePayload", { enumerable: true, get: function () { return schemaItemProduct_1.schemaItemProductCreatePayload; } });
|
|
83
83
|
Object.defineProperty(exports, "schemaItemProductUpdatePayload", { enumerable: true, get: function () { return schemaItemProduct_1.schemaItemProductUpdatePayload; } });
|
|
84
|
-
var schemaItemItem_1 = require("
|
|
84
|
+
var schemaItemItem_1 = require("./item/schemaItemItem");
|
|
85
85
|
Object.defineProperty(exports, "schemaItemItemCreatePayload", { enumerable: true, get: function () { return schemaItemItem_1.schemaItemItemCreatePayload; } });
|
|
86
86
|
Object.defineProperty(exports, "schemaItemItemUpdatePayload", { enumerable: true, get: function () { return schemaItemItem_1.schemaItemItemUpdatePayload; } });
|
|
87
87
|
Object.defineProperty(exports, "schemaItemItem", { enumerable: true, get: function () { return schemaItemItem_1.schemaItemItem; } });
|
|
88
|
-
var schemaItemCategory_1 = require("
|
|
88
|
+
var schemaItemCategory_1 = require("./item/schemaItemCategory");
|
|
89
89
|
Object.defineProperty(exports, "schemaItemCategoryCreatePayload", { enumerable: true, get: function () { return schemaItemCategory_1.schemaItemCategoryCreatePayload; } });
|
|
90
90
|
Object.defineProperty(exports, "schemaItemCategoryUpdatePayload", { enumerable: true, get: function () { return schemaItemCategory_1.schemaItemCategoryUpdatePayload; } });
|
|
91
|
-
var schemaItemBrand_1 = require("
|
|
91
|
+
var schemaItemBrand_1 = require("./item/schemaItemBrand");
|
|
92
92
|
Object.defineProperty(exports, "schemaItemBrandCreatePayload", { enumerable: true, get: function () { return schemaItemBrand_1.schemaItemBrandCreatePayload; } });
|
|
93
93
|
Object.defineProperty(exports, "schemaItemBrandUpdatePayload", { enumerable: true, get: function () { return schemaItemBrand_1.schemaItemBrandUpdatePayload; } });
|
|
94
|
-
var schemaItemUom_1 = require("
|
|
94
|
+
var schemaItemUom_1 = require("./item/schemaItemUom");
|
|
95
95
|
Object.defineProperty(exports, "schemaItemUomCreatePayload", { enumerable: true, get: function () { return schemaItemUom_1.schemaItemUomCreatePayload; } });
|
|
96
96
|
Object.defineProperty(exports, "schemaItemUomUpdatePayload", { enumerable: true, get: function () { return schemaItemUom_1.schemaItemUomUpdatePayload; } });
|
|
97
|
-
var schemaLocationLocation_1 = require("
|
|
97
|
+
var schemaLocationLocation_1 = require("./location/schemaLocationLocation");
|
|
98
98
|
Object.defineProperty(exports, "schemaLocationLocationCreatePayload", { enumerable: true, get: function () { return schemaLocationLocation_1.schemaLocationLocationCreatePayload; } });
|
|
99
99
|
Object.defineProperty(exports, "schemaLocationLocationUpdatePayload", { enumerable: true, get: function () { return schemaLocationLocation_1.schemaLocationLocationUpdatePayload; } });
|
|
100
100
|
Object.defineProperty(exports, "schemaLocationLocationDeletePayload", { enumerable: true, get: function () { return schemaLocationLocation_1.schemaLocationLocationDeletePayload; } });
|
|
101
|
-
var schemaLocationRack_1 = require("
|
|
101
|
+
var schemaLocationRack_1 = require("./location/schemaLocationRack");
|
|
102
102
|
Object.defineProperty(exports, "schemaLocationRackCreatePayload", { enumerable: true, get: function () { return schemaLocationRack_1.schemaLocationRackCreatePayload; } });
|
|
103
103
|
Object.defineProperty(exports, "schemaLocationRackUpdatePayload", { enumerable: true, get: function () { return schemaLocationRack_1.schemaLocationRackUpdatePayload; } });
|
|
104
104
|
Object.defineProperty(exports, "schemaLocationRackDeletePayload", { enumerable: true, get: function () { return schemaLocationRack_1.schemaLocationRackDeletePayload; } });
|
|
105
|
-
var schemaLocationSlot_1 = require("
|
|
105
|
+
var schemaLocationSlot_1 = require("./location/schemaLocationSlot");
|
|
106
106
|
Object.defineProperty(exports, "schemaLocationSlotCreatePayload", { enumerable: true, get: function () { return schemaLocationSlot_1.schemaLocationSlotCreatePayload; } });
|
|
107
107
|
Object.defineProperty(exports, "schemaLocationSlotUpdatePayload", { enumerable: true, get: function () { return schemaLocationSlot_1.schemaLocationSlotUpdatePayload; } });
|
|
108
108
|
Object.defineProperty(exports, "schemaLocationSlotDeletePayload", { enumerable: true, get: function () { return schemaLocationSlot_1.schemaLocationSlotDeletePayload; } });
|
|
109
109
|
Object.defineProperty(exports, "schemaSlot", { enumerable: true, get: function () { return schemaLocationSlot_1.schemaSlot; } });
|
|
110
|
-
var schemaInjectionField_1 = require("
|
|
110
|
+
var schemaInjectionField_1 = require("./injection_field/schemaInjectionField");
|
|
111
111
|
Object.defineProperty(exports, "schemaInjectionFieldReplacePayload", { enumerable: true, get: function () { return schemaInjectionField_1.schemaInjectionFieldReplacePayload; } });
|
|
112
112
|
Object.defineProperty(exports, "schemaInjectionFieldCreatePayload", { enumerable: true, get: function () { return schemaInjectionField_1.schemaInjectionFieldCreatePayload; } });
|
|
113
113
|
Object.defineProperty(exports, "schemaInjectionFieldDeletePayload", { enumerable: true, get: function () { return schemaInjectionField_1.schemaInjectionFieldDeletePayload; } });
|
|
114
|
-
var schemaRegionCountry_1 = require("
|
|
114
|
+
var schemaRegionCountry_1 = require("./region/schemaRegionCountry");
|
|
115
115
|
Object.defineProperty(exports, "schemaRegionCountryCreatePayload", { enumerable: true, get: function () { return schemaRegionCountry_1.schemaRegionCountryCreatePayload; } });
|
|
116
116
|
Object.defineProperty(exports, "schemaRegionCountryUpdatePayload", { enumerable: true, get: function () { return schemaRegionCountry_1.schemaRegionCountryUpdatePayload; } });
|
|
117
117
|
Object.defineProperty(exports, "schemaRegionCountryDeletePayload", { enumerable: true, get: function () { return schemaRegionCountry_1.schemaRegionCountryDeletePayload; } });
|
|
118
|
-
var schemaRegionState_1 = require("
|
|
118
|
+
var schemaRegionState_1 = require("./region/schemaRegionState");
|
|
119
119
|
Object.defineProperty(exports, "schemaRegionStateCreatePayload", { enumerable: true, get: function () { return schemaRegionState_1.schemaRegionStateCreatePayload; } });
|
|
120
120
|
Object.defineProperty(exports, "schemaRegionStateDeletePayload", { enumerable: true, get: function () { return schemaRegionState_1.schemaRegionStateDeletePayload; } });
|
|
121
121
|
Object.defineProperty(exports, "schemaRegionStateUpdatePayload", { enumerable: true, get: function () { return schemaRegionState_1.schemaRegionStateUpdatePayload; } });
|
|
122
|
-
var schemaRegionArea_1 = require("
|
|
122
|
+
var schemaRegionArea_1 = require("./region/schemaRegionArea");
|
|
123
123
|
Object.defineProperty(exports, "schemaRegionAreaCreatePayload", { enumerable: true, get: function () { return schemaRegionArea_1.schemaRegionAreaCreatePayload; } });
|
|
124
124
|
Object.defineProperty(exports, "schemaRegionAreaDeletePayload", { enumerable: true, get: function () { return schemaRegionArea_1.schemaRegionAreaDeletePayload; } });
|
|
125
125
|
Object.defineProperty(exports, "schemaRegionAreaUpdatePayload", { enumerable: true, get: function () { return schemaRegionArea_1.schemaRegionAreaUpdatePayload; } });
|
|
126
|
-
// export { schemaChangePasswordUtilPayload } from "
|
|
127
|
-
// export type { SchemaChangePasswordUtilPayload } from "
|
|
128
|
-
var schemaAccessKeyUtil_1 = require("
|
|
126
|
+
// export { schemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
|
|
127
|
+
// export type { SchemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
|
|
128
|
+
var schemaAccessKeyUtil_1 = require("./utils/schemaAccessKeyUtil");
|
|
129
129
|
Object.defineProperty(exports, "schemaAccessKeyUtilValidatePayload", { enumerable: true, get: function () { return schemaAccessKeyUtil_1.schemaAccessKeyUtilValidatePayload; } });
|
|
130
130
|
Object.defineProperty(exports, "schemaAccessKeyUtilAccountOwnerPayload", { enumerable: true, get: function () { return schemaAccessKeyUtil_1.schemaAccessKeyUtilAccountOwnerPayload; } });
|
|
131
131
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,yEAAsJ;AAA7I,yHAAA,sBAAsB,OAAA;AAAE,wIAAA,qCAAqC,OAAA;AAAE,iIAAA,8BAA8B,OAAA;AAGtG,+EAAyH;AAAhH,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAGnE,2FAAmL;AAA1K,wIAAA,iCAAiC,OAAA;AAAE,6IAAA,sCAAsC,OAAA;AAAE,wIAAA,iCAAiC,OAAA;AAGrH,wEAA4I;AAAnI,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAG3F,2EAAiK;AAAxJ,6HAAA,2BAA2B,OAAA;AAAE,gHAAA,cAAc,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAG9G,+DAAiG;AAAxF,qHAAA,uBAAuB,OAAA;AAAE,kHAAA,oBAAoB,OAAA;AAEtD,mEAAkH;AAAzG,iIAAA,iCAAiC,OAAA;AAAE,yHAAA,yBAAyB,OAAA;AAErE,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAEzE,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE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A,cAAc,OAAA;AAEjF,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAEzE,yEAAmH;AAA1G,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAEnE,qEAA6G;AAApG,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAG/D,2FAAkL;AAAzK,6IAAA,mCAAmC,OAAA;AAAE,6IAAA,mCAAmC,OAAA;AAAE,6IAAA,mCAAmC,OAAA;AAEtH,mFAAkK;AAAzJ,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAE1G,mFAA6K;AAApK,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAAE,gHAAA,UAAU,OAAA;AAGtH,8FAAiL;AAAxK,0IAAA,kCAAkC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAGjH,mFAAmK;AAA1J,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAE7G,+EAA2J;AAAlJ,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAEvG,6EAAwJ;AAA/I,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,2GAA2G;AAC3G,gHAAgH;AAChH,kFAAwI;AAA/H,yIAAA,kCAAkC,OAAA;AAAE,6IAAA,sCAAsC,OAAA","sourcesContent":["export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"@/schema/payload/user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"@/schema/payload/user/schemaUser\";\nexport { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from \"@/schema/payload/user/schemaUserMe\";\nexport type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from \"@/schema/payload/user/schemaUserMe\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"@/schema/payload/document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"@/schema/payload/document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"@/schema/payload/item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"@/schema/payload/item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"@/schema/payload/location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"@/schema/payload/location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"@/schema/payload/location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"@/schema/payload/location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"@/schema/payload/location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"@/schema/payload/location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"@/schema/payload/region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"@/schema/payload/region/schemaRegionArea\";\n\n// export { schemaChangePasswordUtilPayload } from \"@/schema/payload/utils/unuse/schemaChangePasswordUtil\";\n// export type { SchemaChangePasswordUtilPayload } from \"@/schema/payload/utils/unuse/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,0DAAuI;AAA9H,yHAAA,sBAAsB,OAAA;AAAE,wIAAA,qCAAqC,OAAA;AAAE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AGtH,+EAAkK;AAAzJ,0IAAA,kCAAkC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAGjH,oEAAoJ;AAA3I,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAE7G,gEAA4I;AAAnI,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAEvG,8DAAyI;AAAhI,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,4FAA4F;AAC5F,iGAAiG;AACjG,mEAAyH;AAAhH,yIAAA,kCAAkC,OAAA;AAAE,6IAAA,sCAAsC,OAAA","sourcesContent":["export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"./account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"./account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"./business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"./business/schemaBusiness\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"./user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"./user/schemaUser\";\nexport { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"./file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"./file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"./document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"./document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"./item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"./item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"./item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"./item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"./location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"./location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"./location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"./location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"./location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"./location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"./region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"./region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"./region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"./region/schemaRegionArea\";\n\n// export { schemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\n// export type { SchemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";"]}
|
|
@@ -364,7 +364,7 @@ const AccountService = (props) => {
|
|
|
364
364
|
let response = [];
|
|
365
365
|
await Promise.all(accountResponse.map(async (item) => {
|
|
366
366
|
const accountId = item?.account_id ?? 0;
|
|
367
|
-
const ownerUserId = item?.owner_user_id ?? 0;
|
|
367
|
+
// const ownerUserId = item?.owner_user_id ?? 0;
|
|
368
368
|
const businessId = item?.business_id ?? 0;
|
|
369
369
|
const businessService = (0, services_1.BusinessService)({ ...rest, accountId: Number(accountId) });
|
|
370
370
|
// const userService = UserService({ ...rest, accountId: Number(accountId), userType: "administrator" })
|
|
@@ -376,18 +376,18 @@ const AccountService = (props) => {
|
|
|
376
376
|
responseBusiness = await businessService.removeBusinesses({ businessIds: [BigInt(businessId)] });
|
|
377
377
|
}
|
|
378
378
|
// remove all users (administrator, etc...)
|
|
379
|
-
if (ownerUserId) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
379
|
+
// if (ownerUserId) {
|
|
380
|
+
const responseUsers = await userModel.remove({
|
|
381
|
+
// ids: [Number(ownerUserId)]
|
|
382
|
+
where: {
|
|
383
|
+
[`${models_1.ModelUserFields.accountid}`]: accountId
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
responseUser = responseUsers.map((i) => {
|
|
387
|
+
delete i.login_password;
|
|
388
|
+
return i;
|
|
389
|
+
});
|
|
390
|
+
// }
|
|
391
391
|
response.push({
|
|
392
392
|
...item,
|
|
393
393
|
business: responseBusiness.length > 0 ? responseBusiness[0] : {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../../src/services/account/AccountService.ts"],"names":[],"mappings":";;;AAAA,mCAA+C;AAE/C,6BAAwB;AAExB,qCAUkB;AAMlB,+BAAiI;AAEjI,+BAAsC;AAEtC,yCAMoB;AAsCpB,MAAM,gBAAgB,GAAG,CAAC,IAAgC,EAAE,cAAsB,EAAE,EAAE,EAAE;IAEpF,OAAO;QACH,CAAC,GAAG,2BAAkB,CAAC,IAAI,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EAAE,UAAU,EAAE,gBAAgB,EAAE;QACzG,aAAa,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC,UAAU,CAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE;QACzG,cAAc,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC,UAAU,CAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE;KAC/G,CAAC;IAEF,OAAO,IAAA,oBAAc,EAAC,gBAAgB,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;AAEjE,CAAC,CAAA;AA/ZY,QAAA,cAAc,kBA+Z1B","sourcesContent":["import { logError, throwError } from \"@/utils\";\n\nimport { z } from \"zod\";\n\nimport {\n ModelUserFields,\n ModelAccountFields,\n AccountModel,\n ModelUserBranchFields,\n ModelBusinessFields,\n ModelAreaFields,\n ModelStateFields,\n ModelCountryFields,\n UserModel,\n} from \"@/models\";\n\nimport { QueryList, QueryGet } from \"@/schema/common\";\n\nimport { DefaultServiceProps } from \"@/utils\";\n\nimport { buildSqlRelation, buildSqlRawSelect, buildSqlWhere, buildSqlSelect, buildSqlLimitOffset, buildSqlOrderBy } from \"@/lib\";\n\nimport { ServiceFactory } from \"@/lib\"\n\nimport {\n BusinessService,\n BusinessCreateProps,\n UserService,\n UserCreateProps,\n AccessKeyService\n} from \"@/services\";\n\nexport type AccountServiceProps = DefaultServiceProps & {};\n\nexport type AccountGetProps = QueryGet & {\n id: number,\n // datatypes: AccountDataType[]\n};\n\nexport type AccountListProps = QueryList & {\n // datatypes: AccountDataType[]\n};\n\nexport type AccountRemoveProps = {\n accountIds: BigInt[]\n};\n\nexport type Account = {\n accountId: number,\n name: string,\n accountCode?: string, // optional - skip for auto generation\n businessId: number,\n ownerUserId: number,\n status: boolean\n}\n\nexport type AccountCreateProps = {\n data: Omit<Account, \"accountId\" | \"businessId\" | \"ownerUserId\"> & {\n administrator: Omit<UserCreateProps[\"data\"][\"user\"], \"status\">,\n business: Omit<BusinessCreateProps[\"data\"], \"status\">\n }\n}\n\nexport type AccountUpdateProps = {\n accountId: number,\n data: Omit<Account, \"accountId\" | \"ownerUserId\">\n}\n\nconst getCreatePayload = (data: AccountCreateProps[\"data\"], accountCode: string = \"\") => {\n\n return {\n [`${ModelAccountFields.name}`]: data.name,\n [`${ModelAccountFields.status}`]: Boolean(data.status),\n [`${ModelAccountFields.account_code}`]: accountCode\n }\n\n}\n\nconst getCreateUpdatePayload = (businessId: number, ownerUserId: number) => {\n\n return {\n // [`${ModelAccountFields.account_id}`]: data.accountId,\n [`${ModelAccountFields.business_id}`]: businessId,\n [`${ModelAccountFields.owner_user_id}`]: ownerUserId,\n }\n\n}\n\nconst getUpdatePayload = (data: AccountUpdateProps[\"data\"], accountCode: string = \"\") => {\n\n return {\n // [`${ModelAccountFields.account_id}`]: accoundId,\n [`${ModelAccountFields.business_id}`]: data.businessId,\n [`${ModelAccountFields.name}`]: data.name,\n ...(accountCode ? { [`${ModelAccountFields.account_code}`]: data.accountCode } : {}),\n [`${ModelAccountFields.status}`]: Boolean(data.status)\n }\n\n}\n\nlet mainSqlSelect = {\n [`acc.${ModelAccountFields.account_id}`]: \"account_id\",\n [`acc.${ModelAccountFields.business_id}`]: \"business_id\",\n [`acc.${ModelAccountFields.name}`]: \"name\",\n [`acc.${ModelAccountFields.account_code}`]: \"account_code\",\n [`acc.${ModelAccountFields.status}`]: \"account_status\",\n}\n\nlet businessSqlSelect = {\n [`bus.${ModelBusinessFields.address_1}`]: \"address_1\",\n [`bus.${ModelBusinessFields.address_2}`]: \"address_2\",\n [`bus.${ModelBusinessFields.company_contact}`]: \"company_contact\",\n [`bus.${ModelBusinessFields.company_name}`]: \"company_name\",\n [`bus.${ModelBusinessFields.email}`]: \"email\",\n [`bus.${ModelBusinessFields.area_id}`]: \"area_id\",\n [`bussarea.${ModelAreaFields.area_name}`]: \"area_name\",\n [`bus.${ModelBusinessFields.state_id}`]: \"state_id\",\n [`bussstate.${ModelStateFields.state_name}`]: \"state_name\",\n [`busscoun.${ModelCountryFields.country_name}`]: \"country_name\",\n [`bus.${ModelBusinessFields.country_id}`]: \"country_id\",\n [`bus.${ModelBusinessFields.postcode}`]: \"postcode\",\n [`bus.${ModelBusinessFields.registration_number}`]: \"registration_number\",\n [`bus.${ModelBusinessFields.status}`]: \"business_status\",\n [`bus.${ModelBusinessFields.website}`]: \"website\",\n}\n\nlet ownerSqlSelectItem = {\n [`usrowner.${ModelUserFields.user_id}`]: \"user_id\",\n [`usrowner.${ModelUserFields.login_username}`]: \"login_username\",\n [`usrowner.${ModelUserFields.user_type}`]: \"user_type\",\n [`usrowner.${ModelUserFields.firstname}`]: \"firstname\",\n [`usrowner.${ModelUserFields.lastname}`]: \"lastname\",\n [`CONCAT(usrowner.${ModelUserFields.contact_country_code}, usrowner.${ModelUserFields.contact_phone_number})`]: \"contact\",\n [`usrowner.${ModelUserFields.contact_country_code}`]: \"contact_country_code\",\n [`usrowner.${ModelUserFields.contact_phone_number}`]: \"contact_phone_number\",\n [`usrowner.${ModelUserFields.email}`]: \"email\",\n [`usrowner.${ModelUserFields.address}`]: \"address\",\n [`usrowner.${ModelUserFields.status}`]: \"status\",\n}\n\nlet ownerSqlSelect = {\n [`COALESCE(\n JSONB_BUILD_OBJECT(\n ${Object.entries(ownerSqlSelectItem).map(([key, alias]) => `'${alias}', ${key}`).join(\", \")}\n ),\n '{}'::jsonb\n )`]: \"owner\"\n}\n\nlet defaultSqlSelect = {\n [`acc.${ModelAccountFields.createdatetime}`]: \"createdatetime\",\n [`creator.${ModelUserFields.login_username}`]: \"createusername\",\n [`acc.${ModelAccountFields.updatedatetime}`]: \"updatedatetime\",\n [`updater.${ModelUserFields.login_username}`]: \"updateusername\",\n [`acc.${ModelAccountFields.isdelete}`]: \"isdelete\",\n [`acc.${ModelAccountFields.istrash}`]: \"istrash\",\n [`acc.${ModelAccountFields.accountid}`]: \"accountid\",\n}\n\n// Example reserved words for subdomains (account code)\nexport const accountCodeReservedWords = [\n \"www\", \"web\", \"api\", \"admin\", \"app\", \"mail\", \"support\", \"help\", \"docs\", \"dashboard\",\n \"billing\", \"login\", \"logout\", \"signup\", \"register\", \"auth\", \"account\", \"user\", \"users\", \"team\",\n \"teams\", \"settings\", \"config\", \"configuration\", \"system\", \"internal\", \"status\", \"test\", \"demo\", \"staging\",\n \"dev\", \"development\", \"prod\", \"production\", \"root\", \"home\", \"index\", \"static\", \"assets\", \"public\",\n \"beta\", \"alpha\", \"sandbox\", \"trial\", \"guest\", \"owner\", \"manager\", \"administrator\", \"moderator\", \"operator\",\n \"service\", \"api-docs\", \"portal\", \"console\", \"control\", \"ops\", \"supportdesk\", \"helpdesk\", \"contact\", \"feedback\",\n \"security\", \"privacy\", \"terms\", \"policy\", \"legal\", \"about\", \"company\", \"teaminfo\", \"partners\", \"affiliates\",\n \"news\", \"blog\", \"media\", \"press\", \"events\", \"calendar\", \"forum\", \"community\", \"chat\", \"messaging\",\n \"notifications\", \"alerts\", \"reports\", \"analytics\", \"metrics\", \"logs\", \"history\", \"archive\", \"backup\", \"restore\",\n \"files\", \"documents\", \"resources\", \"library\", \"gallery\", \"images\", \"videos\", \"downloads\", \"uploads\", \"templates\"\n];\n\n// Zod schema for subdomain (account code)\nexport const accountCodeSchema = z\n .string()\n .min(5, { message: \"Account code must be at least 5 characters\" })\n .max(63, { message: \"Account code must be at most 63 characters\" })\n .regex(\n /^[a-z0-9]([a-z0-9-]{3,61}[a-z0-9])$/,\n // Regex explanation:\n // ^[a-z0-9] -> first character must be a lowercase letter or number\n // ([a-z0-9-]{3,61} -> middle characters can be letters, numbers, or hyphens, 3–61 characters\n // [a-z0-9])$ -> last character must be a lowercase letter or number\n // Total length = 5–63 characters, no special symbols except hyphen in the middle\n \"Account code can only contain lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen\"\n )\n .transform((val) => val.toLowerCase().trim()) // normalize\n .refine((val) => !accountCodeReservedWords.includes(val), {\n message: \"This account code is reserved. Please choose another one\",\n });\n\nexport const AccountService = (props: AccountServiceProps) => {\n\n const {\n ...rest\n } = props\n\n const accountModel = AccountModel({ ...rest })\n const accessKeyService = AccessKeyService({ ...rest, accessKeyUserType: \"administrator\" })\n\n // generate account code (`{random 5 digit}{first 7 digit of timestamp}`)\n function generateAccountCode(): string {\n const timestamp = Date.now().toString();\n const last7 = timestamp.slice(-7); // last 7 digits of timestamp\n const prefix = Math.floor(Math.random() * 100000) // 0–99999\n .toString()\n .padStart(5, \"0\"); // ensure 5 digits\n return prefix + last7;\n }\n\n const checkAccoutCodeIsUsed = async (\n accountCode: Account[\"accountCode\"],\n selfAccountId?: Account[\"accountId\"]\n ) => {\n\n const { data } = await listAccounts({\n limit: 1,\n offset: 0,\n sortfield: `${ModelAccountFields.account_id}`,\n sortorder: \"ASC\",\n filters: [{\n field: `${ModelAccountFields.account_code}`,\n operator: \"=\",\n value: accountCode\n }],\n datatypes: []\n })\n\n if (data.length <= 0) return false\n\n if (selfAccountId) {\n\n if (Number(data[0].account_id) === Number(selfAccountId)) {\n return false\n } else {\n return true\n }\n\n } else {\n\n return true\n }\n\n }\n\n const validateAccountCodeIsUsed = async (accountCode: string) => {\n\n const accountCodeIsUsed = await checkAccoutCodeIsUsed(accountCode)\n\n if (accountCodeIsUsed === true) {\n throwError(`Account code has been used: ${accountCode}`)\n }\n\n }\n\n const validateAccountCodeFormat = (accountCode: string) => {\n try {\n return accountCodeSchema.parse(accountCode); // throws if invalid\n } catch (err) {\n if (err instanceof z.ZodError) {\n throw new Error(\n `Invalid account code: \"${accountCode}\". ` +\n err.errors.map((e) => e.message).join(\"; \")\n );\n }\n throw err;\n }\n };\n\n const createAccount = async ({ data }: AccountCreateProps) => {\n\n const administratorData = data?.administrator ?? {}\n\n // pre validation first\n if (administratorData?.contact) {\n\n const validateUserService = UserService({ ...rest, userType: \"administrator\" })\n\n // validate the contact\n await validateUserService.validateUserContact(administratorData.contact.countryCode, administratorData.contact.phoneNumber)\n\n }\n\n let accountCode = data?.accountCode ?? \"\";\n\n // auto generate if not specify\n if (accountCode === \"\") {\n accountCode = generateAccountCode()\n }\n\n // validate the account code format\n validateAccountCodeFormat(accountCode)\n\n // check account code cannot duplicated\n await validateAccountCodeIsUsed(accountCode)\n\n // create account\n const _data = getCreatePayload(data, accountCode)\n\n if (!_data) {\n throw new Error(`Invalid create account payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await accountModel.create({ data: _data })\n\n const newAccountId = response?.account_id ?? 0\n\n const businessService = BusinessService({ ...rest, accountId: Number(newAccountId) })\n const userService = UserService({ ...rest, accountId: Number(newAccountId), userType: \"administrator\" })\n\n let accountBusinessId = 0\n let accountUserId = 0\n let accountId = 0\n\n // create user(administrator)\n if (administratorData?.loginUsername) {\n\n let userData = administratorData\n\n let userPayload: UserCreateProps = {\n userType: \"administrator\",\n data: {\n user: {\n address: userData.address,\n contact: {\n countryCode: userData.contact.countryCode,\n phoneNumber: userData.contact.phoneNumber\n },\n email: userData.email,\n firstname: userData.firstname,\n lastname: userData.lastname,\n loginPassword: userData.loginPassword,\n loginUsername: userData.loginUsername,\n status: true // always true for first time\n },\n administrator: {\n isOwner: true // first create must be owner\n },\n props: {\n locationIds: []\n }\n }\n }\n\n const responseOwner = await userService.createUser(userPayload)\n\n accountUserId = Number(responseOwner?.user_id) ?? 0\n accountId = Number(responseOwner?.accountid) ?? 0\n\n }\n\n // create default administrator access key\n await accessKeyService.createAccessKey({\n data: {\n userId: accountUserId,\n isDefault: true,\n overrideAccountId: accountId\n }\n })\n\n // create business\n if (data?.business) {\n\n let businessData = data?.business ?? {}\n\n let businessPayload: BusinessCreateProps = {\n data: {\n address1: businessData.address1,\n address2: businessData.address2,\n areaId: businessData.areaId,\n companyContact: businessData.companyContact,\n companyName: businessData.companyName,\n countryId: businessData.countryId,\n email: businessData.email,\n postcode: businessData.postcode,\n registrationNumber: businessData.registrationNumber,\n stateId: businessData.stateId,\n website: businessData.website,\n status: true // always true for first time\n }\n }\n\n const responseBusiness = await businessService.createBusiness(businessPayload)\n\n accountBusinessId = Number(responseBusiness?.business_id) ?? 0\n\n }\n\n // update account for additional info\n const createUpdatedata = getCreateUpdatePayload(accountBusinessId, accountUserId)\n\n if (!createUpdatedata) {\n throw new Error(`Invalid create update account payload: ${JSON.stringify(_data)}`);\n }\n\n await accountModel.update({ id: Number(newAccountId), data: createUpdatedata })\n\n return await getAccount({ id: Number(newAccountId), datatypes: [] })\n }\n\n const updateAccount = async ({ accountId, data }: AccountUpdateProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let accountCode = data?.accountCode ?? \"\";\n\n // check the override account code needed\n if (accountCode) {\n\n // validate the account code format\n validateAccountCodeFormat(accountCode)\n\n // check account code cannot duplicated\n await validateAccountCodeIsUsed(accountCode)\n }\n\n // const accountCodeIsUsed = await checkAccoutCodeIsUsed(data.accountCode, accountId)\n\n // if (accountCodeIsUsed === true) throwError(`Account code has been used: ${data.accountCode}`)\n\n const _data = getUpdatePayload(data, accountCode)\n\n if (!_data) {\n throw new Error(`Invalid update account payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await accountModel.update({ where: { [`${ModelAccountFields.account_id}`]: accountId }, data: _data })\n\n return await getAccount({ id: accountId, datatypes: [] })\n }\n\n const getAccount = async ({ id, datatypes = [] }: AccountGetProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let { data } = await listAccounts({\n limit: 1,\n offset: 0,\n filters: [{ field: \"account_id\", operator: \"=\", value: id }],\n sortfield: \"account_id\",\n sortorder: \"ASC\",\n datatypes\n })\n\n return data[0] ?? null;\n\n };\n\n const listAccounts = async ({ limit, offset, filters = [], sortfield, sortorder, datatypes = [] }: AccountListProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let data = []\n\n let sqlSelect = [\n `COUNT(acc.*) OVER() as filtered_count`,\n buildSqlSelect(``, mainSqlSelect),\n buildSqlSelect(``, businessSqlSelect),\n buildSqlSelect(``, ownerSqlSelect),\n buildSqlSelect(``, defaultSqlSelect)\n ]\n\n let sqlRelation = [\n buildSqlRelation(\"left\", \"acc\", \"businesses\", \"bus\", [\"acc.business_id = bus.business_id\", \"bus.isdelete = false\", \"bus.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"states\", \"bussstate\", [\"bus.state_id = bussstate.state_id\", \"bussstate.isdelete = false\", \"bussstate.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"countries\", \"busscoun\", [\"bus.country_id = busscoun.country_id\", \"busscoun.isdelete = false\", \"busscoun.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"areas\", \"bussarea\", [\"bus.area_id = bussarea.area_id\", \"bussarea.isdelete = false\", \"bussarea.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"usrowner\", [\"acc.owner_user_id = usrowner.user_id\", \"usrowner.isdelete = false\", \"usrowner.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"creator\", [\"acc.createuserid = creator.user_id\", \"creator.isdelete = false\", \"creator.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"updater\", [\"acc.updateuserid = updater.user_id\", \"updater.isdelete = false\", \"updater.istrash = false\"])\n ]\n\n let sqlGroupBy: string[] = [\n ...Object.keys(mainSqlSelect),\n ...Object.keys(businessSqlSelect),\n ...Object.keys(ownerSqlSelectItem),\n ...Object.keys(defaultSqlSelect)\n ]\n\n let filterColumns = { ...mainSqlSelect, ...businessSqlSelect, ...ownerSqlSelectItem, ...defaultSqlSelect }\n\n let sqlWhere = [\n `acc.isdelete = false`,\n `acc.istrash = false`,\n ...(filters.length ? [buildSqlWhere(filters, filterColumns)?.where] : []),\n ]\n\n let sqlOrderby = buildSqlOrderBy(sortfield, sortorder)\n let sqlLimitOffset = buildSqlLimitOffset(limit, offset)\n\n const sqlRaw = buildSqlRawSelect({\n tableName: \"accounts\",\n mainAlias: \"acc\",\n accountId: rest.accountId,\n sqlSelect,\n sqlRelation,\n sqlWhere,\n sqlGroupBy,\n sqlOrderby,\n sqlLimitOffset,\n skipFilterAccountId: Boolean(rest.isOperator === true)\n })\n\n data = await accountModel.raw(sqlRaw)\n\n const response = {\n data: data.map(({ filtered_count, ...rest }) => rest),\n total: data.length ? Number(data[0].filtered_count) : 0\n }\n\n return response\n\n };\n\n const removeAccounts = async ({ accountIds }: AccountRemoveProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n if (!accountIds.length) throwError('accountIds is required');\n\n let accountResponse = await accountModel.remove({ where: { [`${ModelAccountFields.account_id}`]: { in: accountIds } } });\n\n let response: any[] = []\n\n await Promise.all(\n accountResponse.map(async (item) => {\n\n const accountId = item?.account_id ?? 0;\n const ownerUserId = item?.owner_user_id ?? 0;\n const businessId = item?.business_id ?? 0;\n\n const businessService = BusinessService({ ...rest, accountId: Number(accountId) })\n // const userService = UserService({ ...rest, accountId: Number(accountId), userType: \"administrator\" })\n\n const userModel = UserModel({ ...rest })\n\n let responseBusiness: any[] = []\n let responseUser: any[] = []\n\n // remove business\n if (businessId) {\n responseBusiness = await businessService.removeBusinesses({ businessIds: [BigInt(businessId)] });\n }\n\n // remove all users (administrator, etc...)\n if (ownerUserId) {\n\n const responseUsers = await userModel.remove({\n // ids: [Number(ownerUserId)]\n where: {\n [`${ModelUserFields.accountid}`]: accountId\n }\n })\n\n responseUser = responseUsers.map((i: any) => {\n delete i.login_password\n return i\n })\n\n }\n\n response.push({\n ...item,\n business: responseBusiness.length > 0 ? responseBusiness[0] : {},\n users: responseUser\n })\n\n })\n );\n\n return response\n\n };\n\n // const getDataTypes = () => {\n // return Object.values(accountDataTypes);\n // }\n\n // return {\n // // getAccount,\n // // createAccount,\n // // updateAccount,\n // // removeAccounts,\n // // listAccounts\n // // validateAccountCodeIsUsed: ServiceFactory(validateAccountCodeIsUsed, rest, \"validate account code is used\"),\n // getAccount: ServiceFactory([\"operator\"], \"AccountService\", getAccount, rest, \"get account\"),\n // createAccount: ServiceFactory([\"operator\"], \"AccountService\", createAccount, rest, \"create account\"),\n // updateAccount: ServiceFactory([\"operator\"], \"AccountService\", updateAccount, rest, \"update account\"),\n // removeAccounts: ServiceFactory([\"operator\"], \"AccountService\", removeAccounts, rest, \"remove accounts\"),\n // listAccounts: ServiceFactory([\"operator\"], \"AccountService\", listAccounts, rest, \"list accounts\"),\n // }\n\n const methodConfigs = {\n getAccount: { fn: getAccount, allowUserTypes: [\"operator\", \"administrator\"] as const, actionName: \"get account\" },\n listAccounts: { fn: listAccounts, allowUserTypes: [\"operator\", \"administrator\"] as const, actionName: \"list accounts\" },\n createAccount: { fn: createAccount, allowUserTypes: [\"operator\"] as const, actionName: \"create account\" },\n updateAccount: { fn: updateAccount, allowUserTypes: [\"operator\"] as const, actionName: \"update account\" },\n removeAccounts: { fn: removeAccounts, allowUserTypes: [\"operator\"] as const, actionName: \"remove accounts\" },\n };\n\n return ServiceFactory(\"AccountService\", rest, methodConfigs);\n\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../../src/services/account/AccountService.ts"],"names":[],"mappings":";;;AAAA,mCAA+C;AAE/C,6BAAwB;AAExB,qCAUkB;AAMlB,+BAAiI;AAEjI,+BAAsC;AAEtC,yCAMoB;AAsCpB,MAAM,gBAAgB,GAAG,CAAC,IAAgC,EAAE,cAAsB,EAAE,EAAE,EAAE;IAEpF,OAAO;QACH,CAAC,GAAG,2BAAkB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI;QACzC,CAAC,GAAG,2BAAkB,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;QACtD,CAAC,GAAG,2BAAkB,CAAC,YAAY,EAAE,CAAC,EAAE,WAAW;KACtD,CAAA;AAEL,CAAC,CAAA;AAED,MAAM,sBAAsB,GAAG,CA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AI,EAAE,aAAa,CAAC,CAAC;AAEjE,CAAC,CAAA;AA7ZY,QAAA,cAAc,kBA6Z1B","sourcesContent":["import { logError, throwError } from \"@/utils\";\n\nimport { z } from \"zod\";\n\nimport {\n ModelUserFields,\n ModelAccountFields,\n AccountModel,\n ModelUserBranchFields,\n ModelBusinessFields,\n ModelAreaFields,\n ModelStateFields,\n ModelCountryFields,\n UserModel,\n} from \"@/models\";\n\nimport { QueryList, QueryGet } from \"@/schema/common\";\n\nimport { DefaultServiceProps } from \"@/utils\";\n\nimport { buildSqlRelation, buildSqlRawSelect, buildSqlWhere, buildSqlSelect, buildSqlLimitOffset, buildSqlOrderBy } from \"@/lib\";\n\nimport { ServiceFactory } from \"@/lib\"\n\nimport {\n BusinessService,\n BusinessCreateProps,\n UserService,\n UserCreateProps,\n AccessKeyService\n} from \"@/services\";\n\nexport type AccountServiceProps = DefaultServiceProps & {};\n\nexport type AccountGetProps = QueryGet & {\n id: number,\n // datatypes: AccountDataType[]\n};\n\nexport type AccountListProps = QueryList & {\n // datatypes: AccountDataType[]\n};\n\nexport type AccountRemoveProps = {\n accountIds: BigInt[]\n};\n\nexport type Account = {\n accountId: number,\n name: string,\n accountCode?: string, // optional - skip for auto generation\n businessId: number,\n ownerUserId: number,\n status: boolean\n}\n\nexport type AccountCreateProps = {\n data: Omit<Account, \"accountId\" | \"businessId\" | \"ownerUserId\"> & {\n administrator: Omit<UserCreateProps[\"data\"][\"user\"], \"status\">,\n business: Omit<BusinessCreateProps[\"data\"], \"status\">\n }\n}\n\nexport type AccountUpdateProps = {\n accountId: number,\n data: Omit<Account, \"accountId\" | \"ownerUserId\">\n}\n\nconst getCreatePayload = (data: AccountCreateProps[\"data\"], accountCode: string = \"\") => {\n\n return {\n [`${ModelAccountFields.name}`]: data.name,\n [`${ModelAccountFields.status}`]: Boolean(data.status),\n [`${ModelAccountFields.account_code}`]: accountCode\n }\n\n}\n\nconst getCreateUpdatePayload = (businessId: number, ownerUserId: number) => {\n\n return {\n // [`${ModelAccountFields.account_id}`]: data.accountId,\n [`${ModelAccountFields.business_id}`]: businessId,\n [`${ModelAccountFields.owner_user_id}`]: ownerUserId,\n }\n\n}\n\nconst getUpdatePayload = (data: AccountUpdateProps[\"data\"], accountCode: string = \"\") => {\n\n return {\n // [`${ModelAccountFields.account_id}`]: accoundId,\n [`${ModelAccountFields.business_id}`]: data.businessId,\n [`${ModelAccountFields.name}`]: data.name,\n ...(accountCode ? { [`${ModelAccountFields.account_code}`]: data.accountCode } : {}),\n [`${ModelAccountFields.status}`]: Boolean(data.status)\n }\n\n}\n\nlet mainSqlSelect = {\n [`acc.${ModelAccountFields.account_id}`]: \"account_id\",\n [`acc.${ModelAccountFields.business_id}`]: \"business_id\",\n [`acc.${ModelAccountFields.name}`]: \"name\",\n [`acc.${ModelAccountFields.account_code}`]: \"account_code\",\n [`acc.${ModelAccountFields.status}`]: \"account_status\",\n}\n\nlet businessSqlSelect = {\n [`bus.${ModelBusinessFields.address_1}`]: \"address_1\",\n [`bus.${ModelBusinessFields.address_2}`]: \"address_2\",\n [`bus.${ModelBusinessFields.company_contact}`]: \"company_contact\",\n [`bus.${ModelBusinessFields.company_name}`]: \"company_name\",\n [`bus.${ModelBusinessFields.email}`]: \"email\",\n [`bus.${ModelBusinessFields.area_id}`]: \"area_id\",\n [`bussarea.${ModelAreaFields.area_name}`]: \"area_name\",\n [`bus.${ModelBusinessFields.state_id}`]: \"state_id\",\n [`bussstate.${ModelStateFields.state_name}`]: \"state_name\",\n [`busscoun.${ModelCountryFields.country_name}`]: \"country_name\",\n [`bus.${ModelBusinessFields.country_id}`]: \"country_id\",\n [`bus.${ModelBusinessFields.postcode}`]: \"postcode\",\n [`bus.${ModelBusinessFields.registration_number}`]: \"registration_number\",\n [`bus.${ModelBusinessFields.status}`]: \"business_status\",\n [`bus.${ModelBusinessFields.website}`]: \"website\",\n}\n\nlet ownerSqlSelectItem = {\n [`usrowner.${ModelUserFields.user_id}`]: \"user_id\",\n [`usrowner.${ModelUserFields.login_username}`]: \"login_username\",\n [`usrowner.${ModelUserFields.user_type}`]: \"user_type\",\n [`usrowner.${ModelUserFields.firstname}`]: \"firstname\",\n [`usrowner.${ModelUserFields.lastname}`]: \"lastname\",\n [`CONCAT(usrowner.${ModelUserFields.contact_country_code}, usrowner.${ModelUserFields.contact_phone_number})`]: \"contact\",\n [`usrowner.${ModelUserFields.contact_country_code}`]: \"contact_country_code\",\n [`usrowner.${ModelUserFields.contact_phone_number}`]: \"contact_phone_number\",\n [`usrowner.${ModelUserFields.email}`]: \"email\",\n [`usrowner.${ModelUserFields.address}`]: \"address\",\n [`usrowner.${ModelUserFields.status}`]: \"status\",\n}\n\nlet ownerSqlSelect = {\n [`COALESCE(\n JSONB_BUILD_OBJECT(\n ${Object.entries(ownerSqlSelectItem).map(([key, alias]) => `'${alias}', ${key}`).join(\", \")}\n ),\n '{}'::jsonb\n )`]: \"owner\"\n}\n\nlet defaultSqlSelect = {\n [`acc.${ModelAccountFields.createdatetime}`]: \"createdatetime\",\n [`creator.${ModelUserFields.login_username}`]: \"createusername\",\n [`acc.${ModelAccountFields.updatedatetime}`]: \"updatedatetime\",\n [`updater.${ModelUserFields.login_username}`]: \"updateusername\",\n [`acc.${ModelAccountFields.isdelete}`]: \"isdelete\",\n [`acc.${ModelAccountFields.istrash}`]: \"istrash\",\n [`acc.${ModelAccountFields.accountid}`]: \"accountid\",\n}\n\n// Example reserved words for subdomains (account code)\nexport const accountCodeReservedWords = [\n \"www\", \"web\", \"api\", \"admin\", \"app\", \"mail\", \"support\", \"help\", \"docs\", \"dashboard\",\n \"billing\", \"login\", \"logout\", \"signup\", \"register\", \"auth\", \"account\", \"user\", \"users\", \"team\",\n \"teams\", \"settings\", \"config\", \"configuration\", \"system\", \"internal\", \"status\", \"test\", \"demo\", \"staging\",\n \"dev\", \"development\", \"prod\", \"production\", \"root\", \"home\", \"index\", \"static\", \"assets\", \"public\",\n \"beta\", \"alpha\", \"sandbox\", \"trial\", \"guest\", \"owner\", \"manager\", \"administrator\", \"moderator\", \"operator\",\n \"service\", \"api-docs\", \"portal\", \"console\", \"control\", \"ops\", \"supportdesk\", \"helpdesk\", \"contact\", \"feedback\",\n \"security\", \"privacy\", \"terms\", \"policy\", \"legal\", \"about\", \"company\", \"teaminfo\", \"partners\", \"affiliates\",\n \"news\", \"blog\", \"media\", \"press\", \"events\", \"calendar\", \"forum\", \"community\", \"chat\", \"messaging\",\n \"notifications\", \"alerts\", \"reports\", \"analytics\", \"metrics\", \"logs\", \"history\", \"archive\", \"backup\", \"restore\",\n \"files\", \"documents\", \"resources\", \"library\", \"gallery\", \"images\", \"videos\", \"downloads\", \"uploads\", \"templates\"\n];\n\n// Zod schema for subdomain (account code)\nexport const accountCodeSchema = z\n .string()\n .min(5, { message: \"Account code must be at least 5 characters\" })\n .max(63, { message: \"Account code must be at most 63 characters\" })\n .regex(\n /^[a-z0-9]([a-z0-9-]{3,61}[a-z0-9])$/,\n // Regex explanation:\n // ^[a-z0-9] -> first character must be a lowercase letter or number\n // ([a-z0-9-]{3,61} -> middle characters can be letters, numbers, or hyphens, 3–61 characters\n // [a-z0-9])$ -> last character must be a lowercase letter or number\n // Total length = 5–63 characters, no special symbols except hyphen in the middle\n \"Account code can only contain lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen\"\n )\n .transform((val) => val.toLowerCase().trim()) // normalize\n .refine((val) => !accountCodeReservedWords.includes(val), {\n message: \"This account code is reserved. Please choose another one\",\n });\n\nexport const AccountService = (props: AccountServiceProps) => {\n\n const {\n ...rest\n } = props\n\n const accountModel = AccountModel({ ...rest })\n const accessKeyService = AccessKeyService({ ...rest, accessKeyUserType: \"administrator\" })\n\n // generate account code (`{random 5 digit}{first 7 digit of timestamp}`)\n function generateAccountCode(): string {\n const timestamp = Date.now().toString();\n const last7 = timestamp.slice(-7); // last 7 digits of timestamp\n const prefix = Math.floor(Math.random() * 100000) // 0–99999\n .toString()\n .padStart(5, \"0\"); // ensure 5 digits\n return prefix + last7;\n }\n\n const checkAccoutCodeIsUsed = async (\n accountCode: Account[\"accountCode\"],\n selfAccountId?: Account[\"accountId\"]\n ) => {\n\n const { data } = await listAccounts({\n limit: 1,\n offset: 0,\n sortfield: `${ModelAccountFields.account_id}`,\n sortorder: \"ASC\",\n filters: [{\n field: `${ModelAccountFields.account_code}`,\n operator: \"=\",\n value: accountCode\n }],\n datatypes: []\n })\n\n if (data.length <= 0) return false\n\n if (selfAccountId) {\n\n if (Number(data[0].account_id) === Number(selfAccountId)) {\n return false\n } else {\n return true\n }\n\n } else {\n\n return true\n }\n\n }\n\n const validateAccountCodeIsUsed = async (accountCode: string) => {\n\n const accountCodeIsUsed = await checkAccoutCodeIsUsed(accountCode)\n\n if (accountCodeIsUsed === true) {\n throwError(`Account code has been used: ${accountCode}`)\n }\n\n }\n\n const validateAccountCodeFormat = (accountCode: string) => {\n try {\n return accountCodeSchema.parse(accountCode); // throws if invalid\n } catch (err) {\n if (err instanceof z.ZodError) {\n throw new Error(\n `Invalid account code: \"${accountCode}\". ` +\n err.errors.map((e) => e.message).join(\"; \")\n );\n }\n throw err;\n }\n };\n\n const createAccount = async ({ data }: AccountCreateProps) => {\n\n const administratorData = data?.administrator ?? {}\n\n // pre validation first\n if (administratorData?.contact) {\n\n const validateUserService = UserService({ ...rest, userType: \"administrator\" })\n\n // validate the contact\n await validateUserService.validateUserContact(administratorData.contact.countryCode, administratorData.contact.phoneNumber)\n\n }\n\n let accountCode = data?.accountCode ?? \"\";\n\n // auto generate if not specify\n if (accountCode === \"\") {\n accountCode = generateAccountCode()\n }\n\n // validate the account code format\n validateAccountCodeFormat(accountCode)\n\n // check account code cannot duplicated\n await validateAccountCodeIsUsed(accountCode)\n\n // create account\n const _data = getCreatePayload(data, accountCode)\n\n if (!_data) {\n throw new Error(`Invalid create account payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await accountModel.create({ data: _data })\n\n const newAccountId = response?.account_id ?? 0\n\n const businessService = BusinessService({ ...rest, accountId: Number(newAccountId) })\n const userService = UserService({ ...rest, accountId: Number(newAccountId), userType: \"administrator\" })\n\n let accountBusinessId = 0\n let accountUserId = 0\n let accountId = 0\n\n // create user(administrator)\n if (administratorData?.loginUsername) {\n\n let userData = administratorData\n\n let userPayload: UserCreateProps = {\n userType: \"administrator\",\n data: {\n user: {\n address: userData.address,\n contact: {\n countryCode: userData.contact.countryCode,\n phoneNumber: userData.contact.phoneNumber\n },\n email: userData.email,\n firstname: userData.firstname,\n lastname: userData.lastname,\n loginPassword: userData.loginPassword,\n loginUsername: userData.loginUsername,\n status: true // always true for first time\n },\n administrator: {\n isOwner: true // first create must be owner\n },\n props: {\n locationIds: []\n }\n }\n }\n\n const responseOwner = await userService.createUser(userPayload)\n\n accountUserId = Number(responseOwner?.user_id) ?? 0\n accountId = Number(responseOwner?.accountid) ?? 0\n\n }\n\n // create default administrator access key\n await accessKeyService.createAccessKey({\n data: {\n userId: accountUserId,\n isDefault: true,\n overrideAccountId: accountId\n }\n })\n\n // create business\n if (data?.business) {\n\n let businessData = data?.business ?? {}\n\n let businessPayload: BusinessCreateProps = {\n data: {\n address1: businessData.address1,\n address2: businessData.address2,\n areaId: businessData.areaId,\n companyContact: businessData.companyContact,\n companyName: businessData.companyName,\n countryId: businessData.countryId,\n email: businessData.email,\n postcode: businessData.postcode,\n registrationNumber: businessData.registrationNumber,\n stateId: businessData.stateId,\n website: businessData.website,\n status: true // always true for first time\n }\n }\n\n const responseBusiness = await businessService.createBusiness(businessPayload)\n\n accountBusinessId = Number(responseBusiness?.business_id) ?? 0\n\n }\n\n // update account for additional info\n const createUpdatedata = getCreateUpdatePayload(accountBusinessId, accountUserId)\n\n if (!createUpdatedata) {\n throw new Error(`Invalid create update account payload: ${JSON.stringify(_data)}`);\n }\n\n await accountModel.update({ id: Number(newAccountId), data: createUpdatedata })\n\n return await getAccount({ id: Number(newAccountId), datatypes: [] })\n }\n\n const updateAccount = async ({ accountId, data }: AccountUpdateProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let accountCode = data?.accountCode ?? \"\";\n\n // check the override account code needed\n if (accountCode) {\n\n // validate the account code format\n validateAccountCodeFormat(accountCode)\n\n // check account code cannot duplicated\n await validateAccountCodeIsUsed(accountCode)\n }\n\n // const accountCodeIsUsed = await checkAccoutCodeIsUsed(data.accountCode, accountId)\n\n // if (accountCodeIsUsed === true) throwError(`Account code has been used: ${data.accountCode}`)\n\n const _data = getUpdatePayload(data, accountCode)\n\n if (!_data) {\n throw new Error(`Invalid update account payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await accountModel.update({ where: { [`${ModelAccountFields.account_id}`]: accountId }, data: _data })\n\n return await getAccount({ id: accountId, datatypes: [] })\n }\n\n const getAccount = async ({ id, datatypes = [] }: AccountGetProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let { data } = await listAccounts({\n limit: 1,\n offset: 0,\n filters: [{ field: \"account_id\", operator: \"=\", value: id }],\n sortfield: \"account_id\",\n sortorder: \"ASC\",\n datatypes\n })\n\n return data[0] ?? null;\n\n };\n\n const listAccounts = async ({ limit, offset, filters = [], sortfield, sortorder, datatypes = [] }: AccountListProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n let data = []\n\n let sqlSelect = [\n `COUNT(acc.*) OVER() as filtered_count`,\n buildSqlSelect(``, mainSqlSelect),\n buildSqlSelect(``, businessSqlSelect),\n buildSqlSelect(``, ownerSqlSelect),\n buildSqlSelect(``, defaultSqlSelect)\n ]\n\n let sqlRelation = [\n buildSqlRelation(\"left\", \"acc\", \"businesses\", \"bus\", [\"acc.business_id = bus.business_id\", \"bus.isdelete = false\", \"bus.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"states\", \"bussstate\", [\"bus.state_id = bussstate.state_id\", \"bussstate.isdelete = false\", \"bussstate.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"countries\", \"busscoun\", [\"bus.country_id = busscoun.country_id\", \"busscoun.isdelete = false\", \"busscoun.istrash = false\"]),\n buildSqlRelation(\"left\", \"bus\", \"areas\", \"bussarea\", [\"bus.area_id = bussarea.area_id\", \"bussarea.isdelete = false\", \"bussarea.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"usrowner\", [\"acc.owner_user_id = usrowner.user_id\", \"usrowner.isdelete = false\", \"usrowner.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"creator\", [\"acc.createuserid = creator.user_id\", \"creator.isdelete = false\", \"creator.istrash = false\"]),\n buildSqlRelation(\"left\", \"acc\", \"users\", \"updater\", [\"acc.updateuserid = updater.user_id\", \"updater.isdelete = false\", \"updater.istrash = false\"])\n ]\n\n let sqlGroupBy: string[] = [\n ...Object.keys(mainSqlSelect),\n ...Object.keys(businessSqlSelect),\n ...Object.keys(ownerSqlSelectItem),\n ...Object.keys(defaultSqlSelect)\n ]\n\n let filterColumns = { ...mainSqlSelect, ...businessSqlSelect, ...ownerSqlSelectItem, ...defaultSqlSelect }\n\n let sqlWhere = [\n `acc.isdelete = false`,\n `acc.istrash = false`,\n ...(filters.length ? [buildSqlWhere(filters, filterColumns)?.where] : []),\n ]\n\n let sqlOrderby = buildSqlOrderBy(sortfield, sortorder)\n let sqlLimitOffset = buildSqlLimitOffset(limit, offset)\n\n const sqlRaw = buildSqlRawSelect({\n tableName: \"accounts\",\n mainAlias: \"acc\",\n accountId: rest.accountId,\n sqlSelect,\n sqlRelation,\n sqlWhere,\n sqlGroupBy,\n sqlOrderby,\n sqlLimitOffset,\n skipFilterAccountId: Boolean(rest.isOperator === true)\n })\n\n data = await accountModel.raw(sqlRaw)\n\n const response = {\n data: data.map(({ filtered_count, ...rest }) => rest),\n total: data.length ? Number(data[0].filtered_count) : 0\n }\n\n return response\n\n };\n\n const removeAccounts = async ({ accountIds }: AccountRemoveProps) => {\n\n // only operator token/access key allowed to access\n // if (rest.isOperator !== true) throwError(`Only operator token/access key allowed to perform`)\n\n if (!accountIds.length) throwError('accountIds is required');\n\n let accountResponse = await accountModel.remove({ where: { [`${ModelAccountFields.account_id}`]: { in: accountIds } } });\n\n let response: any[] = []\n\n await Promise.all(\n accountResponse.map(async (item) => {\n\n const accountId = item?.account_id ?? 0;\n // const ownerUserId = item?.owner_user_id ?? 0;\n const businessId = item?.business_id ?? 0;\n\n const businessService = BusinessService({ ...rest, accountId: Number(accountId) })\n // const userService = UserService({ ...rest, accountId: Number(accountId), userType: \"administrator\" })\n\n const userModel = UserModel({ ...rest })\n\n let responseBusiness: any[] = []\n let responseUser: any[] = []\n\n // remove business\n if (businessId) {\n responseBusiness = await businessService.removeBusinesses({ businessIds: [BigInt(businessId)] });\n }\n\n // remove all users (administrator, etc...)\n // if (ownerUserId) {\n const responseUsers = await userModel.remove({\n // ids: [Number(ownerUserId)]\n where: {\n [`${ModelUserFields.accountid}`]: accountId\n }\n })\n\n responseUser = responseUsers.map((i: any) => {\n delete i.login_password\n return i\n })\n // }\n\n response.push({\n ...item,\n business: responseBusiness.length > 0 ? responseBusiness[0] : {},\n users: responseUser\n })\n\n })\n );\n\n return response\n\n };\n\n // const getDataTypes = () => {\n // return Object.values(accountDataTypes);\n // }\n\n // return {\n // // getAccount,\n // // createAccount,\n // // updateAccount,\n // // removeAccounts,\n // // listAccounts\n // // validateAccountCodeIsUsed: ServiceFactory(validateAccountCodeIsUsed, rest, \"validate account code is used\"),\n // getAccount: ServiceFactory([\"operator\"], \"AccountService\", getAccount, rest, \"get account\"),\n // createAccount: ServiceFactory([\"operator\"], \"AccountService\", createAccount, rest, \"create account\"),\n // updateAccount: ServiceFactory([\"operator\"], \"AccountService\", updateAccount, rest, \"update account\"),\n // removeAccounts: ServiceFactory([\"operator\"], \"AccountService\", removeAccounts, rest, \"remove accounts\"),\n // listAccounts: ServiceFactory([\"operator\"], \"AccountService\", listAccounts, rest, \"list accounts\"),\n // }\n\n const methodConfigs = {\n getAccount: { fn: getAccount, allowUserTypes: [\"operator\", \"administrator\"] as const, actionName: \"get account\" },\n listAccounts: { fn: listAccounts, allowUserTypes: [\"operator\", \"administrator\"] as const, actionName: \"list accounts\" },\n createAccount: { fn: createAccount, allowUserTypes: [\"operator\"] as const, actionName: \"create account\" },\n updateAccount: { fn: updateAccount, allowUserTypes: [\"operator\"] as const, actionName: \"update account\" },\n removeAccounts: { fn: removeAccounts, allowUserTypes: [\"operator\"] as const, actionName: \"remove accounts\" },\n };\n\n return ServiceFactory(\"AccountService\", rest, methodConfigs);\n\n}\n\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storemw-core-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.143",
|
|
4
4
|
"description": "STOREMW Core API",
|
|
5
5
|
"main": "dist/app.js",
|
|
6
6
|
"types": "dist/app.d.ts",
|
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"require": "./dist/helpers/index.js",
|
|
61
61
|
"types": "./dist/helpers/index.d.ts"
|
|
62
62
|
},
|
|
63
|
+
"./middlewares": {
|
|
64
|
+
"import": "./dist/middlewares/index.js",
|
|
65
|
+
"require": "./dist/middlewares/index.js",
|
|
66
|
+
"types": "./dist/middlewares/index.d.ts"
|
|
67
|
+
},
|
|
63
68
|
"./middlewares/request": {
|
|
64
69
|
"import": "./dist/middlewares/request/index.js",
|
|
65
70
|
"require": "./dist/middlewares/request/index.js",
|
|
@@ -70,11 +75,21 @@
|
|
|
70
75
|
"require": "./dist/middlewares/route/index.js",
|
|
71
76
|
"types": "./dist/middlewares/route/index.d.ts"
|
|
72
77
|
},
|
|
78
|
+
"./schema": {
|
|
79
|
+
"import": "./dist/schema/index.js",
|
|
80
|
+
"require": "./dist/schema/index.js",
|
|
81
|
+
"types": "./dist/schema/index.d.ts"
|
|
82
|
+
},
|
|
73
83
|
"./schema/common": {
|
|
74
84
|
"import": "./dist/schema/common/index.js",
|
|
75
85
|
"require": "./dist/schema/common/index.js",
|
|
76
86
|
"types": "./dist/schema/common/index.d.ts"
|
|
77
87
|
},
|
|
88
|
+
"./schema/middleware": {
|
|
89
|
+
"import": "./dist/schema/middleware/index.js",
|
|
90
|
+
"require": "./dist/schema/middleware/index.js",
|
|
91
|
+
"types": "./dist/schema/middleware/index.d.ts"
|
|
92
|
+
},
|
|
78
93
|
"./schema/middleware/request": {
|
|
79
94
|
"import": "./dist/schema/middleware/request/index.js",
|
|
80
95
|
"require": "./dist/schema/middleware/request/index.js",
|
|
@@ -84,6 +99,11 @@
|
|
|
84
99
|
"import": "./dist/schema/middleware/route/index.js",
|
|
85
100
|
"require": "./dist/schema/middleware/route/index.js",
|
|
86
101
|
"types": "./dist/schema/middleware/route/index.d.ts"
|
|
102
|
+
},
|
|
103
|
+
"./schema/payload": {
|
|
104
|
+
"import": "./dist/schema/payload/index.js",
|
|
105
|
+
"require": "./dist/schema/payload/index.js",
|
|
106
|
+
"types": "./dist/schema/payload/index.d.ts"
|
|
87
107
|
}
|
|
88
108
|
},
|
|
89
109
|
"files": [
|