namirasoft-sms-sender 1.3.17 → 1.3.18
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.js +1 -1
- package/dist/NamirasoftSMSSenderServerProvider.d.ts +7 -0
- package/dist/NamirasoftSMSSenderServerProvider.js +15 -0
- package/dist/NamirasoftSMSSenderServerProvider.js.map +1 -1
- package/dist/command/AWSCreateCommand.js +54 -0
- package/dist/command/AWSCreateCommand.js.map +1 -1
- package/dist/command/AWSUpdateCommand.js +54 -0
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/command/ProviderCommand.js +4 -0
- package/dist/command/ProviderCommand.js.map +1 -1
- package/dist/command/ProviderRequestCommand.d.ts +5 -0
- package/dist/command/ProviderRequestCommand.js +37 -0
- package/dist/command/ProviderRequestCommand.js.map +1 -0
- package/dist/command/ProviderVerifyCommand.d.ts +5 -0
- package/dist/command/ProviderVerifyCommand.js +48 -0
- package/dist/command/ProviderVerifyCommand.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/ProviderMetaTable.d.ts +6 -0
- package/dist/meta/ProviderMetaTable.js +6 -0
- package/dist/meta/ProviderMetaTable.js.map +1 -1
- package/dist/meta/SentMetaTable.js +3 -3
- package/dist/meta/SentMetaTable.js.map +1 -1
- package/dist/row/AWSInputRow.d.ts +6 -0
- package/dist/row/ProviderRow.d.ts +6 -0
- package/dist/row/SentRow.d.ts +3 -3
- package/package.json +4 -4
- package/src/NamirasoftSMSSenderServerBase.ts +1 -1
- package/src/NamirasoftSMSSenderServerProvider.ts +13 -0
- package/src/command/AWSCreateCommand.ts +54 -0
- package/src/command/AWSUpdateCommand.ts +54 -0
- package/src/command/ProviderCommand.ts +4 -0
- package/src/command/ProviderRequestCommand.ts +44 -0
- package/src/command/ProviderVerifyCommand.ts +55 -0
- package/src/index.ts +2 -0
- package/src/meta/ProviderMetaTable.ts +12 -0
- package/src/meta/SentMetaTable.ts +3 -3
- package/src/row/AWSInputRow.ts +6 -0
- package/src/row/ProviderRow.ts +6 -0
- package/src/row/SentRow.ts +3 -3
|
@@ -4,7 +4,7 @@ exports.NamirasoftSMSSenderServerBase = void 0;
|
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
5
|
class NamirasoftSMSSenderServerBase extends namirasoft_account_1.NamirasoftServerBase {
|
|
6
6
|
constructor(manager, onError) {
|
|
7
|
-
super(`https://sms-sender.namirasoft.com/api/v1`, `1.3.
|
|
7
|
+
super(`https://sms-sender.namirasoft.com/api/v1`, `1.3.18`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftSMSSenderServerBase = NamirasoftSMSSenderServerBase;
|
|
@@ -10,4 +10,11 @@ export declare class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSend
|
|
|
10
10
|
}>;
|
|
11
11
|
Get(id: string): Promise<ProviderRow>;
|
|
12
12
|
Delete(id: string): Promise<void>;
|
|
13
|
+
Request(id: string): Promise<{
|
|
14
|
+
next_time: number;
|
|
15
|
+
error: (string | null);
|
|
16
|
+
}>;
|
|
17
|
+
Verify(id: string, body: {
|
|
18
|
+
code: string;
|
|
19
|
+
}): Promise<void>;
|
|
13
20
|
}
|
|
@@ -18,6 +18,8 @@ class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServerBase_1.
|
|
|
18
18
|
this.List = this.List.bind(this);
|
|
19
19
|
this.Get = this.Get.bind(this);
|
|
20
20
|
this.Delete = this.Delete.bind(this);
|
|
21
|
+
this.Request = this.Request.bind(this);
|
|
22
|
+
this.Verify = this.Verify.bind(this);
|
|
21
23
|
}
|
|
22
24
|
List(filters, page, size) {
|
|
23
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -40,6 +42,19 @@ class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServerBase_1.
|
|
|
40
42
|
yield this._delete(path, {});
|
|
41
43
|
});
|
|
42
44
|
}
|
|
45
|
+
Request(id) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
let path = `/provider/request/${id}`;
|
|
48
|
+
let { data } = yield this._post(path, {});
|
|
49
|
+
return data;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
Verify(id, body) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
let path = `/provider/verify/${id}`;
|
|
55
|
+
yield this._post(path, {}, body);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
43
58
|
}
|
|
44
59
|
exports.NamirasoftSMSSenderServerProvider = NamirasoftSMSSenderServerProvider;
|
|
45
60
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftSMSSenderServerProvider.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAC7C,mFAAgF;AAIhF,MAAa,iCAAkC,SAAQ,6DAA6B;IAEhF,YAAY,OAAqB,EAAE,OAA+B;QAE9D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB;;YAEjF,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,IAAI,GAAG,gBAAgB,CAAC;YAC5B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,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["name"],
|
|
50
50
|
defaults: [""]
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: "phone",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'phone' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["phone"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "approved",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'approved' in body",
|
|
64
|
+
optional: false,
|
|
65
|
+
args: ["approved"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "otp",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'otp' in body",
|
|
72
|
+
optional: true,
|
|
73
|
+
args: ["otp"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "otp_time",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'otp_time' in body",
|
|
80
|
+
optional: true,
|
|
81
|
+
args: ["otp_time"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "otp_req_tried_count",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'otp_req_tried_count' in body",
|
|
88
|
+
optional: false,
|
|
89
|
+
args: ["otp_req_tried_count"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "otp_ver_tried_count",
|
|
94
|
+
short: "",
|
|
95
|
+
description: "Provides the value of 'otp_ver_tried_count' in body",
|
|
96
|
+
optional: false,
|
|
97
|
+
args: ["otp_ver_tried_count"],
|
|
98
|
+
defaults: [""]
|
|
99
|
+
},
|
|
52
100
|
{
|
|
53
101
|
name: "region",
|
|
54
102
|
short: "",
|
|
@@ -89,6 +137,12 @@ class AWSCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
89
137
|
user_id: this.option_values.user_id,
|
|
90
138
|
project_id: this.option_values.project_id,
|
|
91
139
|
name: this.option_values.name,
|
|
140
|
+
phone: this.option_values.phone,
|
|
141
|
+
approved: this.option_values.approved,
|
|
142
|
+
otp: this.option_values.otp,
|
|
143
|
+
otp_time: this.option_values.otp_time,
|
|
144
|
+
otp_req_tried_count: this.option_values.otp_req_tried_count,
|
|
145
|
+
otp_ver_tried_count: this.option_values.otp_ver_tried_count,
|
|
92
146
|
region: this.option_values.region,
|
|
93
147
|
key: this.option_values.key,
|
|
94
148
|
secret: this.option_values.secret
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSCreateCommand.js","sourceRoot":"","sources":["../../src/command/AWSCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,oCAAoC;gBACjD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,IAAI,CAAC;gBACZ,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yCAAyC;gBACtD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,SAAS,CAAC;gBACjB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ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
|
+
{
|
|
53
|
+
name: "phone",
|
|
54
|
+
short: "",
|
|
55
|
+
description: "Provides the value of 'phone' in body",
|
|
56
|
+
optional: true,
|
|
57
|
+
args: ["phone"],
|
|
58
|
+
defaults: [""]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "approved",
|
|
62
|
+
short: "",
|
|
63
|
+
description: "Provides the value of 'approved' in body",
|
|
64
|
+
optional: false,
|
|
65
|
+
args: ["approved"],
|
|
66
|
+
defaults: [""]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "otp",
|
|
70
|
+
short: "",
|
|
71
|
+
description: "Provides the value of 'otp' in body",
|
|
72
|
+
optional: true,
|
|
73
|
+
args: ["otp"],
|
|
74
|
+
defaults: [""]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "otp_time",
|
|
78
|
+
short: "",
|
|
79
|
+
description: "Provides the value of 'otp_time' in body",
|
|
80
|
+
optional: true,
|
|
81
|
+
args: ["otp_time"],
|
|
82
|
+
defaults: [""]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "otp_req_tried_count",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'otp_req_tried_count' in body",
|
|
88
|
+
optional: false,
|
|
89
|
+
args: ["otp_req_tried_count"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "otp_ver_tried_count",
|
|
94
|
+
short: "",
|
|
95
|
+
description: "Provides the value of 'otp_ver_tried_count' in body",
|
|
96
|
+
optional: false,
|
|
97
|
+
args: ["otp_ver_tried_count"],
|
|
98
|
+
defaults: [""]
|
|
99
|
+
},
|
|
52
100
|
{
|
|
53
101
|
name: "region",
|
|
54
102
|
short: "",
|
|
@@ -89,6 +137,12 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
89
137
|
user_id: this.option_values.user_id,
|
|
90
138
|
project_id: this.option_values.project_id,
|
|
91
139
|
name: this.option_values.name,
|
|
140
|
+
phone: this.option_values.phone,
|
|
141
|
+
approved: this.option_values.approved,
|
|
142
|
+
otp: this.option_values.otp,
|
|
143
|
+
otp_time: this.option_values.otp_time,
|
|
144
|
+
otp_req_tried_count: this.option_values.otp_req_tried_count,
|
|
145
|
+
otp_ver_tried_count: this.option_values.otp_ver_tried_count,
|
|
92
146
|
region: this.option_values.region,
|
|
93
147
|
key: this.option_values.key,
|
|
94
148
|
secret: this.option_values.secret
|
|
@@ -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,IAAI;gBACV,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,oCAAoC;gBACjD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,IAAI,CAAC;gBACZ,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,yCAAyC;gBACtD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,SAAS,CAAC;gBACjB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,4CAA4C;gBACzD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,YAAY,CAAC;gBACpB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EA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
const ProviderDeleteCommand_1 = require("./ProviderDeleteCommand");
|
|
6
6
|
const ProviderGetCommand_1 = require("./ProviderGetCommand");
|
|
7
7
|
const ProviderListCommand_1 = require("./ProviderListCommand");
|
|
8
|
+
const ProviderRequestCommand_1 = require("./ProviderRequestCommand");
|
|
9
|
+
const ProviderVerifyCommand_1 = require("./ProviderVerifyCommand");
|
|
8
10
|
class ProviderCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
9
11
|
constructor(argv) {
|
|
10
12
|
super(argv, {
|
|
11
13
|
"list": ProviderListCommand_1.ProviderListCommand,
|
|
12
14
|
"get": ProviderGetCommand_1.ProviderGetCommand,
|
|
13
15
|
"delete": ProviderDeleteCommand_1.ProviderDeleteCommand,
|
|
16
|
+
"request": ProviderRequestCommand_1.ProviderRequestCommand,
|
|
17
|
+
"verify": ProviderVerifyCommand_1.ProviderVerifyCommand,
|
|
14
18
|
});
|
|
15
19
|
}
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderCommand.js","sourceRoot":"","sources":["../../src/command/ProviderCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mEAAgE;AAChE,6DAA0D;AAC1D,+DAA4D;
|
|
1
|
+
{"version":3,"file":"ProviderCommand.js","sourceRoot":"","sources":["../../src/command/ProviderCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,mEAAgE;AAChE,6DAA0D;AAC1D,+DAA4D;AAC5D,qEAAkE;AAClE,mEAAgE;AAEhE,MAAa,eAAgB,SAAQ,0CAAoB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,yCAAmB;YAC3B,KAAK,EAAE,uCAAkB;YACzB,QAAQ,EAAE,6CAAqB;YAC/B,SAAS,EAAE,+CAAsB;YACjC,QAAQ,EAAE,6CAAqB;SAClC,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,0CAYC;AAAA,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProviderRequestCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftSMSSenderServer_1 = require("../NamirasoftSMSSenderServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ProviderRequestCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-sms-sender account config \nor \n{this.command} account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemory();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let server = new NamirasoftSMSSenderServer_1.NamirasoftSMSSenderServer(manager, e => this.app.logger.error(e.message));
|
|
30
|
+
let ans = yield server.provider.Request(this.arg_values[0]);
|
|
31
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ProviderRequestCommand = ProviderRequestCommand;
|
|
36
|
+
;
|
|
37
|
+
//# sourceMappingURL=ProviderRequestCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderRequestCommand.js","sourceRoot":"","sources":["../../src/command/ProviderRequestCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,sBAAuB,SAAQ,sCAAgB;IAExD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,sHAAsH,CAAC,CAAC;YAC5I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,MAAM,GAAG,IAAI,qDAAyB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlBD,wDAkBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProviderVerifyCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftSMSSenderServer_1 = require("../NamirasoftSMSSenderServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ProviderVerifyCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], [
|
|
20
|
+
{
|
|
21
|
+
name: "code",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'code' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["code"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
}
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
exec() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
let token = this.app.storage.getNSAToken();
|
|
33
|
+
if (token == null)
|
|
34
|
+
throw new Error("Token is not available. Please login first using:\nns-sms-sender account config \nor \n{this.command} account login.");
|
|
35
|
+
let storage = new namirasoft_core_1.IStorageMemory();
|
|
36
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
37
|
+
manager.setValue(token, false);
|
|
38
|
+
let server = new NamirasoftSMSSenderServer_1.NamirasoftSMSSenderServer(manager, e => this.app.logger.error(e.message));
|
|
39
|
+
let ans = yield server.provider.Verify(this.arg_values[0], {
|
|
40
|
+
code: this.option_values.code
|
|
41
|
+
});
|
|
42
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ProviderVerifyCommand = ProviderVerifyCommand;
|
|
47
|
+
;
|
|
48
|
+
//# sourceMappingURL=ProviderVerifyCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderVerifyCommand.js","sourceRoot":"","sources":["../../src/command/ProviderVerifyCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,qBAAsB,SAAQ,sCAAgB;IAEvD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;SACA,CAAC,CAAC;IACX,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,sHAAsH,CAAC,CAAC;YAC5I,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,MAAM,GAAG,IAAI,qDAAyB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACvD,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;aAChC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA7BD,sDA6BC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -30,12 +30,14 @@ export * from "./command/ProviderFieldListCommand";
|
|
|
30
30
|
export * from "./command/ProviderFieldUpdateCommand";
|
|
31
31
|
export * from "./command/ProviderGetCommand";
|
|
32
32
|
export * from "./command/ProviderListCommand";
|
|
33
|
+
export * from "./command/ProviderRequestCommand";
|
|
33
34
|
export * from "./command/ProviderTagCommand";
|
|
34
35
|
export * from "./command/ProviderTagCreateCommand";
|
|
35
36
|
export * from "./command/ProviderTagDeleteCommand";
|
|
36
37
|
export * from "./command/ProviderTagGetCommand";
|
|
37
38
|
export * from "./command/ProviderTagListCommand";
|
|
38
39
|
export * from "./command/ProviderTagUpdateCommand";
|
|
40
|
+
export * from "./command/ProviderVerifyCommand";
|
|
39
41
|
export * from "./command/SMSCommand";
|
|
40
42
|
export * from "./command/SMSSendCommand";
|
|
41
43
|
export * from "./command/SentCommand";
|
package/dist/index.js
CHANGED
|
@@ -46,12 +46,14 @@ __exportStar(require("./command/ProviderFieldListCommand"), exports);
|
|
|
46
46
|
__exportStar(require("./command/ProviderFieldUpdateCommand"), exports);
|
|
47
47
|
__exportStar(require("./command/ProviderGetCommand"), exports);
|
|
48
48
|
__exportStar(require("./command/ProviderListCommand"), exports);
|
|
49
|
+
__exportStar(require("./command/ProviderRequestCommand"), exports);
|
|
49
50
|
__exportStar(require("./command/ProviderTagCommand"), exports);
|
|
50
51
|
__exportStar(require("./command/ProviderTagCreateCommand"), exports);
|
|
51
52
|
__exportStar(require("./command/ProviderTagDeleteCommand"), exports);
|
|
52
53
|
__exportStar(require("./command/ProviderTagGetCommand"), exports);
|
|
53
54
|
__exportStar(require("./command/ProviderTagListCommand"), exports);
|
|
54
55
|
__exportStar(require("./command/ProviderTagUpdateCommand"), exports);
|
|
56
|
+
__exportStar(require("./command/ProviderVerifyCommand"), exports);
|
|
55
57
|
__exportStar(require("./command/SMSCommand"), exports);
|
|
56
58
|
__exportStar(require("./command/SMSSendCommand"), exports);
|
|
57
59
|
__exportStar(require("./command/SentCommand"), 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,0EAAwD;AACxD,4DAA0C;AAC1C,kEAAgD;AAChD,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,uEAAqD;AACrD,+DAA6C;AAC7C,gEAA8C;AAC9C,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,uDAAqC;AACrC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,sDAAoC;AACpC,sDAAoC;AACpC,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"}
|
|
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,0EAAwD;AACxD,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,sDAAoC;AACpC,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"}
|
|
@@ -6,6 +6,12 @@ export declare class ProviderMetaTable extends BaseMetaTable {
|
|
|
6
6
|
project_id: BaseMetaColumn;
|
|
7
7
|
name: BaseMetaColumn;
|
|
8
8
|
type: BaseMetaColumn;
|
|
9
|
+
phone: BaseMetaColumn;
|
|
10
|
+
approved: BaseMetaColumn;
|
|
11
|
+
otp: BaseMetaColumn;
|
|
12
|
+
otp_time: BaseMetaColumn;
|
|
13
|
+
otp_req_tried_count: BaseMetaColumn;
|
|
14
|
+
otp_ver_tried_count: BaseMetaColumn;
|
|
9
15
|
meta: BaseMetaColumn;
|
|
10
16
|
};
|
|
11
17
|
constructor();
|
|
@@ -11,6 +11,12 @@ class ProviderMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
11
11
|
project_id: new namirasoft_core_1.BaseMetaColumn("project_id", "Project Id", "String", true),
|
|
12
12
|
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", true),
|
|
13
13
|
type: new namirasoft_core_1.BaseMetaColumn("type", "Type", "Enum", true),
|
|
14
|
+
phone: new namirasoft_core_1.BaseMetaColumn("phone", "Phone", "String", false),
|
|
15
|
+
approved: new namirasoft_core_1.BaseMetaColumn("approved", "Approved", "Boolean", true),
|
|
16
|
+
otp: new namirasoft_core_1.BaseMetaColumn("otp", "Otp", "String", false),
|
|
17
|
+
otp_time: new namirasoft_core_1.BaseMetaColumn("otp_time", "Otp Time", "DateTime", false),
|
|
18
|
+
otp_req_tried_count: new namirasoft_core_1.BaseMetaColumn("otp_req_tried_count", "Otp Req Tried Count", "Integer", true),
|
|
19
|
+
otp_ver_tried_count: new namirasoft_core_1.BaseMetaColumn("otp_ver_tried_count", "Otp Ver Tried Count", "Integer", true),
|
|
14
20
|
meta: new namirasoft_core_1.BaseMetaColumn("meta", "Meta", "Any", true),
|
|
15
21
|
};
|
|
16
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,iBAAkB,SAAQ,+BAAa;
|
|
1
|
+
{"version":3,"file":"ProviderMetaTable.js","sourceRoot":"","sources":["../../src/meta/ProviderMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,iBAAkB,SAAQ,+BAAa;IAgBhD;QAEI,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YAClD,OAAO,EAAE,IAAI,gCAAc,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;YACtD,KAAK,EAAE,IAAI,gCAAc,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;YAC5D,QAAQ,EAAE,IAAI,gCAAc,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC;YACrE,GAAG,EAAE,IAAI,gCAAc,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;YACtD,QAAQ,EAAE,IAAI,gCAAc,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC;YACvE,mBAAmB,EAAE,IAAI,gCAAc,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC;YACtG,mBAAmB,EAAE,IAAI,gCAAc,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC;YACtG,IAAI,EAAE,IAAI,gCAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC;SACxD,CAAC;IACN,CAAC;CACJ;AAlCD,8CAkCC;AAAA,CAAC"}
|
|
@@ -14,9 +14,9 @@ class SentMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
14
14
|
phone: new namirasoft_core_1.BaseMetaColumn("phone", "Phone", "String", true),
|
|
15
15
|
message: new namirasoft_core_1.BaseMetaColumn("message", "Message", "String", true),
|
|
16
16
|
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
17
|
-
sent_at: new namirasoft_core_1.BaseMetaColumn("sent_at", "Sent At", "DateTime",
|
|
18
|
-
successful: new namirasoft_core_1.BaseMetaColumn("successful", "Successful", "Boolean",
|
|
19
|
-
result: new namirasoft_core_1.BaseMetaColumn("result", "Result", "String",
|
|
17
|
+
sent_at: new namirasoft_core_1.BaseMetaColumn("sent_at", "Sent At", "DateTime", false),
|
|
18
|
+
successful: new namirasoft_core_1.BaseMetaColumn("successful", "Successful", "Boolean", false),
|
|
19
|
+
result: new namirasoft_core_1.BaseMetaColumn("result", "Result", "String", false),
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentMetaTable.js","sourceRoot":"","sources":["../../src/meta/SentMetaTable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AAC;YAClD,OAAO,EAAE,IAAI,gCAAc,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,SAAS,EAAE,IAAI,gCAAc,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,WAAW,EAAE,IAAI,gCAAc,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,KAAK,EAAE,IAAI,gCAAc,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC3D,OAAO,EAAE,IAAI,gCAAc,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAC5E,OAAO,EAAE,IAAI,gCAAc,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,CAAC;YACpE,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC;YAC5E,MAAM,EAAE,IAAI,gCAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;SAClE,CAAC;IACN,CAAC;CACJ;AAhCD,sCAgCC;AAAA,CAAC"}
|
|
@@ -3,6 +3,12 @@ export type AWSInputRow = {
|
|
|
3
3
|
user_id: string;
|
|
4
4
|
project_id: (string | null);
|
|
5
5
|
name: string;
|
|
6
|
+
phone: (string | null);
|
|
7
|
+
approved: boolean;
|
|
8
|
+
otp: (string | null);
|
|
9
|
+
otp_time: (Date | null);
|
|
10
|
+
otp_req_tried_count: number;
|
|
11
|
+
otp_ver_tried_count: number;
|
|
6
12
|
region: string;
|
|
7
13
|
key: string;
|
|
8
14
|
secret: string;
|
|
@@ -5,5 +5,11 @@ export type ProviderRow = {
|
|
|
5
5
|
project_id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
type: ProviderType;
|
|
8
|
+
phone: (string | null);
|
|
9
|
+
approved: boolean;
|
|
10
|
+
otp: (string | null);
|
|
11
|
+
otp_time: (Date | null);
|
|
12
|
+
otp_req_tried_count: number;
|
|
13
|
+
otp_ver_tried_count: number;
|
|
8
14
|
meta: any;
|
|
9
15
|
};
|
package/dist/row/SentRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.18",
|
|
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.3.
|
|
21
|
-
"namirasoft-site": "^1.3.
|
|
20
|
+
"namirasoft-core": "^1.3.77",
|
|
21
|
+
"namirasoft-site": "^1.3.7",
|
|
22
22
|
"namirasoft-node-cli": "^1.3.8",
|
|
23
|
-
"namirasoft-account": "^1.3.
|
|
23
|
+
"namirasoft-account": "^1.3.39"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-sms-sender": "./dist/command/cli.js"
|
|
@@ -25,6 +25,6 @@ export class NamirasoftSMSSenderServerBase extends NamirasoftServerBase
|
|
|
25
25
|
{
|
|
26
26
|
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(`https://sms-sender.namirasoft.com/api/v1`, `1.3.
|
|
28
|
+
super(`https://sms-sender.namirasoft.com/api/v1`, `1.3.18`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -31,6 +31,8 @@ export class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServer
|
|
|
31
31
|
this.List = this.List.bind(this);
|
|
32
32
|
this.Get = this.Get.bind(this);
|
|
33
33
|
this.Delete = this.Delete.bind(this);
|
|
34
|
+
this.Request = this.Request.bind(this);
|
|
35
|
+
this.Verify = this.Verify.bind(this);
|
|
34
36
|
}
|
|
35
37
|
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: ProviderRow[], count: number }>
|
|
36
38
|
{
|
|
@@ -50,4 +52,15 @@ export class NamirasoftSMSSenderServerProvider extends NamirasoftSMSSenderServer
|
|
|
50
52
|
let path = `/provider/${id}`;
|
|
51
53
|
await this._delete<void>(path, {});
|
|
52
54
|
}
|
|
55
|
+
async Request(id: string): Promise<{ next_time: number, error: (string | null) }>
|
|
56
|
+
{
|
|
57
|
+
let path = `/provider/request/${id}`;
|
|
58
|
+
let { data } = await this._post<{ next_time: number, error: (string | null) }>(path, {});
|
|
59
|
+
return data;
|
|
60
|
+
}
|
|
61
|
+
async Verify(id: string, body: { code: string }): Promise<void>
|
|
62
|
+
{
|
|
63
|
+
let path = `/provider/verify/${id}`;
|
|
64
|
+
await this._post<void>(path, {}, body);
|
|
65
|
+
}
|
|
53
66
|
};
|
|
@@ -60,6 +60,54 @@ export class AWSCreateCommand extends BaseFinalCommand
|
|
|
60
60
|
args: ["name"],
|
|
61
61
|
defaults: [""]
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
name: "phone",
|
|
65
|
+
short: "",
|
|
66
|
+
description: "Provides the value of 'phone' in body",
|
|
67
|
+
optional: true,
|
|
68
|
+
args: ["phone"],
|
|
69
|
+
defaults: [""]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "approved",
|
|
73
|
+
short: "",
|
|
74
|
+
description: "Provides the value of 'approved' in body",
|
|
75
|
+
optional: false,
|
|
76
|
+
args: ["approved"],
|
|
77
|
+
defaults: [""]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "otp",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'otp' in body",
|
|
83
|
+
optional: true,
|
|
84
|
+
args: ["otp"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "otp_time",
|
|
89
|
+
short: "",
|
|
90
|
+
description: "Provides the value of 'otp_time' in body",
|
|
91
|
+
optional: true,
|
|
92
|
+
args: ["otp_time"],
|
|
93
|
+
defaults: [""]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "otp_req_tried_count",
|
|
97
|
+
short: "",
|
|
98
|
+
description: "Provides the value of 'otp_req_tried_count' in body",
|
|
99
|
+
optional: false,
|
|
100
|
+
args: ["otp_req_tried_count"],
|
|
101
|
+
defaults: [""]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "otp_ver_tried_count",
|
|
105
|
+
short: "",
|
|
106
|
+
description: "Provides the value of 'otp_ver_tried_count' in body",
|
|
107
|
+
optional: false,
|
|
108
|
+
args: ["otp_ver_tried_count"],
|
|
109
|
+
defaults: [""]
|
|
110
|
+
},
|
|
63
111
|
{
|
|
64
112
|
name: "region",
|
|
65
113
|
short: "",
|
|
@@ -100,6 +148,12 @@ export class AWSCreateCommand extends BaseFinalCommand
|
|
|
100
148
|
user_id: this.option_values.user_id,
|
|
101
149
|
project_id: this.option_values.project_id,
|
|
102
150
|
name: this.option_values.name,
|
|
151
|
+
phone: this.option_values.phone,
|
|
152
|
+
approved: this.option_values.approved,
|
|
153
|
+
otp: this.option_values.otp,
|
|
154
|
+
otp_time: this.option_values.otp_time,
|
|
155
|
+
otp_req_tried_count: this.option_values.otp_req_tried_count,
|
|
156
|
+
otp_ver_tried_count: this.option_values.otp_ver_tried_count,
|
|
103
157
|
region: this.option_values.region,
|
|
104
158
|
key: this.option_values.key,
|
|
105
159
|
secret: this.option_values.secret
|
|
@@ -60,6 +60,54 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
60
60
|
args: ["name"],
|
|
61
61
|
defaults: [""]
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
name: "phone",
|
|
65
|
+
short: "",
|
|
66
|
+
description: "Provides the value of 'phone' in body",
|
|
67
|
+
optional: true,
|
|
68
|
+
args: ["phone"],
|
|
69
|
+
defaults: [""]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "approved",
|
|
73
|
+
short: "",
|
|
74
|
+
description: "Provides the value of 'approved' in body",
|
|
75
|
+
optional: false,
|
|
76
|
+
args: ["approved"],
|
|
77
|
+
defaults: [""]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "otp",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'otp' in body",
|
|
83
|
+
optional: true,
|
|
84
|
+
args: ["otp"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "otp_time",
|
|
89
|
+
short: "",
|
|
90
|
+
description: "Provides the value of 'otp_time' in body",
|
|
91
|
+
optional: true,
|
|
92
|
+
args: ["otp_time"],
|
|
93
|
+
defaults: [""]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "otp_req_tried_count",
|
|
97
|
+
short: "",
|
|
98
|
+
description: "Provides the value of 'otp_req_tried_count' in body",
|
|
99
|
+
optional: false,
|
|
100
|
+
args: ["otp_req_tried_count"],
|
|
101
|
+
defaults: [""]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "otp_ver_tried_count",
|
|
105
|
+
short: "",
|
|
106
|
+
description: "Provides the value of 'otp_ver_tried_count' in body",
|
|
107
|
+
optional: false,
|
|
108
|
+
args: ["otp_ver_tried_count"],
|
|
109
|
+
defaults: [""]
|
|
110
|
+
},
|
|
63
111
|
{
|
|
64
112
|
name: "region",
|
|
65
113
|
short: "",
|
|
@@ -100,6 +148,12 @@ export class AWSUpdateCommand extends BaseFinalCommand
|
|
|
100
148
|
user_id: this.option_values.user_id,
|
|
101
149
|
project_id: this.option_values.project_id,
|
|
102
150
|
name: this.option_values.name,
|
|
151
|
+
phone: this.option_values.phone,
|
|
152
|
+
approved: this.option_values.approved,
|
|
153
|
+
otp: this.option_values.otp,
|
|
154
|
+
otp_time: this.option_values.otp_time,
|
|
155
|
+
otp_req_tried_count: this.option_values.otp_req_tried_count,
|
|
156
|
+
otp_ver_tried_count: this.option_values.otp_ver_tried_count,
|
|
103
157
|
region: this.option_values.region,
|
|
104
158
|
key: this.option_values.key,
|
|
105
159
|
secret: this.option_values.secret
|
|
@@ -22,6 +22,8 @@ import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
|
|
22
22
|
import { ProviderDeleteCommand } from "./ProviderDeleteCommand";
|
|
23
23
|
import { ProviderGetCommand } from "./ProviderGetCommand";
|
|
24
24
|
import { ProviderListCommand } from "./ProviderListCommand";
|
|
25
|
+
import { ProviderRequestCommand } from "./ProviderRequestCommand";
|
|
26
|
+
import { ProviderVerifyCommand } from "./ProviderVerifyCommand";
|
|
25
27
|
|
|
26
28
|
export class ProviderCommand extends BaseNavigatorCommand
|
|
27
29
|
{
|
|
@@ -31,6 +33,8 @@ export class ProviderCommand extends BaseNavigatorCommand
|
|
|
31
33
|
"list": ProviderListCommand,
|
|
32
34
|
"get": ProviderGetCommand,
|
|
33
35
|
"delete": ProviderDeleteCommand,
|
|
36
|
+
"request": ProviderRequestCommand,
|
|
37
|
+
"verify": ProviderVerifyCommand,
|
|
34
38
|
});
|
|
35
39
|
}
|
|
36
40
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftSMSSenderServer } from "../NamirasoftSMSSenderServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class ProviderRequestCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["id"], []);
|
|
31
|
+
}
|
|
32
|
+
override async exec()
|
|
33
|
+
{
|
|
34
|
+
let token = this.app.storage.getNSAToken();
|
|
35
|
+
if (token == null)
|
|
36
|
+
throw new Error("Token is not available. Please login first using:\nns-sms-sender account config \nor \n{this.command} account login.");
|
|
37
|
+
let storage = new IStorageMemory();
|
|
38
|
+
let manager = new TokenManager(storage, () => { });
|
|
39
|
+
manager.setValue(token, false);
|
|
40
|
+
let server = new NamirasoftSMSSenderServer(manager, e => this.app.logger.error(e.message));
|
|
41
|
+
let ans = await server.provider.Request(this.arg_values[0]);
|
|
42
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
23
|
+
import { NamirasoftSMSSenderServer } from "../NamirasoftSMSSenderServer";
|
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
|
25
|
+
|
|
26
|
+
export class ProviderVerifyCommand extends BaseFinalCommand
|
|
27
|
+
{
|
|
28
|
+
constructor(argv: string[])
|
|
29
|
+
{
|
|
30
|
+
super(argv, ["id"], [
|
|
31
|
+
{
|
|
32
|
+
name: "code",
|
|
33
|
+
short: "",
|
|
34
|
+
description: "Provides the value of 'code' in body",
|
|
35
|
+
optional: false,
|
|
36
|
+
args: ["code"],
|
|
37
|
+
defaults: [""]
|
|
38
|
+
}
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
override async exec()
|
|
42
|
+
{
|
|
43
|
+
let token = this.app.storage.getNSAToken();
|
|
44
|
+
if (token == null)
|
|
45
|
+
throw new Error("Token is not available. Please login first using:\nns-sms-sender account config \nor \n{this.command} account login.");
|
|
46
|
+
let storage = new IStorageMemory();
|
|
47
|
+
let manager = new TokenManager(storage, () => { });
|
|
48
|
+
manager.setValue(token, false);
|
|
49
|
+
let server = new NamirasoftSMSSenderServer(manager, e => this.app.logger.error(e.message));
|
|
50
|
+
let ans = await server.provider.Verify(this.arg_values[0], {
|
|
51
|
+
code: this.option_values.code
|
|
52
|
+
});
|
|
53
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
54
|
+
}
|
|
55
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -50,12 +50,14 @@ export * from "./command/ProviderFieldListCommand";
|
|
|
50
50
|
export * from "./command/ProviderFieldUpdateCommand";
|
|
51
51
|
export * from "./command/ProviderGetCommand";
|
|
52
52
|
export * from "./command/ProviderListCommand";
|
|
53
|
+
export * from "./command/ProviderRequestCommand";
|
|
53
54
|
export * from "./command/ProviderTagCommand";
|
|
54
55
|
export * from "./command/ProviderTagCreateCommand";
|
|
55
56
|
export * from "./command/ProviderTagDeleteCommand";
|
|
56
57
|
export * from "./command/ProviderTagGetCommand";
|
|
57
58
|
export * from "./command/ProviderTagListCommand";
|
|
58
59
|
export * from "./command/ProviderTagUpdateCommand";
|
|
60
|
+
export * from "./command/ProviderVerifyCommand";
|
|
59
61
|
export * from "./command/SMSCommand";
|
|
60
62
|
export * from "./command/SMSSendCommand";
|
|
61
63
|
export * from "./command/SentCommand";
|
|
@@ -28,6 +28,12 @@ export class ProviderMetaTable extends BaseMetaTable
|
|
|
28
28
|
project_id: BaseMetaColumn;
|
|
29
29
|
name: BaseMetaColumn;
|
|
30
30
|
type: BaseMetaColumn;
|
|
31
|
+
phone: BaseMetaColumn;
|
|
32
|
+
approved: BaseMetaColumn;
|
|
33
|
+
otp: BaseMetaColumn;
|
|
34
|
+
otp_time: BaseMetaColumn;
|
|
35
|
+
otp_req_tried_count: BaseMetaColumn;
|
|
36
|
+
otp_ver_tried_count: BaseMetaColumn;
|
|
31
37
|
meta: BaseMetaColumn;
|
|
32
38
|
}
|
|
33
39
|
constructor()
|
|
@@ -39,6 +45,12 @@ export class ProviderMetaTable extends BaseMetaTable
|
|
|
39
45
|
project_id: new BaseMetaColumn("project_id", "Project Id", "String", true),
|
|
40
46
|
name: new BaseMetaColumn("name", "Name", "String", true),
|
|
41
47
|
type: new BaseMetaColumn("type", "Type", "Enum", true),
|
|
48
|
+
phone: new BaseMetaColumn("phone", "Phone", "String", false),
|
|
49
|
+
approved: new BaseMetaColumn("approved", "Approved", "Boolean", true),
|
|
50
|
+
otp: new BaseMetaColumn("otp", "Otp", "String", false),
|
|
51
|
+
otp_time: new BaseMetaColumn("otp_time", "Otp Time", "DateTime", false),
|
|
52
|
+
otp_req_tried_count: new BaseMetaColumn("otp_req_tried_count", "Otp Req Tried Count", "Integer", true),
|
|
53
|
+
otp_ver_tried_count: new BaseMetaColumn("otp_ver_tried_count", "Otp Ver Tried Count", "Integer", true),
|
|
42
54
|
meta: new BaseMetaColumn("meta", "Meta", "Any", true),
|
|
43
55
|
};
|
|
44
56
|
}
|
|
@@ -47,9 +47,9 @@ export class SentMetaTable extends BaseMetaTable
|
|
|
47
47
|
phone: new BaseMetaColumn("phone", "Phone", "String", true),
|
|
48
48
|
message: new BaseMetaColumn("message", "Message", "String", true),
|
|
49
49
|
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
50
|
-
sent_at: new BaseMetaColumn("sent_at", "Sent At", "DateTime",
|
|
51
|
-
successful: new BaseMetaColumn("successful", "Successful", "Boolean",
|
|
52
|
-
result: new BaseMetaColumn("result", "Result", "String",
|
|
50
|
+
sent_at: new BaseMetaColumn("sent_at", "Sent At", "DateTime", false),
|
|
51
|
+
successful: new BaseMetaColumn("successful", "Successful", "Boolean", false),
|
|
52
|
+
result: new BaseMetaColumn("result", "Result", "String", false),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
};
|
package/src/row/AWSInputRow.ts
CHANGED
|
@@ -24,6 +24,12 @@ export type AWSInputRow =
|
|
|
24
24
|
user_id: string;
|
|
25
25
|
project_id: (string | null);
|
|
26
26
|
name: string;
|
|
27
|
+
phone: (string | null);
|
|
28
|
+
approved: boolean;
|
|
29
|
+
otp: (string | null);
|
|
30
|
+
otp_time: (Date | null);
|
|
31
|
+
otp_req_tried_count: number;
|
|
32
|
+
otp_ver_tried_count: number;
|
|
27
33
|
region: string;
|
|
28
34
|
key: string;
|
|
29
35
|
secret: string;
|
package/src/row/ProviderRow.ts
CHANGED
|
@@ -27,5 +27,11 @@ export type ProviderRow =
|
|
|
27
27
|
project_id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
type: ProviderType;
|
|
30
|
+
phone: (string | null);
|
|
31
|
+
approved: boolean;
|
|
32
|
+
otp: (string | null);
|
|
33
|
+
otp_time: (Date | null);
|
|
34
|
+
otp_req_tried_count: number;
|
|
35
|
+
otp_ver_tried_count: number;
|
|
30
36
|
meta: any;
|
|
31
37
|
}
|
package/src/row/SentRow.ts
CHANGED