namirasoft-site-map 1.4.0 → 1.4.1
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/Globe.d.ts +40 -30
- package/dist/Globe.js +40 -30
- package/dist/Globe.js.map +1 -1
- package/dist/build.js +45 -37
- package/dist/build.js.map +1 -1
- package/dist/check.d.ts +1 -0
- package/dist/check.js +18 -0
- package/dist/check.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/maps/{ApiLinkMap.d.ts → APILinkMap.d.ts} +2 -2
- package/dist/maps/{ApiLinkMap.js → APILinkMap.js} +5 -5
- package/dist/maps/APILinkMap.js.map +1 -0
- package/dist/maps/{ApiNewsMap.d.ts → APINewsMap.d.ts} +2 -2
- package/dist/maps/{ApiNewsMap.js → APINewsMap.js} +5 -5
- package/dist/maps/APINewsMap.js.map +1 -0
- package/dist/maps/{ApiProductMap.d.ts → APIProductMap.d.ts} +2 -2
- package/dist/maps/{ApiProductMap.js → APIProductMap.js} +5 -5
- package/dist/maps/APIProductMap.js.map +1 -0
- package/dist/maps/{ApiServiceMap.d.ts → APIServiceMap.d.ts} +2 -2
- package/dist/maps/{ApiServiceMap.js → APIServiceMap.js} +5 -5
- package/dist/maps/APIServiceMap.js.map +1 -0
- package/dist/maps/{ApiWorkMap.d.ts → APIWorkMap.d.ts} +2 -2
- package/dist/maps/{ApiWorkMap.js → APIWorkMap.js} +5 -5
- package/dist/maps/APIWorkMap.js.map +1 -0
- package/dist/maps/AccessMap.d.ts +5 -0
- package/dist/maps/AccessMap.js +13 -0
- package/dist/maps/AccessMap.js.map +1 -0
- package/dist/maps/BalanceMap.d.ts +5 -0
- package/dist/maps/BalanceMap.js +13 -0
- package/dist/maps/BalanceMap.js.map +1 -0
- package/dist/maps/DataMap.d.ts +5 -0
- package/dist/maps/DataMap.js +13 -0
- package/dist/maps/DataMap.js.map +1 -0
- package/dist/maps/JobArrangerMap.d.ts +5 -0
- package/dist/maps/JobArrangerMap.js +13 -0
- package/dist/maps/JobArrangerMap.js.map +1 -0
- package/dist/maps/{NwsMaxMindMap.d.ts → NWSMaxMindMap.d.ts} +2 -2
- package/dist/maps/{NwsMaxMindMap.js → NWSMaxMindMap.js} +5 -5
- package/dist/maps/NWSMaxMindMap.js.map +1 -0
- package/dist/maps/{NwsRegionMap.d.ts → NWSRegionMap.d.ts} +2 -2
- package/dist/maps/{NwsRegionMap.js → NWSRegionMap.js} +5 -5
- package/dist/maps/NWSRegionMap.js.map +1 -0
- package/dist/maps/PaymentMap.d.ts +5 -0
- package/dist/maps/PaymentMap.js +13 -0
- package/dist/maps/PaymentMap.js.map +1 -0
- package/dist/maps/{SmsSenderMap.d.ts → SMSSenderMap.d.ts} +2 -2
- package/dist/maps/{SmsSenderMap.js → SMSSenderMap.js} +5 -5
- package/dist/maps/SMSSenderMap.js.map +1 -0
- package/dist/maps/index.d.ts +24 -0
- package/dist/maps/index.js +41 -0
- package/dist/maps/index.js.map +1 -0
- package/package.json +17 -16
- package/src/Globe.ts +65 -47
- package/src/build.ts +53 -48
- package/src/check.ts +21 -0
- package/src/index.ts +3 -1
- package/src/maps/APILinkMap.ts +10 -0
- package/src/maps/APINewsMap.ts +10 -0
- package/src/maps/APIProductMap.ts +10 -0
- package/src/maps/APIServiceMap.ts +10 -0
- package/src/maps/APIWorkMap.ts +10 -0
- package/src/maps/AccessMap.ts +10 -0
- package/src/maps/BalanceMap.ts +10 -0
- package/src/maps/DataMap.ts +10 -0
- package/src/maps/JobArrangerMap.ts +10 -0
- package/src/maps/NWSMaxMindMap.ts +10 -0
- package/src/maps/NWSRegionMap.ts +10 -0
- package/src/maps/PaymentMap.ts +10 -0
- package/src/maps/SMSSenderMap.ts +10 -0
- package/src/maps/TimifyMap.ts +10 -0
- package/src/maps/index.ts +25 -0
- package/dist/maps/ApiLinkMap.js.map +0 -1
- package/dist/maps/ApiNewsMap.js.map +0 -1
- package/dist/maps/ApiProductMap.js.map +0 -1
- package/dist/maps/ApiServiceMap.js.map +0 -1
- package/dist/maps/ApiWorkMap.js.map +0 -1
- package/dist/maps/NwsMaxMindMap.js.map +0 -1
- package/dist/maps/NwsRegionMap.js.map +0 -1
- package/dist/maps/SmsSenderMap.js.map +0 -1
- package/src/maps/ApiLinkMap.ts +0 -10
- package/src/maps/ApiNewsMap.ts +0 -10
- package/src/maps/ApiProductMap.ts +0 -10
- package/src/maps/ApiServiceMap.ts +0 -10
- package/src/maps/ApiWorkMap.ts +0 -10
- package/src/maps/NwsMaxMindMap.ts +0 -10
- package/src/maps/NwsRegionMap.ts +0 -10
- package/src/maps/SmsSenderMap.ts +0 -10
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { NamirasoftJobArrangerMetaDatabase, NamirasoftJobArrangerServer } from "namirasoft-job-arranger";
|
|
2
|
+
import { BaseMap } from "../BaseMap";
|
|
3
|
+
export declare class JobArrangerMap extends BaseMap<NamirasoftJobArrangerMetaDatabase, NamirasoftJobArrangerServer> {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobArrangerMap = void 0;
|
|
4
|
+
const namirasoft_job_arranger_1 = require("namirasoft-job-arranger");
|
|
5
|
+
const BaseMap_1 = require("../BaseMap");
|
|
6
|
+
class JobArrangerMap extends BaseMap_1.BaseMap {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(new namirasoft_job_arranger_1.NamirasoftJobArrangerMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.JobArrangerMap = JobArrangerMap;
|
|
12
|
+
;
|
|
13
|
+
//# sourceMappingURL=JobArrangerMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JobArrangerMap.js","sourceRoot":"","sources":["../../src/maps/JobArrangerMap.ts"],"names":[],"mappings":";;;AAAA,qEAAyG;AACzG,wCAAqC;AAErC,MAAa,cAAe,SAAQ,iBAAuE;IAEvG;QAEI,KAAK,CAAC,IAAI,2DAAiC,EAAE,CAAC,CAAC;IACnD,CAAC;CACJ;AAND,wCAMC;AAAA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NamirasoftNWSMaxMindMetaDatabase, NamirasoftNWSMaxMindServer } from "namirasoft-nws-max-mind";
|
|
2
2
|
import { BaseMap } from "../BaseMap";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NWSMaxMindMap extends BaseMap<NamirasoftNWSMaxMindMetaDatabase, NamirasoftNWSMaxMindServer> {
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NWSMaxMindMap = void 0;
|
|
4
4
|
const namirasoft_nws_max_mind_1 = require("namirasoft-nws-max-mind");
|
|
5
5
|
const BaseMap_1 = require("../BaseMap");
|
|
6
|
-
class
|
|
6
|
+
class NWSMaxMindMap extends BaseMap_1.BaseMap {
|
|
7
7
|
constructor() {
|
|
8
|
-
super(new namirasoft_nws_max_mind_1.
|
|
8
|
+
super(new namirasoft_nws_max_mind_1.NamirasoftNWSMaxMindMetaDatabase());
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
exports.
|
|
11
|
+
exports.NWSMaxMindMap = NWSMaxMindMap;
|
|
12
12
|
;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=NWSMaxMindMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NWSMaxMindMap.js","sourceRoot":"","sources":["../../src/maps/NWSMaxMindMap.ts"],"names":[],"mappings":";;;AAAA,qEAAuG;AACvG,wCAAqC;AAErC,MAAa,aAAc,SAAQ,iBAAqE;IAEpG;QAEI,KAAK,CAAC,IAAI,0DAAgC,EAAE,CAAC,CAAC;IAClD,CAAC;CACJ;AAND,sCAMC;AAAA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NamirasoftNWSRegionMetaDatabase, NamirasoftNWSRegionServer } from "namirasoft-nws-region";
|
|
2
2
|
import { BaseMap } from "../BaseMap";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class NWSRegionMap extends BaseMap<NamirasoftNWSRegionMetaDatabase, NamirasoftNWSRegionServer> {
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NWSRegionMap = void 0;
|
|
4
4
|
const namirasoft_nws_region_1 = require("namirasoft-nws-region");
|
|
5
5
|
const BaseMap_1 = require("../BaseMap");
|
|
6
|
-
class
|
|
6
|
+
class NWSRegionMap extends BaseMap_1.BaseMap {
|
|
7
7
|
constructor() {
|
|
8
|
-
super(new namirasoft_nws_region_1.
|
|
8
|
+
super(new namirasoft_nws_region_1.NamirasoftNWSRegionMetaDatabase());
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
exports.
|
|
11
|
+
exports.NWSRegionMap = NWSRegionMap;
|
|
12
12
|
;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=NWSRegionMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NWSRegionMap.js","sourceRoot":"","sources":["../../src/maps/NWSRegionMap.ts"],"names":[],"mappings":";;;AAAA,iEAAmG;AACnG,wCAAqC;AAErC,MAAa,YAAa,SAAQ,iBAAmE;IAEjG;QAEI,KAAK,CAAC,IAAI,uDAA+B,EAAE,CAAC,CAAC;IACjD,CAAC;CACJ;AAND,oCAMC;AAAA,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMap = void 0;
|
|
4
|
+
const namirasoft_payment_1 = require("namirasoft-payment");
|
|
5
|
+
const BaseMap_1 = require("../BaseMap");
|
|
6
|
+
class PaymentMap extends BaseMap_1.BaseMap {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(new namirasoft_payment_1.NamirasoftPaymentMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PaymentMap = PaymentMap;
|
|
12
|
+
;
|
|
13
|
+
//# sourceMappingURL=PaymentMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMap.js","sourceRoot":"","sources":["../../src/maps/PaymentMap.ts"],"names":[],"mappings":";;;AAAA,2DAA4F;AAC5F,wCAAqC;AAErC,MAAa,UAAW,SAAQ,iBAA+D;IAE3F;QAEI,KAAK,CAAC,IAAI,kDAA6B,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ;AAND,gCAMC;AAAA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NamirasoftSMSSenderMetaDatabase, NamirasoftSMSSenderServer } from "namirasoft-sms-sender";
|
|
2
2
|
import { BaseMap } from "../BaseMap";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SMSSenderMap extends BaseMap<NamirasoftSMSSenderMetaDatabase, NamirasoftSMSSenderServer> {
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SMSSenderMap = void 0;
|
|
4
4
|
const namirasoft_sms_sender_1 = require("namirasoft-sms-sender");
|
|
5
5
|
const BaseMap_1 = require("../BaseMap");
|
|
6
|
-
class
|
|
6
|
+
class SMSSenderMap extends BaseMap_1.BaseMap {
|
|
7
7
|
constructor() {
|
|
8
|
-
super(new namirasoft_sms_sender_1.
|
|
8
|
+
super(new namirasoft_sms_sender_1.NamirasoftSMSSenderMetaDatabase());
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
exports.
|
|
11
|
+
exports.SMSSenderMap = SMSSenderMap;
|
|
12
12
|
;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=SMSSenderMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SMSSenderMap.js","sourceRoot":"","sources":["../../src/maps/SMSSenderMap.ts"],"names":[],"mappings":";;;AAAA,iEAAmG;AACnG,wCAAqC;AAErC,MAAa,YAAa,SAAQ,iBAAmE;IAEjG;QAEI,KAAK,CAAC,IAAI,uDAA+B,EAAE,CAAC,CAAC;IACjD,CAAC;CACJ;AAND,oCAMC;AAAA,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from "./APILinkMap";
|
|
2
|
+
export * from "./APINewsMap";
|
|
3
|
+
export * from "./APIProductMap";
|
|
4
|
+
export * from "./APIServiceMap";
|
|
5
|
+
export * from "./APIWorkMap";
|
|
6
|
+
export * from "./AccessMap";
|
|
7
|
+
export * from "./AccountMap";
|
|
8
|
+
export * from "./AlarmMap";
|
|
9
|
+
export * from "./BalanceMap";
|
|
10
|
+
export * from "./ContentTemplateMap";
|
|
11
|
+
export * from "./DataMap";
|
|
12
|
+
export * from "./EmailSenderMap";
|
|
13
|
+
export * from "./FieldMap";
|
|
14
|
+
export * from "./HistoryMap";
|
|
15
|
+
export * from "./JobArrangerMap";
|
|
16
|
+
export * from "./LogMap";
|
|
17
|
+
export * from "./MessageMap";
|
|
18
|
+
export * from "./NWSMaxMindMap";
|
|
19
|
+
export * from "./NWSRegionMap";
|
|
20
|
+
export * from "./NotificationSenderMap";
|
|
21
|
+
export * from "./PaymentMap";
|
|
22
|
+
export * from "./SMSSenderMap";
|
|
23
|
+
export * from "./SecretMap";
|
|
24
|
+
export * from "./WorkspaceMap";
|
|
@@ -0,0 +1,41 @@
|
|
|
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("./APILinkMap"), exports);
|
|
18
|
+
__exportStar(require("./APINewsMap"), exports);
|
|
19
|
+
__exportStar(require("./APIProductMap"), exports);
|
|
20
|
+
__exportStar(require("./APIServiceMap"), exports);
|
|
21
|
+
__exportStar(require("./APIWorkMap"), exports);
|
|
22
|
+
__exportStar(require("./AccessMap"), exports);
|
|
23
|
+
__exportStar(require("./AccountMap"), exports);
|
|
24
|
+
__exportStar(require("./AlarmMap"), exports);
|
|
25
|
+
__exportStar(require("./BalanceMap"), exports);
|
|
26
|
+
__exportStar(require("./ContentTemplateMap"), exports);
|
|
27
|
+
__exportStar(require("./DataMap"), exports);
|
|
28
|
+
__exportStar(require("./EmailSenderMap"), exports);
|
|
29
|
+
__exportStar(require("./FieldMap"), exports);
|
|
30
|
+
__exportStar(require("./HistoryMap"), exports);
|
|
31
|
+
__exportStar(require("./JobArrangerMap"), exports);
|
|
32
|
+
__exportStar(require("./LogMap"), exports);
|
|
33
|
+
__exportStar(require("./MessageMap"), exports);
|
|
34
|
+
__exportStar(require("./NWSMaxMindMap"), exports);
|
|
35
|
+
__exportStar(require("./NWSRegionMap"), exports);
|
|
36
|
+
__exportStar(require("./NotificationSenderMap"), exports);
|
|
37
|
+
__exportStar(require("./PaymentMap"), exports);
|
|
38
|
+
__exportStar(require("./SMSSenderMap"), exports);
|
|
39
|
+
__exportStar(require("./SecretMap"), exports);
|
|
40
|
+
__exportStar(require("./WorkspaceMap"), exports);
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/maps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,+CAA6B;AAC7B,uDAAqC;AACrC,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,2CAAyB;AACzB,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,0DAAwC;AACxC,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,iDAA+B"}
|
package/package.json
CHANGED
|
@@ -8,41 +8,42 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.1",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "node ./dist/build.js"
|
|
17
|
+
"build": "node ./dist/build.js",
|
|
18
|
+
"check": "node ./dist/check.js"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"@types/node": "^22.10.2",
|
|
21
|
-
"namirasoft-access": "^1.4.
|
|
22
|
+
"namirasoft-access": "^1.4.26",
|
|
22
23
|
"namirasoft-account": "^1.4.27",
|
|
23
24
|
"namirasoft-alarm": "^1.4.8",
|
|
24
|
-
"namirasoft-api-link": "^1.4.
|
|
25
|
-
"namirasoft-api-news": "^1.4.
|
|
26
|
-
"namirasoft-api-product": "^1.4.
|
|
27
|
-
"namirasoft-api-service": "^1.4.
|
|
28
|
-
"namirasoft-api-work": "^1.4.
|
|
29
|
-
"namirasoft-balance": "^1.4.
|
|
25
|
+
"namirasoft-api-link": "^1.4.8",
|
|
26
|
+
"namirasoft-api-news": "^1.4.3",
|
|
27
|
+
"namirasoft-api-product": "^1.4.9",
|
|
28
|
+
"namirasoft-api-service": "^1.4.4",
|
|
29
|
+
"namirasoft-api-work": "^1.4.2",
|
|
30
|
+
"namirasoft-balance": "^1.4.3",
|
|
30
31
|
"namirasoft-content-template": "^1.4.18",
|
|
31
|
-
"namirasoft-core": "^1.4.
|
|
32
|
-
"namirasoft-data": "^1.
|
|
32
|
+
"namirasoft-core": "^1.4.23",
|
|
33
|
+
"namirasoft-data": "^1.4.0",
|
|
33
34
|
"namirasoft-email-sender": "^1.4.13",
|
|
34
35
|
"namirasoft-field": "^1.4.3",
|
|
35
36
|
"namirasoft-history": "^1.4.7",
|
|
36
|
-
"namirasoft-job-arranger": "^1.4.
|
|
37
|
+
"namirasoft-job-arranger": "^1.4.32",
|
|
37
38
|
"namirasoft-log": "^1.4.10",
|
|
38
39
|
"namirasoft-message": "^1.4.7",
|
|
39
40
|
"namirasoft-notification-sender": "^1.4.10",
|
|
40
|
-
"namirasoft-nws-max-mind": "^1.4.
|
|
41
|
-
"namirasoft-nws-region": "^1.3.
|
|
42
|
-
"namirasoft-payment": "^1.4.
|
|
41
|
+
"namirasoft-nws-max-mind": "^1.4.5",
|
|
42
|
+
"namirasoft-nws-region": "^1.3.10",
|
|
43
|
+
"namirasoft-payment": "^1.4.26",
|
|
43
44
|
"namirasoft-secret": "^1.4.15",
|
|
44
45
|
"namirasoft-site": "^1.4.5",
|
|
45
|
-
"namirasoft-sms-sender": "^1.4.
|
|
46
|
+
"namirasoft-sms-sender": "^1.4.7",
|
|
46
47
|
"namirasoft-workspace": "^1.4.6"
|
|
47
48
|
}
|
|
48
49
|
}
|
package/src/Globe.ts
CHANGED
|
@@ -1,74 +1,92 @@
|
|
|
1
1
|
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
2
2
|
import { BaseMap } from "./BaseMap";
|
|
3
3
|
// tables import start
|
|
4
|
+
import { APILinkMap } from "./maps/APILinkMap";
|
|
5
|
+
import { APINewsMap } from "./maps/APINewsMap";
|
|
6
|
+
import { APIProductMap } from "./maps/APIProductMap";
|
|
7
|
+
import { APIServiceMap } from "./maps/APIServiceMap";
|
|
8
|
+
import { APIWorkMap } from "./maps/APIWorkMap";
|
|
9
|
+
import { AccessMap } from "./maps/AccessMap";
|
|
4
10
|
import { AccountMap } from "./maps/AccountMap";
|
|
5
|
-
import { HistoryMap } from "./maps/HistoryMap";
|
|
6
|
-
import { MessageMap } from "./maps/MessageMap";
|
|
7
11
|
import { AlarmMap } from "./maps/AlarmMap";
|
|
8
|
-
import {
|
|
9
|
-
import { WorkspaceMap } from "./maps/WorkspaceMap";
|
|
10
|
-
import { SecretMap } from "./maps/SecretMap";
|
|
11
|
-
import { EmailSenderMap } from "./maps/EmailSenderMap";
|
|
12
|
-
import { SmsSenderMap } from "./maps/SmsSenderMap";
|
|
12
|
+
import { BalanceMap } from "./maps/BalanceMap";
|
|
13
13
|
import { ContentTemplateMap } from "./maps/ContentTemplateMap";
|
|
14
|
-
import {
|
|
14
|
+
import { DataMap } from "./maps/DataMap";
|
|
15
|
+
import { EmailSenderMap } from "./maps/EmailSenderMap";
|
|
15
16
|
import { FieldMap } from "./maps/FieldMap";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
17
|
+
import { HistoryMap } from "./maps/HistoryMap";
|
|
18
|
+
import { JobArrangerMap } from "./maps/JobArrangerMap";
|
|
19
|
+
import { LogMap } from "./maps/LogMap";
|
|
20
|
+
import { MessageMap } from "./maps/MessageMap";
|
|
21
|
+
import { NWSMaxMindMap } from "./maps/NWSMaxMindMap";
|
|
22
|
+
import { NWSRegionMap } from "./maps/NWSRegionMap";
|
|
23
|
+
import { NotificationSenderMap } from "./maps/NotificationSenderMap";
|
|
24
|
+
import { PaymentMap } from "./maps/PaymentMap";
|
|
25
|
+
import { SMSSenderMap } from "./maps/SMSSenderMap";
|
|
26
|
+
import { SecretMap } from "./maps/SecretMap";
|
|
27
|
+
import { TimifyMap } from "./maps/TimifyMap";
|
|
28
|
+
import { WorkspaceMap } from "./maps/WorkspaceMap";
|
|
23
29
|
// tables import end
|
|
24
30
|
|
|
25
31
|
export class Globe
|
|
26
32
|
{
|
|
27
33
|
public static namirasoft: Globe = new Globe();
|
|
28
34
|
// tables define start
|
|
35
|
+
public api_link: APILinkMap;
|
|
36
|
+
public api_news: APINewsMap;
|
|
37
|
+
public api_product: APIProductMap;
|
|
38
|
+
public api_service: APIServiceMap;
|
|
39
|
+
public api_work: APIWorkMap;
|
|
40
|
+
public access: AccessMap;
|
|
29
41
|
public account: AccountMap;
|
|
30
|
-
public history: HistoryMap;
|
|
31
|
-
public message: MessageMap;
|
|
32
42
|
public alarm: AlarmMap;
|
|
33
|
-
public
|
|
34
|
-
public workspace: WorkspaceMap;
|
|
35
|
-
public secret: SecretMap;
|
|
36
|
-
public email_sender: EmailSenderMap;
|
|
37
|
-
public sms_sender: SmsSenderMap;
|
|
43
|
+
public balance: BalanceMap;
|
|
38
44
|
public content_template: ContentTemplateMap;
|
|
39
|
-
public
|
|
45
|
+
public data: DataMap;
|
|
46
|
+
public email_sender: EmailSenderMap;
|
|
40
47
|
public field: FieldMap;
|
|
41
|
-
public
|
|
42
|
-
public
|
|
43
|
-
public
|
|
44
|
-
public
|
|
45
|
-
public
|
|
46
|
-
public
|
|
47
|
-
public
|
|
48
|
-
|
|
48
|
+
public history: HistoryMap;
|
|
49
|
+
public job_arranger: JobArrangerMap;
|
|
50
|
+
public log: LogMap;
|
|
51
|
+
public message: MessageMap;
|
|
52
|
+
public nws_max_mind: NWSMaxMindMap;
|
|
53
|
+
public nws_region: NWSRegionMap;
|
|
54
|
+
public notification_sender: NotificationSenderMap;
|
|
55
|
+
public payment: PaymentMap;
|
|
56
|
+
public sms_sender: SMSSenderMap;
|
|
57
|
+
public secret: SecretMap;
|
|
58
|
+
public timify: TimifyMap;
|
|
59
|
+
public workspace: WorkspaceMap;
|
|
60
|
+
// tables define end
|
|
49
61
|
constructor()
|
|
50
62
|
{
|
|
51
63
|
// tables init start
|
|
64
|
+
this.api_link = new APILinkMap();
|
|
65
|
+
this.api_news = new APINewsMap();
|
|
66
|
+
this.api_product = new APIProductMap();
|
|
67
|
+
this.api_service = new APIServiceMap();
|
|
68
|
+
this.api_work = new APIWorkMap();
|
|
69
|
+
this.access = new AccessMap();
|
|
52
70
|
this.account = new AccountMap();
|
|
53
|
-
this.history = new HistoryMap();
|
|
54
|
-
this.message = new MessageMap();
|
|
55
71
|
this.alarm = new AlarmMap();
|
|
56
|
-
this.
|
|
57
|
-
this.workspace = new WorkspaceMap();
|
|
58
|
-
this.secret = new SecretMap();
|
|
59
|
-
this.email_sender = new EmailSenderMap();
|
|
60
|
-
this.sms_sender = new SmsSenderMap();
|
|
72
|
+
this.balance = new BalanceMap();
|
|
61
73
|
this.content_template = new ContentTemplateMap();
|
|
62
|
-
this.
|
|
74
|
+
this.data = new DataMap();
|
|
75
|
+
this.email_sender = new EmailSenderMap();
|
|
63
76
|
this.field = new FieldMap();
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
|
|
77
|
+
this.history = new HistoryMap();
|
|
78
|
+
this.job_arranger = new JobArrangerMap();
|
|
79
|
+
this.log = new LogMap();
|
|
80
|
+
this.message = new MessageMap();
|
|
81
|
+
this.nws_max_mind = new NWSMaxMindMap();
|
|
82
|
+
this.nws_region = new NWSRegionMap();
|
|
83
|
+
this.notification_sender = new NotificationSenderMap();
|
|
84
|
+
this.payment = new PaymentMap();
|
|
85
|
+
this.sms_sender = new SMSSenderMap();
|
|
86
|
+
this.secret = new SecretMap();
|
|
87
|
+
this.timify = new TimifyMap();
|
|
88
|
+
this.workspace = new WorkspaceMap();
|
|
89
|
+
// tables init end
|
|
72
90
|
}
|
|
73
91
|
forEachProduct<T>(handler: (map: BaseMap<NSBaseMetaDatabase, any>) => T | null): T | null
|
|
74
92
|
{
|
package/src/build.ts
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
|
-
import { execSync } from "child_process";
|
|
3
2
|
import { NamingConvention } from "namirasoft-core";
|
|
4
3
|
|
|
5
|
-
let products =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
4
|
+
let products =
|
|
5
|
+
[
|
|
6
|
+
'API Link',
|
|
7
|
+
'API News',
|
|
8
|
+
'API Product',
|
|
9
|
+
'API Service',
|
|
10
|
+
'API Work',
|
|
11
|
+
'Access',
|
|
12
|
+
'Account',
|
|
13
|
+
'Alarm',
|
|
14
|
+
'Balance',
|
|
15
|
+
'Content Template',
|
|
16
|
+
'Data',
|
|
17
|
+
'Email Sender',
|
|
18
|
+
'Field',
|
|
19
|
+
'History',
|
|
20
|
+
'Job Arranger',
|
|
21
|
+
'Log',
|
|
22
|
+
'Message',
|
|
23
|
+
'NWS Max Mind',
|
|
24
|
+
'NWS Region',
|
|
25
|
+
'Notification Sender',
|
|
26
|
+
'Payment',
|
|
27
|
+
'SMS Sender',
|
|
28
|
+
'Secret',
|
|
29
|
+
"Timify",
|
|
30
|
+
'Workspace'
|
|
31
|
+
|
|
32
|
+
// "Cretificate",
|
|
33
|
+
// "Hive",
|
|
34
|
+
// "Lend",
|
|
35
|
+
// "Redeem",
|
|
36
|
+
];
|
|
37
|
+
products = products.sort();
|
|
38
|
+
console.log(products);
|
|
35
39
|
|
|
36
40
|
function build()
|
|
37
41
|
{
|
|
42
|
+
let index_code = [];
|
|
38
43
|
let imports = ["// tables import start"];
|
|
39
44
|
let defines = ["// tables define start"];
|
|
40
45
|
let inits = ["// tables init start"];
|
|
41
46
|
for (let i = 0; i < products.length; i++)
|
|
42
47
|
{
|
|
43
48
|
let product = products[i];
|
|
44
|
-
let package_name = "namirasoft-" + NamingConvention.Pascal_Case_Space.convert(product, NamingConvention.lower_case_dash);
|
|
45
|
-
let var_name = NamingConvention.Pascal_Case_Space.convert(product, NamingConvention.lower_case_underscore);
|
|
49
|
+
let package_name = "namirasoft-" + NamingConvention.Pascal_Case_Space.convert(product, NamingConvention.lower_case_dash, false);
|
|
50
|
+
let var_name = NamingConvention.Pascal_Case_Space.convert(product, NamingConvention.lower_case_underscore, false);
|
|
46
51
|
let type_name = NamingConvention.Pascal_Case_Space.convert(product, NamingConvention.Pascal_Case);
|
|
47
|
-
let command = `npm i ${package_name}`;
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
if (!command)
|
|
51
|
-
execSync(command);
|
|
53
|
+
index_code.push(`export * from "./${type_name}Map";`);
|
|
52
54
|
imports.push(`import { ${type_name}Map } from "./maps/${type_name}Map";`);
|
|
53
55
|
defines.push(` public ${var_name}: ${type_name}Map;`);
|
|
54
56
|
inits.push(` this.${var_name} = new ${type_name}Map();`);
|
|
@@ -69,24 +71,27 @@ export class ${type_name}Map extends BaseMap<Namirasoft${type_name}MetaDatabase,
|
|
|
69
71
|
defines.push("// tables define end");
|
|
70
72
|
inits.push("// tables init end");
|
|
71
73
|
|
|
72
|
-
let
|
|
74
|
+
let globe_code = fs.readFileSync("./src/Globe.ts").toString();
|
|
73
75
|
{
|
|
74
|
-
let start_index =
|
|
75
|
-
let end_index =
|
|
76
|
-
|
|
76
|
+
let start_index = globe_code.indexOf(imports[0]);
|
|
77
|
+
let end_index = globe_code.indexOf(imports[imports.length - 1]) + imports[imports.length - 1].length;
|
|
78
|
+
globe_code = globe_code.substring(0, start_index) + imports.join("\n") + globe_code.substring(end_index);
|
|
77
79
|
}
|
|
78
80
|
{
|
|
79
|
-
let start_index =
|
|
80
|
-
let end_index =
|
|
81
|
-
|
|
81
|
+
let start_index = globe_code.indexOf(defines[0]);
|
|
82
|
+
let end_index = globe_code.indexOf(defines[defines.length - 1]) + defines[defines.length - 1].length;
|
|
83
|
+
defines[defines.length - 1] = " " + defines[defines.length - 1];
|
|
84
|
+
globe_code = globe_code.substring(0, start_index) + defines.join("\n") + globe_code.substring(end_index);
|
|
82
85
|
}
|
|
83
86
|
{
|
|
84
|
-
let start_index =
|
|
85
|
-
let end_index =
|
|
86
|
-
|
|
87
|
+
let start_index = globe_code.indexOf(inits[0]);
|
|
88
|
+
let end_index = globe_code.indexOf(inits[inits.length - 1]) + inits[inits.length - 1].length;
|
|
89
|
+
inits[defines.length - 1] = " " + inits[defines.length - 1];
|
|
90
|
+
globe_code = globe_code.substring(0, start_index) + inits.join("\n") + "" + globe_code.substring(end_index);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
fs.writeFileSync("./src/Globe.ts",
|
|
93
|
+
fs.writeFileSync("./src/Globe.ts", globe_code);
|
|
94
|
+
fs.writeFileSync("./src/maps/index.ts", index_code.join("\n"));
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
build();
|
package/src/check.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NSBaseMetaTable } from "namirasoft-site";
|
|
2
|
+
import { Globe } from "./Globe";
|
|
3
|
+
|
|
4
|
+
let keys: { [short: string]: NSBaseMetaTable } = {};
|
|
5
|
+
Globe.namirasoft.forEachProduct(product =>
|
|
6
|
+
{
|
|
7
|
+
for (let key in product.meta.tables)
|
|
8
|
+
{
|
|
9
|
+
const table = product.meta.tables[key];
|
|
10
|
+
if (table.uuid.short)
|
|
11
|
+
{
|
|
12
|
+
if (keys[table.uuid.short])
|
|
13
|
+
{
|
|
14
|
+
console.log(`Duplicate short name:`);
|
|
15
|
+
console.log(`\t\t${table.database.product.name} - ${table.text}`);
|
|
16
|
+
console.log(`\t\t${keys[table.uuid.short].database.product.name} - ${keys[table.uuid.short].text}`);
|
|
17
|
+
}
|
|
18
|
+
keys[table.uuid.short] = table;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NamirasoftAPILinkMetaDatabase, NamirasoftAPILinkServer } from "namirasoft-api-link";
|
|
2
|
+
import { BaseMap } from "../BaseMap";
|
|
3
|
+
|
|
4
|
+
export class APILinkMap extends BaseMap<NamirasoftAPILinkMetaDatabase, NamirasoftAPILinkServer>
|
|
5
|
+
{
|
|
6
|
+
constructor()
|
|
7
|
+
{
|
|
8
|
+
super(new NamirasoftAPILinkMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NamirasoftAPINewsMetaDatabase, NamirasoftAPINewsServer } from "namirasoft-api-news";
|
|
2
|
+
import { BaseMap } from "../BaseMap";
|
|
3
|
+
|
|
4
|
+
export class APINewsMap extends BaseMap<NamirasoftAPINewsMetaDatabase, NamirasoftAPINewsServer>
|
|
5
|
+
{
|
|
6
|
+
constructor()
|
|
7
|
+
{
|
|
8
|
+
super(new NamirasoftAPINewsMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NamirasoftAPIProductMetaDatabase, NamirasoftAPIProductServer } from "namirasoft-api-product";
|
|
2
|
+
import { BaseMap } from "../BaseMap";
|
|
3
|
+
|
|
4
|
+
export class APIProductMap extends BaseMap<NamirasoftAPIProductMetaDatabase, NamirasoftAPIProductServer>
|
|
5
|
+
{
|
|
6
|
+
constructor()
|
|
7
|
+
{
|
|
8
|
+
super(new NamirasoftAPIProductMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NamirasoftAPIServiceMetaDatabase, NamirasoftAPIServiceServer } from "namirasoft-api-service";
|
|
2
|
+
import { BaseMap } from "../BaseMap";
|
|
3
|
+
|
|
4
|
+
export class APIServiceMap extends BaseMap<NamirasoftAPIServiceMetaDatabase, NamirasoftAPIServiceServer>
|
|
5
|
+
{
|
|
6
|
+
constructor()
|
|
7
|
+
{
|
|
8
|
+
super(new NamirasoftAPIServiceMetaDatabase());
|
|
9
|
+
}
|
|
10
|
+
};
|