namirasoft-site-map 1.4.14 → 1.4.15
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 +53 -55
- package/dist/Globe.js +60 -61
- package/dist/Globe.js.map +1 -1
- package/dist/check.js +4 -3
- package/dist/check.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +28 -28
- package/src/Globe.ts +89 -92
- package/src/check.ts +7 -5
- package/src/index.ts +1 -3
- package/src/BaseMap.ts +0 -11
- 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/AccessMap.ts +0 -10
- package/src/maps/AccountMap.ts +0 -10
- package/src/maps/AlarmMap.ts +0 -10
- package/src/maps/BalanceMap.ts +0 -10
- package/src/maps/ContentTemplateMap.ts +0 -10
- package/src/maps/DataMap.ts +0 -10
- package/src/maps/EmailSenderMap.ts +0 -10
- package/src/maps/FieldMap.ts +0 -10
- package/src/maps/HistoryMap.ts +0 -10
- package/src/maps/JobArrangerMap.ts +0 -10
- package/src/maps/LogMap.ts +0 -10
- package/src/maps/MessageMap.ts +0 -10
- package/src/maps/NWSMaxMindMap.ts +0 -10
- package/src/maps/NWSRegionMap.ts +0 -10
- package/src/maps/NotificationSenderMap.ts +0 -10
- package/src/maps/PaymentMap.ts +0 -10
- package/src/maps/SMSSenderMap.ts +0 -10
- package/src/maps/SecretMap.ts +0 -10
- package/src/maps/WorkspaceMap.ts +0 -10
- package/src/maps/index.ts +0 -24
package/dist/Globe.d.ts
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { WorkspaceMap } from "./maps/WorkspaceMap";
|
|
1
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable, NSBaseServer } from "namirasoft-site";
|
|
2
|
+
import { NamirasoftAPILinkMetaDatabase } from "namirasoft-api-link";
|
|
3
|
+
import { NamirasoftAPINewsMetaDatabase } from "namirasoft-api-news";
|
|
4
|
+
import { NamirasoftAPIProductMetaDatabase } from "namirasoft-api-product";
|
|
5
|
+
import { NamirasoftAPIServiceMetaDatabase } from "namirasoft-api-service";
|
|
6
|
+
import { NamirasoftAPIWorkMetaDatabase } from "namirasoft-api-work";
|
|
7
|
+
import { NamirasoftAccessMetaDatabase } from "namirasoft-access";
|
|
8
|
+
import { NamirasoftAccountMetaDatabase, TokenManager } from "namirasoft-account";
|
|
9
|
+
import { NamirasoftAlarmMetaDatabase } from "namirasoft-alarm";
|
|
10
|
+
import { NamirasoftBalanceMetaDatabase } from "namirasoft-balance";
|
|
11
|
+
import { NamirasoftContentTemplateMetaDatabase } from "namirasoft-content-template";
|
|
12
|
+
import { NamirasoftDataMetaDatabase } from "namirasoft-data";
|
|
13
|
+
import { NamirasoftEmailSenderMetaDatabase } from "namirasoft-email-sender";
|
|
14
|
+
import { NamirasoftFieldMetaDatabase } from "namirasoft-field";
|
|
15
|
+
import { NamirasoftHistoryMetaDatabase } from "namirasoft-history";
|
|
16
|
+
import { NamirasoftJobArrangerMetaDatabase } from "namirasoft-job-arranger";
|
|
17
|
+
import { NamirasoftLogMetaDatabase } from "namirasoft-log";
|
|
18
|
+
import { NamirasoftMessageMetaDatabase } from "namirasoft-message";
|
|
19
|
+
import { NamirasoftNWSMaxMindMetaDatabase } from "namirasoft-nws-max-mind";
|
|
20
|
+
import { NamirasoftNWSRegionMetaDatabase } from "namirasoft-nws-region";
|
|
21
|
+
import { NamirasoftNotificationSenderMetaDatabase } from "namirasoft-notification-sender";
|
|
22
|
+
import { NamirasoftPaymentMetaDatabase } from "namirasoft-payment";
|
|
23
|
+
import { NamirasoftSMSSenderMetaDatabase } from "namirasoft-sms-sender";
|
|
24
|
+
import { NamirasoftSecretMetaDatabase } from "namirasoft-secret";
|
|
25
|
+
import { NamirasoftWorkspaceMetaDatabase } from "namirasoft-workspace";
|
|
27
26
|
export declare class Globe {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
getByProductID(product_id: string): BaseMap<NSBaseMetaDatabase, any>;
|
|
27
|
+
api_link: NamirasoftAPILinkMetaDatabase;
|
|
28
|
+
api_news: NamirasoftAPINewsMetaDatabase;
|
|
29
|
+
api_product: NamirasoftAPIProductMetaDatabase;
|
|
30
|
+
api_service: NamirasoftAPIServiceMetaDatabase;
|
|
31
|
+
api_work: NamirasoftAPIWorkMetaDatabase;
|
|
32
|
+
access: NamirasoftAccessMetaDatabase;
|
|
33
|
+
account: NamirasoftAccountMetaDatabase;
|
|
34
|
+
alarm: NamirasoftAlarmMetaDatabase;
|
|
35
|
+
balance: NamirasoftBalanceMetaDatabase;
|
|
36
|
+
content_template: NamirasoftContentTemplateMetaDatabase;
|
|
37
|
+
data: NamirasoftDataMetaDatabase;
|
|
38
|
+
email_sender: NamirasoftEmailSenderMetaDatabase;
|
|
39
|
+
field: NamirasoftFieldMetaDatabase;
|
|
40
|
+
history: NamirasoftHistoryMetaDatabase;
|
|
41
|
+
job_arranger: NamirasoftJobArrangerMetaDatabase;
|
|
42
|
+
log: NamirasoftLogMetaDatabase;
|
|
43
|
+
message: NamirasoftMessageMetaDatabase;
|
|
44
|
+
nws_max_mind: NamirasoftNWSMaxMindMetaDatabase;
|
|
45
|
+
nws_region: NamirasoftNWSRegionMetaDatabase;
|
|
46
|
+
notification_sender: NamirasoftNotificationSenderMetaDatabase;
|
|
47
|
+
payment: NamirasoftPaymentMetaDatabase;
|
|
48
|
+
sms_sender: NamirasoftSMSSenderMetaDatabase;
|
|
49
|
+
secret: NamirasoftSecretMetaDatabase;
|
|
50
|
+
workspace: NamirasoftWorkspaceMetaDatabase;
|
|
51
|
+
constructor(manager?: TokenManager, onError?: (error: Error) => void);
|
|
52
|
+
forEachProduct<T>(handler: (meta: NSBaseMetaDatabase<NSBaseServer>) => T | null): T | null;
|
|
53
|
+
getByProductID(product_id: string): NSBaseMetaDatabase<NSBaseServer>;
|
|
56
54
|
getByShortName(short_name: string): {
|
|
57
55
|
product: {
|
|
58
56
|
id: string;
|
|
@@ -62,6 +60,6 @@ export declare class Globe {
|
|
|
62
60
|
logo: string;
|
|
63
61
|
link: string;
|
|
64
62
|
};
|
|
65
|
-
table: NSBaseMetaTable
|
|
63
|
+
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
66
64
|
};
|
|
67
65
|
}
|
package/dist/Globe.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Globe = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
4
|
+
const namirasoft_api_link_1 = require("namirasoft-api-link");
|
|
5
|
+
const namirasoft_api_news_1 = require("namirasoft-api-news");
|
|
6
|
+
const namirasoft_api_product_1 = require("namirasoft-api-product");
|
|
7
|
+
const namirasoft_api_service_1 = require("namirasoft-api-service");
|
|
8
|
+
const namirasoft_api_work_1 = require("namirasoft-api-work");
|
|
9
|
+
const namirasoft_access_1 = require("namirasoft-access");
|
|
10
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
11
|
+
const namirasoft_alarm_1 = require("namirasoft-alarm");
|
|
12
|
+
const namirasoft_balance_1 = require("namirasoft-balance");
|
|
13
|
+
const namirasoft_content_template_1 = require("namirasoft-content-template");
|
|
14
|
+
const namirasoft_data_1 = require("namirasoft-data");
|
|
15
|
+
const namirasoft_email_sender_1 = require("namirasoft-email-sender");
|
|
16
|
+
const namirasoft_field_1 = require("namirasoft-field");
|
|
17
|
+
const namirasoft_history_1 = require("namirasoft-history");
|
|
18
|
+
const namirasoft_job_arranger_1 = require("namirasoft-job-arranger");
|
|
19
|
+
const namirasoft_log_1 = require("namirasoft-log");
|
|
20
|
+
const namirasoft_message_1 = require("namirasoft-message");
|
|
21
|
+
const namirasoft_nws_max_mind_1 = require("namirasoft-nws-max-mind");
|
|
22
|
+
const namirasoft_nws_region_1 = require("namirasoft-nws-region");
|
|
23
|
+
const namirasoft_notification_sender_1 = require("namirasoft-notification-sender");
|
|
24
|
+
const namirasoft_payment_1 = require("namirasoft-payment");
|
|
25
|
+
const namirasoft_sms_sender_1 = require("namirasoft-sms-sender");
|
|
26
|
+
const namirasoft_secret_1 = require("namirasoft-secret");
|
|
27
|
+
const namirasoft_workspace_1 = require("namirasoft-workspace");
|
|
28
28
|
class Globe {
|
|
29
|
-
constructor() {
|
|
30
|
-
this.api_link = new
|
|
31
|
-
this.api_news = new
|
|
32
|
-
this.api_product = new
|
|
33
|
-
this.api_service = new
|
|
34
|
-
this.api_work = new
|
|
35
|
-
this.access = new
|
|
36
|
-
this.account = new
|
|
37
|
-
this.alarm = new
|
|
38
|
-
this.balance = new
|
|
39
|
-
this.content_template = new
|
|
40
|
-
this.data = new
|
|
41
|
-
this.email_sender = new
|
|
42
|
-
this.field = new
|
|
43
|
-
this.history = new
|
|
44
|
-
this.job_arranger = new
|
|
45
|
-
this.log = new
|
|
46
|
-
this.message = new
|
|
47
|
-
this.nws_max_mind = new
|
|
48
|
-
this.nws_region = new
|
|
49
|
-
this.notification_sender = new
|
|
50
|
-
this.payment = new
|
|
51
|
-
this.sms_sender = new
|
|
52
|
-
this.secret = new
|
|
53
|
-
this.workspace = new
|
|
54
|
-
this.api_product.
|
|
55
|
-
return
|
|
29
|
+
constructor(manager, onError) {
|
|
30
|
+
this.api_link = new namirasoft_api_link_1.NamirasoftAPILinkMetaDatabase(onError);
|
|
31
|
+
this.api_news = new namirasoft_api_news_1.NamirasoftAPINewsMetaDatabase(onError);
|
|
32
|
+
this.api_product = new namirasoft_api_product_1.NamirasoftAPIProductMetaDatabase(onError);
|
|
33
|
+
this.api_service = new namirasoft_api_service_1.NamirasoftAPIServiceMetaDatabase(onError);
|
|
34
|
+
this.api_work = new namirasoft_api_work_1.NamirasoftAPIWorkMetaDatabase(onError);
|
|
35
|
+
this.access = new namirasoft_access_1.NamirasoftAccessMetaDatabase(manager, onError);
|
|
36
|
+
this.account = new namirasoft_account_1.NamirasoftAccountMetaDatabase(manager, onError);
|
|
37
|
+
this.alarm = new namirasoft_alarm_1.NamirasoftAlarmMetaDatabase(manager, onError);
|
|
38
|
+
this.balance = new namirasoft_balance_1.NamirasoftBalanceMetaDatabase(manager, onError);
|
|
39
|
+
this.content_template = new namirasoft_content_template_1.NamirasoftContentTemplateMetaDatabase(manager, onError);
|
|
40
|
+
this.data = new namirasoft_data_1.NamirasoftDataMetaDatabase(manager, onError);
|
|
41
|
+
this.email_sender = new namirasoft_email_sender_1.NamirasoftEmailSenderMetaDatabase(manager, onError);
|
|
42
|
+
this.field = new namirasoft_field_1.NamirasoftFieldMetaDatabase(manager, onError);
|
|
43
|
+
this.history = new namirasoft_history_1.NamirasoftHistoryMetaDatabase(manager, onError);
|
|
44
|
+
this.job_arranger = new namirasoft_job_arranger_1.NamirasoftJobArrangerMetaDatabase(manager, onError);
|
|
45
|
+
this.log = new namirasoft_log_1.NamirasoftLogMetaDatabase(manager, onError);
|
|
46
|
+
this.message = new namirasoft_message_1.NamirasoftMessageMetaDatabase(manager, onError);
|
|
47
|
+
this.nws_max_mind = new namirasoft_nws_max_mind_1.NamirasoftNWSMaxMindMetaDatabase(manager, onError);
|
|
48
|
+
this.nws_region = new namirasoft_nws_region_1.NamirasoftNWSRegionMetaDatabase(manager, onError);
|
|
49
|
+
this.notification_sender = new namirasoft_notification_sender_1.NamirasoftNotificationSenderMetaDatabase(manager, onError);
|
|
50
|
+
this.payment = new namirasoft_payment_1.NamirasoftPaymentMetaDatabase(manager, onError);
|
|
51
|
+
this.sms_sender = new namirasoft_sms_sender_1.NamirasoftSMSSenderMetaDatabase(manager, onError);
|
|
52
|
+
this.secret = new namirasoft_secret_1.NamirasoftSecretMetaDatabase(manager, onError);
|
|
53
|
+
this.workspace = new namirasoft_workspace_1.NamirasoftWorkspaceMetaDatabase(manager, onError);
|
|
54
|
+
this.api_product.tables.product.front_end.getViewLink = (id) => {
|
|
55
|
+
return this.getByProductID(id).product.link;
|
|
56
56
|
};
|
|
57
|
-
this.account.
|
|
58
|
-
return this.account.
|
|
57
|
+
this.account.tables.user.front_end.getViewLink = (id) => {
|
|
58
|
+
return this.account.tables.user.front_end.getBaseLink() + "/" + id + "/view/decide";
|
|
59
59
|
};
|
|
60
|
-
this.account.
|
|
61
|
-
return this.account.
|
|
60
|
+
this.account.tables.session.front_end.getViewLink = (id) => {
|
|
61
|
+
return this.account.tables.session.front_end.getBaseLink() + "/" + id + "/view/decide";
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
forEachProduct(handler) {
|
|
65
65
|
for (let key of Object.keys(this)) {
|
|
66
66
|
let obj = this[key];
|
|
67
|
-
if (obj === null || obj === void 0 ? void 0 : obj.
|
|
67
|
+
if (obj === null || obj === void 0 ? void 0 : obj.tables) {
|
|
68
68
|
let ans = handler(obj);
|
|
69
69
|
if (ans)
|
|
70
70
|
return ans;
|
|
@@ -74,7 +74,7 @@ class Globe {
|
|
|
74
74
|
}
|
|
75
75
|
getByProductID(product_id) {
|
|
76
76
|
let ans = this.forEachProduct(m => {
|
|
77
|
-
if (m.
|
|
77
|
+
if (m.product.id === product_id)
|
|
78
78
|
return m;
|
|
79
79
|
return null;
|
|
80
80
|
});
|
|
@@ -84,9 +84,9 @@ class Globe {
|
|
|
84
84
|
}
|
|
85
85
|
getByShortName(short_name) {
|
|
86
86
|
let ans = this.forEachProduct(product => {
|
|
87
|
-
for (let table in product.
|
|
88
|
-
if (product.
|
|
89
|
-
return { product: product.
|
|
87
|
+
for (let table in product.tables)
|
|
88
|
+
if (product.tables[table].uuid.short === short_name)
|
|
89
|
+
return { product: product.product, table: product.tables[table] };
|
|
90
90
|
return null;
|
|
91
91
|
});
|
|
92
92
|
if (ans)
|
|
@@ -95,6 +95,5 @@ class Globe {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
exports.Globe = Globe;
|
|
98
|
-
Globe.namirasoft = new Globe();
|
|
99
98
|
;
|
|
100
99
|
//# sourceMappingURL=Globe.js.map
|
package/dist/Globe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.js","sourceRoot":"","sources":["../src/Globe.ts"],"names":[],"mappings":";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H,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,0CAA0C,UAAU,EAAE,CAAC,CAAC;IAC5E,CAAC;IACD,cAAc,CAAC,UAAkB;QAa7B,IAAI,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;YAEpC,KAAK,IAAI,KAAK,IAAI,OAAO,CAAC,MAAM;gBAC5B,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,UAAU;oBAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,6CAA6C,UAAU,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ;AAzHD,sBAyHC;AAAA,CAAC"}
|
package/dist/check.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const Globe_1 = require("./Globe");
|
|
4
4
|
let keys = {};
|
|
5
|
-
Globe_1.Globe
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
let namirasoft = new Globe_1.Globe();
|
|
6
|
+
namirasoft.forEachProduct(product => {
|
|
7
|
+
for (let key in product.tables) {
|
|
8
|
+
const table = product.tables[key];
|
|
8
9
|
if (table.uuid.short) {
|
|
9
10
|
if (keys[table.uuid.short]) {
|
|
10
11
|
console.log(`Duplicate short name:`);
|
package/dist/check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":";;AACA,mCAAgC;AAEhC,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":";;AACA,mCAAgC;AAEhC,IAAI,IAAI,GAA4D,EAAE,CAAC;AAEvE,IAAI,UAAU,GAAG,IAAI,aAAK,EAAE,CAAC;AAC7B,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;IAEhC,KAAK,IAAI,GAAG,IAAI,OAAO,CAAC,MAAM,EAC9B,CAAC;QACG,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EACpB,CAAC;YACG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAC1B,CAAC;gBACG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;gBACrC,OAAO,CAAC,GAAG,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;YACxG,CAAC;YACD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;QACnC,CAAC;IACL,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,7 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./BaseMap"), exports);
|
|
18
17
|
__exportStar(require("./Globe"), exports);
|
|
19
|
-
__exportStar(require("./maps/index"), exports);
|
|
20
18
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.15",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -18,32 +18,32 @@
|
|
|
18
18
|
"check": "node ./dist/check.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@types/node": "^22.13.
|
|
22
|
-
"namirasoft-access": "^1.4.
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
24
|
-
"namirasoft-alarm": "^1.4.
|
|
25
|
-
"namirasoft-api-link": "^1.4.
|
|
26
|
-
"namirasoft-api-news": "^1.4.
|
|
27
|
-
"namirasoft-api-product": "^1.4.
|
|
28
|
-
"namirasoft-api-service": "^1.4.
|
|
29
|
-
"namirasoft-api-work": "^1.4.
|
|
30
|
-
"namirasoft-balance": "^1.4.
|
|
31
|
-
"namirasoft-content-template": "^1.4.
|
|
32
|
-
"namirasoft-core": "^1.4.
|
|
33
|
-
"namirasoft-data": "^1.4.
|
|
34
|
-
"namirasoft-email-sender": "^1.4.
|
|
35
|
-
"namirasoft-field": "^1.4.
|
|
36
|
-
"namirasoft-history": "^1.4.
|
|
37
|
-
"namirasoft-job-arranger": "^1.4.
|
|
38
|
-
"namirasoft-log": "^1.4.
|
|
39
|
-
"namirasoft-message": "^1.4.
|
|
40
|
-
"namirasoft-notification-sender": "^1.4.
|
|
41
|
-
"namirasoft-nws-max-mind": "^1.4.
|
|
42
|
-
"namirasoft-nws-region": "^1.
|
|
43
|
-
"namirasoft-payment": "^1.4.
|
|
44
|
-
"namirasoft-secret": "^1.4.
|
|
45
|
-
"namirasoft-site": "^1.4.
|
|
46
|
-
"namirasoft-sms-sender": "^1.4.
|
|
47
|
-
"namirasoft-workspace": "^1.4.
|
|
21
|
+
"@types/node": "^22.13.10",
|
|
22
|
+
"namirasoft-access": "^1.4.61",
|
|
23
|
+
"namirasoft-account": "^1.4.68",
|
|
24
|
+
"namirasoft-alarm": "^1.4.22",
|
|
25
|
+
"namirasoft-api-link": "^1.4.13",
|
|
26
|
+
"namirasoft-api-news": "^1.4.7",
|
|
27
|
+
"namirasoft-api-product": "^1.4.19",
|
|
28
|
+
"namirasoft-api-service": "^1.4.9",
|
|
29
|
+
"namirasoft-api-work": "^1.4.9",
|
|
30
|
+
"namirasoft-balance": "^1.4.14",
|
|
31
|
+
"namirasoft-content-template": "^1.4.27",
|
|
32
|
+
"namirasoft-core": "^1.4.53",
|
|
33
|
+
"namirasoft-data": "^1.4.5",
|
|
34
|
+
"namirasoft-email-sender": "^1.4.28",
|
|
35
|
+
"namirasoft-field": "^1.4.21",
|
|
36
|
+
"namirasoft-history": "^1.4.15",
|
|
37
|
+
"namirasoft-job-arranger": "^1.4.50",
|
|
38
|
+
"namirasoft-log": "^1.4.22",
|
|
39
|
+
"namirasoft-message": "^1.4.17",
|
|
40
|
+
"namirasoft-notification-sender": "^1.4.20",
|
|
41
|
+
"namirasoft-nws-max-mind": "^1.4.7",
|
|
42
|
+
"namirasoft-nws-region": "^1.4.7",
|
|
43
|
+
"namirasoft-payment": "^1.4.56",
|
|
44
|
+
"namirasoft-secret": "^1.4.30",
|
|
45
|
+
"namirasoft-site": "^1.4.24",
|
|
46
|
+
"namirasoft-sms-sender": "^1.4.21",
|
|
47
|
+
"namirasoft-workspace": "^1.4.20"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/Globe.ts
CHANGED
|
@@ -1,109 +1,106 @@
|
|
|
1
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { SecretMap } from "./maps/SecretMap";
|
|
27
|
-
import { WorkspaceMap } from "./maps/WorkspaceMap";
|
|
28
|
-
// tables import end
|
|
1
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable, NSBaseServer } from "namirasoft-site";
|
|
2
|
+
import { NamirasoftAPILinkMetaDatabase } from "namirasoft-api-link";
|
|
3
|
+
import { NamirasoftAPINewsMetaDatabase } from "namirasoft-api-news";
|
|
4
|
+
import { NamirasoftAPIProductMetaDatabase } from "namirasoft-api-product";
|
|
5
|
+
import { NamirasoftAPIServiceMetaDatabase } from "namirasoft-api-service";
|
|
6
|
+
import { NamirasoftAPIWorkMetaDatabase } from "namirasoft-api-work";
|
|
7
|
+
import { NamirasoftAccessMetaDatabase } from "namirasoft-access";
|
|
8
|
+
import { NamirasoftAccountMetaDatabase, TokenManager } from "namirasoft-account";
|
|
9
|
+
import { NamirasoftAlarmMetaDatabase } from "namirasoft-alarm";
|
|
10
|
+
import { NamirasoftBalanceMetaDatabase } from "namirasoft-balance";
|
|
11
|
+
import { NamirasoftContentTemplateMetaDatabase } from "namirasoft-content-template";
|
|
12
|
+
import { NamirasoftDataMetaDatabase } from "namirasoft-data";
|
|
13
|
+
import { NamirasoftEmailSenderMetaDatabase } from "namirasoft-email-sender";
|
|
14
|
+
import { NamirasoftFieldMetaDatabase } from "namirasoft-field";
|
|
15
|
+
import { NamirasoftHistoryMetaDatabase } from "namirasoft-history";
|
|
16
|
+
import { NamirasoftJobArrangerMetaDatabase } from "namirasoft-job-arranger";
|
|
17
|
+
import { NamirasoftLogMetaDatabase } from "namirasoft-log";
|
|
18
|
+
import { NamirasoftMessageMetaDatabase } from "namirasoft-message";
|
|
19
|
+
import { NamirasoftNWSMaxMindMetaDatabase } from "namirasoft-nws-max-mind";
|
|
20
|
+
import { NamirasoftNWSRegionMetaDatabase } from "namirasoft-nws-region";
|
|
21
|
+
import { NamirasoftNotificationSenderMetaDatabase } from "namirasoft-notification-sender";
|
|
22
|
+
import { NamirasoftPaymentMetaDatabase } from "namirasoft-payment";
|
|
23
|
+
import { NamirasoftSMSSenderMetaDatabase } from "namirasoft-sms-sender";
|
|
24
|
+
import { NamirasoftSecretMetaDatabase } from "namirasoft-secret";
|
|
25
|
+
import { NamirasoftWorkspaceMetaDatabase } from "namirasoft-workspace";
|
|
29
26
|
|
|
30
27
|
export class Globe
|
|
31
28
|
{
|
|
32
|
-
public static namirasoft: Globe = new Globe();
|
|
33
29
|
// tables define start
|
|
34
|
-
public api_link:
|
|
35
|
-
public api_news:
|
|
36
|
-
public api_product:
|
|
37
|
-
public api_service:
|
|
38
|
-
public api_work:
|
|
39
|
-
public access:
|
|
40
|
-
public account:
|
|
41
|
-
public alarm:
|
|
42
|
-
public balance:
|
|
43
|
-
public content_template:
|
|
44
|
-
public data:
|
|
45
|
-
public email_sender:
|
|
46
|
-
public field:
|
|
47
|
-
public history:
|
|
48
|
-
public job_arranger:
|
|
49
|
-
public log:
|
|
50
|
-
public message:
|
|
51
|
-
public nws_max_mind:
|
|
52
|
-
public nws_region:
|
|
53
|
-
public notification_sender:
|
|
54
|
-
public payment:
|
|
55
|
-
public sms_sender:
|
|
56
|
-
public secret:
|
|
57
|
-
public workspace:
|
|
30
|
+
public api_link: NamirasoftAPILinkMetaDatabase;
|
|
31
|
+
public api_news: NamirasoftAPINewsMetaDatabase;
|
|
32
|
+
public api_product: NamirasoftAPIProductMetaDatabase;
|
|
33
|
+
public api_service: NamirasoftAPIServiceMetaDatabase;
|
|
34
|
+
public api_work: NamirasoftAPIWorkMetaDatabase;
|
|
35
|
+
public access: NamirasoftAccessMetaDatabase;
|
|
36
|
+
public account: NamirasoftAccountMetaDatabase;
|
|
37
|
+
public alarm: NamirasoftAlarmMetaDatabase;
|
|
38
|
+
public balance: NamirasoftBalanceMetaDatabase;
|
|
39
|
+
public content_template: NamirasoftContentTemplateMetaDatabase;
|
|
40
|
+
public data: NamirasoftDataMetaDatabase;
|
|
41
|
+
public email_sender: NamirasoftEmailSenderMetaDatabase;
|
|
42
|
+
public field: NamirasoftFieldMetaDatabase;
|
|
43
|
+
public history: NamirasoftHistoryMetaDatabase;
|
|
44
|
+
public job_arranger: NamirasoftJobArrangerMetaDatabase;
|
|
45
|
+
public log: NamirasoftLogMetaDatabase;
|
|
46
|
+
public message: NamirasoftMessageMetaDatabase;
|
|
47
|
+
public nws_max_mind: NamirasoftNWSMaxMindMetaDatabase;
|
|
48
|
+
public nws_region: NamirasoftNWSRegionMetaDatabase;
|
|
49
|
+
public notification_sender: NamirasoftNotificationSenderMetaDatabase;
|
|
50
|
+
public payment: NamirasoftPaymentMetaDatabase;
|
|
51
|
+
public sms_sender: NamirasoftSMSSenderMetaDatabase;
|
|
52
|
+
public secret: NamirasoftSecretMetaDatabase;
|
|
53
|
+
public workspace: NamirasoftWorkspaceMetaDatabase;
|
|
58
54
|
// tables define end
|
|
59
|
-
constructor()
|
|
55
|
+
constructor(manager?: TokenManager, onError?: (error: Error) => void)
|
|
60
56
|
{
|
|
61
57
|
// tables init start
|
|
62
|
-
this.api_link = new
|
|
63
|
-
this.api_news = new
|
|
64
|
-
this.api_product = new
|
|
65
|
-
this.api_service = new
|
|
66
|
-
this.api_work = new
|
|
67
|
-
this.access = new
|
|
68
|
-
this.account = new
|
|
69
|
-
this.alarm = new
|
|
70
|
-
this.balance = new
|
|
71
|
-
this.content_template = new
|
|
72
|
-
this.data = new
|
|
73
|
-
this.email_sender = new
|
|
74
|
-
this.field = new
|
|
75
|
-
this.history = new
|
|
76
|
-
this.job_arranger = new
|
|
77
|
-
this.log = new
|
|
78
|
-
this.message = new
|
|
79
|
-
this.nws_max_mind = new
|
|
80
|
-
this.nws_region = new
|
|
81
|
-
this.notification_sender = new
|
|
82
|
-
this.payment = new
|
|
83
|
-
this.sms_sender = new
|
|
84
|
-
this.secret = new
|
|
85
|
-
this.workspace = new
|
|
58
|
+
this.api_link = new NamirasoftAPILinkMetaDatabase(onError);
|
|
59
|
+
this.api_news = new NamirasoftAPINewsMetaDatabase(onError);
|
|
60
|
+
this.api_product = new NamirasoftAPIProductMetaDatabase(onError);
|
|
61
|
+
this.api_service = new NamirasoftAPIServiceMetaDatabase(onError);
|
|
62
|
+
this.api_work = new NamirasoftAPIWorkMetaDatabase(onError);
|
|
63
|
+
this.access = new NamirasoftAccessMetaDatabase(manager, onError);
|
|
64
|
+
this.account = new NamirasoftAccountMetaDatabase(manager, onError);
|
|
65
|
+
this.alarm = new NamirasoftAlarmMetaDatabase(manager, onError);
|
|
66
|
+
this.balance = new NamirasoftBalanceMetaDatabase(manager, onError);
|
|
67
|
+
this.content_template = new NamirasoftContentTemplateMetaDatabase(manager, onError);
|
|
68
|
+
this.data = new NamirasoftDataMetaDatabase(manager, onError);
|
|
69
|
+
this.email_sender = new NamirasoftEmailSenderMetaDatabase(manager, onError);
|
|
70
|
+
this.field = new NamirasoftFieldMetaDatabase(manager, onError);
|
|
71
|
+
this.history = new NamirasoftHistoryMetaDatabase(manager, onError);
|
|
72
|
+
this.job_arranger = new NamirasoftJobArrangerMetaDatabase(manager, onError);
|
|
73
|
+
this.log = new NamirasoftLogMetaDatabase(manager, onError);
|
|
74
|
+
this.message = new NamirasoftMessageMetaDatabase(manager, onError);
|
|
75
|
+
this.nws_max_mind = new NamirasoftNWSMaxMindMetaDatabase(manager, onError);
|
|
76
|
+
this.nws_region = new NamirasoftNWSRegionMetaDatabase(manager, onError);
|
|
77
|
+
this.notification_sender = new NamirasoftNotificationSenderMetaDatabase(manager, onError);
|
|
78
|
+
this.payment = new NamirasoftPaymentMetaDatabase(manager, onError);
|
|
79
|
+
this.sms_sender = new NamirasoftSMSSenderMetaDatabase(manager, onError);
|
|
80
|
+
this.secret = new NamirasoftSecretMetaDatabase(manager, onError);
|
|
81
|
+
this.workspace = new NamirasoftWorkspaceMetaDatabase(manager, onError);
|
|
82
|
+
|
|
86
83
|
// tables init end
|
|
87
84
|
|
|
88
|
-
this.api_product.
|
|
85
|
+
this.api_product.tables.product.front_end.getViewLink = (id: string) =>
|
|
89
86
|
{
|
|
90
|
-
return
|
|
87
|
+
return this.getByProductID(id).product.link;
|
|
91
88
|
};
|
|
92
|
-
this.account.
|
|
89
|
+
this.account.tables.user.front_end.getViewLink = (id: string) =>
|
|
93
90
|
{
|
|
94
|
-
return this.account.
|
|
91
|
+
return this.account.tables.user.front_end.getBaseLink() + "/" + id + "/view/decide";
|
|
95
92
|
};
|
|
96
|
-
this.account.
|
|
93
|
+
this.account.tables.session.front_end.getViewLink = (id: string) =>
|
|
97
94
|
{
|
|
98
|
-
return this.account.
|
|
95
|
+
return this.account.tables.session.front_end.getBaseLink() + "/" + id + "/view/decide";
|
|
99
96
|
};
|
|
100
97
|
}
|
|
101
|
-
forEachProduct<T>(handler: (
|
|
98
|
+
forEachProduct<T>(handler: (meta: NSBaseMetaDatabase<NSBaseServer>) => T | null): T | null
|
|
102
99
|
{
|
|
103
100
|
for (let key of Object.keys(this))
|
|
104
101
|
{
|
|
105
102
|
let obj = (this as any)[key];
|
|
106
|
-
if (obj?.
|
|
103
|
+
if (obj?.tables)
|
|
107
104
|
{
|
|
108
105
|
let ans = handler(obj);
|
|
109
106
|
if (ans)
|
|
@@ -112,11 +109,11 @@ export class Globe
|
|
|
112
109
|
}
|
|
113
110
|
return null;
|
|
114
111
|
}
|
|
115
|
-
getByProductID(product_id: string):
|
|
112
|
+
getByProductID(product_id: string): NSBaseMetaDatabase<NSBaseServer>
|
|
116
113
|
{
|
|
117
114
|
let ans = this.forEachProduct(m =>
|
|
118
115
|
{
|
|
119
|
-
if (m.
|
|
116
|
+
if (m.product.id === product_id)
|
|
120
117
|
return m;
|
|
121
118
|
return null;
|
|
122
119
|
});
|
|
@@ -134,14 +131,14 @@ export class Globe
|
|
|
134
131
|
logo: string;
|
|
135
132
|
link: string;
|
|
136
133
|
};
|
|
137
|
-
table: NSBaseMetaTable
|
|
134
|
+
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
138
135
|
}
|
|
139
136
|
{
|
|
140
137
|
let ans = this.forEachProduct(product =>
|
|
141
138
|
{
|
|
142
|
-
for (let table in product.
|
|
143
|
-
if (product.
|
|
144
|
-
return { product: product.
|
|
139
|
+
for (let table in product.tables)
|
|
140
|
+
if (product.tables[table].uuid.short === short_name)
|
|
141
|
+
return { product: product.product, table: product.tables[table] };
|
|
145
142
|
return null;
|
|
146
143
|
});
|
|
147
144
|
if (ans)
|
package/src/check.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { NSBaseMetaTable } from "namirasoft-site";
|
|
1
|
+
import { NSBaseMetaTable, NSBaseServer } from "namirasoft-site";
|
|
2
2
|
import { Globe } from "./Globe";
|
|
3
3
|
|
|
4
|
-
let keys: { [short: string]: NSBaseMetaTable } = {};
|
|
5
|
-
|
|
4
|
+
let keys: { [short: string]: NSBaseMetaTable<NSBaseServer, any> } = {};
|
|
5
|
+
|
|
6
|
+
let namirasoft = new Globe();
|
|
7
|
+
namirasoft.forEachProduct(product =>
|
|
6
8
|
{
|
|
7
|
-
for (let key in product.
|
|
9
|
+
for (let key in product.tables)
|
|
8
10
|
{
|
|
9
|
-
const table = product.
|
|
11
|
+
const table = product.tables[key];
|
|
10
12
|
if (table.uuid.short)
|
|
11
13
|
{
|
|
12
14
|
if (keys[table.uuid.short])
|
package/src/index.ts
CHANGED
package/src/BaseMap.ts
DELETED
package/src/maps/APILinkMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
package/src/maps/APINewsMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
package/src/maps/APIWorkMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftAPIWorkMetaDatabase, NamirasoftAPIWorkServer } from "namirasoft-api-work";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class APIWorkMap extends BaseMap<NamirasoftAPIWorkMetaDatabase, NamirasoftAPIWorkServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftAPIWorkMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/AccessMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftAccessMetaDatabase, NamirasoftAccessServer } from "namirasoft-access";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class AccessMap extends BaseMap<NamirasoftAccessMetaDatabase, NamirasoftAccessServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftAccessMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/AccountMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftAccountMetaDatabase, NamirasoftAccountServer } from "namirasoft-account";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class AccountMap extends BaseMap<NamirasoftAccountMetaDatabase, NamirasoftAccountServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftAccountMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/AlarmMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftAlarmMetaDatabase, NamirasoftAlarmServer } from "namirasoft-alarm";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class AlarmMap extends BaseMap<NamirasoftAlarmMetaDatabase, NamirasoftAlarmServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftAlarmMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/BalanceMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftBalanceMetaDatabase, NamirasoftBalanceServer } from "namirasoft-balance";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class BalanceMap extends BaseMap<NamirasoftBalanceMetaDatabase, NamirasoftBalanceServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftBalanceMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftContentTemplateMetaDatabase, NamirasoftContentTemplateServer } from "namirasoft-content-template";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class ContentTemplateMap extends BaseMap<NamirasoftContentTemplateMetaDatabase, NamirasoftContentTemplateServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftContentTemplateMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/DataMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftDataMetaDatabase, NamirasoftDataServer } from "namirasoft-data";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class DataMap extends BaseMap<NamirasoftDataMetaDatabase, NamirasoftDataServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftDataMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftEmailSenderMetaDatabase, NamirasoftEmailSenderServer } from "namirasoft-email-sender";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class EmailSenderMap extends BaseMap<NamirasoftEmailSenderMetaDatabase, NamirasoftEmailSenderServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftEmailSenderMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/FieldMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftFieldMetaDatabase, NamirasoftFieldServer } from "namirasoft-field";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class FieldMap extends BaseMap<NamirasoftFieldMetaDatabase, NamirasoftFieldServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftFieldMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/HistoryMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftHistoryMetaDatabase, NamirasoftHistoryServer } from "namirasoft-history";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class HistoryMap extends BaseMap<NamirasoftHistoryMetaDatabase, NamirasoftHistoryServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftHistoryMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftJobArrangerMetaDatabase, NamirasoftJobArrangerServer } from "namirasoft-job-arranger";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class JobArrangerMap extends BaseMap<NamirasoftJobArrangerMetaDatabase, NamirasoftJobArrangerServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftJobArrangerMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/LogMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftLogMetaDatabase, NamirasoftLogServer } from "namirasoft-log";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class LogMap extends BaseMap<NamirasoftLogMetaDatabase, NamirasoftLogServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftLogMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/MessageMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftMessageMetaDatabase, NamirasoftMessageServer } from "namirasoft-message";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class MessageMap extends BaseMap<NamirasoftMessageMetaDatabase, NamirasoftMessageServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftMessageMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftNWSMaxMindMetaDatabase, NamirasoftNWSMaxMindServer } from "namirasoft-nws-max-mind";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class NWSMaxMindMap extends BaseMap<NamirasoftNWSMaxMindMetaDatabase, NamirasoftNWSMaxMindServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftNWSMaxMindMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/NWSRegionMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftNWSRegionMetaDatabase, NamirasoftNWSRegionServer } from "namirasoft-nws-region";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class NWSRegionMap extends BaseMap<NamirasoftNWSRegionMetaDatabase, NamirasoftNWSRegionServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftNWSRegionMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftNotificationSenderMetaDatabase, NamirasoftNotificationSenderServer } from "namirasoft-notification-sender";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class NotificationSenderMap extends BaseMap<NamirasoftNotificationSenderMetaDatabase, NamirasoftNotificationSenderServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftNotificationSenderMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/PaymentMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftPaymentMetaDatabase, NamirasoftPaymentServer } from "namirasoft-payment";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class PaymentMap extends BaseMap<NamirasoftPaymentMetaDatabase, NamirasoftPaymentServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftPaymentMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/SMSSenderMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftSMSSenderMetaDatabase, NamirasoftSMSSenderServer } from "namirasoft-sms-sender";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class SMSSenderMap extends BaseMap<NamirasoftSMSSenderMetaDatabase, NamirasoftSMSSenderServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftSMSSenderMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/SecretMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftSecretMetaDatabase, NamirasoftSecretServer } from "namirasoft-secret";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class SecretMap extends BaseMap<NamirasoftSecretMetaDatabase, NamirasoftSecretServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftSecretMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/WorkspaceMap.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NamirasoftWorkspaceMetaDatabase, NamirasoftWorkspaceServer } from "namirasoft-workspace";
|
|
2
|
-
import { BaseMap } from "../BaseMap";
|
|
3
|
-
|
|
4
|
-
export class WorkspaceMap extends BaseMap<NamirasoftWorkspaceMetaDatabase, NamirasoftWorkspaceServer>
|
|
5
|
-
{
|
|
6
|
-
constructor()
|
|
7
|
-
{
|
|
8
|
-
super(new NamirasoftWorkspaceMetaDatabase());
|
|
9
|
-
}
|
|
10
|
-
};
|
package/src/maps/index.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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";
|