@sinch/sdk-core 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  This package contains the Sinch Client SDK for Node.js. To use it, you will need a Sinch account. Please [sign up](https://dashboard.sinch.com/signup) or [log in](https://dashboard.sinch.com/login) if you already have one.
4
4
 
5
- <span style="color:red; font-weight:bold">Warning:</span>
6
- **This SDK is currently available for preview purposes only. It should not be used in production environments.**
5
+ > <span style="color:red; font-weight:bold">Warning:</span>
6
+ > **This SDK is currently available to selected developers for preview use only. It is being provided for the purpose of collecting feedback, and should not be used in production environments.**
7
7
 
8
8
  ## Installation
9
9
 
@@ -95,11 +95,12 @@ Here is the list of the Sinch API and there level of support by the Node.js SDK:
95
95
  | API Category | API Name | Status |
96
96
  |------------------------|-------------------------------------|:------:|
97
97
  | Messaging | SMS API | ✅ |
98
- | | Conversation API | |
98
+ | | Conversation API | |
99
+ | | Fax API | 🚧 |
99
100
  | | RCS API | ❌ |
100
101
  | | MMS API | ❌ |
101
102
  | | Provisioning API | ❌ |
102
- | Voice and Video | Voice API | |
103
+ | Voice and Video | Voice API | |
103
104
  | | Elastic SIP Trunking | ❌ |
104
105
  | Numbers & Connectivity | Numbers API | ✅ |
105
106
  | | Brand and Campaign Registration API | ❌ |
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './sinch-client';
2
+ export * from '@sinch/conversation';
2
3
  export * from '@sinch/numbers';
3
4
  export * from '@sinch/sms';
4
5
  export * from '@sinch/verification';
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./sinch-client"), exports);
18
+ __exportStar(require("@sinch/conversation"), exports);
18
19
  __exportStar(require("@sinch/numbers"), exports);
19
20
  __exportStar(require("@sinch/sms"), exports);
20
21
  __exportStar(require("@sinch/verification"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,sDAAoC;AACpC,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,6CAA2B;AAC3B,sDAAoC;AACpC,+CAA6B"}
@@ -1,14 +1,16 @@
1
- import { Numbers } from '@sinch/numbers';
2
- import { Sms } from '@sinch/sms';
3
- import { Verification } from '@sinch/verification';
1
+ import { ConversationService } from '@sinch/conversation';
2
+ import { NumbersService } from '@sinch/numbers';
3
+ import { SmsService } from '@sinch/sms';
4
+ import { VerificationService } from '@sinch/verification';
5
+ import { VoiceService } from '@sinch/voice';
4
6
  import { SinchClientParameters } from '@sinch/sdk-client';
5
- import { Voice } from '@sinch/voice';
6
7
  /** Sinch Client to declare and initialize the supported APIs */
7
8
  export declare class SinchClient {
8
- readonly numbers: Numbers;
9
- readonly sms: Sms;
10
- readonly verification: Verification;
11
- readonly voice: Voice;
9
+ readonly conversation: ConversationService;
10
+ readonly numbers: NumbersService;
11
+ readonly sms: SmsService;
12
+ readonly verification: VerificationService;
13
+ readonly voice: VoiceService;
12
14
  /**
13
15
  * Initialize your API Client instance with the provided credentials.
14
16
  *
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SinchClient = void 0;
4
+ const conversation_1 = require("@sinch/conversation");
4
5
  const numbers_1 = require("@sinch/numbers");
5
6
  const sms_1 = require("@sinch/sms");
6
7
  const verification_1 = require("@sinch/verification");
@@ -13,14 +14,16 @@ class SinchClient {
13
14
  * @param {SinchClientParameters} params - The object containing the Sinch credentials.
14
15
  */
15
16
  constructor(params) {
17
+ // Initialize the "Conversation" API
18
+ this.conversation = new conversation_1.ConversationService(params);
16
19
  // Initialize the "Numbers" API
17
- this.numbers = new numbers_1.Numbers(params);
20
+ this.numbers = new numbers_1.NumbersService(params);
18
21
  // Initialize the "SMS" API.
19
- this.sms = new sms_1.Sms(params);
22
+ this.sms = new sms_1.SmsService(params);
20
23
  // Initialize the "Verification" API
21
- this.verification = new verification_1.Verification(params);
24
+ this.verification = new verification_1.VerificationService(params);
22
25
  // Initialize the "Voice" API
23
- this.voice = new voice_1.Voice(params);
26
+ this.voice = new voice_1.VoiceService(params);
24
27
  }
25
28
  }
26
29
  exports.SinchClient = SinchClient;
@@ -1 +1 @@
1
- {"version":3,"file":"sinch-client.js","sourceRoot":"","sources":["../src/sinch-client.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AACzC,oCAAiC;AACjC,sDAAmD;AAEnD,wCAAqC;AAErC,gEAAgE;AAChE,MAAa,WAAW;IAOtB;;;;OAIG;IACH,YAAY,MAA6B;QACvC,+BAA+B;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,MAAM,CAAC,CAAC;QAEnC,4BAA4B;QAC5B,IAAI,CAAC,GAAG,GAAG,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC;QAE3B,oCAAoC;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC;QAE7C,6BAA6B;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;CACF;AAzBD,kCAyBC"}
1
+ {"version":3,"file":"sinch-client.js","sourceRoot":"","sources":["../src/sinch-client.ts"],"names":[],"mappings":";;;AAAA,sDAA0D;AAC1D,4CAAgD;AAChD,oCAAwC;AACxC,sDAA0D;AAC1D,wCAA4C;AAG5C,gEAAgE;AAChE,MAAa,WAAW;IAQtB;;;;OAIG;IACH,YAAY,MAA6B;QACvC,oCAAoC;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAmB,CAAC,MAAM,CAAC,CAAC;QAEpD,+BAA+B;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,wBAAc,CAAC,MAAM,CAAC,CAAC;QAE1C,4BAA4B;QAC5B,IAAI,CAAC,GAAG,GAAG,IAAI,gBAAU,CAAC,MAAM,CAAC,CAAC;QAElC,oCAAoC;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAmB,CAAC,MAAM,CAAC,CAAC;QAEpD,6BAA6B;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,oBAAY,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;CACF;AA7BD,kCA6BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinch/sdk-core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Node.js client for the Sinch API platform",
5
5
  "homepage": "",
6
6
  "repository": {
@@ -29,10 +29,11 @@
29
29
  "compile": "tsc --build --verbose"
30
30
  },
31
31
  "dependencies": {
32
- "@sinch/numbers": "^0.0.1",
33
- "@sinch/sms": "^0.0.1",
34
- "@sinch/verification": "^0.0.1",
35
- "@sinch/voice": "^0.0.1"
32
+ "@sinch/conversation": "^0.0.2",
33
+ "@sinch/numbers": "^0.0.2",
34
+ "@sinch/sms": "^0.0.2",
35
+ "@sinch/verification": "^0.0.2",
36
+ "@sinch/voice": "^0.0.2"
36
37
  },
37
38
  "devDependencies": {},
38
39
  "publishConfig": {