namirasoft-sms-sender 1.0.4 → 1.2.1

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.
@@ -1,8 +1,10 @@
1
1
  import { NamirasoftSMSSenderServerHealthz } from "./NamirasoftSMSSenderServerHealthz";
2
2
  import { NamirasoftSMSSenderServerProvider } from "./NamirasoftSMSSenderServerProvider";
3
+ import { NamirasoftSMSSenderServerSend } from "./NamirasoftSMSSenderServerSend";
3
4
  import { TokenManager } from "namirasoft-account";
4
5
  export declare class NamirasoftSMSSenderServer {
5
6
  healthz: NamirasoftSMSSenderServerHealthz;
7
+ send: NamirasoftSMSSenderServerSend;
6
8
  provider: NamirasoftSMSSenderServerProvider;
7
9
  constructor(manager: TokenManager, zone: string, onError: (error: Error) => void);
8
10
  }
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NamirasoftSMSSenderServer = void 0;
4
4
  const NamirasoftSMSSenderServerHealthz_1 = require("./NamirasoftSMSSenderServerHealthz");
5
5
  const NamirasoftSMSSenderServerProvider_1 = require("./NamirasoftSMSSenderServerProvider");
6
+ const NamirasoftSMSSenderServerSend_1 = require("./NamirasoftSMSSenderServerSend");
6
7
  class NamirasoftSMSSenderServer {
7
8
  constructor(manager, zone, onError) {
8
9
  this.healthz = new NamirasoftSMSSenderServerHealthz_1.NamirasoftSMSSenderServerHealthz(manager, zone, onError);
10
+ this.send = new NamirasoftSMSSenderServerSend_1.NamirasoftSMSSenderServerSend(manager, zone, onError);
9
11
  this.provider = new NamirasoftSMSSenderServerProvider_1.NamirasoftSMSSenderServerProvider(manager, zone, onError);
10
12
  }
11
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NamirasoftSMSSenderServer.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServer.ts"],"names":[],"mappings":";;;AAoBA,yFAAsF;AACtF,2FAAwF;AAGxF,MAAa,yBAAyB;IAIlC,YAAY,OAAqB,EAAE,IAAY,EAAE,OAA+B;QAE5E,IAAI,CAAC,OAAO,GAAG,IAAI,mEAAgC,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,QAAQ,GAAG,IAAI,qEAAiC,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACJ;AATD,8DASC"}
1
+ {"version":3,"file":"NamirasoftSMSSenderServer.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServer.ts"],"names":[],"mappings":";;;AAoBA,yFAAsF;AACtF,2FAAwF;AACxF,mFAAgF;AAGhF,MAAa,yBAAyB;IAKlC,YAAY,OAAqB,EAAE,IAAY,EAAE,OAA+B;QAE5E,IAAI,CAAC,OAAO,GAAG,IAAI,mEAAgC,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,CAAC,IAAI,GAAG,IAAI,6DAA6B,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACtE,IAAI,CAAC,QAAQ,GAAG,IAAI,qEAAiC,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACJ;AAXD,8DAWC"}
@@ -0,0 +1,6 @@
1
+ import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
2
+ import { SentRow } from "./row/SentRow";
3
+ import { SentRow_Input } from "./row/SentRow_Input";
4
+ export declare class NamirasoftSMSSenderServerSend extends NamirasoftSMSSenderServerBase {
5
+ Post(body: SentRow_Input): Promise<SentRow>;
6
+ }
@@ -0,0 +1,24 @@
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.NamirasoftSMSSenderServerSend = void 0;
13
+ const NamirasoftSMSSenderServerBase_1 = require("./NamirasoftSMSSenderServerBase");
14
+ class NamirasoftSMSSenderServerSend extends NamirasoftSMSSenderServerBase_1.NamirasoftSMSSenderServerBase {
15
+ Post(body) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ let path = `/send`;
18
+ let { data } = yield this._post(path, {}, body);
19
+ return data;
20
+ });
21
+ }
22
+ }
23
+ exports.NamirasoftSMSSenderServerSend = NamirasoftSMSSenderServerSend;
24
+ //# sourceMappingURL=NamirasoftSMSSenderServerSend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamirasoftSMSSenderServerSend.js","sourceRoot":"","sources":["../src/NamirasoftSMSSenderServerSend.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,mFAAgF;AAIhF,MAAa,6BAA8B,SAAQ,6DAA6B;IAEtE,IAAI,CAAC,IAAmB;;YAE1B,IAAI,IAAI,GAAG,OAAO,CAAC;YACnB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAU,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACzD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AARD,sEAQC"}
package/dist/index.d.ts CHANGED
@@ -2,6 +2,10 @@ export * from "./NamirasoftSMSSenderServer";
2
2
  export * from "./NamirasoftSMSSenderServerBase";
3
3
  export * from "./NamirasoftSMSSenderServerHealthz";
4
4
  export * from "./NamirasoftSMSSenderServerProvider";
5
+ export * from "./NamirasoftSMSSenderServerSend";
5
6
  export * from "./row/ProviderRow";
6
7
  export * from "./row/ProviderRow_Input";
7
8
  export * from "./row/ProviderRow_Output";
