namirasoft-sms-sender 1.4.5 → 1.4.6
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/NamirasoftSMSSenderServerBase.d.ts +2 -2
- package/dist/NamirasoftSMSSenderServerBase.js +2 -2
- package/dist/NamirasoftSMSSenderServerBase.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/meta/NamirasoftSmsSenderMetaDatabase.d.ts +17 -0
- package/dist/meta/NamirasoftSmsSenderMetaDatabase.js +26 -0
- package/dist/meta/NamirasoftSmsSenderMetaDatabase.js.map +1 -0
- package/dist/meta/ProviderCategoryMetaTable.d.ts +4 -3
- package/dist/meta/ProviderCategoryMetaTable.js +10 -9
- package/dist/meta/ProviderCategoryMetaTable.js.map +1 -1
- package/dist/meta/ProviderFieldMetaTable.d.ts +4 -3
- package/dist/meta/ProviderFieldMetaTable.js +12 -11
- package/dist/meta/ProviderFieldMetaTable.js.map +1 -1
- package/dist/meta/ProviderMetaTable.d.ts +4 -3
- package/dist/meta/ProviderMetaTable.js +13 -12
- package/dist/meta/ProviderMetaTable.js.map +1 -1
- package/dist/meta/ProviderTagMetaTable.d.ts +4 -3
- package/dist/meta/ProviderTagMetaTable.js +12 -11
- package/dist/meta/ProviderTagMetaTable.js.map +1 -1
- package/dist/meta/SentMetaTable.d.ts +4 -3
- package/dist/meta/SentMetaTable.js +14 -13
- package/dist/meta/SentMetaTable.js.map +1 -1
- package/package.json +4 -4
- package/src/NamirasoftSMSSenderServerBase.ts +3 -3
- package/src/index.ts +1 -1
- package/src/meta/{MetaDatabase.ts → NamirasoftSmsSenderMetaDatabase.ts} +19 -13
- package/src/meta/ProviderCategoryMetaTable.ts +12 -11
- package/src/meta/ProviderFieldMetaTable.ts +14 -13
- package/src/meta/ProviderMetaTable.ts +15 -14
- package/src/meta/ProviderTagMetaTable.ts +14 -13
- package/src/meta/SentMetaTable.ts +16 -15
- package/dist/meta/MetaDatabase.d.ts +0 -14
- package/dist/meta/MetaDatabase.js +0 -21
- package/dist/meta/MetaDatabase.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
2
2
|
import { TokenManager } from "namirasoft-account";
|
|
3
|
-
export declare class NamirasoftSMSSenderServerBase extends
|
|
3
|
+
export declare class NamirasoftSMSSenderServerBase extends NSABaseServer {
|
|
4
4
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
|
5
5
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NamirasoftSMSSenderServerBase = void 0;
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
-
class NamirasoftSMSSenderServerBase extends namirasoft_account_1.
|
|
5
|
+
class NamirasoftSMSSenderServerBase extends namirasoft_account_1.NSABaseServer {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.6`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftSMSSenderServerBase = NamirasoftSMSSenderServerBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSMSSenderServerBase.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerBase.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"NamirasoftSMSSenderServerBase.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AAGnD,MAAa,6BAA8B,SAAQ,kCAAa;IAE5D,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;CACJ;AAND,sEAMC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export * from "./command/SentListCommand";
|
|
|
45
45
|
export * from "./command/ValueCommand";
|
|
46
46
|
export * from "./command/ValueListCommand";
|
|
47
47
|
export * from "./enum/ProviderType";
|
|
48
|
-
export * from "./meta/
|
|
48
|
+
export * from "./meta/NamirasoftSmsSenderMetaDatabase";
|
|
49
49
|
export * from "./meta/ProviderCategoryMetaTable";
|
|
50
50
|
export * from "./meta/ProviderFieldMetaTable";
|
|
51
51
|
export * from "./meta/ProviderMetaTable";
|
package/dist/index.js
CHANGED
|
@@ -61,7 +61,7 @@ __exportStar(require("./command/SentListCommand"), exports);
|
|
|
61
61
|
__exportStar(require("./command/ValueCommand"), exports);
|
|
62
62
|
__exportStar(require("./command/ValueListCommand"), exports);
|
|
63
63
|
__exportStar(require("./enum/ProviderType"), exports);
|
|
64
|
-
__exportStar(require("./meta/
|
|
64
|
+
__exportStar(require("./meta/NamirasoftSmsSenderMetaDatabase"), exports);
|
|
65
65
|
__exportStar(require("./meta/ProviderCategoryMetaTable"), exports);
|
|
66
66
|
__exportStar(require("./meta/ProviderFieldMetaTable"), exports);
|
|
67
67
|
__exportStar(require("./meta/ProviderMetaTable"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,8DAA4C;AAC5C,iEAA+C;AAC/C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,8EAA4D;AAC5D,2EAAyD;AACzD,yEAAuD;AACvD,iEAA+C;AAC/C,kEAAgD;AAChD,mEAAiD;AACjD,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,oEAAkD;AAClD,0EAAwD;AACxD,0EAAwD;AACxD,uEAAqD;AACrD,wEAAsD;AACtD,4DAA0C;AAC1C,kEAAgD;AAChD,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,uEAAqD;AACrD,+DAA6C;AAC7C,gEAA8C;AAC9C,mEAAiD;AACjD,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,8DAA4C;AAC5C,iEAA+C;AAC/C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,8EAA4D;AAC5D,2EAAyD;AACzD,yEAAuD;AACvD,iEAA+C;AAC/C,kEAAgD;AAChD,mEAAiD;AACjD,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,oEAAkD;AAClD,0EAAwD;AACxD,0EAAwD;AACxD,uEAAqD;AACrD,wEAAsD;AACtD,4DAA0C;AAC1C,kEAAgD;AAChD,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,uEAAqD;AACrD,+DAA6C;AAC7C,gEAA8C;AAC9C,mEAAiD;AACjD,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,kEAAgD;AAChD,uDAAqC;AACrC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,sDAAoC;AACpC,yEAAuD;AACvD,mEAAiD;AACjD,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,uDAAqC;AACrC,oDAAkC;AAClC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
2
|
+
import { ProviderCategoryMetaTable } from "./ProviderCategoryMetaTable";
|
|
3
|
+
import { ProviderFieldMetaTable } from "./ProviderFieldMetaTable";
|
|
4
|
+
import { ProviderMetaTable } from "./ProviderMetaTable";
|
|
5
|
+
import { ProviderTagMetaTable } from "./ProviderTagMetaTable";
|
|
6
|
+
import { SentMetaTable } from "./SentMetaTable";
|
|
7
|
+
export declare class NamirasoftSmsSenderMetaDatabase extends NSBaseMetaDatabase {
|
|
8
|
+
static main: NamirasoftSmsSenderMetaDatabase;
|
|
9
|
+
tables: {
|
|
10
|
+
provider: ProviderMetaTable;
|
|
11
|
+
provider_category: ProviderCategoryMetaTable;
|
|
12
|
+
provider_field: ProviderFieldMetaTable;
|
|
13
|
+
provider_tag: ProviderTagMetaTable;
|
|
14
|
+
sent: SentMetaTable;
|
|
15
|
+
};
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamirasoftSmsSenderMetaDatabase = void 0;
|
|
4
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
5
|
+
const ProviderCategoryMetaTable_1 = require("./ProviderCategoryMetaTable");
|
|
6
|
+
const ProviderFieldMetaTable_1 = require("./ProviderFieldMetaTable");
|
|
7
|
+
const ProviderMetaTable_1 = require("./ProviderMetaTable");
|
|
8
|
+
const ProviderTagMetaTable_1 = require("./ProviderTagMetaTable");
|
|
9
|
+
const SentMetaTable_1 = require("./SentMetaTable");
|
|
10
|
+
class NamirasoftSmsSenderMetaDatabase extends namirasoft_site_1.NSBaseMetaDatabase {
|
|
11
|
+
constructor() {
|
|
12
|
+
super({ id: "prd-d62033a2923643db", name: "Namirasoft SMS Sender", headline: "SMS Messaging Service", description: "Send SMS messages reliably. Schedule messages, manage recipients, and ensure reliable delivery.", logo: "https://static.namirasoft.com/image/namirasoft/sms-sender/logo/base.png", link: "https://sms-sender.namirasoft.com" });
|
|
13
|
+
this.tables = {
|
|
14
|
+
provider: new ProviderMetaTable_1.ProviderMetaTable(this),
|
|
15
|
+
provider_category: new ProviderCategoryMetaTable_1.ProviderCategoryMetaTable(this),
|
|
16
|
+
provider_field: new ProviderFieldMetaTable_1.ProviderFieldMetaTable(this),
|
|
17
|
+
provider_tag: new ProviderTagMetaTable_1.ProviderTagMetaTable(this),
|
|
18
|
+
sent: new SentMetaTable_1.SentMetaTable(this),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
;
|
|
22
|
+
}
|
|
23
|
+
exports.NamirasoftSmsSenderMetaDatabase = NamirasoftSmsSenderMetaDatabase;
|
|
24
|
+
NamirasoftSmsSenderMetaDatabase.main = new NamirasoftSmsSenderMetaDatabase();
|
|
25
|
+
;
|
|
26
|
+
//# sourceMappingURL=NamirasoftSmsSenderMetaDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftSmsSenderMetaDatabase.js","sourceRoot":"","sources":["../../src/meta/NamirasoftSmsSenderMetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,qDAAqD;AACrD,2EAAwE;AACxE,qEAAkE;AAClE,2DAAwD;AACxD,iEAA8D;AAC9D,mDAAgD;AAEhD,MAAa,+BAAgC,SAAQ,oCAAkB;IAUnE;QAEI,KAAK,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,uBAAuB,EAAE,WAAW,EAAE,iGAAiG,EAAE,IAAI,EAAE,yEAAyE,EAAE,IAAI,EAAE,mCAAmC,EAAE,CAAC,CAAC;QACpV,IAAI,CAAC,MAAM,GAAG;YACV,QAAQ,EAAE,IAAI,qCAAiB,CAAC,IAAI,CAAC;YACrC,iBAAiB,EAAE,IAAI,qDAAyB,CAAC,IAAI,CAAC;YACtD,cAAc,EAAE,IAAI,+CAAsB,CAAC,IAAI,CAAC;YAChD,YAAY,EAAE,IAAI,2CAAoB,CAAC,IAAI,CAAC;YAC5C,IAAI,EAAE,IAAI,6BAAa,CAAC,IAAI,CAAC;SAChC,CAAC;IACN,CAAC;IAAA,CAAC;;AApBN,0EAqBC;AAnBiB,oCAAI,GAAoC,IAAI,+BAA+B,EAAE,CAAC;AAmB/F,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class ProviderCategoryMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -8,5 +9,5 @@ export declare class ProviderCategoryMetaTable extends BaseMetaTable {
|
|
|
8
9
|
created_at: BaseMetaColumn;
|
|
9
10
|
updated_at: BaseMetaColumn;
|
|
10
11
|
};
|
|
11
|
-
constructor();
|
|
12
|
+
constructor(database: NSBaseMetaDatabase);
|
|
12
13
|
}
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProviderCategoryMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class ProviderCategoryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "provider_category", "Provider Category", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
category_id: new namirasoft_core_1.BaseMetaColumn("category_id", "Category Id", "String", true),
|
|
13
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
14
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category Id", "String", true),
|
|
14
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
15
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderCategoryMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderCategoryMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"ProviderCategoryMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderCategoryMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,yBAA0B,SAAQ,iCAAe;IAU1D,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5E,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAtBD,8DAsBC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class ProviderFieldMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -10,5 +11,5 @@ export declare class ProviderFieldMetaTable extends BaseMetaTable {
|
|
|
10
11
|
created_at: BaseMetaColumn;
|
|
11
12
|
updated_at: BaseMetaColumn;
|
|
12
13
|
};
|
|
13
|
-
constructor();
|
|
14
|
+
constructor(database: NSBaseMetaDatabase);
|
|
14
15
|
}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProviderFieldMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class ProviderFieldMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "provider_field", "Provider Field", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
field_id: new namirasoft_core_1.BaseMetaColumn("field_id", "Field Id", "String", true),
|
|
13
|
-
value: new namirasoft_core_1.BaseMetaColumn("value", "Value", "String", true),
|
|
14
|
-
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
15
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
16
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
field_id: new namirasoft_core_1.BaseMetaColumn(this, "field_id", "Field Id", "String", true),
|
|
14
|
+
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", true),
|
|
15
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
16
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
17
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderFieldMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderFieldMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"ProviderFieldMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderFieldMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,sBAAuB,SAAQ,iCAAe;IAYvD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA1BD,wDA0BC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class ProviderMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -11,5 +12,5 @@ export declare class ProviderMetaTable extends BaseMetaTable {
|
|
|
11
12
|
created_at: BaseMetaColumn;
|
|
12
13
|
updated_at: BaseMetaColumn;
|
|
13
14
|
};
|
|
14
|
-
constructor();
|
|
15
|
+
constructor(database: NSBaseMetaDatabase);
|
|
15
16
|
}
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProviderMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class ProviderMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "provider", "Provider", new namirasoft_core_1.BaseUUID("sms-snd-pvd"));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "String", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
workspace_id: new namirasoft_core_1.BaseMetaColumn("workspace_id", "Workspace Id", "String", true),
|
|
12
|
-
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", true),
|
|
13
|
-
type: new namirasoft_core_1.BaseMetaColumn("type", "Type", "Enum", true),
|
|
14
|
-
approved: new namirasoft_core_1.BaseMetaColumn("approved", "Approved", "Boolean", true),
|
|
15
|
-
meta: new namirasoft_core_1.BaseMetaColumn("meta", "Meta", "Any", true),
|
|
16
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
17
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "String", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace Id", "String", true),
|
|
13
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
14
|
+
type: new namirasoft_core_1.BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
15
|
+
approved: new namirasoft_core_1.BaseMetaColumn(this, "approved", "Approved", "Boolean", true),
|
|
16
|
+
meta: new namirasoft_core_1.BaseMetaColumn(this, "meta", "Meta", "Any", true),
|
|
17
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
18
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"ProviderMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,iBAAkB,SAAQ,iCAAe;IAalD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,0BAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QACrE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,YAAY,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,CAAC;YACtF,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC9D,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;YAC5D,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC;YAC3E,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC;YAC3D,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA5BD,8CA4BC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class ProviderTagMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -10,5 +11,5 @@ export declare class ProviderTagMetaTable extends BaseMetaTable {
|
|
|
10
11
|
created_at: BaseMetaColumn;
|
|
11
12
|
updated_at: BaseMetaColumn;
|
|
12
13
|
};
|
|
13
|
-
constructor();
|
|
14
|
+
constructor(database: NSBaseMetaDatabase);
|
|
14
15
|
}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProviderTagMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class ProviderTagMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "provider_tag", "Provider Tag", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", true),
|
|
13
|
-
value: new namirasoft_core_1.BaseMetaColumn("value", "Value", "String", true),
|
|
14
|
-
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
15
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
16
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
14
|
+
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", true),
|
|
15
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
16
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
17
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderTagMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"ProviderTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderTagMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,oBAAqB,SAAQ,iCAAe;IAYrD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC9D,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA1BD,oDA0BC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class SentMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -12,5 +13,5 @@ export declare class SentMetaTable extends BaseMetaTable {
|
|
|
12
13
|
successful: BaseMetaColumn;
|
|
13
14
|
result: BaseMetaColumn;
|
|
14
15
|
};
|
|
15
|
-
constructor();
|
|
16
|
+
constructor(database: NSBaseMetaDatabase);
|
|
16
17
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SentMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class SentMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "sent", "Sent", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "String", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
session_id: new namirasoft_core_1.BaseMetaColumn("session_id", "Session Id", "String", true),
|
|
12
|
-
provider_id: new namirasoft_core_1.BaseMetaColumn("provider_id", "Provider Id", "String", true),
|
|
13
|
-
phone: new namirasoft_core_1.BaseMetaColumn("phone", "Phone", "String", true),
|
|
14
|
-
message: new namirasoft_core_1.BaseMetaColumn("message", "Message", "String", true),
|
|
15
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
16
|
-
sent_at: new namirasoft_core_1.BaseMetaColumn("sent_at", "Sent At", "DateTime", false),
|
|
17
|
-
successful: new namirasoft_core_1.BaseMetaColumn("successful", "Successful", "Boolean", false),
|
|
18
|
-
result: new namirasoft_core_1.BaseMetaColumn("result", "Result", "String", false),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "String", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
session_id: new namirasoft_core_1.BaseMetaColumn(this, "session_id", "Session Id", "String", true),
|
|
13
|
+
provider_id: new namirasoft_core_1.BaseMetaColumn(this, "provider_id", "Provider Id", "String", true),
|
|
14
|
+
phone: new namirasoft_core_1.BaseMetaColumn(this, "phone", "Phone", "String", true),
|
|
15
|
+
message: new namirasoft_core_1.BaseMetaColumn(this, "message", "Message", "String", true),
|
|
16
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
17
|
+
sent_at: new namirasoft_core_1.BaseMetaColumn(this, "sent_at", "Sent At", "DateTime", false),
|
|
18
|
+
successful: new namirasoft_core_1.BaseMetaColumn(this, "successful", "Successful", "Boolean", false),
|
|
19
|
+
result: new namirasoft_core_1.BaseMetaColumn(this, "result", "Result", "String", false),
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentMetaTable.js","sourceRoot":"","sources":["../../src/meta/SentMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"SentMetaTable.js","sourceRoot":"","sources":["../../src/meta/SentMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,aAAc,SAAQ,iCAAe;IAc9C,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;YAC1E,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC;YAClF,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;SACxE,CAAC;IACN,CAAC;CACJ;AA9BD,sCA8BC;AAAA,CAAC"}
|
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.6",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"namirasoft-core": "^1.4.
|
|
21
|
-
"namirasoft-site": "^1.4.
|
|
20
|
+
"namirasoft-core": "^1.4.21",
|
|
21
|
+
"namirasoft-site": "^1.4.5",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.4",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.27"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-sms-sender": "./dist/command/cli.js"
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
22
|
import { TokenManager } from "namirasoft-account";
|
|
23
23
|
|
|
24
|
-
export class NamirasoftSMSSenderServerBase extends
|
|
24
|
+
export class NamirasoftSMSSenderServerBase extends NSABaseServer
|
|
25
25
|
{
|
|
26
26
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(base_url, `1.4.
|
|
28
|
+
super(base_url, `1.4.6`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
package/src/index.ts
CHANGED
|
@@ -65,7 +65,7 @@ export * from "./command/SentListCommand";
|
|
|
65
65
|
export * from "./command/ValueCommand";
|
|
66
66
|
export * from "./command/ValueListCommand";
|
|
67
67
|
export * from "./enum/ProviderType";
|
|
68
|
-
export * from "./meta/
|
|
68
|
+
export * from "./meta/NamirasoftSmsSenderMetaDatabase";
|
|
69
69
|
export * from "./meta/ProviderCategoryMetaTable";
|
|
70
70
|
export * from "./meta/ProviderFieldMetaTable";
|
|
71
71
|
export * from "./meta/ProviderMetaTable";
|
|
@@ -18,26 +18,32 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
21
22
|
import { ProviderCategoryMetaTable } from "./ProviderCategoryMetaTable";
|
|
22
23
|
import { ProviderFieldMetaTable } from "./ProviderFieldMetaTable";
|
|
23
24
|
import { ProviderMetaTable } from "./ProviderMetaTable";
|
|
24
25
|
import { ProviderTagMetaTable } from "./ProviderTagMetaTable";
|
|
25
26
|
import { SentMetaTable } from "./SentMetaTable";
|
|
26
27
|
|
|
27
|
-
export class
|
|
28
|
+
export class NamirasoftSmsSenderMetaDatabase extends NSBaseMetaDatabase
|
|
28
29
|
{
|
|
29
|
-
public static main:
|
|
30
|
-
public
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
public static main: NamirasoftSmsSenderMetaDatabase = new NamirasoftSmsSenderMetaDatabase();
|
|
31
|
+
public override tables: {
|
|
32
|
+
provider: ProviderMetaTable,
|
|
33
|
+
provider_category: ProviderCategoryMetaTable,
|
|
34
|
+
provider_field: ProviderFieldMetaTable,
|
|
35
|
+
provider_tag: ProviderTagMetaTable,
|
|
36
|
+
sent: SentMetaTable,
|
|
37
|
+
};
|
|
35
38
|
constructor()
|
|
36
39
|
{
|
|
37
|
-
|
|
38
|
-
this.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
super({ id: "prd-d62033a2923643db", name: "Namirasoft SMS Sender", headline: "SMS Messaging Service", description: "Send SMS messages reliably. Schedule messages, manage recipients, and ensure reliable delivery.", logo: "https://static.namirasoft.com/image/namirasoft/sms-sender/logo/base.png", link: "https://sms-sender.namirasoft.com" });
|
|
41
|
+
this.tables = {
|
|
42
|
+
provider: new ProviderMetaTable(this),
|
|
43
|
+
provider_category: new ProviderCategoryMetaTable(this),
|
|
44
|
+
provider_field: new ProviderFieldMetaTable(this),
|
|
45
|
+
provider_tag: new ProviderTagMetaTable(this),
|
|
46
|
+
sent: new SentMetaTable(this),
|
|
47
|
+
};
|
|
48
|
+
};
|
|
43
49
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class ProviderCategoryMetaTable extends
|
|
24
|
+
export class ProviderCategoryMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -30,16 +31,16 @@ export class ProviderCategoryMetaTable extends BaseMetaTable
|
|
|
30
31
|
created_at: BaseMetaColumn;
|
|
31
32
|
updated_at: BaseMetaColumn;
|
|
32
33
|
}
|
|
33
|
-
constructor()
|
|
34
|
+
constructor(database: NSBaseMetaDatabase)
|
|
34
35
|
{
|
|
35
|
-
super("provider_category", "Provider Category");
|
|
36
|
+
super(database, "provider_category", "Provider Category", new BaseUUID(""));
|
|
36
37
|
this.columns = {
|
|
37
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
38
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
39
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
40
|
-
category_id: new BaseMetaColumn("category_id", "Category Id", "String", true),
|
|
41
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
42
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
38
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
39
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
40
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
41
|
+
category_id: new BaseMetaColumn(this, "category_id", "Category Id", "String", true),
|
|
42
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
43
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class ProviderFieldMetaTable extends
|
|
24
|
+
export class ProviderFieldMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -32,18 +33,18 @@ export class ProviderFieldMetaTable extends BaseMetaTable
|
|
|
32
33
|
created_at: BaseMetaColumn;
|
|
33
34
|
updated_at: BaseMetaColumn;
|
|
34
35
|
}
|
|
35
|
-
constructor()
|
|
36
|
+
constructor(database: NSBaseMetaDatabase)
|
|
36
37
|
{
|
|
37
|
-
super("provider_field", "Provider Field");
|
|
38
|
+
super(database, "provider_field", "Provider Field", new BaseUUID(""));
|
|
38
39
|
this.columns = {
|
|
39
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
40
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
41
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
42
|
-
field_id: new BaseMetaColumn("field_id", "Field Id", "String", true),
|
|
43
|
-
value: new BaseMetaColumn("value", "Value", "String", true),
|
|
44
|
-
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
45
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
46
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
40
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
41
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
42
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
43
|
+
field_id: new BaseMetaColumn(this, "field_id", "Field Id", "String", true),
|
|
44
|
+
value: new BaseMetaColumn(this, "value", "Value", "String", true),
|
|
45
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
46
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
47
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class ProviderMetaTable extends
|
|
24
|
+
export class ProviderMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
workspace_id: BaseMetaColumn;
|
|
@@ -33,19 +34,19 @@ export class ProviderMetaTable extends BaseMetaTable
|
|
|
33
34
|
created_at: BaseMetaColumn;
|
|
34
35
|
updated_at: BaseMetaColumn;
|
|
35
36
|
}
|
|
36
|
-
constructor()
|
|
37
|
+
constructor(database: NSBaseMetaDatabase)
|
|
37
38
|
{
|
|
38
|
-
super("provider", "Provider");
|
|
39
|
+
super(database, "provider", "Provider", new BaseUUID("sms-snd-pvd"));
|
|
39
40
|
this.columns = {
|
|
40
|
-
id: new BaseMetaColumn("id", "Id", "String", true),
|
|
41
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
42
|
-
workspace_id: new BaseMetaColumn("workspace_id", "Workspace Id", "String", true),
|
|
43
|
-
name: new BaseMetaColumn("name", "Name", "String", true),
|
|
44
|
-
type: new BaseMetaColumn("type", "Type", "Enum", true),
|
|
45
|
-
approved: new BaseMetaColumn("approved", "Approved", "Boolean", true),
|
|
46
|
-
meta: new BaseMetaColumn("meta", "Meta", "Any", true),
|
|
47
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
48
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
41
|
+
id: new BaseMetaColumn(this, "id", "Id", "String", true),
|
|
42
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
43
|
+
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace Id", "String", true),
|
|
44
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
45
|
+
type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
46
|
+
approved: new BaseMetaColumn(this, "approved", "Approved", "Boolean", true),
|
|
47
|
+
meta: new BaseMetaColumn(this, "meta", "Meta", "Any", true),
|
|
48
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
49
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class ProviderTagMetaTable extends
|
|
24
|
+
export class ProviderTagMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -32,18 +33,18 @@ export class ProviderTagMetaTable extends BaseMetaTable
|
|
|
32
33
|
created_at: BaseMetaColumn;
|
|
33
34
|
updated_at: BaseMetaColumn;
|
|
34
35
|
}
|
|
35
|
-
constructor()
|
|
36
|
+
constructor(database: NSBaseMetaDatabase)
|
|
36
37
|
{
|
|
37
|
-
super("provider_tag", "Provider Tag");
|
|
38
|
+
super(database, "provider_tag", "Provider Tag", new BaseUUID(""));
|
|
38
39
|
this.columns = {
|
|
39
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
40
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
41
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
42
|
-
name: new BaseMetaColumn("name", "Name", "String", true),
|
|
43
|
-
value: new BaseMetaColumn("value", "Value", "String", true),
|
|
44
|
-
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
45
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
46
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
40
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
41
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
42
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
43
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
44
|
+
value: new BaseMetaColumn(this, "value", "Value", "String", true),
|
|
45
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
46
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
47
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class SentMetaTable extends
|
|
24
|
+
export class SentMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
session_id: BaseMetaColumn;
|
|
@@ -34,20 +35,20 @@ export class SentMetaTable extends BaseMetaTable
|
|
|
34
35
|
successful: BaseMetaColumn;
|
|
35
36
|
result: BaseMetaColumn;
|
|
36
37
|
}
|
|
37
|
-
constructor()
|
|
38
|
+
constructor(database: NSBaseMetaDatabase)
|
|
38
39
|
{
|
|
39
|
-
super("sent", "Sent");
|
|
40
|
+
super(database, "sent", "Sent", new BaseUUID(""));
|
|
40
41
|
this.columns = {
|
|
41
|
-
id: new BaseMetaColumn("id", "Id", "String", true),
|
|
42
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
43
|
-
session_id: new BaseMetaColumn("session_id", "Session Id", "String", true),
|
|
44
|
-
provider_id: new BaseMetaColumn("provider_id", "Provider Id", "String", true),
|
|
45
|
-
phone: new BaseMetaColumn("phone", "Phone", "String", true),
|
|
46
|
-
message: new BaseMetaColumn("message", "Message", "String", true),
|
|
47
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
48
|
-
sent_at: new BaseMetaColumn("sent_at", "Sent At", "DateTime", false),
|
|
49
|
-
successful: new BaseMetaColumn("successful", "Successful", "Boolean", false),
|
|
50
|
-
result: new BaseMetaColumn("result", "Result", "String", false),
|
|
42
|
+
id: new BaseMetaColumn(this, "id", "Id", "String", true),
|
|
43
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
44
|
+
session_id: new BaseMetaColumn(this, "session_id", "Session Id", "String", true),
|
|
45
|
+
provider_id: new BaseMetaColumn(this, "provider_id", "Provider Id", "String", true),
|
|
46
|
+
phone: new BaseMetaColumn(this, "phone", "Phone", "String", true),
|
|
47
|
+
message: new BaseMetaColumn(this, "message", "Message", "String", true),
|
|
48
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
49
|
+
sent_at: new BaseMetaColumn(this, "sent_at", "Sent At", "DateTime", false),
|
|
50
|
+
successful: new BaseMetaColumn(this, "successful", "Successful", "Boolean", false),
|
|
51
|
+
result: new BaseMetaColumn(this, "result", "Result", "String", false),
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProviderCategoryMetaTable } from "./ProviderCategoryMetaTable";
|
|
2
|
-
import { ProviderFieldMetaTable } from "./ProviderFieldMetaTable";
|
|
3
|
-
import { ProviderMetaTable } from "./ProviderMetaTable";
|
|
4
|
-
import { ProviderTagMetaTable } from "./ProviderTagMetaTable";
|
|
5
|
-
import { SentMetaTable } from "./SentMetaTable";
|
|
6
|
-
export declare class MetaDatabase {
|
|
7
|
-
static main: MetaDatabase;
|
|
8
|
-
provider: ProviderMetaTable;
|
|
9
|
-
provider_category: ProviderCategoryMetaTable;
|
|
10
|
-
provider_field: ProviderFieldMetaTable;
|
|
11
|
-
provider_tag: ProviderTagMetaTable;
|
|
12
|
-
sent: SentMetaTable;
|
|
13
|
-
constructor();
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetaDatabase = void 0;
|
|
4
|
-
const ProviderCategoryMetaTable_1 = require("./ProviderCategoryMetaTable");
|
|
5
|
-
const ProviderFieldMetaTable_1 = require("./ProviderFieldMetaTable");
|
|
6
|
-
const ProviderMetaTable_1 = require("./ProviderMetaTable");
|
|
7
|
-
const ProviderTagMetaTable_1 = require("./ProviderTagMetaTable");
|
|
8
|
-
const SentMetaTable_1 = require("./SentMetaTable");
|
|
9
|
-
class MetaDatabase {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.provider = new ProviderMetaTable_1.ProviderMetaTable();
|
|
12
|
-
this.provider_category = new ProviderCategoryMetaTable_1.ProviderCategoryMetaTable();
|
|
13
|
-
this.provider_field = new ProviderFieldMetaTable_1.ProviderFieldMetaTable();
|
|
14
|
-
this.provider_tag = new ProviderTagMetaTable_1.ProviderTagMetaTable();
|
|
15
|
-
this.sent = new SentMetaTable_1.SentMetaTable();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.MetaDatabase = MetaDatabase;
|
|
19
|
-
MetaDatabase.main = new MetaDatabase();
|
|
20
|
-
;
|
|
21
|
-
//# sourceMappingURL=MetaDatabase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetaDatabase.js","sourceRoot":"","sources":["../../src/meta/MetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,2EAAwE;AACxE,qEAAkE;AAClE,2DAAwD;AACxD,iEAA8D;AAC9D,mDAAgD;AAEhD,MAAa,YAAY;IAQrB;QAEI,IAAI,CAAC,QAAQ,GAAG,IAAI,qCAAiB,EAAE,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,IAAI,qDAAyB,EAAE,CAAC;QACzD,IAAI,CAAC,cAAc,GAAG,IAAI,+CAAsB,EAAE,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,2CAAoB,EAAE,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,IAAI,6BAAa,EAAE,CAAC;IACpC,CAAC;;AAfL,oCAgBC;AAdiB,iBAAI,GAAiB,IAAI,YAAY,EAAE,CAAC;AAczD,CAAC"}
|