namirasoft-sms-sender 1.4.21 → 1.4.23
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/NamirasoftSMSSenderServer.d.ts +1 -1
- package/dist/NamirasoftSMSSenderServer.js +2 -2
- package/dist/NamirasoftSMSSenderServer.js.map +1 -1
- package/dist/NamirasoftSMSSenderServerAWS.d.ts +4 -3
- package/dist/NamirasoftSMSSenderServerAWS.js.map +1 -1
- package/dist/NamirasoftSMSSenderServerProvider.d.ts +1 -2
- package/dist/NamirasoftSMSSenderServerProvider.js.map +1 -1
- package/dist/command/AWSCreateCommand.js +1 -1
- package/dist/command/AWSCreateCommand.js.map +1 -1
- package/dist/command/AWSUpdateCommand.js +4 -4
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/ProviderCategoryMetaTable.js +4 -4
- package/dist/meta/ProviderFieldMetaTable.js +4 -4
- package/dist/meta/ProviderMetaTable.js +3 -3
- package/dist/meta/ProviderTagMetaTable.js +3 -3
- package/dist/meta/SentMetaTable.js +5 -5
- package/dist/row/{AWSInputRow.d.ts → AWSCreateRow.d.ts} +1 -1
- package/dist/row/{AWSInputRow.js → AWSCreateRow.js} +1 -1
- package/dist/row/AWSCreateRow.js.map +1 -0
- package/dist/row/AWSUpdateRow.d.ts +18 -0
- package/dist/row/{ProviderFullRow.js → AWSUpdateRow.js} +1 -1
- package/dist/row/AWSUpdateRow.js.map +1 -0
- package/package.json +3 -3
- package/src/NamirasoftSMSSenderServer.ts +3 -3
- package/src/NamirasoftSMSSenderServerAWS.ts +4 -3
- package/src/NamirasoftSMSSenderServerProvider.ts +2 -3
- package/src/command/AWSCreateCommand.ts +1 -1
- package/src/command/AWSUpdateCommand.ts +4 -4
- package/src/index.ts +2 -2
- package/src/meta/ProviderCategoryMetaTable.ts +4 -4
- package/src/meta/ProviderFieldMetaTable.ts +4 -4
- package/src/meta/ProviderMetaTable.ts +3 -3
- package/src/meta/ProviderTagMetaTable.ts +3 -3
- package/src/meta/SentMetaTable.ts +5 -5
- package/src/row/{AWSInputRow.ts → AWSCreateRow.ts} +1 -1
- package/src/row/{ProviderFullRow.ts → AWSUpdateRow.ts} +11 -10
- package/dist/row/AWSInputRow.js.map +0 -1
- package/dist/row/ProviderFullRow.d.ts +0 -17
- package/dist/row/ProviderFullRow.js.map +0 -1
|
@@ -17,7 +17,7 @@ export declare class NamirasoftSMSSenderServer extends NSABaseServer {
|
|
|
17
17
|
provider_tag: NamirasoftSMSSenderServerProviderTag;
|
|
18
18
|
s_m_s: NamirasoftSMSSenderServerSMS;
|
|
19
19
|
provider: NamirasoftSMSSenderServerProvider;
|
|
20
|
-
|
|
20
|
+
aws: NamirasoftSMSSenderServerAWS;
|
|
21
21
|
sent: NamirasoftSMSSenderServerSent;
|
|
22
22
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
|
23
23
|
}
|
|
@@ -13,7 +13,7 @@ const NamirasoftSMSSenderServerSent_1 = require("./NamirasoftSMSSenderServerSent
|
|
|
13
13
|
const NamirasoftSMSSenderServerValue_1 = require("./NamirasoftSMSSenderServerValue");
|
|
14
14
|
class NamirasoftSMSSenderServer extends namirasoft_account_1.NSABaseServer {
|
|
15
15
|
constructor(base_url, manager, onError) {
|
|
16
|
-
super(base_url, `1.4.
|
|
16
|
+
super(base_url, `1.4.23`, manager, onError);
|
|
17
17
|
this.healthz = new NamirasoftSMSSenderServerHealthz_1.NamirasoftSMSSenderServerHealthz(this);
|
|
18
18
|
this.value = new NamirasoftSMSSenderServerValue_1.NamirasoftSMSSenderServerValue(this);
|
|
19
19
|
this.provider_category = new NamirasoftSMSSenderServerProviderCategory_1.NamirasoftSMSSenderServerProviderCategory(this);
|
|
@@ -21,7 +21,7 @@ class NamirasoftSMSSenderServer extends namirasoft_account_1.NSABaseServer {
|
|
|
21
21
|
this.provider_tag = new NamirasoftSMSSenderServerProviderTag_1.NamirasoftSMSSenderServerProviderTag(this);
|
|
22
22
|
this.s_m_s = new NamirasoftSMSSenderServerSMS_1.NamirasoftSMSSenderServerSMS(this);
|
|
23
23
|
this.provider = new NamirasoftSMSSenderServerProvider_1.NamirasoftSMSSenderServerProvider(this);
|
|
24
|
-
this.
|
|
24
|
+
this.aws = new NamirasoftSMSSenderServerAWS_1.NamirasoftSMSSenderServerAWS(this);
|
|
25
25
|
this.sent = new NamirasoftSMSSenderServerSent_1.NamirasoftSMSSenderServerSent(this);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSMSSenderServer.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,iFAA8E;AAC9E,yFAAsF;AACtF,2FAAwF;AACxF,2GAAwG;AACxG,qGAAkG;AAClG,iGAA8F;AAC9F,iFAA8E;AAC9E,mFAAgF;AAChF,qFAAkF;AAGlF,MAAa,yBAA0B,SAAQ,kCAAa;IAWxD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,GAAG,IAAI,+DAA8B,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,iBAAiB,GAAG,IAAI,qFAAyC,CAAC,IAAI,CAAC,CAAC;QAC7E,IAAI,CAAC,cAAc,GAAG,IAAI,+EAAsC,CAAC,IAAI,CAAC,CAAC;QACvE,IAAI,CAAC,YAAY,GAAG,IAAI,2EAAoC,CAAC,IAAI,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,GAAG,IAAI,2DAA4B,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CA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/AWSCreateRow";
|
|
2
|
+
import { AWSUpdateRow } from "./row/AWSUpdateRow";
|
|
2
3
|
import { NamirasoftSMSSenderServer } from "./NamirasoftSMSSenderServer";
|
|
3
4
|
import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
|
|
4
5
|
import { ProviderRow } from "./row/ProviderRow";
|
|
5
6
|
export declare class NamirasoftSMSSenderServerAWS extends NamirasoftSMSSenderServerBase {
|
|
6
7
|
constructor(server: NamirasoftSMSSenderServer);
|
|
7
|
-
Create(body:
|
|
8
|
-
Update(id: string, body:
|
|
8
|
+
Create(body: AWSCreateRow): Promise<ProviderRow>;
|
|
9
|
+
Update(id: string, body: AWSUpdateRow): Promise<ProviderRow>;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSMSSenderServerAWS.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"NamirasoftSMSSenderServerAWS.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerAWS.ts"],"names":[],"mappings":";;;;;;;;;;;;AAuBA,mFAAgF;AAGhF,MAAa,4BAA6B,SAAQ,6DAA6B;IAE3E,YAAY,MAAiC;QAEzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,MAAM,CAAC,IAAkB;;YAE3B,IAAI,IAAI,GAAG,MAAM,CAAC;YAClB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAc,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,IAAkB;;YAEvC,IAAI,IAAI,GAAG,QAAQ,EAAE,EAAE,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AApBD,oEAoBC;AAAA,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FilterItem } from "namirasoft-core";
|
|
2
2
|
import { NamirasoftSMSSenderServer } from "./NamirasoftSMSSenderServer";
|
|
3
3
|
import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
|
|
4
|
-
import { ProviderFullRow } from "./row/ProviderFullRow";
|
|
5
4
|
import { ProviderRow } from "./row/ProviderRow";
|
|
6
5
|
import { SortItem } from "namirasoft-core";
|
|
7
6
|
export declare class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServerBase {
|
|
@@ -10,7 +9,7 @@ export declare class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSend
|
|
|
10
9
|
rows: ProviderRow[];
|
|
11
10
|
count: number;
|
|
12
11
|
}>;
|
|
13
|
-
Get(id: string): Promise<
|
|
12
|
+
Get(id: string): Promise<ProviderRow>;
|
|
14
13
|
Delete(id: string): Promise<void>;
|
|
15
14
|
Request(id: string, body: {
|
|
16
15
|
phone: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSMSSenderServerProvider.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,mFAAgF;
|
|
1
|
+
{"version":3,"file":"NamirasoftSMSSenderServerProvider.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AA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AAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU;;YAEnB,IAAI,IAAI,GAAG,aAAa,EAAE,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;IACK,OAAO,CAAC,EAAU,EAAE,IAAuB;;YAE7C,IAAI,IAAI,GAAG,qBAAqB,EAAE,EAAE,CAAC;YACrC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAgD,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACtG,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,IAAsB;;YAE3C,IAAI,IAAI,GAAG,oBAAoB,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAO,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAClD,CAAC;KAAA;CACJ;AAzCD,8EAyCC;AAAA,CAAC"}
|
|
@@ -125,7 +125,7 @@ class AWSCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
125
125
|
manager.setValue(token, false);
|
|
126
126
|
let url = this.app.storage.getItem("ns-sms-sender-server-url");
|
|
127
127
|
let server = new NamirasoftSMSSenderServer_1.NamirasoftSMSSenderServer(url, manager, e => this.app.logger.error(e.message));
|
|
128
|
-
let ans = yield server.
|
|
128
|
+
let ans = yield server.aws.Create({
|
|
129
129
|
workspace_id: this.option_values.workspace_id,
|
|
130
130
|
name: this.option_values.name,
|
|
131
131
|
limit: this.option_values.limit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSCreateCommand.js","sourceRoot":"","sources":["../../src/command/AWSCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,4EAAyE;AACzE,2DAA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IAAI,qDAAyB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAChG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;gBAC9B,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,eAAe;gBACnD,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,cAAc;gBACjD,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAiB;gBACvD,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,cAAc;gBACjD,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;aAChD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjID,4CAiIC;AAAA,CAAC"}
|
|
@@ -69,7 +69,7 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
69
69
|
name: "region",
|
|
70
70
|
short: "",
|
|
71
71
|
description: "Provides the value of 'region' in body",
|
|
72
|
-
optional:
|
|
72
|
+
optional: true,
|
|
73
73
|
args: ["region"],
|
|
74
74
|
defaults: [""]
|
|
75
75
|
},
|
|
@@ -77,7 +77,7 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
77
77
|
name: "access_key",
|
|
78
78
|
short: "",
|
|
79
79
|
description: "Provides the value of 'access_key' in body",
|
|
80
|
-
optional:
|
|
80
|
+
optional: true,
|
|
81
81
|
args: ["access_key"],
|
|
82
82
|
defaults: [""]
|
|
83
83
|
},
|
|
@@ -85,7 +85,7 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
85
85
|
name: "secret_key",
|
|
86
86
|
short: "",
|
|
87
87
|
description: "Provides the value of 'secret_key' in body",
|
|
88
|
-
optional:
|
|
88
|
+
optional: true,
|
|
89
89
|
args: ["secret_key"],
|
|
90
90
|
defaults: [""]
|
|
91
91
|
},
|
|
@@ -125,7 +125,7 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
125
125
|
manager.setValue(token, false);
|
|
126
126
|
let url = this.app.storage.getItem("ns-sms-sender-server-url");
|
|
127
127
|
let server = new NamirasoftSMSSenderServer_1.NamirasoftSMSSenderServer(url, manager, e => this.app.logger.error(e.message));
|
|
128
|
-
let ans = yield server.
|
|
128
|
+
let ans = yield server.aws.Update(this.arg_values[0], {
|
|
129
129
|
workspace_id: this.option_values.workspace_id,
|
|
130
130
|
name: this.option_values.name,
|
|
131
131
|
limit: this.option_values.limit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSUpdateCommand.js","sourceRoot":"","sources":["../../src/command/AWSUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8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CAAC,aAAa,CAAC,UAAU;gBACzC,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAiB;gBACvD,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,cAAc;gBACjD,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;aAChD,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjID,4CAiIC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -53,13 +53,13 @@ export * from "./meta/ProviderFieldMetaTable";
|
|
|
53
53
|
export * from "./meta/ProviderMetaTable";
|
|
54
54
|
export * from "./meta/ProviderTagMetaTable";
|
|
55
55
|
export * from "./meta/SentMetaTable";
|
|
56
|
-
export * from "./row/
|
|
56
|
+
export * from "./row/AWSCreateRow";
|
|
57
|
+
export * from "./row/AWSUpdateRow";
|
|
57
58
|
export * from "./row/EntityCategoryInputRow";
|
|
58
59
|
export * from "./row/EntityFieldInputRow";
|
|
59
60
|
export * from "./row/EntityTagInputRow";
|
|
60
61
|
export * from "./row/ProviderCategoryRow";
|
|
61
62
|
export * from "./row/ProviderFieldRow";
|
|
62
|
-
export * from "./row/ProviderFullRow";
|
|
63
63
|
export * from "./row/ProviderRow";
|
|
64
64
|
export * from "./row/ProviderTagRow";
|
|
65
65
|
export * from "./row/SentRow";
|
package/dist/index.js
CHANGED
|
@@ -69,13 +69,13 @@ __exportStar(require("./meta/ProviderFieldMetaTable"), exports);
|
|
|
69
69
|
__exportStar(require("./meta/ProviderMetaTable"), exports);
|
|
70
70
|
__exportStar(require("./meta/ProviderTagMetaTable"), exports);
|
|
71
71
|
__exportStar(require("./meta/SentMetaTable"), exports);
|
|
72
|
-
__exportStar(require("./row/
|
|
72
|
+
__exportStar(require("./row/AWSCreateRow"), exports);
|
|
73
|
+
__exportStar(require("./row/AWSUpdateRow"), exports);
|
|
73
74
|
__exportStar(require("./row/EntityCategoryInputRow"), exports);
|
|
74
75
|
__exportStar(require("./row/EntityFieldInputRow"), exports);
|
|
75
76
|
__exportStar(require("./row/EntityTagInputRow"), exports);
|
|
76
77
|
__exportStar(require("./row/ProviderCategoryRow"), exports);
|
|
77
78
|
__exportStar(require("./row/ProviderFieldRow"), exports);
|
|
78
|
-
__exportStar(require("./row/ProviderFullRow"), exports);
|
|
79
79
|
__exportStar(require("./row/ProviderRow"), exports);
|
|
80
80
|
__exportStar(require("./row/ProviderTagRow"), exports);
|
|
81
81
|
__exportStar(require("./row/SentRow"), 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,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,yEAAuD;AACvD,mEAAiD;AACjD,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,uDAAqC;AACrC,
|
|
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,+DAA6C;AAC7C,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,yEAAuD;AACvD,mEAAiD;AACjD,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B"}
|
|
@@ -16,10 +16,10 @@ class ProviderCategoryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
16
16
|
constructor(database) {
|
|
17
17
|
super(database, "provider_category", "Provider Category", new namirasoft_core_1.BaseUUID(""));
|
|
18
18
|
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User
|
|
21
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity
|
|
22
|
-
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
22
|
+
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
23
23
|
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
24
24
|
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
25
25
|
};
|
|
@@ -16,10 +16,10 @@ class ProviderFieldMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
16
16
|
constructor(database) {
|
|
17
17
|
super(database, "provider_field", "Provider Field", new namirasoft_core_1.BaseUUID(""));
|
|
18
18
|
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User
|
|
21
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity
|
|
22
|
-
field_id: new namirasoft_core_1.BaseMetaColumn(this, "field_id", "Field
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
22
|
+
field_id: new namirasoft_core_1.BaseMetaColumn(this, "field_id", "Field ID", "String", true),
|
|
23
23
|
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "Any", false),
|
|
24
24
|
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
25
25
|
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
@@ -16,9 +16,9 @@ class ProviderMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
16
16
|
constructor(database) {
|
|
17
17
|
super(database, "provider", "Provider", new namirasoft_core_1.BaseUUID("sms-snd-pvd"));
|
|
18
18
|
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User
|
|
21
|
-
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
22
22
|
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
23
23
|
type: new namirasoft_core_1.BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
24
24
|
p_verified: new namirasoft_core_1.BaseMetaColumn(this, "p_verified", "P Verified", "Boolean", true),
|
|
@@ -16,9 +16,9 @@ class ProviderTagMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
16
16
|
constructor(database) {
|
|
17
17
|
super(database, "provider_tag", "Provider Tag", new namirasoft_core_1.BaseUUID(""));
|
|
18
18
|
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User
|
|
21
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
22
22
|
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
23
23
|
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", false),
|
|
24
24
|
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
@@ -16,11 +16,11 @@ class SentMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
|
16
16
|
constructor(database) {
|
|
17
17
|
super(database, "sent", "Sent", new namirasoft_core_1.BaseUUID(""));
|
|
18
18
|
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User
|
|
21
|
-
session_id: new namirasoft_core_1.BaseMetaColumn(this, "session_id", "Session
|
|
22
|
-
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace
|
|
23
|
-
provider_id: new namirasoft_core_1.BaseMetaColumn(this, "provider_id", "Provider
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
session_id: new namirasoft_core_1.BaseMetaColumn(this, "session_id", "Session ID", "String", true),
|
|
22
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", false),
|
|
23
|
+
provider_id: new namirasoft_core_1.BaseMetaColumn(this, "provider_id", "Provider ID", "String", true),
|
|
24
24
|
phone: new namirasoft_core_1.BaseMetaColumn(this, "phone", "Phone", "String", true),
|
|
25
25
|
message: new namirasoft_core_1.BaseMetaColumn(this, "message", "Message", "String", true),
|
|
26
26
|
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
@@ -2,7 +2,7 @@ import { EntityCategoryInputRow } from "./EntityCategoryInputRow";
|
|
|
2
2
|
import { EntityFieldInputRow } from "./EntityFieldInputRow";
|
|
3
3
|
import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
4
4
|
import { ProviderLimitPerUnit } from "../enum/ProviderLimitPerUnit";
|
|
5
|
-
export type
|
|
5
|
+
export type AWSCreateRow = {
|
|
6
6
|
workspace_id: (string | null);
|
|
7
7
|
name: string;
|
|
8
8
|
limit: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSCreateRow.js","sourceRoot":"","sources":["../../src/row/AWSCreateRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityCategoryInputRow } from "./EntityCategoryInputRow";
|
|
2
|
+
import { EntityFieldInputRow } from "./EntityFieldInputRow";
|
|
3
|
+
import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
4
|
+
import { ProviderLimitPerUnit } from "../enum/ProviderLimitPerUnit";
|
|
5
|
+
export type AWSUpdateRow = {
|
|
6
|
+
workspace_id: (string | null);
|
|
7
|
+
name: string;
|
|
8
|
+
limit: boolean;
|
|
9
|
+
limit_count: (number | null);
|
|
10
|
+
limit_per_value: (number | null);
|
|
11
|
+
limit_per_unit: (ProviderLimitPerUnit | null);
|
|
12
|
+
region: (string | null);
|
|
13
|
+
access_key: (string | null);
|
|
14
|
+
secret_key: (string | null);
|
|
15
|
+
provider_category: (EntityCategoryInputRow | null)[];
|
|
16
|
+
provider_field: (EntityFieldInputRow | null)[];
|
|
17
|
+
provider_tag: (EntityTagInputRow | null)[];
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSUpdateRow.js","sourceRoot":"","sources":["../../src/row/AWSUpdateRow.ts"],"names":[],"mappings":""}
|
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.23",
|
|
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.
|
|
20
|
+
"namirasoft-core": "^1.4.61",
|
|
21
21
|
"namirasoft-site": "^1.4.24",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.5",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.69"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-sms-sender": "./dist/command/cli.js"
|
|
@@ -39,11 +39,11 @@ export class NamirasoftSMSSenderServer extends NSABaseServer
|
|
|
39
39
|
provider_tag: NamirasoftSMSSenderServerProviderTag;
|
|
40
40
|
s_m_s: NamirasoftSMSSenderServerSMS;
|
|
41
41
|
provider: NamirasoftSMSSenderServerProvider;
|
|
42
|
-
|
|
42
|
+
aws: NamirasoftSMSSenderServerAWS;
|
|
43
43
|
sent: NamirasoftSMSSenderServerSent;
|
|
44
44
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
45
45
|
{
|
|
46
|
-
super(base_url, `1.4.
|
|
46
|
+
super(base_url, `1.4.23`, manager, onError);
|
|
47
47
|
this.healthz = new NamirasoftSMSSenderServerHealthz(this);
|
|
48
48
|
this.value = new NamirasoftSMSSenderServerValue(this);
|
|
49
49
|
this.provider_category = new NamirasoftSMSSenderServerProviderCategory(this);
|
|
@@ -51,7 +51,7 @@ export class NamirasoftSMSSenderServer extends NSABaseServer
|
|
|
51
51
|
this.provider_tag = new NamirasoftSMSSenderServerProviderTag(this);
|
|
52
52
|
this.s_m_s = new NamirasoftSMSSenderServerSMS(this);
|
|
53
53
|
this.provider = new NamirasoftSMSSenderServerProvider(this);
|
|
54
|
-
this.
|
|
54
|
+
this.aws = new NamirasoftSMSSenderServerAWS(this);
|
|
55
55
|
this.sent = new NamirasoftSMSSenderServerSent(this);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { AWSCreateRow } from "./row/AWSCreateRow";
|
|
22
|
+
import { AWSUpdateRow } from "./row/AWSUpdateRow";
|
|
22
23
|
import { NamirasoftSMSSenderServer } from "./NamirasoftSMSSenderServer";
|
|
23
24
|
import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
|
|
24
25
|
import { ProviderRow } from "./row/ProviderRow";
|
|
@@ -31,13 +32,13 @@ export class NamirasoftSMSSenderServerAWS extends NamirasoftSMSSenderServerBase
|
|
|
31
32
|
this.Create = this.Create.bind(this);
|
|
32
33
|
this.Update = this.Update.bind(this);
|
|
33
34
|
}
|
|
34
|
-
async Create(body:
|
|
35
|
+
async Create(body: AWSCreateRow): Promise<ProviderRow>
|
|
35
36
|
{
|
|
36
37
|
let path = `/aws`;
|
|
37
38
|
let { data } = await this.server._post<ProviderRow>(path, {}, body);
|
|
38
39
|
return data;
|
|
39
40
|
}
|
|
40
|
-
async Update(id: string, body:
|
|
41
|
+
async Update(id: string, body: AWSUpdateRow): Promise<ProviderRow>
|
|
41
42
|
{
|
|
42
43
|
let path = `/aws/${id}`;
|
|
43
44
|
let { data } = await this.server._put<ProviderRow>(path, {}, body);
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
import { FilterItem } from "namirasoft-core";
|
|
22
22
|
import { NamirasoftSMSSenderServer } from "./NamirasoftSMSSenderServer";
|
|
23
23
|
import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
|
|
24
|
-
import { ProviderFullRow } from "./row/ProviderFullRow";
|
|
25
24
|
import { ProviderRow } from "./row/ProviderRow";
|
|
26
25
|
import { SortItem } from "namirasoft-core";
|
|
27
26
|
|
|
@@ -44,10 +43,10 @@ export class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServer
|
|
|
44
43
|
let { data } = await this.server._get<{ rows: ProviderRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
45
44
|
return data;
|
|
46
45
|
}
|
|
47
|
-
async Get(id: string): Promise<
|
|
46
|
+
async Get(id: string): Promise<ProviderRow>
|
|
48
47
|
{
|
|
49
48
|
let path = `/provider/${id}`;
|
|
50
|
-
let { data } = await this.server._get<
|
|
49
|
+
let { data } = await this.server._get<ProviderRow>(path, {});
|
|
51
50
|
return data;
|
|
52
51
|
}
|
|
53
52
|
async Delete(id: string): Promise<void>
|
|
@@ -136,7 +136,7 @@ export class AWSCreateCommand extends BaseFinalCommand
|
|
|
136
136
|
manager.setValue(token, false);
|
|
137
137
|
let url = this.app.storage.getItem("ns-sms-sender-server-url");
|
|
138
138
|
let server = new NamirasoftSMSSenderServer(url, manager, e => this.app.logger.error(e.message));
|
|
139
|
-
let ans = await server.
|
|
139
|
+
let ans = await server.aws.Create({
|
|
140
140
|
workspace_id: this.option_values.workspace_id,
|
|
141
141
|
name: this.option_values.name,
|
|
142
142
|
limit: this.option_values.limit,
|
|
@@ -80,7 +80,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
80
80
|
name: "region",
|
|
81
81
|
short: "",
|
|
82
82
|
description: "Provides the value of 'region' in body",
|
|
83
|
-
optional:
|
|
83
|
+
optional: true,
|
|
84
84
|
args: ["region"],
|
|
85
85
|
defaults: [""]
|
|
86
86
|
},
|
|
@@ -88,7 +88,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
88
88
|
name: "access_key",
|
|
89
89
|
short: "",
|
|
90
90
|
description: "Provides the value of 'access_key' in body",
|
|
91
|
-
optional:
|
|
91
|
+
optional: true,
|
|
92
92
|
args: ["access_key"],
|
|
93
93
|
defaults: [""]
|
|
94
94
|
},
|
|
@@ -96,7 +96,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
96
96
|
name: "secret_key",
|
|
97
97
|
short: "",
|
|
98
98
|
description: "Provides the value of 'secret_key' in body",
|
|
99
|
-
optional:
|
|
99
|
+
optional: true,
|
|
100
100
|
args: ["secret_key"],
|
|
101
101
|
defaults: [""]
|
|
102
102
|
},
|
|
@@ -136,7 +136,7 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
136
136
|
manager.setValue(token, false);
|
|
137
137
|
let url = this.app.storage.getItem("ns-sms-sender-server-url");
|
|
138
138
|
let server = new NamirasoftSMSSenderServer(url, manager, e => this.app.logger.error(e.message));
|
|
139
|
-
let ans = await server.
|
|
139
|
+
let ans = await server.aws.Update(this.arg_values[0], {
|
|
140
140
|
workspace_id: this.option_values.workspace_id,
|
|
141
141
|
name: this.option_values.name,
|
|
142
142
|
limit: this.option_values.limit,
|
package/src/index.ts
CHANGED
|
@@ -73,13 +73,13 @@ export * from "./meta/ProviderFieldMetaTable";
|
|
|
73
73
|
export * from "./meta/ProviderMetaTable";
|
|
74
74
|
export * from "./meta/ProviderTagMetaTable";
|
|
75
75
|
export * from "./meta/SentMetaTable";
|
|
76
|
-
export * from "./row/
|
|
76
|
+
export * from "./row/AWSCreateRow";
|
|
77
|
+
export * from "./row/AWSUpdateRow";
|
|
77
78
|
export * from "./row/EntityCategoryInputRow";
|
|
78
79
|
export * from "./row/EntityFieldInputRow";
|
|
79
80
|
export * from "./row/EntityTagInputRow";
|
|
80
81
|
export * from "./row/ProviderCategoryRow";
|
|
81
82
|
export * from "./row/ProviderFieldRow";
|
|
82
|
-
export * from "./row/ProviderFullRow";
|
|
83
83
|
export * from "./row/ProviderRow";
|
|
84
84
|
export * from "./row/ProviderTagRow";
|
|
85
85
|
export * from "./row/SentRow";
|
|
@@ -37,10 +37,10 @@ export class ProviderCategoryMetaTable extends NSBaseMetaTable<NamirasoftSMSSend
|
|
|
37
37
|
{
|
|
38
38
|
super(database, "provider_category", "Provider Category", new BaseUUID(""));
|
|
39
39
|
this.columns = {
|
|
40
|
-
id: new BaseMetaColumn(this, "id", "
|
|
41
|
-
user_id: new BaseMetaColumn(this, "user_id", "User
|
|
42
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity
|
|
43
|
-
category_id: new BaseMetaColumn(this, "category_id", "Category
|
|
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
|
+
category_id: new BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
44
44
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
45
45
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
46
46
|
};
|
|
@@ -38,10 +38,10 @@ export class ProviderFieldMetaTable extends NSBaseMetaTable<NamirasoftSMSSenderS
|
|
|
38
38
|
{
|
|
39
39
|
super(database, "provider_field", "Provider Field", new BaseUUID(""));
|
|
40
40
|
this.columns = {
|
|
41
|
-
id: new BaseMetaColumn(this, "id", "
|
|
42
|
-
user_id: new BaseMetaColumn(this, "user_id", "User
|
|
43
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity
|
|
44
|
-
field_id: new BaseMetaColumn(this, "field_id", "Field
|
|
41
|
+
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
42
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
43
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
44
|
+
field_id: new BaseMetaColumn(this, "field_id", "Field ID", "String", true),
|
|
45
45
|
value: new BaseMetaColumn(this, "value", "Value", "Any", false),
|
|
46
46
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
47
47
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
@@ -44,9 +44,9 @@ export class ProviderMetaTable extends NSBaseMetaTable<NamirasoftSMSSenderServer
|
|
|
44
44
|
{
|
|
45
45
|
super(database, "provider", "Provider", new BaseUUID("sms-snd-pvd"));
|
|
46
46
|
this.columns = {
|
|
47
|
-
id: new BaseMetaColumn(this, "id", "
|
|
48
|
-
user_id: new BaseMetaColumn(this, "user_id", "User
|
|
49
|
-
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace
|
|
47
|
+
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
48
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
49
|
+
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
50
50
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
51
51
|
type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
52
52
|
p_verified: new BaseMetaColumn(this, "p_verified", "P Verified", "Boolean", true),
|
|
@@ -38,9 +38,9 @@ export class ProviderTagMetaTable extends NSBaseMetaTable<NamirasoftSMSSenderSer
|
|
|
38
38
|
{
|
|
39
39
|
super(database, "provider_tag", "Provider Tag", new BaseUUID(""));
|
|
40
40
|
this.columns = {
|
|
41
|
-
id: new BaseMetaColumn(this, "id", "
|
|
42
|
-
user_id: new BaseMetaColumn(this, "user_id", "User
|
|
43
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity
|
|
41
|
+
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
42
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
43
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
44
44
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
45
45
|
value: new BaseMetaColumn(this, "value", "Value", "String", false),
|
|
46
46
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
@@ -42,11 +42,11 @@ export class SentMetaTable extends NSBaseMetaTable<NamirasoftSMSSenderServer, Se
|
|
|
42
42
|
{
|
|
43
43
|
super(database, "sent", "Sent", new BaseUUID(""));
|
|
44
44
|
this.columns = {
|
|
45
|
-
id: new BaseMetaColumn(this, "id", "
|
|
46
|
-
user_id: new BaseMetaColumn(this, "user_id", "User
|
|
47
|
-
session_id: new BaseMetaColumn(this, "session_id", "Session
|
|
48
|
-
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace
|
|
49
|
-
provider_id: new BaseMetaColumn(this, "provider_id", "Provider
|
|
45
|
+
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
46
|
+
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
47
|
+
session_id: new BaseMetaColumn(this, "session_id", "Session ID", "String", true),
|
|
48
|
+
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", false),
|
|
49
|
+
provider_id: new BaseMetaColumn(this, "provider_id", "Provider ID", "String", true),
|
|
50
50
|
phone: new BaseMetaColumn(this, "phone", "Phone", "String", true),
|
|
51
51
|
message: new BaseMetaColumn(this, "message", "Message", "String", true),
|
|
52
52
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
@@ -23,7 +23,7 @@ import { EntityFieldInputRow } from "./EntityFieldInputRow";
|
|
|
23
23
|
import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
24
24
|
import { ProviderLimitPerUnit } from "../enum/ProviderLimitPerUnit";
|
|
25
25
|
|
|
26
|
-
export type
|
|
26
|
+
export type AWSCreateRow =
|
|
27
27
|
{
|
|
28
28
|
workspace_id: (string | null);
|
|
29
29
|
name: string;
|
|
@@ -18,22 +18,23 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
+
import { EntityCategoryInputRow } from "./EntityCategoryInputRow";
|
|
22
|
+
import { EntityFieldInputRow } from "./EntityFieldInputRow";
|
|
23
|
+
import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
21
24
|
import { ProviderLimitPerUnit } from "../enum/ProviderLimitPerUnit";
|
|
22
|
-
import { ProviderType } from "../enum/ProviderType";
|
|
23
25
|
|
|
24
|
-
export type
|
|
26
|
+
export type AWSUpdateRow =
|
|
25
27
|
{
|
|
26
|
-
|
|
27
|
-
user_id: string;
|
|
28
|
-
workspace_id: string;
|
|
28
|
+
workspace_id: (string | null);
|
|
29
29
|
name: string;
|
|
30
|
-
type: ProviderType;
|
|
31
|
-
p_verified: boolean;
|
|
32
|
-
meta: any;
|
|
33
30
|
limit: boolean;
|
|
34
31
|
limit_count: (number | null);
|
|
35
32
|
limit_per_value: (number | null);
|
|
36
33
|
limit_per_unit: (ProviderLimitPerUnit | null);
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
region: (string | null);
|
|
35
|
+
access_key: (string | null);
|
|
36
|
+
secret_key: (string | null);
|
|
37
|
+
provider_category: (EntityCategoryInputRow | null)[];
|
|
38
|
+
provider_field: (EntityFieldInputRow | null)[];
|
|
39
|
+
provider_tag: (EntityTagInputRow | null)[];
|
|
39
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AWSInputRow.js","sourceRoot":"","sources":["../../src/row/AWSInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ProviderLimitPerUnit } from "../enum/ProviderLimitPerUnit";
|
|
2
|
-
import { ProviderType } from "../enum/ProviderType";
|
|
3
|
-
export type ProviderFullRow = {
|
|
4
|
-
id: string;
|
|
5
|
-
user_id: string;
|
|
6
|
-
workspace_id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
type: ProviderType;
|
|
9
|
-
p_verified: boolean;
|
|
10
|
-
meta: any;
|
|
11
|
-
limit: boolean;
|
|
12
|
-
limit_count: (number | null);
|
|
13
|
-
limit_per_value: (number | null);
|
|
14
|
-
limit_per_unit: (ProviderLimitPerUnit | null);
|
|
15
|
-
created_at: Date;
|
|
16
|
-
updated_at: Date;
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderFullRow.js","sourceRoot":"","sources":["../../src/row/ProviderFullRow.ts"],"names":[],"mappings":""}
|