9
+ export * from "./row/SentRow";
10
+ export * from "./row/SentRow_Input";
11
+ export * from "./row/SentRow_Output";
package/dist/index.js CHANGED
@@ -18,7 +18,11 @@ __exportStar(require("./NamirasoftSMSSenderServer"), exports);
18
18
  __exportStar(require("./NamirasoftSMSSenderServerBase"), exports);
19
19
  __exportStar(require("./NamirasoftSMSSenderServerHealthz"), exports);
20
20
  __exportStar(require("./NamirasoftSMSSenderServerProvider"), exports);
21
+ __exportStar(require("./NamirasoftSMSSenderServerSend"), exports);
21
22
  __exportStar(require("./row/ProviderRow"), exports);
22
23
  __exportStar(require("./row/ProviderRow_Input"), exports);
23
24
  __exportStar(require("./row/ProviderRow_Output"), exports);
25
+ __exportStar(require("./row/SentRow"), exports);
26
+ __exportStar(require("./row/SentRow_Input"), exports);
27
+ __exportStar(require("./row/SentRow_Output"), exports);
24
28
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,8DAA4C;AAC5C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,8DAA4C;AAC5C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,kEAAgD;AAChD,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC"}
@@ -0,0 +1,3 @@
1
+ import { SentRow_Input } from "./SentRow_Input";
2
+ import { SentRow_Output } from "./SentRow_Output";
3
+ export type SentRow = SentRow_Input & SentRow_Output;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SentRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SentRow.js","sourceRoot":"","sources":["../../src/row/SentRow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type SentRow_Input = {
2
+ project_id: string;
3
+ provider_id: string;
4
+ phone: string;
5
+ message: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SentRow_Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SentRow_Input.js","sourceRoot":"","sources":["../../src/row/SentRow_Input.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type SentRow_Output = {
2
+ id: string;
3
+ user_id: string;
4
+ successful: (boolean | null);
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SentRow_Output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SentRow_Output.js","sourceRoot":"","sources":["../../src/row/SentRow_Output.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "namirasoft-sms-sender",
3
3
  "description": "Namira Software Corporation SMS Sender NPM Package",
4
4
  "icon": "logo.png",
5
- "version": "1.0.4",
5
+ "version": "1.2.1",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "scripts": {},
@@ -20,15 +20,18 @@
20
20
 
21
21
  import { NamirasoftSMSSenderServerHealthz } from "./NamirasoftSMSSenderServerHealthz";
22
22
  import { NamirasoftSMSSenderServerProvider } from "./NamirasoftSMSSenderServerProvider";
23
+ import { NamirasoftSMSSenderServerSend } from "./NamirasoftSMSSenderServerSend";
23
24
  import { TokenManager } from "namirasoft-account";
24
25
 
25
26
  export class NamirasoftSMSSenderServer
26
27
  {
27
28
  healthz: NamirasoftSMSSenderServerHealthz;
29
+ send: NamirasoftSMSSenderServerSend;
28
30
  provider: NamirasoftSMSSenderServerProvider;
29
31
  constructor(manager: TokenManager, zone: string, onError: (error: Error) => void)
30
32
  {
31
33
  this.healthz = new NamirasoftSMSSenderServerHealthz(manager, zone, onError);
34
+ this.send = new NamirasoftSMSSenderServerSend(manager, zone, onError);
32
35
  this.provider = new NamirasoftSMSSenderServerProvider(manager, zone, onError);
33
36
  }
34
37
  }
@@ -0,0 +1,33 @@
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, nsdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftSMSSenderServerBase } from "./NamirasoftSMSSenderServerBase";
22
+ import { SentRow } from "./row/SentRow";
23
+ import { SentRow_Input } from "./row/SentRow_Input";
24
+
25
+ export class NamirasoftSMSSenderServerSend extends NamirasoftSMSSenderServerBase
26
+ {
27
+ async Post(body: SentRow_Input): Promise<SentRow>
28
+ {
29
+ let path = `/send`;
30
+ let { data } = await this._post<SentRow>(path, {}, body);
31
+ return data;
32
+ }
33
+ }
package/src/index.ts CHANGED
@@ -22,6 +22,10 @@ export * from "./NamirasoftSMSSenderServer";
22
22
  export * from "./NamirasoftSMSSenderServerBase";
23
23
  export * from "./NamirasoftSMSSenderServerHealthz";
24
24
  export * from "./NamirasoftSMSSenderServerProvider";
25
+ export * from "./NamirasoftSMSSenderServerSend";
25
26
  export * from "./row/ProviderRow";
26
27
  export * from "./row/ProviderRow_Input";
27
28
  export * from "./row/ProviderRow_Output";
29
+ export * from "./row/SentRow";
30
+ export * from "./row/SentRow_Input";
31
+ export * from "./row/SentRow_Output";
@@ -0,0 +1,24 @@
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, nsdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { SentRow_Input } from "./SentRow_Input";
22
+ import { SentRow_Output } from "./SentRow_Output";
23
+
24
+ export type SentRow = SentRow_Input & SentRow_Output;
@@ -0,0 +1,27 @@
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, nsdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type SentRow_Input =
22
+ {
23
+ project_id: string;
24
+ provider_id: string;
25
+ phone: string;
26
+ message: string;
27
+ }
@@ -0,0 +1,26 @@
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, nsdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type SentRow_Output =
22
+ {
23
+ id: string;
24
+ user_id: string;
25
+ successful: (boolean | null);
26
+ }