namirasoft-site 1.4.35 → 1.4.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/NSBaseMetaDatabase.ts +68 -68
- package/src/NSBaseMetaTable.ts +74 -74
- package/src/NSBaseMetaTable_Backend.ts +6 -6
- package/src/NSBaseMetaTable_Frontend.ts +32 -32
- package/src/NSBaseServer.ts +46 -46
- package/src/NSCookiesHeader.ts +2 -2
- package/src/NSHeader.ts +9 -9
- package/src/NSNameParser.ts +143 -143
- package/src/NSReqHeader.ts +6 -6
- package/src/NSResHeader.ts +6 -6
- package/src/index.ts +8 -9
- package/dist/NameParser.d.ts +0 -22
- package/dist/NameParser.js +0 -67
- package/dist/NameParser.js.map +0 -1
- package/dist/ProductUUID.d.ts +0 -53
- package/dist/ProductUUID.js +0 -59
- package/dist/ProductUUID.js.map +0 -1
- package/src/ProductUUID.ts +0 -54
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -22,5 +22,4 @@ __exportStar(require("./NSHeader"), exports);
|
|
|
22
22
|
__exportStar(require("./NSNameParser"), exports);
|
|
23
23
|
__exportStar(require("./NSReqHeader"), exports);
|
|
24
24
|
__exportStar(require("./NSResHeader"), exports);
|
|
25
|
-
__exportStar(require("./ProductUUID"), exports);
|
|
26
25
|
//# 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,iDAA+B;AAC/B,uDAAqC;AACrC,oDAAkC;AAClC,oDAAkC;AAClC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC;AACrC,oDAAkC;AAClC,oDAAkC;AAClC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B"}
|
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.37",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"axios": "^1.
|
|
21
|
-
"namirasoft-core": "^1.4.
|
|
20
|
+
"axios": "^1.9.0",
|
|
21
|
+
"namirasoft-core": "^1.4.71"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { BaseMetaDatabase } from "namirasoft-core";
|
|
2
|
-
import { NSBaseMetaTable } from "./NSBaseMetaTable";
|
|
3
|
-
import { NSBaseServer } from "./NSBaseServer";
|
|
4
|
-
|
|
5
|
-
export abstract class NSBaseMetaDatabase<Server extends NSBaseServer> extends BaseMetaDatabase
|
|
6
|
-
{
|
|
7
|
-
public static getServerBaseURL(product_name: string): string
|
|
8
|
-
{
|
|
9
|
-
throw new Error(`NSBaseMetaDatabase.getServerBaseURL was not overriden. Requested: ${product_name}`);
|
|
10
|
-
}
|
|
11
|
-
override tables: { [name: string]: NSBaseMetaTable<Server, any>; } = {};
|
|
12
|
-
public product: {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
headline: string;
|
|
16
|
-
description: string;
|
|
17
|
-
logo: string;
|
|
18
|
-
link: string;
|
|
19
|
-
};
|
|
20
|
-
public abstract getServer(): Server;
|
|
21
|
-
constructor(product: {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
headline: string;
|
|
25
|
-
description: string;
|
|
26
|
-
logo: string;
|
|
27
|
-
link: string;
|
|
28
|
-
})
|
|
29
|
-
{
|
|
30
|
-
super();
|
|
31
|
-
this.product = product;
|
|
32
|
-
}
|
|
33
|
-
getByShortNameOrNull(short_name: string):
|
|
34
|
-
{
|
|
35
|
-
product: {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
headline: string;
|
|
39
|
-
description: string;
|
|
40
|
-
logo: string;
|
|
41
|
-
link: string;
|
|
42
|
-
};
|
|
43
|
-
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
44
|
-
} | null
|
|
45
|
-
{
|
|
46
|
-
for (let table in this.tables)
|
|
47
|
-
if (this.tables[table].uuid.short === short_name)
|
|
48
|
-
return { product: this.product, table: this.tables[table] };
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
getByShortName(short_name: string):
|
|
52
|
-
{
|
|
53
|
-
product: {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
headline: string;
|
|
57
|
-
description: string;
|
|
58
|
-
logo: string;
|
|
59
|
-
link: string;
|
|
60
|
-
};
|
|
61
|
-
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
62
|
-
}
|
|
63
|
-
{
|
|
64
|
-
let ans = this.getByShortNameOrNull(short_name);
|
|
65
|
-
if (ans)
|
|
66
|
-
return ans;
|
|
67
|
-
throw new Error(`Result could not be found for short name: ${short_name}`);
|
|
68
|
-
}
|
|
1
|
+
import { BaseMetaDatabase } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaTable } from "./NSBaseMetaTable";
|
|
3
|
+
import { NSBaseServer } from "./NSBaseServer";
|
|
4
|
+
|
|
5
|
+
export abstract class NSBaseMetaDatabase<Server extends NSBaseServer> extends BaseMetaDatabase
|
|
6
|
+
{
|
|
7
|
+
public static getServerBaseURL(product_name: string): string
|
|
8
|
+
{
|
|
9
|
+
throw new Error(`NSBaseMetaDatabase.getServerBaseURL was not overriden. Requested: ${product_name}`);
|
|
10
|
+
}
|
|
11
|
+
override tables: { [name: string]: NSBaseMetaTable<Server, any>; } = {};
|
|
12
|
+
public product: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
headline: string;
|
|
16
|
+
description: string;
|
|
17
|
+
logo: string;
|
|
18
|
+
link: string;
|
|
19
|
+
};
|
|
20
|
+
public abstract getServer(): Server;
|
|
21
|
+
constructor(product: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
headline: string;
|
|
25
|
+
description: string;
|
|
26
|
+
logo: string;
|
|
27
|
+
link: string;
|
|
28
|
+
})
|
|
29
|
+
{
|
|
30
|
+
super();
|
|
31
|
+
this.product = product;
|
|
32
|
+
}
|
|
33
|
+
getByShortNameOrNull(short_name: string):
|
|
34
|
+
{
|
|
35
|
+
product: {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
headline: string;
|
|
39
|
+
description: string;
|
|
40
|
+
logo: string;
|
|
41
|
+
link: string;
|
|
42
|
+
};
|
|
43
|
+
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
44
|
+
} | null
|
|
45
|
+
{
|
|
46
|
+
for (let table in this.tables)
|
|
47
|
+
if (this.tables[table].uuid.short === short_name)
|
|
48
|
+
return { product: this.product, table: this.tables[table] };
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
getByShortName(short_name: string):
|
|
52
|
+
{
|
|
53
|
+
product: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
headline: string;
|
|
57
|
+
description: string;
|
|
58
|
+
logo: string;
|
|
59
|
+
link: string;
|
|
60
|
+
};
|
|
61
|
+
table: NSBaseMetaTable<NSBaseServer, any>;
|
|
62
|
+
}
|
|
63
|
+
{
|
|
64
|
+
let ans = this.getByShortNameOrNull(short_name);
|
|
65
|
+
if (ans)
|
|
66
|
+
return ans;
|
|
67
|
+
throw new Error(`Result could not be found for short name: ${short_name}`);
|
|
68
|
+
}
|
|
69
69
|
};
|
package/src/NSBaseMetaTable.ts
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { BaseMetaTable, BaseUUID, NamingConvention } from "namirasoft-core";
|
|
2
|
-
import { NSBaseMetaTable_Frontend } from "./NSBaseMetaTable_Frontend";
|
|
3
|
-
import { NSBaseMetaDatabase } from "./NSBaseMetaDatabase";
|
|
4
|
-
import { NSBaseMetaTable_Backend } from "./NSBaseMetaTable_Backend";
|
|
5
|
-
import { NSBaseServer } from "./NSBaseServer";
|
|
6
|
-
|
|
7
|
-
export abstract class NSBaseMetaTable<Server extends NSBaseServer, Row> extends BaseMetaTable
|
|
8
|
-
{
|
|
9
|
-
private static cft_tables = ["category", "field", "tag"];
|
|
10
|
-
static getTableAndCFTsIfExists(naming: NamingConvention, tables: string[], name: string): string[]
|
|
11
|
-
{
|
|
12
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
13
|
-
tables = tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
14
|
-
return NSBaseMetaTable.getTableAndCFTs(naming, name).filter(t => tables.includes(t));
|
|
15
|
-
}
|
|
16
|
-
static getTableAndCFTs(naming: NamingConvention, name: string): string[]
|
|
17
|
-
{
|
|
18
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
19
|
-
return [name, ...NSBaseMetaTable.getCFTTables(naming, name)];
|
|
20
|
-
}
|
|
21
|
-
static getCFTTablesIfExists(naming: NamingConvention, tables: string[], name: string): string[]
|
|
22
|
-
{
|
|
23
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
24
|
-
tables = tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
25
|
-
return NSBaseMetaTable.getCFTTables(naming, name).filter(t => tables.includes(t));
|
|
26
|
-
}
|
|
27
|
-
static getCFTTables(naming: NamingConvention, name: string): string[]
|
|
28
|
-
{
|
|
29
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
30
|
-
let tables = NSBaseMetaTable.cft_tables.map(cft => name + "_" + cft);
|
|
31
|
-
return tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
32
|
-
}
|
|
33
|
-
static HasCFTTable(naming: NamingConvention, tables: string[], name: string): boolean
|
|
34
|
-
{
|
|
35
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
36
|
-
tables = tables.map(t => NamingConvention.auto.convert(t, naming))
|
|
37
|
-
return NSBaseMetaTable.getCFTTables(naming, name).some(t => tables.includes(t));
|
|
38
|
-
}
|
|
39
|
-
static IsCFTTable(naming: NamingConvention, name: string): boolean
|
|
40
|
-
{
|
|
41
|
-
name = NamingConvention.auto.convert(name, naming);
|
|
42
|
-
for (let i = 0; i < NSBaseMetaTable.cft_tables.length; i++)
|
|
43
|
-
{
|
|
44
|
-
let table = NSBaseMetaTable.cft_tables[i];
|
|
45
|
-
table = NamingConvention.auto.convert(table, naming);
|
|
46
|
-
if (name !== table)
|
|
47
|
-
if (name.endsWith("_" + table))
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
override database: NSBaseMetaDatabase<Server>;
|
|
54
|
-
public uuid: BaseUUID;
|
|
55
|
-
public front_end: NSBaseMetaTable_Frontend;
|
|
56
|
-
public back_end: NSBaseMetaTable_Backend<Row>;
|
|
57
|
-
constructor(database: NSBaseMetaDatabase<Server>, name: string, text: string, uuid: BaseUUID)
|
|
58
|
-
{
|
|
59
|
-
super(database, name, text);
|
|
60
|
-
this.database = database;
|
|
61
|
-
this.uuid = uuid;
|
|
62
|
-
this.front_end = new NSBaseMetaTable_Frontend(this, name);
|
|
63
|
-
this.back_end = new NSBaseMetaTable_Backend<Row>();
|
|
64
|
-
}
|
|
65
|
-
isCFTTable(): boolean
|
|
66
|
-
{
|
|
67
|
-
return NSBaseMetaTable.IsCFTTable(NamingConvention.lower_case_dash, this.name);
|
|
68
|
-
}
|
|
69
|
-
hasFieldTables(): boolean
|
|
70
|
-
{
|
|
71
|
-
if (this.database)
|
|
72
|
-
return NSBaseMetaTable.HasCFTTable(NamingConvention.lower_case_dash, Object.keys(this.database.tables), this.name);
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
1
|
+
import { BaseMetaTable, BaseUUID, NamingConvention } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaTable_Frontend } from "./NSBaseMetaTable_Frontend";
|
|
3
|
+
import { NSBaseMetaDatabase } from "./NSBaseMetaDatabase";
|
|
4
|
+
import { NSBaseMetaTable_Backend } from "./NSBaseMetaTable_Backend";
|
|
5
|
+
import { NSBaseServer } from "./NSBaseServer";
|
|
6
|
+
|
|
7
|
+
export abstract class NSBaseMetaTable<Server extends NSBaseServer, Row> extends BaseMetaTable
|
|
8
|
+
{
|
|
9
|
+
private static cft_tables = ["category", "field", "tag"];
|
|
10
|
+
static getTableAndCFTsIfExists(naming: NamingConvention, tables: string[], name: string): string[]
|
|
11
|
+
{
|
|
12
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
13
|
+
tables = tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
14
|
+
return NSBaseMetaTable.getTableAndCFTs(naming, name).filter(t => tables.includes(t));
|
|
15
|
+
}
|
|
16
|
+
static getTableAndCFTs(naming: NamingConvention, name: string): string[]
|
|
17
|
+
{
|
|
18
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
19
|
+
return [name, ...NSBaseMetaTable.getCFTTables(naming, name)];
|
|
20
|
+
}
|
|
21
|
+
static getCFTTablesIfExists(naming: NamingConvention, tables: string[], name: string): string[]
|
|
22
|
+
{
|
|
23
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
24
|
+
tables = tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
25
|
+
return NSBaseMetaTable.getCFTTables(naming, name).filter(t => tables.includes(t));
|
|
26
|
+
}
|
|
27
|
+
static getCFTTables(naming: NamingConvention, name: string): string[]
|
|
28
|
+
{
|
|
29
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
30
|
+
let tables = NSBaseMetaTable.cft_tables.map(cft => name + "_" + cft);
|
|
31
|
+
return tables.map(t => NamingConvention.auto.convert(t, naming));
|
|
32
|
+
}
|
|
33
|
+
static HasCFTTable(naming: NamingConvention, tables: string[], name: string): boolean
|
|
34
|
+
{
|
|
35
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
36
|
+
tables = tables.map(t => NamingConvention.auto.convert(t, naming))
|
|
37
|
+
return NSBaseMetaTable.getCFTTables(naming, name).some(t => tables.includes(t));
|
|
38
|
+
}
|
|
39
|
+
static IsCFTTable(naming: NamingConvention, name: string): boolean
|
|
40
|
+
{
|
|
41
|
+
name = NamingConvention.auto.convert(name, naming);
|
|
42
|
+
for (let i = 0; i < NSBaseMetaTable.cft_tables.length; i++)
|
|
43
|
+
{
|
|
44
|
+
let table = NSBaseMetaTable.cft_tables[i];
|
|
45
|
+
table = NamingConvention.auto.convert(table, naming);
|
|
46
|
+
if (name !== table)
|
|
47
|
+
if (name.endsWith("_" + table))
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
override database: NSBaseMetaDatabase<Server>;
|
|
54
|
+
public uuid: BaseUUID;
|
|
55
|
+
public front_end: NSBaseMetaTable_Frontend;
|
|
56
|
+
public back_end: NSBaseMetaTable_Backend<Row>;
|
|
57
|
+
constructor(database: NSBaseMetaDatabase<Server>, name: string, text: string, uuid: BaseUUID)
|
|
58
|
+
{
|
|
59
|
+
super(database, name, text);
|
|
60
|
+
this.database = database;
|
|
61
|
+
this.uuid = uuid;
|
|
62
|
+
this.front_end = new NSBaseMetaTable_Frontend(this, name);
|
|
63
|
+
this.back_end = new NSBaseMetaTable_Backend<Row>();
|
|
64
|
+
}
|
|
65
|
+
isCFTTable(): boolean
|
|
66
|
+
{
|
|
67
|
+
return NSBaseMetaTable.IsCFTTable(NamingConvention.lower_case_dash, this.name);
|
|
68
|
+
}
|
|
69
|
+
hasFieldTables(): boolean
|
|
70
|
+
{
|
|
71
|
+
if (this.database)
|
|
72
|
+
return NSBaseMetaTable.HasCFTTable(NamingConvention.lower_case_dash, Object.keys(this.database.tables), this.name);
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FilterItem, SortItem } from "namirasoft-core";
|
|
2
|
-
|
|
3
|
-
export class NSBaseMetaTable_Backend<Row>
|
|
4
|
-
{
|
|
5
|
-
get?: (id: string) => Promise<Row>;
|
|
6
|
-
list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{ rows: Row[], count: number }>;
|
|
1
|
+
import { FilterItem, SortItem } from "namirasoft-core";
|
|
2
|
+
|
|
3
|
+
export class NSBaseMetaTable_Backend<Row>
|
|
4
|
+
{
|
|
5
|
+
get?: (id: string) => Promise<Row>;
|
|
6
|
+
list?: (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) => Promise<{ rows: Row[], count: number }>;
|
|
7
7
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { NamingConvention } from "namirasoft-core";
|
|
2
|
-
import { NSBaseMetaTable } from "./NSBaseMetaTable";
|
|
3
|
-
|
|
4
|
-
export class NSBaseMetaTable_Frontend
|
|
5
|
-
{
|
|
6
|
-
private table: NSBaseMetaTable<any, any>;
|
|
7
|
-
private base: string;
|
|
8
|
-
constructor(table: NSBaseMetaTable<any, any>, name: string)
|
|
9
|
-
{
|
|
10
|
-
this.table = table;
|
|
11
|
-
this.base = NamingConvention.lower_case_underscore.convert(name, NamingConvention.lower_case_slash)
|
|
12
|
-
}
|
|
13
|
-
public getBaseLink(): string
|
|
14
|
-
{
|
|
15
|
-
return this.table.database.product.link + "/" + this.base;
|
|
16
|
-
}
|
|
17
|
-
public getListLink(): string
|
|
18
|
-
{
|
|
19
|
-
return this.getBaseLink() + "/list";
|
|
20
|
-
}
|
|
21
|
-
public getNewLink(): string
|
|
22
|
-
{
|
|
23
|
-
return this.getBaseLink() + "/new";
|
|
24
|
-
}
|
|
25
|
-
public getViewLink(id: string): string
|
|
26
|
-
{
|
|
27
|
-
return this.getBaseLink() + "/" + id + "/view";
|
|
28
|
-
}
|
|
29
|
-
public getUpdateLink(id: string): string
|
|
30
|
-
{
|
|
31
|
-
return this.getBaseLink() + "/" + id + "/edit";
|
|
32
|
-
}
|
|
1
|
+
import { NamingConvention } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaTable } from "./NSBaseMetaTable";
|
|
3
|
+
|
|
4
|
+
export class NSBaseMetaTable_Frontend
|
|
5
|
+
{
|
|
6
|
+
private table: NSBaseMetaTable<any, any>;
|
|
7
|
+
private base: string;
|
|
8
|
+
constructor(table: NSBaseMetaTable<any, any>, name: string)
|
|
9
|
+
{
|
|
10
|
+
this.table = table;
|
|
11
|
+
this.base = NamingConvention.lower_case_underscore.convert(name, NamingConvention.lower_case_slash)
|
|
12
|
+
}
|
|
13
|
+
public getBaseLink(): string
|
|
14
|
+
{
|
|
15
|
+
return this.table.database.product.link + "/" + this.base;
|
|
16
|
+
}
|
|
17
|
+
public getListLink(): string
|
|
18
|
+
{
|
|
19
|
+
return this.getBaseLink() + "/list";
|
|
20
|
+
}
|
|
21
|
+
public getNewLink(): string
|
|
22
|
+
{
|
|
23
|
+
return this.getBaseLink() + "/new";
|
|
24
|
+
}
|
|
25
|
+
public getViewLink(id: string): string
|
|
26
|
+
{
|
|
27
|
+
return this.getBaseLink() + "/" + id + "/view";
|
|
28
|
+
}
|
|
29
|
+
public getUpdateLink(id: string): string
|
|
30
|
+
{
|
|
31
|
+
return this.getBaseLink() + "/" + id + "/edit";
|
|
32
|
+
}
|
|
33
33
|
};
|
package/src/NSBaseServer.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { BaseServer } from "namirasoft-core";
|
|
2
|
-
import { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
3
|
-
import { NSHeader } from "./NSHeader";
|
|
4
|
-
|
|
5
|
-
export abstract class NSBaseServer extends BaseServer
|
|
6
|
-
{
|
|
7
|
-
static onBeforeRequest_SetVersion<ReqData>(version: string, config?: AxiosRequestConfig<ReqData>): void
|
|
8
|
-
{
|
|
9
|
-
let header = NSHeader.req.VERSION();
|
|
10
|
-
if (config?.headers)
|
|
11
|
-
config.headers[header] = version;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static onBeforeRequest_GetVersion<ReqData>(res?: AxiosResponse<ReqData>): string
|
|
15
|
-
{
|
|
16
|
-
let header = NSHeader.req.VERSION();
|
|
17
|
-
if (res?.headers)
|
|
18
|
-
return res.headers[header];
|
|
19
|
-
return "";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
private version: string;
|
|
23
|
-
|
|
24
|
-
public backend: {
|
|
25
|
-
version: string
|
|
26
|
-
} = { version: "" };
|
|
27
|
-
|
|
28
|
-
constructor(base_url: string, version: string)
|
|
29
|
-
{
|
|
30
|
-
super(base_url);
|
|
31
|
-
this.version = version;
|
|
32
|
-
|
|
33
|
-
this.NSOnBeforeRequest = this.NSOnBeforeRequest.bind(this);
|
|
34
|
-
this.NSOnAfterRequest = this.NSOnAfterRequest.bind(this);
|
|
35
|
-
|
|
36
|
-
this.addOnBeforeRequest(this.NSOnBeforeRequest);
|
|
37
|
-
this.addOnAfterRequest(this.NSOnAfterRequest);
|
|
38
|
-
}
|
|
39
|
-
private NSOnBeforeRequest<ReqData = any>(_: string, config?: AxiosRequestConfig<ReqData> | undefined): void
|
|
40
|
-
{
|
|
41
|
-
NSBaseServer.onBeforeRequest_SetVersion(this.version, config);
|
|
42
|
-
}
|
|
43
|
-
private NSOnAfterRequest<ResData = any>(_: string, res: AxiosResponse<ResData, any>): void
|
|
44
|
-
{
|
|
45
|
-
this.backend.version = NSBaseServer.onBeforeRequest_GetVersion(res);
|
|
46
|
-
}
|
|
1
|
+
import { BaseServer } from "namirasoft-core";
|
|
2
|
+
import { AxiosRequestConfig, AxiosResponse } from "axios";
|
|
3
|
+
import { NSHeader } from "./NSHeader";
|
|
4
|
+
|
|
5
|
+
export abstract class NSBaseServer extends BaseServer
|
|
6
|
+
{
|
|
7
|
+
static onBeforeRequest_SetVersion<ReqData>(version: string, config?: AxiosRequestConfig<ReqData>): void
|
|
8
|
+
{
|
|
9
|
+
let header = NSHeader.req.VERSION();
|
|
10
|
+
if (config?.headers)
|
|
11
|
+
config.headers[header] = version;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static onBeforeRequest_GetVersion<ReqData>(res?: AxiosResponse<ReqData>): string
|
|
15
|
+
{
|
|
16
|
+
let header = NSHeader.req.VERSION();
|
|
17
|
+
if (res?.headers)
|
|
18
|
+
return res.headers[header];
|
|
19
|
+
return "";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
private version: string;
|
|
23
|
+
|
|
24
|
+
public backend: {
|
|
25
|
+
version: string
|
|
26
|
+
} = { version: "" };
|
|
27
|
+
|
|
28
|
+
constructor(base_url: string, version: string)
|
|
29
|
+
{
|
|
30
|
+
super(base_url);
|
|
31
|
+
this.version = version;
|
|
32
|
+
|
|
33
|
+
this.NSOnBeforeRequest = this.NSOnBeforeRequest.bind(this);
|
|
34
|
+
this.NSOnAfterRequest = this.NSOnAfterRequest.bind(this);
|
|
35
|
+
|
|
36
|
+
this.addOnBeforeRequest(this.NSOnBeforeRequest);
|
|
37
|
+
this.addOnAfterRequest(this.NSOnAfterRequest);
|
|
38
|
+
}
|
|
39
|
+
private NSOnBeforeRequest<ReqData = any>(_: string, config?: AxiosRequestConfig<ReqData> | undefined): void
|
|
40
|
+
{
|
|
41
|
+
NSBaseServer.onBeforeRequest_SetVersion(this.version, config);
|
|
42
|
+
}
|
|
43
|
+
private NSOnAfterRequest<ResData = any>(_: string, res: AxiosResponse<ResData, any>): void
|
|
44
|
+
{
|
|
45
|
+
this.backend.version = NSBaseServer.onBeforeRequest_GetVersion(res);
|
|
46
|
+
}
|
|
47
47
|
};
|
package/src/NSCookiesHeader.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export class NSCookiesHeader
|
|
2
|
-
{
|
|
1
|
+
export class NSCookiesHeader
|
|
2
|
+
{
|
|
3
3
|
}
|
package/src/NSHeader.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NSCookiesHeader } from "./NSCookiesHeader";
|
|
2
|
-
import { NSReqHeader } from "./NSReqHeader";
|
|
3
|
-
import { NSResHeader } from "./NSResHeader";
|
|
4
|
-
|
|
5
|
-
export class NSHeader
|
|
6
|
-
{
|
|
7
|
-
static cookies: NSCookiesHeader = new NSCookiesHeader();
|
|
8
|
-
static req: NSReqHeader = new NSReqHeader();
|
|
9
|
-
static res: NSResHeader = new NSResHeader();
|
|
1
|
+
import { NSCookiesHeader } from "./NSCookiesHeader";
|
|
2
|
+
import { NSReqHeader } from "./NSReqHeader";
|
|
3
|
+
import { NSResHeader } from "./NSResHeader";
|
|
4
|
+
|
|
5
|
+
export class NSHeader
|
|
6
|
+
{
|
|
7
|
+
static cookies: NSCookiesHeader = new NSCookiesHeader();
|
|
8
|
+
static req: NSReqHeader = new NSReqHeader();
|
|
9
|
+
static res: NSResHeader = new NSResHeader();
|
|
10
10
|
}
|
package/src/NSNameParser.ts
CHANGED
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { NamingConvention } from "namirasoft-core";
|
|
2
|
-
|
|
3
|
-
export type NSNameParserStructure =
|
|
4
|
-
{
|
|
5
|
-
// Name
|
|
6
|
-
name_namirasoft: string;
|
|
7
|
-
name_short: string;
|
|
8
|
-
|
|
9
|
-
// Title
|
|
10
|
-
title_namirasoft: string;
|
|
11
|
-
title_short: string;
|
|
12
|
-
|
|
13
|
-
// Class
|
|
14
|
-
class_namirasoft: string;
|
|
15
|
-
class_short: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export class NSNameParser
|
|
19
|
-
{
|
|
20
|
-
// Input
|
|
21
|
-
public name_full: string;
|
|
22
|
-
public title_full: string;
|
|
23
|
-
|
|
24
|
-
// Is
|
|
25
|
-
public isAPI: boolean;
|
|
26
|
-
public isConsole: boolean;
|
|
27
|
-
public isLibrary: boolean;
|
|
28
|
-
public isNPM: boolean;
|
|
29
|
-
public isPHP: boolean;
|
|
30
|
-
public isAccountAPI: boolean;
|
|
31
|
-
|
|
32
|
-
public api: NSNameParserStructure = {
|
|
33
|
-
// Name
|
|
34
|
-
name_namirasoft: "",
|
|
35
|
-
name_short: "",
|
|
36
|
-
|
|
37
|
-
// Title
|
|
38
|
-
title_namirasoft: "",
|
|
39
|
-
title_short: "",
|
|
40
|
-
|
|
41
|
-
// Class
|
|
42
|
-
class_namirasoft: "",
|
|
43
|
-
class_short: "",
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
public console: NSNameParserStructure = {
|
|
47
|
-
// Name
|
|
48
|
-
name_namirasoft: "",
|
|
49
|
-
name_short: "",
|
|
50
|
-
|
|
51
|
-
// Title
|
|
52
|
-
title_namirasoft: "",
|
|
53
|
-
title_short: "",
|
|
54
|
-
|
|
55
|
-
// Class
|
|
56
|
-
class_namirasoft: "",
|
|
57
|
-
class_short: "",
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
public library: NSNameParserStructure = {
|
|
61
|
-
// Name
|
|
62
|
-
name_namirasoft: "",
|
|
63
|
-
name_short: "",
|
|
64
|
-
|
|
65
|
-
// Title
|
|
66
|
-
title_namirasoft: "",
|
|
67
|
-
title_short: "",
|
|
68
|
-
|
|
69
|
-
// Class
|
|
70
|
-
class_namirasoft: "",
|
|
71
|
-
class_short: "",
|
|
72
|
-
};
|
|
73
|
-
public command: {
|
|
74
|
-
name: string
|
|
75
|
-
} = { name: "" };
|
|
76
|
-
|
|
77
|
-
constructor(name_full: string, title_full: string)
|
|
78
|
-
{
|
|
79
|
-
// Input
|
|
80
|
-
this.name_full = name_full;
|
|
81
|
-
this.title_full = title_full;
|
|
82
|
-
|
|
83
|
-
// Is
|
|
84
|
-
this.isAPI = /^namirasoft(-\w*)*-api(-\w*)*-v\d+$/gm.test(name_full);
|
|
85
|
-
this.isConsole = /^namirasoft-(\w+-)+console$/gm.test(name_full);
|
|
86
|
-
this.isLibrary = !this.isAPI && !this.isConsole && /^namirasoft-\w+/gm.test(name_full);
|
|
87
|
-
this.isNPM = this.isLibrary && /NPM Package$/gm.test(title_full);
|
|
88
|
-
this.isPHP = this.isLibrary && /PHP Package$/gm.test(title_full);
|
|
89
|
-
this.isAccountAPI = /^namirasoft-account-api-v\d+$/gm.test(name_full);
|
|
90
|
-
|
|
91
|
-
if (this.isAPI)
|
|
92
|
-
{
|
|
93
|
-
// Name
|
|
94
|
-
this.api.name_namirasoft = this.name_full.replace(/(-api)?-v\d+$/gm, "");
|
|
95
|
-
this.api.name_short = this.api.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
96
|
-
|
|
97
|
-
// Title
|
|
98
|
-
this.api.title_namirasoft = this.title_full.replace(/(\sAPI)?\sV\d+$/gm, "");
|
|
99
|
-
this.api.title_short = this.api.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
100
|
-
|
|
101
|
-
// Class
|
|
102
|
-
this.api.class_namirasoft = NamingConvention.auto.convert(this.api.title_namirasoft, NamingConvention.Pascal_Case);
|
|
103
|
-
this.api.class_short = NamingConvention.auto.convert(this.api.title_short, NamingConvention.Pascal_Case);
|
|
104
|
-
|
|
105
|
-
// Command
|
|
106
|
-
this.command.name = this.api.name_namirasoft;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (this.isConsole)
|
|
110
|
-
{
|
|
111
|
-
// Name
|
|
112
|
-
this.console.name_namirasoft = this.name_full.replace(/-console$/gm, "");
|
|
113
|
-
this.console.name_short = this.console.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
114
|
-
|
|
115
|
-
// Title
|
|
116
|
-
this.console.title_namirasoft = this.title_full.replace(/\sConsole$/gm, "");
|
|
117
|
-
this.console.title_short = this.console.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
118
|
-
|
|
119
|
-
// Class
|
|
120
|
-
this.console.class_namirasoft = NamingConvention.auto.convert(this.console.title_namirasoft, NamingConvention.Pascal_Case);
|
|
121
|
-
this.console.class_short = NamingConvention.auto.convert(this.console.title_short, NamingConvention.Pascal_Case);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (this.isLibrary)
|
|
125
|
-
{
|
|
126
|
-
// Name
|
|
127
|
-
this.library.name_namirasoft = this.name_full;
|
|
128
|
-
this.library.name_short = this.library.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
129
|
-
|
|
130
|
-
// Title
|
|
131
|
-
this.library.title_namirasoft = this.title_full.replace(/\s(NPM|PHP)\sPackage$/gm, "");
|
|
132
|
-
this.library.title_short = this.library.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
133
|
-
|
|
134
|
-
// Class
|
|
135
|
-
this.library.class_namirasoft = NamingConvention.auto.convert(this.library.title_namirasoft, NamingConvention.Pascal_Case);
|
|
136
|
-
this.library.class_short = NamingConvention.auto.convert(this.library.title_short, NamingConvention.Pascal_Case);
|
|
137
|
-
|
|
138
|
-
// Command
|
|
139
|
-
this.command.name = this.library.name_namirasoft;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
this.command.name = this.command.name.replace("namirasoft-", "ns-");
|
|
143
|
-
}
|
|
1
|
+
import { NamingConvention } from "namirasoft-core";
|
|
2
|
+
|
|
3
|
+
export type NSNameParserStructure =
|
|
4
|
+
{
|
|
5
|
+
// Name
|
|
6
|
+
name_namirasoft: string;
|
|
7
|
+
name_short: string;
|
|
8
|
+
|
|
9
|
+
// Title
|
|
10
|
+
title_namirasoft: string;
|
|
11
|
+
title_short: string;
|
|
12
|
+
|
|
13
|
+
// Class
|
|
14
|
+
class_namirasoft: string;
|
|
15
|
+
class_short: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export class NSNameParser
|
|
19
|
+
{
|
|
20
|
+
// Input
|
|
21
|
+
public name_full: string;
|
|
22
|
+
public title_full: string;
|
|
23
|
+
|
|
24
|
+
// Is
|
|
25
|
+
public isAPI: boolean;
|
|
26
|
+
public isConsole: boolean;
|
|
27
|
+
public isLibrary: boolean;
|
|
28
|
+
public isNPM: boolean;
|
|
29
|
+
public isPHP: boolean;
|
|
30
|
+
public isAccountAPI: boolean;
|
|
31
|
+
|
|
32
|
+
public api: NSNameParserStructure = {
|
|
33
|
+
// Name
|
|
34
|
+
name_namirasoft: "",
|
|
35
|
+
name_short: "",
|
|
36
|
+
|
|
37
|
+
// Title
|
|
38
|
+
title_namirasoft: "",
|
|
39
|
+
title_short: "",
|
|
40
|
+
|
|
41
|
+
// Class
|
|
42
|
+
class_namirasoft: "",
|
|
43
|
+
class_short: "",
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
public console: NSNameParserStructure = {
|
|
47
|
+
// Name
|
|
48
|
+
name_namirasoft: "",
|
|
49
|
+
name_short: "",
|
|
50
|
+
|
|
51
|
+
// Title
|
|
52
|
+
title_namirasoft: "",
|
|
53
|
+
title_short: "",
|
|
54
|
+
|
|
55
|
+
// Class
|
|
56
|
+
class_namirasoft: "",
|
|
57
|
+
class_short: "",
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
public library: NSNameParserStructure = {
|
|
61
|
+
// Name
|
|
62
|
+
name_namirasoft: "",
|
|
63
|
+
name_short: "",
|
|
64
|
+
|
|
65
|
+
// Title
|
|
66
|
+
title_namirasoft: "",
|
|
67
|
+
title_short: "",
|
|
68
|
+
|
|
69
|
+
// Class
|
|
70
|
+
class_namirasoft: "",
|
|
71
|
+
class_short: "",
|
|
72
|
+
};
|
|
73
|
+
public command: {
|
|
74
|
+
name: string
|
|
75
|
+
} = { name: "" };
|
|
76
|
+
|
|
77
|
+
constructor(name_full: string, title_full: string)
|
|
78
|
+
{
|
|
79
|
+
// Input
|
|
80
|
+
this.name_full = name_full;
|
|
81
|
+
this.title_full = title_full;
|
|
82
|
+
|
|
83
|
+
// Is
|
|
84
|
+
this.isAPI = /^namirasoft(-\w*)*-api(-\w*)*-v\d+$/gm.test(name_full);
|
|
85
|
+
this.isConsole = /^namirasoft-(\w+-)+console$/gm.test(name_full);
|
|
86
|
+
this.isLibrary = !this.isAPI && !this.isConsole && /^namirasoft-\w+/gm.test(name_full);
|
|
87
|
+
this.isNPM = this.isLibrary && /NPM Package$/gm.test(title_full);
|
|
88
|
+
this.isPHP = this.isLibrary && /PHP Package$/gm.test(title_full);
|
|
89
|
+
this.isAccountAPI = /^namirasoft-account-api-v\d+$/gm.test(name_full);
|
|
90
|
+
|
|
91
|
+
if (this.isAPI)
|
|
92
|
+
{
|
|
93
|
+
// Name
|
|
94
|
+
this.api.name_namirasoft = this.name_full.replace(/(-api)?-v\d+$/gm, "");
|
|
95
|
+
this.api.name_short = this.api.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
96
|
+
|
|
97
|
+
// Title
|
|
98
|
+
this.api.title_namirasoft = this.title_full.replace(/(\sAPI)?\sV\d+$/gm, "");
|
|
99
|
+
this.api.title_short = this.api.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
100
|
+
|
|
101
|
+
// Class
|
|
102
|
+
this.api.class_namirasoft = NamingConvention.auto.convert(this.api.title_namirasoft, NamingConvention.Pascal_Case);
|
|
103
|
+
this.api.class_short = NamingConvention.auto.convert(this.api.title_short, NamingConvention.Pascal_Case);
|
|
104
|
+
|
|
105
|
+
// Command
|
|
106
|
+
this.command.name = this.api.name_namirasoft;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.isConsole)
|
|
110
|
+
{
|
|
111
|
+
// Name
|
|
112
|
+
this.console.name_namirasoft = this.name_full.replace(/-console$/gm, "");
|
|
113
|
+
this.console.name_short = this.console.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
114
|
+
|
|
115
|
+
// Title
|
|
116
|
+
this.console.title_namirasoft = this.title_full.replace(/\sConsole$/gm, "");
|
|
117
|
+
this.console.title_short = this.console.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
118
|
+
|
|
119
|
+
// Class
|
|
120
|
+
this.console.class_namirasoft = NamingConvention.auto.convert(this.console.title_namirasoft, NamingConvention.Pascal_Case);
|
|
121
|
+
this.console.class_short = NamingConvention.auto.convert(this.console.title_short, NamingConvention.Pascal_Case);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (this.isLibrary)
|
|
125
|
+
{
|
|
126
|
+
// Name
|
|
127
|
+
this.library.name_namirasoft = this.name_full;
|
|
128
|
+
this.library.name_short = this.library.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
129
|
+
|
|
130
|
+
// Title
|
|
131
|
+
this.library.title_namirasoft = this.title_full.replace(/\s(NPM|PHP)\sPackage$/gm, "");
|
|
132
|
+
this.library.title_short = this.library.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
133
|
+
|
|
134
|
+
// Class
|
|
135
|
+
this.library.class_namirasoft = NamingConvention.auto.convert(this.library.title_namirasoft, NamingConvention.Pascal_Case);
|
|
136
|
+
this.library.class_short = NamingConvention.auto.convert(this.library.title_short, NamingConvention.Pascal_Case);
|
|
137
|
+
|
|
138
|
+
// Command
|
|
139
|
+
this.command.name = this.library.name_namirasoft;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
this.command.name = this.command.name.replace("namirasoft-", "ns-");
|
|
143
|
+
}
|
|
144
144
|
};
|
package/src/NSReqHeader.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class NSReqHeader
|
|
2
|
-
{
|
|
3
|
-
VERSION()
|
|
4
|
-
{
|
|
5
|
-
return `ns-site-version`;
|
|
6
|
-
}
|
|
1
|
+
export class NSReqHeader
|
|
2
|
+
{
|
|
3
|
+
VERSION()
|
|
4
|
+
{
|
|
5
|
+
return `ns-site-version`;
|
|
6
|
+
}
|
|
7
7
|
}
|
package/src/NSResHeader.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export class NSResHeader
|
|
2
|
-
{
|
|
3
|
-
VERSION()
|
|
4
|
-
{
|
|
5
|
-
return `ns-site-version`;
|
|
6
|
-
}
|
|
1
|
+
export class NSResHeader
|
|
2
|
+
{
|
|
3
|
+
VERSION()
|
|
4
|
+
{
|
|
5
|
+
return `ns-site-version`;
|
|
6
|
+
}
|
|
7
7
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from "./NSBaseServer";
|
|
2
|
-
export * from "./NSBaseMetaDatabase";
|
|
3
|
-
export * from "./NSBaseMetaTable";
|
|
4
|
-
export * from "./NSCookiesHeader";
|
|
5
|
-
export * from "./NSHeader";
|
|
6
|
-
export * from "./NSNameParser";
|
|
7
|
-
export * from "./NSReqHeader";
|
|
8
|
-
export * from "./NSResHeader";
|
|
9
|
-
export * from "./ProductUUID";
|
|
1
|
+
export * from "./NSBaseServer";
|
|
2
|
+
export * from "./NSBaseMetaDatabase";
|
|
3
|
+
export * from "./NSBaseMetaTable";
|
|
4
|
+
export * from "./NSCookiesHeader";
|
|
5
|
+
export * from "./NSHeader";
|
|
6
|
+
export * from "./NSNameParser";
|
|
7
|
+
export * from "./NSReqHeader";
|
|
8
|
+
export * from "./NSResHeader";
|
package/dist/NameParser.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type NameParserStructure = {
|
|
2
|
-
name_namirasoft: string;
|
|
3
|
-
name_short: string;
|
|
4
|
-
title_namirasoft: string;
|
|
5
|
-
title_short: string;
|
|
6
|
-
class_namirasoft: string;
|
|
7
|
-
class_short: string;
|
|
8
|
-
};
|
|
9
|
-
export declare class NameParser {
|
|
10
|
-
name_full: string;
|
|
11
|
-
title_full: string;
|
|
12
|
-
isAPI: boolean;
|
|
13
|
-
isConsole: boolean;
|
|
14
|
-
isLibrary: boolean;
|
|
15
|
-
isNPM: boolean;
|
|
16
|
-
isPHP: boolean;
|
|
17
|
-
isAccountAPI: boolean;
|
|
18
|
-
api: NameParserStructure;
|
|
19
|
-
console: NameParserStructure;
|
|
20
|
-
library: NameParserStructure;
|
|
21
|
-
constructor(name_full: string, title_full: string);
|
|
22
|
-
}
|
package/dist/NameParser.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NameParser = void 0;
|
|
4
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
class NameParser {
|
|
6
|
-
constructor(name_full, title_full) {
|
|
7
|
-
this.api = {
|
|
8
|
-
name_namirasoft: "",
|
|
9
|
-
name_short: "",
|
|
10
|
-
title_namirasoft: "",
|
|
11
|
-
title_short: "",
|
|
12
|
-
class_namirasoft: "",
|
|
13
|
-
class_short: "",
|
|
14
|
-
};
|
|
15
|
-
this.console = {
|
|
16
|
-
name_namirasoft: "",
|
|
17
|
-
name_short: "",
|
|
18
|
-
title_namirasoft: "",
|
|
19
|
-
title_short: "",
|
|
20
|
-
class_namirasoft: "",
|
|
21
|
-
class_short: "",
|
|
22
|
-
};
|
|
23
|
-
this.library = {
|
|
24
|
-
name_namirasoft: "",
|
|
25
|
-
name_short: "",
|
|
26
|
-
title_namirasoft: "",
|
|
27
|
-
title_short: "",
|
|
28
|
-
class_namirasoft: "",
|
|
29
|
-
class_short: "",
|
|
30
|
-
};
|
|
31
|
-
this.name_full = name_full;
|
|
32
|
-
this.title_full = title_full;
|
|
33
|
-
this.isAPI = /^namirasoft(-\w*)*-api(-\w*)*-v\d+$/gm.test(name_full);
|
|
34
|
-
this.isConsole = /^namirasoft-(\w+-)+console$/gm.test(name_full);
|
|
35
|
-
this.isLibrary = !this.isAPI && !this.isConsole && /^namirasoft-\w+/gm.test(name_full);
|
|
36
|
-
this.isNPM = this.isLibrary && /NPM Package$/gm.test(title_full);
|
|
37
|
-
this.isPHP = this.isLibrary && /PHP Package$/gm.test(title_full);
|
|
38
|
-
this.isAccountAPI = /^namirasoft-account-api-v\d+$/gm.test(name_full);
|
|
39
|
-
if (this.isAPI) {
|
|
40
|
-
this.api.name_namirasoft = this.name_full.replace(/(-api)?-v\d+$/gm, "");
|
|
41
|
-
this.api.name_short = this.api.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
42
|
-
this.api.title_namirasoft = this.title_full.replace(/(\sAPI)?\sV\d+$/gm, "");
|
|
43
|
-
this.api.title_short = this.api.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
44
|
-
this.api.class_namirasoft = namirasoft_core_1.NamingConvention.auto.convert(this.api.title_namirasoft, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
45
|
-
this.api.class_short = namirasoft_core_1.NamingConvention.auto.convert(this.api.title_short, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
46
|
-
}
|
|
47
|
-
if (this.isConsole) {
|
|
48
|
-
this.console.name_namirasoft = this.name_full.replace(/-console$/gm, "");
|
|
49
|
-
this.console.name_short = this.console.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
50
|
-
this.console.title_namirasoft = this.title_full.replace(/\sConsole$/gm, "");
|
|
51
|
-
this.console.title_short = this.console.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
52
|
-
this.console.class_namirasoft = namirasoft_core_1.NamingConvention.auto.convert(this.console.title_namirasoft, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
53
|
-
this.console.class_short = namirasoft_core_1.NamingConvention.auto.convert(this.console.title_short, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
54
|
-
}
|
|
55
|
-
if (this.isLibrary) {
|
|
56
|
-
this.library.name_namirasoft = this.name_full;
|
|
57
|
-
this.library.name_short = this.library.name_namirasoft.replace(/^namirasoft-/gm, "");
|
|
58
|
-
this.library.title_namirasoft = this.title_full.replace(/\s(NPM|PHP)\sPackage$/gm, "");
|
|
59
|
-
this.library.title_short = this.library.title_namirasoft.replace(/^Namirasoft\s/gm, "");
|
|
60
|
-
this.library.class_namirasoft = namirasoft_core_1.NamingConvention.auto.convert(this.library.title_namirasoft, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
61
|
-
this.library.class_short = namirasoft_core_1.NamingConvention.auto.convert(this.library.title_short, namirasoft_core_1.NamingConvention.Pascal_Case);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.NameParser = NameParser;
|
|
66
|
-
;
|
|
67
|
-
//# sourceMappingURL=NameParser.js.map
|
package/dist/NameParser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NameParser.js","sourceRoot":"","sources":["../src/NameParser.ts"],"names":[],"mappings":"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"}
|
package/dist/ProductUUID.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare class ProductUUID {
|
|
2
|
-
static NAMIRASOFT_ACCESS: string;
|
|
3
|
-
static NAMIRASOFT_ACCOUNT: string;
|
|
4
|
-
static NAMIRASOFT_ALARM: string;
|
|
5
|
-
static NAMIRASOFT_BALANCE: string;
|
|
6
|
-
static NAMIRASOFT_BILLWATCH: string;
|
|
7
|
-
static NAMIRASOFT_CREDENTIAL: string;
|
|
8
|
-
static NAMIRASOFT_CERTIFICATE_MANAGER: string;
|
|
9
|
-
static NAMIRASOFT_CODE_VERIFY: string;
|
|
10
|
-
static NAMIRASOFT_CONTENT_TEMPLATE: string;
|
|
11
|
-
static NAMIRASOFT_COOKIE: string;
|
|
12
|
-
static NAMIRASOFT_DATA: string;
|
|
13
|
-
static NAMIRASOFT_DONATE: string;
|
|
14
|
-
static NAMIRASOFT_EARN: string;
|
|
15
|
-
static NAMIRASOFT_EMAIL_SENDER: string;
|
|
16
|
-
static NAMIRASOFT_FIELD: string;
|
|
17
|
-
static NAMIRASOFT_FILE_SYSTEM: string;
|
|
18
|
-
static NAMIRASOFT_GITLAB: string;
|
|
19
|
-
static NAMIRASOFT_HISTORY: string;
|
|
20
|
-
static NAMIRASOFT_HIVE: string;
|
|
21
|
-
static NAMIRASOFT_JOB_ARRANGER: string;
|
|
22
|
-
static NAMIRASOFT_LEND: string;
|
|
23
|
-
static NAMIRASOFT_LINK: string;
|
|
24
|
-
static NAMIRASOFT_LOG: string;
|
|
25
|
-
static NAMIRASOFT_MESSAGE: string;
|
|
26
|
-
static NAMIRASOFT_MYSQL: string;
|
|
27
|
-
static NAMIRASOFT_NEWS: string;
|
|
28
|
-
static NAMIRASOFT_NEXUS_CLEANER: string;
|
|
29
|
-
static NAMIRASOFT_NOTIFICATION_SENDER: string;
|
|
30
|
-
static NAMIRASOFT_NWS_COST: string;
|
|
31
|
-
static NAMIRASOFT_NWS_GITLAB_BACKUP: string;
|
|
32
|
-
static NAMIRASOFT_NWS_MAX_MIND: string;
|
|
33
|
-
static NAMIRASOFT_NWS_MONITOR: string;
|
|
34
|
-
static NAMIRASOFT_NWS_OLLAMA: string;
|
|
35
|
-
static NAMIRASOFT_NWS_REGION: string;
|
|
36
|
-
static NAMIRASOFT_PAYMENT: string;
|
|
37
|
-
static NAMIRASOFT_PHPMYADMIN: string;
|
|
38
|
-
static NAMIRASOFT_PLAY: string;
|
|
39
|
-
static NAMIRASOFT_POSITION: string;
|
|
40
|
-
static NAMIRASOFT_PRODUCT: string;
|
|
41
|
-
static NAMIRASOFT_RABBITMQ: string;
|
|
42
|
-
static NAMIRASOFT_RABBITMQ_ENDPOINT: string;
|
|
43
|
-
static NAMIRASOFT_REDEEM: string;
|
|
44
|
-
static NAMIRASOFT_REDMINE: string;
|
|
45
|
-
static NAMIRASOFT_SECRET: string;
|
|
46
|
-
static NAMIRASOFT_SERVICE: string;
|
|
47
|
-
static NAMIRASOFT_SMS_SENDER: string;
|
|
48
|
-
static NAMIRASOFT_STATIC: string;
|
|
49
|
-
static NAMIRASOFT_TELEGRAM_SENDER: string;
|
|
50
|
-
static NAMIRASOFT_TIMIFY: string;
|
|
51
|
-
static NAMIRASOFT_WORK: string;
|
|
52
|
-
static NAMIRASOFT_WORKSPACE: string;
|
|
53
|
-
}
|
package/dist/ProductUUID.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductUUID = void 0;
|
|
4
|
-
class ProductUUID {
|
|
5
|
-
}
|
|
6
|
-
exports.ProductUUID = ProductUUID;
|
|
7
|
-
ProductUUID.NAMIRASOFT_ACCESS = "prd-c7836310e7e54170";
|
|
8
|
-
ProductUUID.NAMIRASOFT_ACCOUNT = "prd-a376a409dabe4b4b";
|
|
9
|
-
ProductUUID.NAMIRASOFT_ALARM = "prd-ad236da9ae8d4e7f";
|
|
10
|
-
ProductUUID.NAMIRASOFT_BALANCE = "prd-c7a4983e15524686";
|
|
11
|
-
ProductUUID.NAMIRASOFT_BILLWATCH = "prd-237ccb143fb04e52";
|
|
12
|
-
ProductUUID.NAMIRASOFT_CREDENTIAL = "prd-986059d99192405b";
|
|
13
|
-
ProductUUID.NAMIRASOFT_CERTIFICATE_MANAGER = "prd-b80264f9099d4397";
|
|
14
|
-
ProductUUID.NAMIRASOFT_CODE_VERIFY = "prd-5bdec5c48f3c42b4";
|
|
15
|
-
ProductUUID.NAMIRASOFT_CONTENT_TEMPLATE = "prd-b1360c432dc04a27";
|
|
16
|
-
ProductUUID.NAMIRASOFT_COOKIE = "prd-760e8836ffd24628";
|
|
17
|
-
ProductUUID.NAMIRASOFT_DATA = "prd-343eedc9a5644124";
|
|
18
|
-
ProductUUID.NAMIRASOFT_DONATE = "prd-47eeb1a3b82645c7";
|
|
19
|
-
ProductUUID.NAMIRASOFT_EARN = "prd-833364ab98e541a0";
|
|
20
|
-
ProductUUID.NAMIRASOFT_EMAIL_SENDER = "prd-464a57e70bbf4fff";
|
|
21
|
-
ProductUUID.NAMIRASOFT_FIELD = "prd-a9fb78ad0b6e4cd3";
|
|
22
|
-
ProductUUID.NAMIRASOFT_FILE_SYSTEM = "prd-3b0efb7acb974f91";
|
|
23
|
-
ProductUUID.NAMIRASOFT_GITLAB = "prd-63b59fc75a05466b";
|
|
24
|
-
ProductUUID.NAMIRASOFT_HISTORY = "prd-10bb85099e6f4c0a";
|
|
25
|
-
ProductUUID.NAMIRASOFT_HIVE = "prd-9ae665e23fab4314";
|
|
26
|
-
ProductUUID.NAMIRASOFT_JOB_ARRANGER = "prd-23e6a126ab4e4627";
|
|
27
|
-
ProductUUID.NAMIRASOFT_LEND = "prd-9755bedbd7454017";
|
|
28
|
-
ProductUUID.NAMIRASOFT_LINK = "prd-5720921162124815";
|
|
29
|
-
ProductUUID.NAMIRASOFT_LOG = "prd-d0388150e7054a43";
|
|
30
|
-
ProductUUID.NAMIRASOFT_MESSAGE = "prd-17241f2d8d264b01";
|
|
31
|
-
ProductUUID.NAMIRASOFT_MYSQL = "prd-906eba1a4aa94436";
|
|
32
|
-
ProductUUID.NAMIRASOFT_NEWS = "prd-6aad410d6ec44823";
|
|
33
|
-
ProductUUID.NAMIRASOFT_NEXUS_CLEANER = "prd-b4f2a736f9934d30";
|
|
34
|
-
ProductUUID.NAMIRASOFT_NOTIFICATION_SENDER = "prd-1d12a9e6eb5f411a";
|
|
35
|
-
ProductUUID.NAMIRASOFT_NWS_COST = "prd-bd9199b941c445bf";
|
|
36
|
-
ProductUUID.NAMIRASOFT_NWS_GITLAB_BACKUP = "prd-7d4cdc5785674bc0";
|
|
37
|
-
ProductUUID.NAMIRASOFT_NWS_MAX_MIND = "prd-d7f8af3103344c9d";
|
|
38
|
-
ProductUUID.NAMIRASOFT_NWS_MONITOR = "prd-bb35ddc3cd3b4c81";
|
|
39
|
-
ProductUUID.NAMIRASOFT_NWS_OLLAMA = "prd-a6f8aeaf1bc4462a";
|
|
40
|
-
ProductUUID.NAMIRASOFT_NWS_REGION = "prd-e73d2a024fb44b4e";
|
|
41
|
-
ProductUUID.NAMIRASOFT_PAYMENT = "prd-f66a2ebf57f149e4";
|
|
42
|
-
ProductUUID.NAMIRASOFT_PHPMYADMIN = "prd-59946c6407a74162";
|
|
43
|
-
ProductUUID.NAMIRASOFT_PLAY = "prd-4ba43bec6b964e74";
|
|
44
|
-
ProductUUID.NAMIRASOFT_POSITION = "prd-8670e24783c343e0";
|
|
45
|
-
ProductUUID.NAMIRASOFT_PRODUCT = "prd-62ad582bb6034386";
|
|
46
|
-
ProductUUID.NAMIRASOFT_RABBITMQ = "prd-7ee68c24fc7d4abd";
|
|
47
|
-
ProductUUID.NAMIRASOFT_RABBITMQ_ENDPOINT = "prd-8a12a7949d42426c";
|
|
48
|
-
ProductUUID.NAMIRASOFT_REDEEM = "prd-40374ef2751c4051";
|
|
49
|
-
ProductUUID.NAMIRASOFT_REDMINE = "prd-b0067003a1904274";
|
|
50
|
-
ProductUUID.NAMIRASOFT_SECRET = "prd-84a5484d86bd4c11";
|
|
51
|
-
ProductUUID.NAMIRASOFT_SERVICE = "prd-2f6d57404fb94d52";
|
|
52
|
-
ProductUUID.NAMIRASOFT_SMS_SENDER = "prd-d62033a2923643db";
|
|
53
|
-
ProductUUID.NAMIRASOFT_STATIC = "prd-031d1a9594174c1e";
|
|
54
|
-
ProductUUID.NAMIRASOFT_TELEGRAM_SENDER = "prd-7d9bb421a3fd467d";
|
|
55
|
-
ProductUUID.NAMIRASOFT_TIMIFY = "prd-1c42a8919de247a8";
|
|
56
|
-
ProductUUID.NAMIRASOFT_WORK = "prd-0e40f7c87ad14966";
|
|
57
|
-
ProductUUID.NAMIRASOFT_WORKSPACE = "prd-a365c9a5db434a23";
|
|
58
|
-
;
|
|
59
|
-
//# sourceMappingURL=ProductUUID.js.map
|
package/dist/ProductUUID.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductUUID.js","sourceRoot":"","sources":["../src/ProductUUID.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCAqDC;AAnDU,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,4BAAgB,GAAG,sBAAsB,CAAC;AAC1C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,gCAAoB,GAAG,sBAAsB,CAAC;AAC9C,iCAAqB,GAAG,sBAAsB,CAAC;AAC/C,0CAA8B,GAAG,sBAAsB,CAAC;AACxD,kCAAsB,GAAG,sBAAsB,CAAC;AAChD,uCAA2B,GAAG,sBAAsB,CAAC;AACrD,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,mCAAuB,GAAG,sBAAsB,CAAC;AACjD,4BAAgB,GAAG,sBAAsB,CAAC;AAC1C,kCAAsB,GAAG,sBAAsB,CAAC;AAChD,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,mCAAuB,GAAG,sBAAsB,CAAC;AACjD,2BAAe,GAAG,sBAAsB,CAAC;AACzC,2BAAe,GAAG,sBAAsB,CAAC;AACzC,0BAAc,GAAG,sBAAsB,CAAC;AACxC,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,4BAAgB,GAAG,sBAAsB,CAAC;AAC1C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,oCAAwB,GAAG,sBAAsB,CAAC;AAClD,0CAA8B,GAAG,sBAAsB,CAAC;AACxD,+BAAmB,GAAG,sBAAsB,CAAC;AAC7C,wCAA4B,GAAG,sBAAsB,CAAC;AACtD,mCAAuB,GAAG,sBAAsB,CAAC;AACjD,kCAAsB,GAAG,sBAAsB,CAAC;AAChD,iCAAqB,GAAG,sBAAsB,CAAC;AAC/C,iCAAqB,GAAG,sBAAsB,CAAC;AAC/C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,iCAAqB,GAAG,sBAAsB,CAAC;AAC/C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,+BAAmB,GAAG,sBAAsB,CAAC;AAC7C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,+BAAmB,GAAG,sBAAsB,CAAC;AAC7C,wCAA4B,GAAG,sBAAsB,CAAC;AACtD,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,8BAAkB,GAAG,sBAAsB,CAAC;AAC5C,iCAAqB,GAAG,sBAAsB,CAAC;AAC/C,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,sCAA0B,GAAG,sBAAsB,CAAC;AACpD,6BAAiB,GAAG,sBAAsB,CAAC;AAC3C,2BAAe,GAAG,sBAAsB,CAAC;AACzC,gCAAoB,GAAG,sBAAsB,CAAC;AACxD,CAAC"}
|
package/src/ProductUUID.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export class ProductUUID
|
|
2
|
-
{
|
|
3
|
-
static NAMIRASOFT_ACCESS = "prd-c7836310e7e54170";
|
|
4
|
-
static NAMIRASOFT_ACCOUNT = "prd-a376a409dabe4b4b";
|
|
5
|
-
static NAMIRASOFT_ALARM = "prd-ad236da9ae8d4e7f";
|
|
6
|
-
static NAMIRASOFT_BALANCE = "prd-c7a4983e15524686";
|
|
7
|
-
static NAMIRASOFT_BILLWATCH = "prd-237ccb143fb04e52";
|
|
8
|
-
static NAMIRASOFT_CREDENTIAL = "prd-986059d99192405b";
|
|
9
|
-
static NAMIRASOFT_CERTIFICATE_MANAGER = "prd-b80264f9099d4397";
|
|
10
|
-
static NAMIRASOFT_CODE_VERIFY = "prd-5bdec5c48f3c42b4";
|
|
11
|
-
static NAMIRASOFT_CONTENT_TEMPLATE = "prd-b1360c432dc04a27";
|
|
12
|
-
static NAMIRASOFT_COOKIE = "prd-760e8836ffd24628";
|
|
13
|
-
static NAMIRASOFT_DATA = "prd-343eedc9a5644124";
|
|
14
|
-
static NAMIRASOFT_DONATE = "prd-47eeb1a3b82645c7";
|
|
15
|
-
static NAMIRASOFT_EARN = "prd-833364ab98e541a0";
|
|
16
|
-
static NAMIRASOFT_EMAIL_SENDER = "prd-464a57e70bbf4fff";
|
|
17
|
-
static NAMIRASOFT_FIELD = "prd-a9fb78ad0b6e4cd3";
|
|
18
|
-
static NAMIRASOFT_FILE_SYSTEM = "prd-3b0efb7acb974f91";
|
|
19
|
-
static NAMIRASOFT_GITLAB = "prd-63b59fc75a05466b";
|
|
20
|
-
static NAMIRASOFT_HISTORY = "prd-10bb85099e6f4c0a";
|
|
21
|
-
static NAMIRASOFT_HIVE = "prd-9ae665e23fab4314";
|
|
22
|
-
static NAMIRASOFT_JOB_ARRANGER = "prd-23e6a126ab4e4627";
|
|
23
|
-
static NAMIRASOFT_LEND = "prd-9755bedbd7454017";
|
|
24
|
-
static NAMIRASOFT_LINK = "prd-5720921162124815";
|
|
25
|
-
static NAMIRASOFT_LOG = "prd-d0388150e7054a43";
|
|
26
|
-
static NAMIRASOFT_MESSAGE = "prd-17241f2d8d264b01";
|
|
27
|
-
static NAMIRASOFT_MYSQL = "prd-906eba1a4aa94436";
|
|
28
|
-
static NAMIRASOFT_NEWS = "prd-6aad410d6ec44823";
|
|
29
|
-
static NAMIRASOFT_NEXUS_CLEANER = "prd-b4f2a736f9934d30";
|
|
30
|
-
static NAMIRASOFT_NOTIFICATION_SENDER = "prd-1d12a9e6eb5f411a";
|
|
31
|
-
static NAMIRASOFT_NWS_COST = "prd-bd9199b941c445bf";
|
|
32
|
-
static NAMIRASOFT_NWS_GITLAB_BACKUP = "prd-7d4cdc5785674bc0";
|
|
33
|
-
static NAMIRASOFT_NWS_MAX_MIND = "prd-d7f8af3103344c9d";
|
|
34
|
-
static NAMIRASOFT_NWS_MONITOR = "prd-bb35ddc3cd3b4c81";
|
|
35
|
-
static NAMIRASOFT_NWS_OLLAMA = "prd-a6f8aeaf1bc4462a";
|
|
36
|
-
static NAMIRASOFT_NWS_REGION = "prd-e73d2a024fb44b4e";
|
|
37
|
-
static NAMIRASOFT_PAYMENT = "prd-f66a2ebf57f149e4";
|
|
38
|
-
static NAMIRASOFT_PHPMYADMIN = "prd-59946c6407a74162";
|
|
39
|
-
static NAMIRASOFT_PLAY = "prd-4ba43bec6b964e74";
|
|
40
|
-
static NAMIRASOFT_POSITION = "prd-8670e24783c343e0";
|
|
41
|
-
static NAMIRASOFT_PRODUCT = "prd-62ad582bb6034386";
|
|
42
|
-
static NAMIRASOFT_RABBITMQ = "prd-7ee68c24fc7d4abd";
|
|
43
|
-
static NAMIRASOFT_RABBITMQ_ENDPOINT = "prd-8a12a7949d42426c";
|
|
44
|
-
static NAMIRASOFT_REDEEM = "prd-40374ef2751c4051";
|
|
45
|
-
static NAMIRASOFT_REDMINE = "prd-b0067003a1904274";
|
|
46
|
-
static NAMIRASOFT_SECRET = "prd-84a5484d86bd4c11";
|
|
47
|
-
static NAMIRASOFT_SERVICE = "prd-2f6d57404fb94d52";
|
|
48
|
-
static NAMIRASOFT_SMS_SENDER = "prd-d62033a2923643db";
|
|
49
|
-
static NAMIRASOFT_STATIC = "prd-031d1a9594174c1e";
|
|
50
|
-
static NAMIRASOFT_TELEGRAM_SENDER = "prd-7d9bb421a3fd467d";
|
|
51
|
-
static NAMIRASOFT_TIMIFY = "prd-1c42a8919de247a8";
|
|
52
|
-
static NAMIRASOFT_WORK = "prd-0e40f7c87ad14966";
|
|
53
|
-
static NAMIRASOFT_WORKSPACE = "prd-a365c9a5db434a23";
|
|
54
|
-
};
|