@sinch/fax 0.0.3 → 0.0.5
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 +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/models/v3/fax/fax.d.ts +4 -4
- package/dist/models/v3/fax-content-url/fax-content-url.d.ts +5 -1
- package/dist/models/v3/fax-request/fax-request.d.ts +4 -4
- package/dist/models/v3/index.d.ts +2 -0
- package/dist/models/v3/index.js +2 -0
- package/dist/models/v3/index.js.map +1 -1
- package/dist/models/v3/requests/emails/emails-request-data.d.ts +30 -0
- package/dist/models/v3/requests/emails/emails-request-data.js +3 -0
- package/dist/models/v3/requests/emails/emails-request-data.js.map +1 -0
- package/dist/models/v3/requests/faxes/faxes-request-data.d.ts +35 -0
- package/dist/models/v3/requests/faxes/faxes-request-data.js +3 -0
- package/dist/models/v3/requests/faxes/faxes-request-data.js.map +1 -0
- package/dist/models/v3/requests/index.d.ts +3 -0
- package/dist/models/v3/requests/index.js +20 -0
- package/dist/models/v3/requests/index.js.map +1 -0
- package/dist/models/v3/requests/services/services-request-data.d.ts +43 -0
- package/dist/models/v3/requests/services/services-request-data.js +3 -0
- package/dist/models/v3/requests/services/services-request-data.js.map +1 -0
- package/dist/models/v3/service-phone-number/service-phone-number.d.ts +1 -1
- package/dist/models/v3/webhook-event-parsed/webhook-event-parsed.d.ts +2 -0
- package/dist/models/v3/webhook-event-parsed/webhook-event-parsed.js +3 -0
- package/dist/models/v3/webhook-event-parsed/webhook-event-parsed.js.map +1 -0
- package/dist/rest/v3/callbacks/callbacks-webhook.d.ts +1 -2
- package/dist/rest/v3/callbacks/callbacks-webhook.js.map +1 -1
- package/dist/rest/v3/emails/emails-api.d.ts +1 -29
- package/dist/rest/v3/emails/emails-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v3/emails/emails-api.jest.fixture.js.map +1 -1
- package/dist/rest/v3/emails/emails-api.js +8 -8
- package/dist/rest/v3/emails/emails-api.js.map +1 -1
- package/dist/rest/v3/fax-domain-api.d.ts +10 -5
- package/dist/rest/v3/fax-domain-api.js +23 -16
- package/dist/rest/v3/fax-domain-api.js.map +1 -1
- package/dist/rest/v3/fax-service.d.ts +26 -5
- package/dist/rest/v3/fax-service.js +32 -7
- package/dist/rest/v3/fax-service.js.map +1 -1
- package/dist/rest/v3/faxes/faxes-api.d.ts +1 -34
- package/dist/rest/v3/faxes/faxes-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v3/faxes/faxes-api.jest.fixture.js.map +1 -1
- package/dist/rest/v3/faxes/faxes-api.js +23 -23
- package/dist/rest/v3/faxes/faxes-api.js.map +1 -1
- package/dist/rest/v3/services/services-api.d.ts +1 -43
- package/dist/rest/v3/services/services-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v3/services/services-api.jest.fixture.js.map +1 -1
- package/dist/rest/v3/services/services-api.js +11 -11
- package/dist/rest/v3/services/services-api.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ If you are using this SDK as part of the Sinch SDK (`@sinch/sdk-core`) you can a
|
|
|
39
39
|
```typescript
|
|
40
40
|
import {
|
|
41
41
|
FaxService,
|
|
42
|
-
|
|
42
|
+
Fax,
|
|
43
43
|
SinchClient,
|
|
44
44
|
UnifiedCredentials,
|
|
45
45
|
} from '@sinch/sdk-core';
|
|
@@ -55,7 +55,7 @@ const sinch = new SinchClient(credentials);
|
|
|
55
55
|
const faxService: FaxService = sinch.fax;
|
|
56
56
|
|
|
57
57
|
// Build the request data
|
|
58
|
-
const requestData: SendFaxRequestData = {
|
|
58
|
+
const requestData: Fax.SendFaxRequestData = {
|
|
59
59
|
sendFaxRequestBody: {
|
|
60
60
|
to: '+12015555555',
|
|
61
61
|
contentUrl: 'https://developers.sinch.com/fax/fax.pdf',
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
} from '@sinch/sdk-client';
|
|
78
78
|
import {
|
|
79
79
|
FaxService,
|
|
80
|
-
|
|
80
|
+
Fax,
|
|
81
81
|
} from '@sinch/fax';
|
|
82
82
|
|
|
83
83
|
const credentials: UnifiedCredentials = {
|
|
@@ -90,7 +90,7 @@ const credentials: UnifiedCredentials = {
|
|
|
90
90
|
const faxService = new FaxService(credentials);
|
|
91
91
|
|
|
92
92
|
// Build the request data
|
|
93
|
-
const requestData: SendFaxRequestData = {
|
|
93
|
+
const requestData: Fax.SendFaxRequestData = {
|
|
94
94
|
sendFaxRequestBody: {
|
|
95
95
|
to: '+12015555555',
|
|
96
96
|
contentUrl: 'https://developers.sinch.com/fax/fax.pdf',
|
|
@@ -108,7 +108,7 @@ All the methods that interact with the Sinch APIs use Promises. You can use `awa
|
|
|
108
108
|
|
|
109
109
|
```typescript
|
|
110
110
|
// Method 1: Wait for the Promise to complete (you need to be in an 'async' method)
|
|
111
|
-
let sendFaxResult: Fax;
|
|
111
|
+
let sendFaxResult: Fax.Fax;
|
|
112
112
|
try {
|
|
113
113
|
sendFaxResult = await faxService.faxes.send(requestData);
|
|
114
114
|
console.log(`Fax successfully created at '${sendFaxResult.createTime}'. Status = '${sendFaxResult.status}`);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,11 +10,24 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
13
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
27
|
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
29
|
+
exports.Fax = void 0;
|
|
30
|
+
exports.Fax = __importStar(require("./models"));
|
|
18
31
|
__exportStar(require("./rest"), exports);
|
|
19
32
|
__exportStar(require("@sinch/sdk-client"), exports);
|
|
20
33
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgC;AAChC,yCAAuB;AACvB,oDAAkC"}
|
|
@@ -7,9 +7,9 @@ export interface Fax {
|
|
|
7
7
|
id?: string;
|
|
8
8
|
/** @see FaxDirection */
|
|
9
9
|
direction?: FaxDirection;
|
|
10
|
-
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading
|
|
10
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading '+'. */
|
|
11
11
|
from?: string;
|
|
12
|
-
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading
|
|
12
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading '+'. */
|
|
13
13
|
to?: string;
|
|
14
14
|
/** @see FaxContentUrl */
|
|
15
15
|
contentUrl?: FaxContentUrl;
|
|
@@ -25,7 +25,7 @@ export interface Fax {
|
|
|
25
25
|
createTime?: Date;
|
|
26
26
|
/** If the job is complete, this is a timestamp representing the time the job was completed. */
|
|
27
27
|
completedTime?: Date;
|
|
28
|
-
/** Text that will be displayed at the top of each page of the fax. 50 characters maximum. Default header text is
|
|
28
|
+
/** Text that will be displayed at the top of each page of the fax. 50 characters maximum. Default header text is "-". Note that the header is not applied until the fax is transmitted, so it will not appear on fax PDFs or thumbnails. */
|
|
29
29
|
headerText?: string;
|
|
30
30
|
/** If true, page numbers will be displayed in the header. Default is true. */
|
|
31
31
|
headerPageNumbers?: boolean;
|
|
@@ -53,7 +53,7 @@ export interface Fax {
|
|
|
53
53
|
projectId?: string;
|
|
54
54
|
/** ID of the fax service used. */
|
|
55
55
|
serviceId?: string;
|
|
56
|
-
/**
|
|
56
|
+
/** The number of times the fax will be retired before cancel. Default value is set in your fax service. The maximum number of retries is 5. */
|
|
57
57
|
maxRetries?: number;
|
|
58
58
|
/** The number of times the fax has been retried. */
|
|
59
59
|
retryCount?: number;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Give us any URL on the Internet (including ones with basic authentication) At least one file or contentUrl parameter is required.
|
|
2
|
+
* Give us any URL on the Internet (including ones with basic authentication) At least one file or contentUrl parameter is required.
|
|
3
|
+
* Please note: If you are passing fax a secure URL (starting with https://), make sure that your SSL certificate (including your intermediate cert, if you have one) is installed properly, valid, and up-to-date.
|
|
4
|
+
* If the file parameter is specified as well, content from URLs will be rendered before content from files.
|
|
5
|
+
* You can add multiple URLs by adding them as an array them with a comma when posting as multipart/form-data
|
|
6
|
+
* For example: "https://developers.sinch.com/fax/fax.pdf, https://developers.sinch.com/" or if posting JSON `"contentUrl": ["https://developers.sinch.com/fax/fax.pdf", "https://developers.sinch.com/"]`
|
|
3
7
|
*/
|
|
4
8
|
export type FaxContentUrl = string | string[];
|
|
@@ -3,13 +3,13 @@ import { FaxContentUrl } from '../fax-content-url';
|
|
|
3
3
|
import { FaxBase64File } from '../fax-base64-file';
|
|
4
4
|
export type FaxRequest = FaxRequestJson | FaxRequestFormData;
|
|
5
5
|
interface FaxRequestBase {
|
|
6
|
-
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading
|
|
6
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading '+'. */
|
|
7
7
|
to: string;
|
|
8
|
-
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading
|
|
8
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading '+'. */
|
|
9
9
|
from?: string;
|
|
10
10
|
/** */
|
|
11
11
|
contentUrl?: FaxContentUrl;
|
|
12
|
-
/** Text that will be displayed at the top of each page of the fax. 50 characters maximum. Default header text is
|
|
12
|
+
/** Text that will be displayed at the top of each page of the fax. 50 characters maximum. Default header text is "-". Note that the header is not applied until the fax is transmitted, so it will not appear on fax PDFs or thumbnails. */
|
|
13
13
|
headerText?: string;
|
|
14
14
|
/** If true, page numbers will be displayed in the header. Default is true. */
|
|
15
15
|
headerPageNumbers?: boolean;
|
|
@@ -29,7 +29,7 @@ interface FaxRequestBase {
|
|
|
29
29
|
imageConversionMethod?: ImageConversionMethod;
|
|
30
30
|
/** ID of the fax service used. */
|
|
31
31
|
serviceId?: string;
|
|
32
|
-
/**
|
|
32
|
+
/** The number of times the fax will be retired before cancel. Default value is set in your fax service. The maximum number of retries is 5. */
|
|
33
33
|
maxRetries?: number;
|
|
34
34
|
}
|
|
35
35
|
export type FaxRequestJson = FaxRequestBase & {
|
|
@@ -10,4 +10,6 @@ export * from './service';
|
|
|
10
10
|
export * from './service-email-settings';
|
|
11
11
|
export * from './service-phone-number';
|
|
12
12
|
export * from './update-email-request';
|
|
13
|
+
export * from './webhook-event-parsed/webhook-event-parsed';
|
|
13
14
|
export * from './enums';
|
|
15
|
+
export * from './requests';
|
package/dist/models/v3/index.js
CHANGED
|
@@ -43,5 +43,7 @@ __exportStar(require("./service"), exports);
|
|
|
43
43
|
__exportStar(require("./service-email-settings"), exports);
|
|
44
44
|
__exportStar(require("./service-phone-number"), exports);
|
|
45
45
|
__exportStar(require("./update-email-request"), exports);
|
|
46
|
+
__exportStar(require("./webhook-event-parsed/webhook-event-parsed"), exports);
|
|
46
47
|
__exportStar(require("./enums"), exports);
|
|
48
|
+
__exportStar(require("./requests"), exports);
|
|
47
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAwC;AACxC,6CAA2B;AAC3B,gCAAgC;AAChC,+CAA+C;AAC/C,0CAAwB;AACxB,2BAA2B;AAC3B,kCAAkC;AAClC,gCAAgC;AAChC,gCAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,oDAAkC;AAClC,+BAA+B;AAC/B,gCAAgC;AAChC,gCAAgC;AAChC,qCAAqC;AACrC,mCAAmC;AACnC,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,gCAAgC;AAChC,mCAAmC;AACnC,0CAA0C;AAC1C,yCAAyC;AACzC,uCAAuC;AACvC,4CAA0B;AAC1B,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAwC;AACxC,6CAA2B;AAC3B,gCAAgC;AAChC,+CAA+C;AAC/C,0CAAwB;AACxB,2BAA2B;AAC3B,kCAAkC;AAClC,gCAAgC;AAChC,gCAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,oDAAkC;AAClC,+BAA+B;AAC/B,gCAAgC;AAChC,gCAAgC;AAChC,qCAAqC;AACrC,mCAAmC;AACnC,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,gCAAgC;AAChC,mCAAmC;AACnC,0CAA0C;AAC1C,yCAAyC;AACzC,uCAAuC;AACvC,4CAA0B;AAC1B,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,8EAA4D;AAC5D,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EmailRequest } from '../../email';
|
|
2
|
+
import { UpdateEmailRequest } from '../../update-email-request';
|
|
3
|
+
export interface AddEmailToNumbersRequestData {
|
|
4
|
+
/** */
|
|
5
|
+
'emailRequestBody': EmailRequest;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteEmailRequestData {
|
|
8
|
+
/** The email you want to delete. */
|
|
9
|
+
'email': string;
|
|
10
|
+
}
|
|
11
|
+
export interface ListEmailsForProjectRequestData {
|
|
12
|
+
/** Number of items to return on each page. */
|
|
13
|
+
'pageSize'?: number;
|
|
14
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
15
|
+
'page'?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ListNumbersByEmailRequestData {
|
|
18
|
+
/** The email you want to get numbers for. */
|
|
19
|
+
'email': string;
|
|
20
|
+
/** Number of items to return on each page. */
|
|
21
|
+
'pageSize'?: number;
|
|
22
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
23
|
+
'page'?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UpdateEmailRequestData {
|
|
26
|
+
/** The email you want to work with. */
|
|
27
|
+
'email': string;
|
|
28
|
+
/** */
|
|
29
|
+
'updateEmailRequestBody'?: UpdateEmailRequest;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emails-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v3/requests/emails/emails-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FaxDirection, FaxStatus } from '../../enums';
|
|
2
|
+
import { FaxRequest } from '../../fax-request';
|
|
3
|
+
export interface DeleteFaxContentRequestData {
|
|
4
|
+
/** The ID of the fax. */
|
|
5
|
+
'id': string;
|
|
6
|
+
}
|
|
7
|
+
export interface DownloadFaxContentRequestData {
|
|
8
|
+
/** The ID of the fax. */
|
|
9
|
+
'id': string;
|
|
10
|
+
/** The file format to download. Currently only PDF is supported. */
|
|
11
|
+
'fileFormat'?: 'pdf';
|
|
12
|
+
}
|
|
13
|
+
export interface GetFaxRequestData {
|
|
14
|
+
/** The ID of the fax. */
|
|
15
|
+
'id': string;
|
|
16
|
+
}
|
|
17
|
+
export interface ListFaxesRequestData {
|
|
18
|
+
/** Filter calls based on `createTime`. If you make the query more precise, fewer results will be returned. For example, `2021-02-01` will return all calls from the first of February 2021, and `2021-02-01T14:00:00Z` will return all calls after 14:00 on the first of February. This field also supports `<=` and `>=` to search for calls in a range `?createTime>=2021-10-01&startTime<=2021-10-30` to get a list of calls for all of October 2021. It is also possible to submit partial dates. For example, `createTime=2021-02` will return all calls for February 2021. If not value is submitted, the default value is the prior week. */
|
|
19
|
+
'createTime'?: string;
|
|
20
|
+
/** Limits results to faxes with the specified direction. */
|
|
21
|
+
'direction'?: FaxDirection;
|
|
22
|
+
/** Limits results to faxes with the specified status. */
|
|
23
|
+
'status'?: FaxStatus;
|
|
24
|
+
/** A phone number that you want to use to filter results. The parameter search with startsWith, so you can pass a partial number to get all faxes sent to numbers that start with the number you passed. */
|
|
25
|
+
'to'?: string;
|
|
26
|
+
/** A phone number that you want to use to filter results. The parameter search with startsWith, so you can pass a partial number to get all faxes sent to numbers that start with the number you passed. */
|
|
27
|
+
'from'?: string;
|
|
28
|
+
/** The maximum number of items to return per request. The default is 100 and the maximum is 1000. If you need to export larger amounts and pagination is not suitable for you can use the Export function in the dashboard. */
|
|
29
|
+
'pageSize'?: number;
|
|
30
|
+
/** The page you want to retrieve returned from a previous List request, if any */
|
|
31
|
+
'page'?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SendFaxRequestData {
|
|
34
|
+
'sendFaxRequestBody': FaxRequest;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faxes-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v3/requests/faxes/faxes-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./emails/emails-request-data"), exports);
|
|
18
|
+
__exportStar(require("./faxes/faxes-request-data"), exports);
|
|
19
|
+
__exportStar(require("./services/services-request-data"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v3/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,6DAA2C;AAC3C,mEAAiD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ServiceRequest } from '../../service';
|
|
2
|
+
export interface CreateServiceRequestData {
|
|
3
|
+
/** */
|
|
4
|
+
'createServiceRequestBody'?: ServiceRequest;
|
|
5
|
+
}
|
|
6
|
+
export interface GetServiceRequestData {
|
|
7
|
+
/** The service ID you want to update. */
|
|
8
|
+
'serviceId': string;
|
|
9
|
+
}
|
|
10
|
+
export interface ListEmailsForNumberRequestData {
|
|
11
|
+
/** The phone number you want to get emails for. */
|
|
12
|
+
'phoneNumber': string;
|
|
13
|
+
/** The serviceId containing the numbers you want to list. */
|
|
14
|
+
'serviceId': string;
|
|
15
|
+
/** Number of items to return on each page. */
|
|
16
|
+
'pageSize'?: number;
|
|
17
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
18
|
+
'page'?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ListNumbersForServiceRequestData {
|
|
21
|
+
/** The serviceId containing the numbers you want to list. */
|
|
22
|
+
'serviceId': string;
|
|
23
|
+
/** Number of items to return on each page. */
|
|
24
|
+
'pageSize'?: number;
|
|
25
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
26
|
+
'page'?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ListServicesRequestData {
|
|
29
|
+
/** Number of services to return on each request. */
|
|
30
|
+
'pageSize'?: number;
|
|
31
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
32
|
+
'page'?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface DeleteServiceRequestData {
|
|
35
|
+
/** The serviceId you want to remove from your project. */
|
|
36
|
+
'serviceId': string;
|
|
37
|
+
}
|
|
38
|
+
export interface UpdateServiceRequestData {
|
|
39
|
+
/** The service ID you want to update. */
|
|
40
|
+
'serviceId': string;
|
|
41
|
+
/** */
|
|
42
|
+
'updateServiceRequestBody'?: ServiceRequest;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v3/requests/services/services-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface ServicePhoneNumber {
|
|
2
|
-
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading
|
|
2
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading '+'. */
|
|
3
3
|
phoneNumber?: string;
|
|
4
4
|
/** The `Id` of the project associated with the call. */
|
|
5
5
|
projectId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-event-parsed.js","sourceRoot":"","sources":["../../../../src/models/v3/webhook-event-parsed/webhook-event-parsed.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { CallbackProcessor } from '@sinch/sdk-client';
|
|
3
3
|
import { IncomingHttpHeaders } from 'http';
|
|
4
|
-
import {
|
|
5
|
-
export type FaxWebhookEventParsed = IncomingFaxEvent | FaxCompletedEvent;
|
|
4
|
+
import { FaxWebhookEventParsed } from '../../../models';
|
|
6
5
|
export declare class FaxCallbackWebhooks implements CallbackProcessor<FaxWebhookEventParsed> {
|
|
7
6
|
/**
|
|
8
7
|
* Reviver for a Fax Event
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v3/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v3/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AAIA,MAAa,mBAAmB;IAE9B;;;;;OAKG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,gBAAgB,GAA4B,IAAI,CAAC;QACrD,IAAI,iBAAiB,GAA6B,IAAI,CAAC;QACvD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACpB,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;gB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C5C,CAAC;QACD,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;YACtB,GAAG,CAAC,aAAa,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAEM,4BAA4B;IACjC,6DAA6D;IAC7D,QAA6B,EAAE,KAAU,EAAE,KAAa,EAAE,OAAe;QACzE,kDAAkD;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;CAEF;AA3DD,kDA2DC"}
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import { Email,
|
|
1
|
+
import { AddEmailToNumbersRequestData, DeleteEmailRequestData, Email, ListEmailsForProjectRequestData, ListNumbersByEmailRequestData, ServicePhoneNumber, UpdateEmailRequestData } from '../../../models';
|
|
2
2
|
import { ApiListPromise, SinchClientParameters } from '@sinch/sdk-client';
|
|
3
3
|
import { FaxDomainApi } from '../fax-domain-api';
|
|
4
|
-
export interface AddEmailToNumbersRequestData {
|
|
5
|
-
/** */
|
|
6
|
-
'emailRequestBody': EmailRequest;
|
|
7
|
-
}
|
|
8
|
-
export interface DeleteEmailRequestData {
|
|
9
|
-
/** The email you want to delete. */
|
|
10
|
-
'email': string;
|
|
11
|
-
}
|
|
12
|
-
export interface ListEmailsForProjectRequestData {
|
|
13
|
-
/** Number of items to return on each page. */
|
|
14
|
-
'pageSize'?: number;
|
|
15
|
-
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
16
|
-
'page'?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ListNumbersByEmailRequestData {
|
|
19
|
-
/** The email you want to get numbers for. */
|
|
20
|
-
'email': string;
|
|
21
|
-
/** Number of items to return on each page. */
|
|
22
|
-
'pageSize'?: number;
|
|
23
|
-
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
24
|
-
'page'?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface UpdateEmailRequestData {
|
|
27
|
-
/** The email you want to work with. */
|
|
28
|
-
'email': string;
|
|
29
|
-
/** */
|
|
30
|
-
'updateEmailRequestBody'?: UpdateEmailRequest;
|
|
31
|
-
}
|
|
32
4
|
export declare class EmailsApi extends FaxDomainApi {
|
|
33
5
|
/**
|
|
34
6
|
* Initialize your interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { Email, ServicePhoneNumber } from '../../../models';
|
|
3
|
-
import { EmailsApi
|
|
2
|
+
import { AddEmailToNumbersRequestData, DeleteEmailRequestData, Email, ListEmailsForProjectRequestData, ListNumbersByEmailRequestData, ServicePhoneNumber, UpdateEmailRequestData } from '../../../models';
|
|
3
|
+
import { EmailsApi } from './emails-api';
|
|
4
4
|
import { ApiListPromise } from '@sinch/sdk-client';
|
|
5
5
|
export declare class EmailsApiFixture implements Partial<Readonly<EmailsApi>> {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emails-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/emails/emails-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"emails-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/emails/emails-api.jest.fixture.ts"],"names":[],"mappings":";;;AAYA,MAAa,gBAAgB;IAA7B;QAEE;;WAEG;QACI,iBAAY,GAA8D,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,WAAM,GAAuD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC9E;;WAEG;QACI,SAAI,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7F;;WAEG;QACI,gBAAW,GAAmF,IAAI,CAAC,EAAE,EAAE,CAAC;QAC/G;;WAEG;QACI,WAAM,GAAwD,IAAI,CAAC,EAAE,EAAE,CAAC;IACjF,CAAC;CAAA;AAtBD,4CAsBC"}
|
|
@@ -25,9 +25,9 @@ class EmailsApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
25
25
|
'Accept': 'application/json',
|
|
26
26
|
};
|
|
27
27
|
const body = data['emailRequestBody'] ? JSON.stringify(data['emailRequestBody']) : '{}';
|
|
28
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
28
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/emails`;
|
|
29
29
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
30
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
31
31
|
return this.client.processCall({
|
|
32
32
|
url,
|
|
33
33
|
requestOptions,
|
|
@@ -48,9 +48,9 @@ class EmailsApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
48
48
|
'Accept': 'application/json',
|
|
49
49
|
};
|
|
50
50
|
const body = data['email'] ? JSON.stringify(data['email']) : '{}';
|
|
51
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
51
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/emails/${data['email']}`;
|
|
52
52
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
|
|
53
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
53
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
54
54
|
return this.client.processCall({
|
|
55
55
|
url,
|
|
56
56
|
requestOptions,
|
|
@@ -72,7 +72,7 @@ class EmailsApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
72
72
|
'Accept': 'application/json',
|
|
73
73
|
};
|
|
74
74
|
const body = '';
|
|
75
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
75
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/emails`;
|
|
76
76
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
77
77
|
const operationProperties = {
|
|
78
78
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -104,7 +104,7 @@ class EmailsApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
104
104
|
'Accept': 'application/json',
|
|
105
105
|
};
|
|
106
106
|
const body = '';
|
|
107
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
107
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/emails/${data['email']}/numbers`;
|
|
108
108
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
109
109
|
const operationProperties = {
|
|
110
110
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -133,9 +133,9 @@ class EmailsApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
133
133
|
const body = data['updateEmailRequestBody']
|
|
134
134
|
? JSON.stringify(data['updateEmailRequestBody'])
|
|
135
135
|
: '{}';
|
|
136
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
136
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/emails/${data['email']}`;
|
|
137
137
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PUT', getParams, headers, body || undefined);
|
|
138
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
138
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
139
139
|
return this.client.processCall({
|
|
140
140
|
url,
|
|
141
141
|
requestOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emails-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/emails/emails-api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"emails-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/emails/emails-api.ts"],"names":[],"mappings":";;;AASA,kDAQ2B;AAC3B,sDAAiD;AAEjD,MAAa,SAAU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MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,WAAW,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAE7I,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACnH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAQ;YACpC,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,aAAa;SAC3B,CAAC,CAAC;IACL,CAAC;CAEF;AAtLD,8BAsLC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { Api, ApiClient, SinchClientParameters, UnifiedCredentials } from '@sinch/sdk-client';
|
|
1
|
+
import { Api, ApiClient, FaxRegion, SinchClientParameters, UnifiedCredentials } from '@sinch/sdk-client';
|
|
2
2
|
export declare class FaxDomainApi implements Api {
|
|
3
3
|
readonly apiName: string;
|
|
4
4
|
client?: ApiClient;
|
|
5
5
|
private sinchClientParameters;
|
|
6
6
|
constructor(sinchClientParameters: SinchClientParameters, apiName: string);
|
|
7
7
|
/**
|
|
8
|
-
* Update the default
|
|
9
|
-
* @param {string}
|
|
8
|
+
* Update the default hostname for the API
|
|
9
|
+
* @param {string} hostname - The new hostname to use for the APIs.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
setHostname(hostname: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Update the region in the basePath
|
|
14
|
+
* @param {FaxRegion} region - The new region to send the requests to
|
|
15
|
+
*/
|
|
16
|
+
setRegion(region: FaxRegion): void;
|
|
12
17
|
/**
|
|
13
18
|
* Updates the credentials used to authenticate API requests
|
|
14
19
|
* @param {UnifiedCredentials} credentials
|
|
@@ -22,5 +27,5 @@ export declare class FaxDomainApi implements Api {
|
|
|
22
27
|
* @private
|
|
23
28
|
*/
|
|
24
29
|
getSinchClient(): ApiClient;
|
|
25
|
-
private
|
|
30
|
+
private buildHostname;
|
|
26
31
|
}
|
|
@@ -8,12 +8,22 @@ class FaxDomainApi {
|
|
|
8
8
|
this.apiName = apiName;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Update the default
|
|
12
|
-
* @param {string}
|
|
11
|
+
* Update the default hostname for the API
|
|
12
|
+
* @param {string} hostname - The new hostname to use for the APIs.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
setHostname(hostname) {
|
|
15
15
|
this.client = this.getSinchClient();
|
|
16
|
-
this.client.apiClientOptions.
|
|
16
|
+
this.client.apiClientOptions.hostname = hostname;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Update the region in the basePath
|
|
20
|
+
* @param {FaxRegion} region - The new region to send the requests to
|
|
21
|
+
*/
|
|
22
|
+
setRegion(region) {
|
|
23
|
+
this.sinchClientParameters.faxRegion = region;
|
|
24
|
+
if (this.client) {
|
|
25
|
+
this.client.apiClientOptions.hostname = this.buildHostname(region);
|
|
26
|
+
}
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* Updates the credentials used to authenticate API requests
|
|
@@ -46,22 +56,19 @@ class FaxDomainApi {
|
|
|
46
56
|
*/
|
|
47
57
|
getSinchClient() {
|
|
48
58
|
if (!this.client) {
|
|
49
|
-
const apiClientOptions =
|
|
59
|
+
const apiClientOptions = (0, sdk_client_1.buildOAuth2ApiClientOptions)(this.sinchClientParameters, 'Fax');
|
|
50
60
|
this.client = new sdk_client_1.ApiFetchClient(apiClientOptions);
|
|
51
|
-
this.
|
|
61
|
+
const region = this.sinchClientParameters.faxRegion ?? sdk_client_1.FaxRegion.DEFAULT;
|
|
62
|
+
if (!Object.values(sdk_client_1.SupportedFaxRegion).includes(region)) {
|
|
63
|
+
console.warn(`The region "${region}" is not known as a supported region for the Fax API`);
|
|
64
|
+
}
|
|
65
|
+
this.client.apiClientOptions.hostname = this.sinchClientParameters.faxHostname ?? this.buildHostname(region);
|
|
52
66
|
}
|
|
53
67
|
return this.client;
|
|
54
68
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
+ '"projectId", "keyId" and "keySecret" values must be provided');
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
projectId: params.projectId,
|
|
62
|
-
requestPlugins: [new sdk_client_1.Oauth2TokenRequest(params.keyId, params.keySecret)],
|
|
63
|
-
useServicePlanId: false,
|
|
64
|
-
};
|
|
69
|
+
buildHostname(region) {
|
|
70
|
+
const formattedRegion = region !== '' ? `${region}.` : '';
|
|
71
|
+
return `https://${formattedRegion}fax.api.sinch.com`;
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
74
|
exports.FaxDomainApi = FaxDomainApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fax-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v3/fax-domain-api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"fax-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v3/fax-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAS2B;AAE3B,MAAa,YAAY;IAKvB,YAAY,qBAA4C,EAAE,OAAe;QACvE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnD,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,MAAiB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D,CAAC,CAAC;YAC5F,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,WAAW,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC/G,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEO,aAAa,CAAC,MAAiB;QACrC,MAAM,eAAe,GAAG,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,OAAO,WAAW,eAAe,mBAAmB,CAAC;IACvD,CAAC;CAEF;AA9ED,oCA8EC"}
|
|
@@ -1,16 +1,37 @@
|
|
|
1
|
-
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
1
|
+
import { FaxRegion, SinchClientParameters } from '@sinch/sdk-client';
|
|
2
2
|
import { EmailsApi } from './emails';
|
|
3
3
|
import { FaxesApi } from './faxes';
|
|
4
4
|
import { ServicesApi } from './services';
|
|
5
|
+
/**
|
|
6
|
+
* The Fax Service exposes the following APIs:
|
|
7
|
+
* - services
|
|
8
|
+
* - faxes
|
|
9
|
+
* - emails
|
|
10
|
+
*/
|
|
5
11
|
export declare class FaxService {
|
|
6
12
|
readonly emails: EmailsApi;
|
|
7
13
|
readonly faxes: FaxesApi;
|
|
8
14
|
readonly services: ServicesApi;
|
|
9
|
-
constructor(params: SinchClientParameters);
|
|
10
15
|
/**
|
|
11
|
-
*
|
|
16
|
+
* Create a new FaxService instance with its configuration. It needs the following parameters for authentication:
|
|
17
|
+
* - `projectId`
|
|
18
|
+
* - `keyId`
|
|
19
|
+
* - `keySecret`
|
|
12
20
|
*
|
|
13
|
-
*
|
|
21
|
+
* Other supported properties:
|
|
22
|
+
* - `faxRegion`
|
|
23
|
+
* - `faxHostname`
|
|
24
|
+
* @param {SinchClientParameters} params - an Object containing the necessary properties to initialize the service
|
|
25
|
+
*/
|
|
26
|
+
constructor(params: SinchClientParameters);
|
|
27
|
+
/**
|
|
28
|
+
* Update the default hostname for each API
|
|
29
|
+
* @param {string} hostname - The new hostname to use for all the APIs.
|
|
30
|
+
*/
|
|
31
|
+
setHostname(hostname: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* Update the current region for each API
|
|
34
|
+
* @param {FaxRegion} region - The new region to use in the production URL
|
|
14
35
|
*/
|
|
15
|
-
|
|
36
|
+
setRegion(region: FaxRegion): void;
|
|
16
37
|
}
|
|
@@ -4,21 +4,46 @@ exports.FaxService = void 0;
|
|
|
4
4
|
const emails_1 = require("./emails");
|
|
5
5
|
const faxes_1 = require("./faxes");
|
|
6
6
|
const services_1 = require("./services");
|
|
7
|
+
/**
|
|
8
|
+
* The Fax Service exposes the following APIs:
|
|
9
|
+
* - services
|
|
10
|
+
* - faxes
|
|
11
|
+
* - emails
|
|
12
|
+
*/
|
|
7
13
|
class FaxService {
|
|
14
|
+
/**
|
|
15
|
+
* Create a new FaxService instance with its configuration. It needs the following parameters for authentication:
|
|
16
|
+
* - `projectId`
|
|
17
|
+
* - `keyId`
|
|
18
|
+
* - `keySecret`
|
|
19
|
+
*
|
|
20
|
+
* Other supported properties:
|
|
21
|
+
* - `faxRegion`
|
|
22
|
+
* - `faxHostname`
|
|
23
|
+
* @param {SinchClientParameters} params - an Object containing the necessary properties to initialize the service
|
|
24
|
+
*/
|
|
8
25
|
constructor(params) {
|
|
9
26
|
this.emails = new emails_1.EmailsApi(params);
|
|
10
27
|
this.faxes = new faxes_1.FaxesApi(params);
|
|
11
28
|
this.services = new services_1.ServicesApi(params);
|
|
12
29
|
}
|
|
13
30
|
/**
|
|
14
|
-
* Update the default
|
|
15
|
-
*
|
|
16
|
-
|
|
31
|
+
* Update the default hostname for each API
|
|
32
|
+
* @param {string} hostname - The new hostname to use for all the APIs.
|
|
33
|
+
*/
|
|
34
|
+
setHostname(hostname) {
|
|
35
|
+
this.emails.setHostname(hostname);
|
|
36
|
+
this.faxes.setHostname(hostname);
|
|
37
|
+
this.services.setHostname(hostname);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Update the current region for each API
|
|
41
|
+
* @param {FaxRegion} region - The new region to use in the production URL
|
|
17
42
|
*/
|
|
18
|
-
|
|
19
|
-
this.emails.
|
|
20
|
-
this.faxes.
|
|
21
|
-
this.services.
|
|
43
|
+
setRegion(region) {
|
|
44
|
+
this.emails.setRegion(region);
|
|
45
|
+
this.faxes.setRegion(region);
|
|
46
|
+
this.services.setRegion(region);
|
|
22
47
|
}
|
|
23
48
|
}
|
|
24
49
|
exports.FaxService = FaxService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fax-service.js","sourceRoot":"","sources":["../../../src/rest/v3/fax-service.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AACrC,mCAAmC;AACnC,yCAAyC;AAEzC,MAAa,UAAU;IAKrB,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAS,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,gBAAQ,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,sBAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"fax-service.js","sourceRoot":"","sources":["../../../src/rest/v3/fax-service.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AACrC,mCAAmC;AACnC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,UAAU;IAKrB;;;;;;;;;;OAUG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAS,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,gBAAQ,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,sBAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,MAAiB;QAChC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;CACF;AAzCD,gCAyCC"}
|
|
@@ -1,39 +1,6 @@
|
|
|
1
1
|
import { ApiListPromise, FileBuffer, SinchClientParameters } from '@sinch/sdk-client';
|
|
2
2
|
import { FaxDomainApi } from '../fax-domain-api';
|
|
3
|
-
import { Fax,
|
|
4
|
-
export interface DeleteFaxContentRequestData {
|
|
5
|
-
/** The ID of the fax. */
|
|
6
|
-
'id': string;
|
|
7
|
-
}
|
|
8
|
-
export interface DownloadFaxContentRequestData {
|
|
9
|
-
/** The ID of the fax. */
|
|
10
|
-
'id': string;
|
|
11
|
-
/** The file format to download. Currently only PDF is supported. */
|
|
12
|
-
'fileFormat'?: 'pdf';
|
|
13
|
-
}
|
|
14
|
-
export interface GetFaxRequestData {
|
|
15
|
-
/** The ID of the fax. */
|
|
16
|
-
'id': string;
|
|
17
|
-
}
|
|
18
|
-
export interface ListFaxesRequestData {
|
|
19
|
-
/** Filter calls based on `createTime`. If you make the query more precise, fewer results will be returned. For example, `2021-02-01` will return all calls from the first of February 2021, and `2021-02-01T14:00:00Z` will return all calls after 14:00 on the first of February. This field also supports `<=` and `>=` to search for calls in a range `?createTime>=2021-10-01&startTime<=2021-10-30` to get a list of calls for all of October 2021. It is also possible to submit partial dates. For example, `createTime=2021-02` will return all calls for February 2021. If not value is submitted, the default value is the prior week. */
|
|
20
|
-
'createTime'?: string;
|
|
21
|
-
/** Limits results to faxes with the specified direction. */
|
|
22
|
-
'direction'?: FaxDirection;
|
|
23
|
-
/** Limits results to faxes with the specified status. */
|
|
24
|
-
'status'?: FaxStatus;
|
|
25
|
-
/** A phone number that you want to use to filter results. The parameter search with startsWith, so you can pass a partial number to get all faxes sent to numbers that start with the number you passed. */
|
|
26
|
-
'to'?: string;
|
|
27
|
-
/** A phone number that you want to use to filter results. The parameter search with startsWith, so you can pass a partial number to get all faxes sent to numbers that start with the number you passed. */
|
|
28
|
-
'from'?: string;
|
|
29
|
-
/** The maximum number of items to return per request. The default is 100 and the maximum is 1000. If you need to export larger amounts and pagination is not suitable for you can use the Export function in the dashboard. */
|
|
30
|
-
'pageSize'?: number;
|
|
31
|
-
/** The page you want to retrieve returned from a previous List request, if any */
|
|
32
|
-
'page'?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface SendFaxRequestData {
|
|
35
|
-
'sendFaxRequestBody': FaxRequest;
|
|
36
|
-
}
|
|
3
|
+
import { Fax, DeleteFaxContentRequestData, DownloadFaxContentRequestData, GetFaxRequestData, ListFaxesRequestData, SendFaxRequestData } from '../../../models';
|
|
37
4
|
export declare class FaxesApi extends FaxDomainApi {
|
|
38
5
|
/**
|
|
39
6
|
* Initialize your interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { Fax } from '../../../models';
|
|
3
|
-
import { FaxesApi
|
|
2
|
+
import { DeleteFaxContentRequestData, DownloadFaxContentRequestData, Fax, GetFaxRequestData, ListFaxesRequestData, SendFaxRequestData } from '../../../models';
|
|
3
|
+
import { FaxesApi } from './faxes-api';
|
|
4
4
|
import { ApiListPromise, FileBuffer } from '@sinch/sdk-client';
|
|
5
5
|
export declare class FaxesApiFixture implements Partial<Readonly<FaxesApi>> {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faxes-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/faxes/faxes-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"faxes-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/faxes/faxes-api.jest.fixture.ts"],"names":[],"mappings":";;;AAWA,MAAa,eAAe;IAA5B;QAEE;;WAEG;QACI,kBAAa,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;QAC1F;;WAEG;QACI,oBAAe,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;QACpG;;WAEG;QACI,QAAG,GAAiD,IAAI,CAAC,EAAE,EAAE,CAAC;QACrE;;WAEG;QACI,SAAI,GAA2D,IAAI,CAAC,EAAE,EAAE,CAAC;QAChF;;WAEG;QACI,SAAI,GAAkD,IAAI,CAAC,EAAE,EAAE,CAAC;IACzE,CAAC;CAAA;AAtBD,0CAsBC"}
|
|
@@ -25,9 +25,9 @@ class FaxesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
25
25
|
'Accept': 'application/json',
|
|
26
26
|
};
|
|
27
27
|
const body = '';
|
|
28
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
28
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/faxes/${data['id']}/file`;
|
|
29
29
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
|
|
30
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
31
31
|
return this.client.processCall({
|
|
32
32
|
url,
|
|
33
33
|
requestOptions,
|
|
@@ -49,9 +49,9 @@ class FaxesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
49
49
|
'Accept': 'application/pdf',
|
|
50
50
|
};
|
|
51
51
|
const body = '';
|
|
52
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
52
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/faxes/${data['id']}/file.${data['fileFormat']}`;
|
|
53
53
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
54
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
54
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
55
55
|
return this.client.processFileCall({
|
|
56
56
|
url,
|
|
57
57
|
requestOptions,
|
|
@@ -72,9 +72,9 @@ class FaxesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
72
72
|
'Accept': 'application/json',
|
|
73
73
|
};
|
|
74
74
|
const body = '';
|
|
75
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
75
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/faxes/${data['id']}`;
|
|
76
76
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
77
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
77
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
78
78
|
return this.client.processCall({
|
|
79
79
|
url,
|
|
80
80
|
requestOptions,
|
|
@@ -104,7 +104,7 @@ class FaxesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
104
104
|
'Accept': 'application/json',
|
|
105
105
|
};
|
|
106
106
|
const body = '';
|
|
107
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
107
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/faxes`;
|
|
108
108
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
109
109
|
const operationProperties = {
|
|
110
110
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -164,52 +164,52 @@ class FaxesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
164
164
|
const formParams = {};
|
|
165
165
|
const requestData = data.sendFaxRequestBody;
|
|
166
166
|
if (requestData.to) {
|
|
167
|
-
formParams
|
|
167
|
+
formParams.to = requestData.to;
|
|
168
168
|
}
|
|
169
169
|
if (requestData.file) {
|
|
170
|
-
formParams
|
|
170
|
+
formParams.file = requestData.file;
|
|
171
171
|
}
|
|
172
172
|
if (requestData.from) {
|
|
173
|
-
formParams
|
|
173
|
+
formParams.from = requestData.from;
|
|
174
174
|
}
|
|
175
175
|
if (requestData.contentUrl) {
|
|
176
|
-
formParams
|
|
176
|
+
formParams.contentUrl = requestData.contentUrl;
|
|
177
177
|
}
|
|
178
178
|
if (requestData.headerText) {
|
|
179
|
-
formParams
|
|
179
|
+
formParams.headerText = requestData.headerText;
|
|
180
180
|
}
|
|
181
181
|
if (requestData.headerPageNumbers) {
|
|
182
|
-
formParams
|
|
182
|
+
formParams.headerPageNumbers = requestData.headerPageNumbers.toString();
|
|
183
183
|
}
|
|
184
184
|
if (requestData.headerTimeZone) {
|
|
185
|
-
formParams
|
|
185
|
+
formParams.headerTimeZone = requestData.headerTimeZone;
|
|
186
186
|
}
|
|
187
187
|
if (requestData.retryDelaySeconds) {
|
|
188
|
-
formParams
|
|
188
|
+
formParams.retryDelaySeconds = requestData.retryDelaySeconds;
|
|
189
189
|
}
|
|
190
190
|
if (requestData.labels) {
|
|
191
|
-
formParams
|
|
191
|
+
formParams.labels = requestData.labels;
|
|
192
192
|
}
|
|
193
193
|
if (requestData.callbackUrl) {
|
|
194
|
-
formParams
|
|
194
|
+
formParams.callbackUrl = requestData.callbackUrl;
|
|
195
195
|
}
|
|
196
196
|
if (requestData.callbackContentType) {
|
|
197
|
-
formParams
|
|
197
|
+
formParams.callbackContentType = requestData.callbackContentType;
|
|
198
198
|
}
|
|
199
199
|
if (requestData.imageConversionMethod) {
|
|
200
|
-
formParams
|
|
200
|
+
formParams.imageConversionMethod = requestData.imageConversionMethod;
|
|
201
201
|
}
|
|
202
202
|
if (requestData.serviceId) {
|
|
203
|
-
formParams
|
|
203
|
+
formParams.serviceId = requestData.serviceId;
|
|
204
204
|
}
|
|
205
205
|
if (requestData.maxRetries) {
|
|
206
|
-
formParams
|
|
206
|
+
formParams.maxRetries = requestData.maxRetries;
|
|
207
207
|
}
|
|
208
208
|
body = this.client.processFormData(formParams, 'multipart/form-data');
|
|
209
209
|
}
|
|
210
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
210
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/faxes`;
|
|
211
211
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
212
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
212
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
213
213
|
return this.client.processCall({
|
|
214
214
|
url,
|
|
215
215
|
requestOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faxes-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/faxes/faxes-api.ts"],"names":[],"mappings":";;;AAAA,kDAS2B;AAC3B,sDAAiD;
|
|
1
|
+
{"version":3,"file":"faxes-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/faxes/faxes-api.ts"],"names":[],"mappings":";;;AAAA,kDAS2B;AAC3B,sDAAiD;AAWjD,MAAa,QAAS,SAAQ,6BAAY;IAExC;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,aAAa,CAAC,IAAiC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA8B,IAAI,EAAE,EAAa,CAAC,CAAC;QACnG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YACl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AC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAM;YAClC,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,SAAS;SACvB,CAAC,CAAC;IACL,CAAC;CAEF;AA1ND,4BA0NC"}
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateServiceRequestData, DeleteServiceRequestData, GetServiceRequestData, ListEmailsForNumberRequestData, ListNumbersForServiceRequestData, ListServicesRequestData, ServicePhoneNumber, ServiceResponse, UpdateServiceRequestData } from '../../../models';
|
|
2
2
|
import { ApiListPromise, SinchClientParameters } from '@sinch/sdk-client';
|
|
3
3
|
import { FaxDomainApi } from '../fax-domain-api';
|
|
4
|
-
export interface CreateServiceRequestData {
|
|
5
|
-
/** */
|
|
6
|
-
'createServiceRequestBody'?: ServiceRequest;
|
|
7
|
-
}
|
|
8
|
-
export interface GetServiceRequestData {
|
|
9
|
-
/** The service ID you want to update. */
|
|
10
|
-
'serviceId': string;
|
|
11
|
-
}
|
|
12
|
-
export interface ListEmailsForNumberRequestData {
|
|
13
|
-
/** The phone number you want to get emails for. */
|
|
14
|
-
'phoneNumber': string;
|
|
15
|
-
/** The serviceId containing the numbers you want to list. */
|
|
16
|
-
'serviceId': string;
|
|
17
|
-
/** Number of items to return on each page. */
|
|
18
|
-
'pageSize'?: number;
|
|
19
|
-
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
20
|
-
'page'?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ListNumbersForServiceRequestData {
|
|
23
|
-
/** The serviceId containing the numbers you want to list. */
|
|
24
|
-
'serviceId': string;
|
|
25
|
-
/** Number of items to return on each page. */
|
|
26
|
-
'pageSize'?: number;
|
|
27
|
-
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
28
|
-
'page'?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ListServicesRequestData {
|
|
31
|
-
/** Number of services to return on each request. */
|
|
32
|
-
'pageSize'?: number;
|
|
33
|
-
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
34
|
-
'page'?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface DeleteServiceRequestData {
|
|
37
|
-
/** The serviceId you want to remove from your project. */
|
|
38
|
-
'serviceId': string;
|
|
39
|
-
}
|
|
40
|
-
export interface UpdateServiceRequestData {
|
|
41
|
-
/** The service ID you want to update. */
|
|
42
|
-
'serviceId': string;
|
|
43
|
-
/** */
|
|
44
|
-
'updateServiceRequestBody'?: ServiceRequest;
|
|
45
|
-
}
|
|
46
4
|
export declare class ServicesApi extends FaxDomainApi {
|
|
47
5
|
/**
|
|
48
6
|
* Initialize your interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { ServicePhoneNumber, ServiceResponse } from '../../../models';
|
|
3
|
-
import { ServicesApi
|
|
2
|
+
import { CreateServiceRequestData, DeleteServiceRequestData, GetServiceRequestData, ListEmailsForNumberRequestData, ListNumbersForServiceRequestData, ListServicesRequestData, ServicePhoneNumber, ServiceResponse, UpdateServiceRequestData } from '../../../models';
|
|
3
|
+
import { ServicesApi } from './services-api';
|
|
4
4
|
import { ApiListPromise } from '@sinch/sdk-client';
|
|
5
5
|
export declare class ServicesApiFixture implements Partial<Readonly<ServicesApi>> {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/services/services-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"services-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v3/services/services-api.jest.fixture.ts"],"names":[],"mappings":";;;AAcA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,WAAM,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,QAAG,GAAiE,IAAI,CAAC,EAAE,EAAE,CAAC;QACrF;;WAEG;QACI,wBAAmB,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5G;;WAEG;QACI,gBAAW,GACoE,IAAI,CAAC,EAAE,EAAE,CAAC;QAChG;;WAEG;QACI,SAAI,GAA0E,IAAI,CAAC,EAAE,EAAE,CAAC;QAC/F;;WAEG;QACI,WAAM,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAChF;;WAEG;QACI,WAAM,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;IAC7F,CAAC;CAAA;AA/BD,gDA+BC"}
|
|
@@ -27,9 +27,9 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
27
27
|
const body = data['createServiceRequestBody']
|
|
28
28
|
? JSON.stringify(data['createServiceRequestBody'])
|
|
29
29
|
: '{}';
|
|
30
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
30
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services`;
|
|
31
31
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
32
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
32
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
33
33
|
return this.client.processCall({
|
|
34
34
|
url,
|
|
35
35
|
requestOptions,
|
|
@@ -50,9 +50,9 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
50
50
|
'Accept': 'application/json',
|
|
51
51
|
};
|
|
52
52
|
const body = '';
|
|
53
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
53
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
|
|
54
54
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
55
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
55
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
56
56
|
return this.client.processCall({
|
|
57
57
|
url,
|
|
58
58
|
requestOptions,
|
|
@@ -74,7 +74,7 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
74
74
|
'Accept': 'application/json',
|
|
75
75
|
};
|
|
76
76
|
const body = '';
|
|
77
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
77
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}/numbers/${data['phoneNumber']}/emails`;
|
|
78
78
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
79
79
|
const operationProperties = {
|
|
80
80
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -103,7 +103,7 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
103
103
|
'Accept': 'application/json',
|
|
104
104
|
};
|
|
105
105
|
const body = '';
|
|
106
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
106
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}/numbers`;
|
|
107
107
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
108
108
|
const operationProperties = {
|
|
109
109
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -132,7 +132,7 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
132
132
|
'Accept': 'application/json',
|
|
133
133
|
};
|
|
134
134
|
const body = '';
|
|
135
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
135
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services`;
|
|
136
136
|
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
137
137
|
const operationProperties = {
|
|
138
138
|
pagination: sdk_client_1.PaginationEnum.PAGE3,
|
|
@@ -159,9 +159,9 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
159
159
|
'Accept': 'application/json',
|
|
160
160
|
};
|
|
161
161
|
const body = '';
|
|
162
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
162
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
|
|
163
163
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
|
|
164
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
164
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
165
165
|
return this.client.processCall({
|
|
166
166
|
url,
|
|
167
167
|
requestOptions,
|
|
@@ -184,9 +184,9 @@ class ServicesApi extends fax_domain_api_1.FaxDomainApi {
|
|
|
184
184
|
const body = data['updateServiceRequestBody']
|
|
185
185
|
? JSON.stringify(data['updateServiceRequestBody'])
|
|
186
186
|
: '{}';
|
|
187
|
-
const basePathUrl = `${this.client.apiClientOptions.
|
|
187
|
+
const basePathUrl = `${this.client.apiClientOptions.hostname}/v3/projects/${this.client.apiClientOptions.projectId}/services/${data['serviceId']}`;
|
|
188
188
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
|
|
189
|
-
const url = this.client.prepareUrl(requestOptions.
|
|
189
|
+
const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
|
|
190
190
|
return this.client.processCall({
|
|
191
191
|
url,
|
|
192
192
|
requestOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/services/services-api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"services-api.js","sourceRoot":"","sources":["../../../../src/rest/v3/services/services-api.ts"],"names":[],"mappings":";;;AAWA,kDAQ2B;AAC3B,sDAAiD;AAEjD,MAAa,WAAY,SAAQ,6BAAY;IAE3C;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA8B;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA2B,IAAI,EAAE,EAAa,CAAC,CAAC;QAChG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,0BAA0B,CAAC;YACxD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;YAClD,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,WAAW,CAAC;QAE9H,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,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,CAAC;QACT,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,aAAa,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QAEnJ,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QAClG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAkB;YAC9C,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAC;IACL,CAAC;CAEF;AA7PD,kCA6PC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sinch/fax",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Sinch Fax API",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"compile": "tsc -p tsconfig.build.json && tsc -p tsconfig.tests.json && rimraf dist/tests && rimraf tsconfig.build.tsbuildinfo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sinch/sdk-client": "^0.0.
|
|
31
|
+
"@sinch/sdk-client": "^0.0.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"publishConfig": {
|