@sinch/fax 1.2.1 → 1.4.0
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/models/v3/bar-code/bar-code.d.ts +2 -1
- package/dist/models/v3/cover-page/cover-page.d.ts +25 -0
- package/dist/models/v3/{service-email-settings/service-email-settings.js → cover-page/cover-page.js} +1 -1
- package/dist/models/v3/cover-page/cover-page.js.map +1 -0
- package/dist/models/v3/cover-page/index.d.ts +1 -0
- package/dist/models/v3/cover-page/index.js +3 -0
- package/dist/models/v3/cover-page/index.js.map +1 -0
- package/dist/models/v3/cover-page-file/cover-page-file.d.ts +9 -0
- package/dist/models/v3/{requests/emails/emails-request-data.js → cover-page-file/cover-page-file.js} +1 -1
- package/dist/models/v3/cover-page-file/cover-page-file.js.map +1 -0
- package/dist/models/v3/cover-page-file/index.d.ts +1 -0
- package/dist/models/v3/cover-page-file/index.js.map +1 -0
- package/dist/models/v3/date-range-filter/date-range-filter.d.ts +2 -2
- package/dist/models/v3/email/email.d.ts +7 -2
- package/dist/models/v3/enums.d.ts +26 -7
- package/dist/models/v3/enums.js +1 -1
- package/dist/models/v3/enums.js.map +1 -1
- package/dist/models/v3/errors/call-error/call-error.d.ts +13 -0
- package/dist/models/v3/errors/call-error/call-error.js +16 -0
- package/dist/models/v3/errors/call-error/call-error.js.map +1 -0
- package/dist/models/v3/errors/call-error/index.d.ts +2 -0
- package/dist/models/v3/errors/call-error/index.js +6 -0
- package/dist/models/v3/errors/call-error/index.js.map +1 -0
- package/dist/models/v3/errors/document-conversion-error/document-conversion-error.d.ts +13 -0
- package/dist/models/v3/errors/document-conversion-error/document-conversion-error.js +16 -0
- package/dist/models/v3/errors/document-conversion-error/document-conversion-error.js.map +1 -0
- package/dist/models/v3/errors/document-conversion-error/index.d.ts +2 -0
- package/dist/models/v3/errors/document-conversion-error/index.js +6 -0
- package/dist/models/v3/errors/document-conversion-error/index.js.map +1 -0
- package/dist/models/v3/errors/fax-error/fax-error.d.ts +13 -0
- package/dist/models/v3/errors/fax-error/fax-error.js +46 -0
- package/dist/models/v3/errors/fax-error/fax-error.js.map +1 -0
- package/dist/models/v3/errors/fax-error/index.d.ts +2 -0
- package/dist/models/v3/errors/fax-error/index.js +6 -0
- package/dist/models/v3/errors/fax-error/index.js.map +1 -0
- package/dist/models/v3/errors/index.d.ts +3 -0
- package/dist/models/v3/errors/index.js +20 -0
- package/dist/models/v3/errors/index.js.map +1 -0
- package/dist/models/v3/fax/fax.d.ts +19 -9
- package/dist/models/v3/fax-request/fax-request.d.ts +9 -1
- package/dist/models/v3/helper.js +5 -1
- package/dist/models/v3/helper.js.map +1 -1
- package/dist/models/v3/index.d.ts +4 -1
- package/dist/models/v3/index.js +4 -1
- package/dist/models/v3/index.js.map +1 -1
- package/dist/models/v3/number-with-permissions/index.d.ts +1 -0
- package/dist/models/v3/number-with-permissions/index.js +3 -0
- package/dist/models/v3/number-with-permissions/index.js.map +1 -0
- package/dist/models/v3/number-with-permissions/number-with-permissions.d.ts +10 -0
- package/dist/models/v3/number-with-permissions/number-with-permissions.js +3 -0
- package/dist/models/v3/number-with-permissions/number-with-permissions.js.map +1 -0
- package/dist/models/v3/requests/cover-pages/cover-pages-request-data.d.ts +27 -0
- package/dist/models/v3/requests/cover-pages/cover-pages-request-data.js +3 -0
- package/dist/models/v3/requests/cover-pages/cover-pages-request-data.js.map +1 -0
- package/dist/models/v3/requests/{emails/emails-request-data.d.ts → fax-to-email/fax-to-email-request-data.d.ts} +10 -0
- package/dist/models/v3/requests/fax-to-email/fax-to-email-request-data.js +3 -0
- package/dist/models/v3/requests/fax-to-email/fax-to-email-request-data.js.map +1 -0
- package/dist/models/v3/requests/faxes/faxes-request-data.d.ts +2 -0
- package/dist/models/v3/requests/index.d.ts +2 -1
- package/dist/models/v3/requests/index.js +2 -1
- package/dist/models/v3/requests/index.js.map +1 -1
- package/dist/models/v3/service/service.d.ts +9 -6
- package/dist/models/v3/service-phone-number/service-phone-number.d.ts +3 -0
- package/dist/models/v3/update-email-request/update-email-request.d.ts +2 -1
- package/dist/rest/v3/callbacks/callbacks-webhook.d.ts +7 -0
- package/dist/rest/v3/callbacks/callbacks-webhook.js +13 -0
- package/dist/rest/v3/callbacks/callbacks-webhook.js.map +1 -1
- package/dist/rest/v3/cover-pages/cover-pages-api.d.ts +32 -0
- package/dist/rest/v3/cover-pages/cover-pages-api.jest.fixture.d.ts +21 -0
- package/dist/rest/v3/cover-pages/cover-pages-api.jest.fixture.js +25 -0
- package/dist/rest/v3/cover-pages/cover-pages-api.jest.fixture.js.map +1 -0
- package/dist/rest/v3/cover-pages/cover-pages-api.js +105 -0
- package/dist/rest/v3/cover-pages/cover-pages-api.js.map +1 -0
- package/dist/rest/v3/cover-pages/index.d.ts +2 -0
- package/dist/rest/v3/{emails → cover-pages}/index.js +2 -2
- package/dist/rest/v3/cover-pages/index.js.map +1 -0
- package/dist/rest/v3/fax-domain-api.d.ts +15 -16
- package/dist/rest/v3/fax-domain-api.js +28 -41
- package/dist/rest/v3/fax-domain-api.js.map +1 -1
- package/dist/rest/v3/fax-service.d.ts +22 -17
- package/dist/rest/v3/fax-service.js +60 -25
- package/dist/rest/v3/fax-service.js.map +1 -1
- package/dist/rest/v3/{emails/emails-api.d.ts → fax-to-email/fax-to-email-api.d.ts} +4 -8
- package/dist/rest/v3/{emails/emails-api.jest.fixture.d.ts → fax-to-email/fax-to-email-api.jest.fixture.d.ts} +2 -2
- package/dist/rest/v3/{emails/emails-api.jest.fixture.js → fax-to-email/fax-to-email-api.jest.fixture.js} +4 -4
- package/dist/rest/v3/fax-to-email/fax-to-email-api.jest.fixture.js.map +1 -0
- package/dist/rest/v3/{emails/emails-api.js → fax-to-email/fax-to-email-api.js} +12 -22
- package/dist/rest/v3/fax-to-email/fax-to-email-api.js.map +1 -0
- package/dist/rest/v3/fax-to-email/index.d.ts +2 -0
- package/dist/rest/v3/fax-to-email/index.js +19 -0
- package/dist/rest/v3/fax-to-email/index.js.map +1 -0
- package/dist/rest/v3/faxes/faxes-api.d.ts +4 -8
- package/dist/rest/v3/faxes/faxes-api.js +7 -16
- package/dist/rest/v3/faxes/faxes-api.js.map +1 -1
- package/dist/rest/v3/index.d.ts +3 -1
- package/dist/rest/v3/index.js +3 -1
- package/dist/rest/v3/index.js.map +1 -1
- package/dist/rest/v3/services/services-api.d.ts +4 -8
- package/dist/rest/v3/services/services-api.js +3 -17
- package/dist/rest/v3/services/services-api.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/v3/requests/emails/emails-request-data.js.map +0 -1
- package/dist/models/v3/service-email-settings/index.d.ts +0 -1
- package/dist/models/v3/service-email-settings/index.js.map +0 -1
- package/dist/models/v3/service-email-settings/service-email-settings.d.ts +0 -6
- package/dist/models/v3/service-email-settings/service-email-settings.js.map +0 -1
- package/dist/rest/v3/emails/emails-api.jest.fixture.js.map +0 -1
- package/dist/rest/v3/emails/emails-api.js.map +0 -1
- package/dist/rest/v3/emails/index.d.ts +0 -2
- package/dist/rest/v3/emails/index.js.map +0 -1
- /package/dist/models/v3/{service-email-settings → cover-page-file}/index.js +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BarCodeType } from '../enums';
|
|
1
2
|
/**
|
|
2
3
|
* Sinch will scan all pages of all incoming faxes for Code-128 and DataMatrix bar codes and include this information in webhook requests and via the API.
|
|
3
4
|
*/
|
|
4
5
|
export interface BarCode {
|
|
5
6
|
/** The type of barcode found. */
|
|
6
|
-
type?:
|
|
7
|
+
type?: BarCodeType;
|
|
7
8
|
/** The page number on which the barcode was found. */
|
|
8
9
|
page?: number;
|
|
9
10
|
/** The information of the barcode. */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CoverPageFile } from '../cover-page-file';
|
|
2
|
+
/**
|
|
3
|
+
* A cover page creation model
|
|
4
|
+
*/
|
|
5
|
+
export interface CoverPageRequest {
|
|
6
|
+
/** The friendly name of the cover page. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** @see CoverPageFile */
|
|
9
|
+
file: CoverPageFile;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A cover page resource
|
|
13
|
+
*/
|
|
14
|
+
export interface CoverPage extends CoverPageRequest {
|
|
15
|
+
/** ID of the cover page */
|
|
16
|
+
id?: string;
|
|
17
|
+
/** The `Id` of the project associated with the call. */
|
|
18
|
+
projectId?: string;
|
|
19
|
+
/** ID of the fax service used. */
|
|
20
|
+
serviceId?: string;
|
|
21
|
+
/** The date and time the cover page was created. */
|
|
22
|
+
createdTime?: Date;
|
|
23
|
+
/** The date and time the cover page was updated. */
|
|
24
|
+
updatedTime?: Date;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cover-page.js","sourceRoot":"","sources":["../../../../src/models/v3/cover-page/cover-page.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CoverPageRequest, CoverPage } from './cover-page';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v3/cover-page/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cover-page-file.js","sourceRoot":"","sources":["../../../../src/models/v3/cover-page-file/cover-page-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CoverPageFile } from './cover-page-file';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v3/cover-page-file/index.ts"],"names":[],"mappings":""}
|
|
@@ -10,8 +10,8 @@ import { DateFormat } from '@sinch/sdk-client';
|
|
|
10
10
|
* - `from: '2024-02'` will return all faxes for February 2024
|
|
11
11
|
*/
|
|
12
12
|
export interface DateRangeFilter {
|
|
13
|
-
/** */
|
|
13
|
+
/** Start of the date range */
|
|
14
14
|
from?: string | Date | DateFormat;
|
|
15
|
-
/** */
|
|
15
|
+
/** End of the date range */
|
|
16
16
|
to?: string | Date | DateFormat;
|
|
17
17
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { NumberWithPermissions } from '../number-with-permissions';
|
|
1
2
|
interface EmailBase {
|
|
2
|
-
email
|
|
3
|
+
email: string;
|
|
3
4
|
/** Numbers you want to associate with this email. */
|
|
4
|
-
phoneNumbers
|
|
5
|
+
phoneNumbers: NumberWithPermissions[];
|
|
5
6
|
}
|
|
6
7
|
export interface EmailRequest extends EmailBase {
|
|
7
8
|
}
|
|
8
9
|
export interface Email extends EmailBase {
|
|
9
10
|
/** The `Id` of the project associated with the call. */
|
|
10
11
|
projectId?: string;
|
|
12
|
+
/** The date and time the email was created. */
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
/** The date and time the email was updated. */
|
|
15
|
+
updatedAt?: Date;
|
|
11
16
|
}
|
|
12
17
|
export {};
|
|
@@ -1,17 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* - HALFTONE: Converts the image to halftone.
|
|
3
|
+
* - MONOCHROME: Converts the image to monochrome.
|
|
4
|
+
*/
|
|
5
|
+
export type ImageConversionMethod = 'HALFTONE' | 'MONOCHROME' | string;
|
|
6
|
+
export type WebhookContentType = 'multipart/form-data' | 'application/json' | string;
|
|
3
7
|
/**
|
|
4
8
|
* The direction of the fax.
|
|
5
9
|
*/
|
|
6
|
-
export type FaxDirection = 'OUTBOUND' | 'INBOUND';
|
|
10
|
+
export type FaxDirection = 'OUTBOUND' | 'INBOUND' | string;
|
|
7
11
|
/**
|
|
8
12
|
* The status of the fax
|
|
9
13
|
*/
|
|
10
|
-
export type FaxStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILURE';
|
|
14
|
+
export type FaxStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILURE' | string;
|
|
11
15
|
/**
|
|
12
16
|
* Type of error for the fax
|
|
13
17
|
*/
|
|
14
|
-
export type ErrorType = 'DOCUMENT_CONVERSION_ERROR' | 'CALL_ERROR' | 'FAX_ERROR' | 'FATAL_ERROR' | 'GENERAL_ERROR' | 'LINE_ERROR';
|
|
15
|
-
export type FaxBase64FileType = '
|
|
18
|
+
export type ErrorType = 'DOCUMENT_CONVERSION_ERROR' | 'CALL_ERROR' | 'FAX_ERROR' | 'FATAL_ERROR' | 'GENERAL_ERROR' | 'LINE_ERROR' | string;
|
|
19
|
+
export type FaxBase64FileType = 'DOCX' | 'PDF' | 'TIF' | 'JPG' | 'TXT' | 'HTML' | 'PNG' | string;
|
|
16
20
|
export declare const validBase64FileTypes: FaxBase64FileType[];
|
|
17
|
-
export type FaxWebhookEvent = 'INCOMING_FAX' | 'FAX_COMPLETED';
|
|
21
|
+
export type FaxWebhookEvent = 'INCOMING_FAX' | 'FAX_COMPLETED' | string;
|
|
22
|
+
/**
|
|
23
|
+
* - CODE_128: Code-128 barcode
|
|
24
|
+
* - DATA_MATRIX: DataMatrix barcode
|
|
25
|
+
*/
|
|
26
|
+
export type BarCodeType = 'CODE_128' | 'DATA_MATRIX' | string;
|
|
27
|
+
/**
|
|
28
|
+
* The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
|
|
29
|
+
*/
|
|
30
|
+
export type Resolution = 'FINE' | 'SUPERFINE' | string;
|
|
31
|
+
/**
|
|
32
|
+
* - both: Allows the email to send and receive faxes to this email/phone number combination.
|
|
33
|
+
* - send: Allows the email to only send faxes to this email/phone number combination.
|
|
34
|
+
* - receive: Allows the email to only receive faxes from this email/phone number combination.
|
|
35
|
+
*/
|
|
36
|
+
export type Permissions = 'both' | 'send' | 'receive' | string;
|
package/dist/models/v3/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validBase64FileTypes = void 0;
|
|
4
|
-
exports.validBase64FileTypes = ['
|
|
4
|
+
exports.validBase64FileTypes = ['DOCX', 'PDF', 'TIF', 'JPG', 'TXT', 'HTML', 'PNG'];
|
|
5
5
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/models/v3/enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/models/v3/enums.ts"],"names":[],"mappings":";;;AAgCa,QAAA,oBAAoB,GAC7B,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* There was a problem with the phone line. The call could not be placed. Many times you can just try again
|
|
3
|
+
*/
|
|
4
|
+
export interface CallError {
|
|
5
|
+
/** Type of error for the Call */
|
|
6
|
+
errorType?: 'CALL_ERROR';
|
|
7
|
+
/** A developer-facing error message */
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
/** The error code returned describing the error of the call */
|
|
10
|
+
errorCode?: CallErrorCodeEnum;
|
|
11
|
+
}
|
|
12
|
+
export type CallErrorCodeEnum = 11 | 15 | 16 | 17 | 19 | 30 | 32 | 34 | 43 | 49 | number;
|
|
13
|
+
export declare const callErrorCodeLabels: Record<CallErrorCodeEnum, string>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.callErrorCodeLabels = void 0;
|
|
4
|
+
exports.callErrorCodeLabels = {
|
|
5
|
+
11: 'The call dropped prematurely',
|
|
6
|
+
15: 'Congestion',
|
|
7
|
+
16: 'Ring Timeout',
|
|
8
|
+
17: 'Busy',
|
|
9
|
+
19: 'Immediate Hangup',
|
|
10
|
+
30: 'No answer from a fax machine.',
|
|
11
|
+
32: 'Incompatible destination',
|
|
12
|
+
34: 'Phone number not operational',
|
|
13
|
+
43: 'Problem establishing connection',
|
|
14
|
+
49: 'The destination phone number Is Not active',
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=call-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-error.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/call-error/call-error.ts"],"names":[],"mappings":";;;AAca,QAAA,mBAAmB,GAAsC;IACpE,EAAE,EAAE,8BAA8B;IAClC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,kBAAkB;IACtB,EAAE,EAAE,+BAA+B;IACnC,EAAE,EAAE,0BAA0B;IAC9B,EAAE,EAAE,8BAA8B;IAClC,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,4CAA4C;CACjD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.callErrorCodeLabels = void 0;
|
|
4
|
+
var call_error_1 = require("./call-error");
|
|
5
|
+
Object.defineProperty(exports, "callErrorCodeLabels", { enumerable: true, get: function () { return call_error_1.callErrorCodeLabels; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/call-error/index.ts"],"names":[],"mappings":";;;AACA,2CAAmD;AAA1C,iHAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Conversion errors usually occur when there is a problem with one of the files you posted.
|
|
3
|
+
*/
|
|
4
|
+
export interface DocumentConversionError {
|
|
5
|
+
/** Type of error for the Document conversion */
|
|
6
|
+
errorType?: 'DOCUMENT_CONVERSION_ERROR';
|
|
7
|
+
/** The error message */
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
/** The error code returned during document conversion. */
|
|
10
|
+
errorCode?: DocumentConversionErrorCodeEnum;
|
|
11
|
+
}
|
|
12
|
+
export type DocumentConversionErrorCodeEnum = 4 | 54 | 55 | 57 | 69 | 122 | 128 | 129 | 130 | 133 | number;
|
|
13
|
+
export declare const documentConversionErrorCodeLabels: Record<DocumentConversionErrorCodeEnum, string>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentConversionErrorCodeLabels = void 0;
|
|
4
|
+
exports.documentConversionErrorCodeLabels = {
|
|
5
|
+
4: 'There was a problem in converting and merging files to the output file format. Contact support.',
|
|
6
|
+
54: 'Could not access the url you provided. {contentUrl}',
|
|
7
|
+
55: 'The string_data URL you provided is invalid',
|
|
8
|
+
57: 'There was a problem storing the file you provided.',
|
|
9
|
+
69: 'There was a problem storing the file you provided.',
|
|
10
|
+
122: 'User simulated Document Conversion Error',
|
|
11
|
+
128: 'Could not determine mimetype for file.',
|
|
12
|
+
129: 'Mimetype not supported.',
|
|
13
|
+
130: 'Mimetype not supported: application/xml',
|
|
14
|
+
133: 'Failed to normalize PDF document',
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=document-conversion-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-conversion-error.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/document-conversion-error/document-conversion-error.ts"],"names":[],"mappings":";;;AAea,QAAA,iCAAiC,GAAoD;IAChG,CAAC,EAAE,iGAAiG;IACpG,EAAE,EAAE,qDAAqD;IACzD,EAAE,EAAE,6CAA6C;IACjD,EAAE,EAAE,oDAAoD;IACxD,EAAE,EAAE,oDAAoD;IACxD,GAAG,EAAE,0CAA0C;IAC/C,GAAG,EAAE,wCAAwC;IAC7C,GAAG,EAAE,yBAAyB;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,GAAG,EAAE,kCAAkC;CACxC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.documentConversionErrorCodeLabels = void 0;
|
|
4
|
+
var document_conversion_error_1 = require("./document-conversion-error");
|
|
5
|
+
Object.defineProperty(exports, "documentConversionErrorCodeLabels", { enumerable: true, get: function () { return document_conversion_error_1.documentConversionErrorCodeLabels; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/document-conversion-error/index.ts"],"names":[],"mappings":";;;AACA,yEAAgF;AAAvE,8IAAA,iCAAiC,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A problem occurred during the fax communication process.
|
|
3
|
+
*/
|
|
4
|
+
export interface FaxError {
|
|
5
|
+
/** Type of error for the fax */
|
|
6
|
+
errorType?: 'FAX_ERROR';
|
|
7
|
+
/** A developer-facing error message */
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
/** The error code returned describing the error of the call */
|
|
10
|
+
errorCode?: FaxErrorCodeEnum;
|
|
11
|
+
}
|
|
12
|
+
export type FaxErrorCodeEnum = 6 | 7 | 8 | 10 | 12 | 13 | 14 | 18 | 20 | 21 | 22 | 25 | 26 | 28 | 29 | 31 | 38 | 40 | 41 | 44 | 46 | 48 | 53 | 60 | 63 | 68 | 75 | 76 | 77 | 79 | 80 | 82 | 84 | 113 | 117 | 119 | 131 | 132 | 133 | number;
|
|
13
|
+
export declare const faxErrorCodeLabels: Record<FaxErrorCodeEnum, string>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.faxErrorCodeLabels = void 0;
|
|
4
|
+
exports.faxErrorCodeLabels = {
|
|
5
|
+
6: 'There was an error communicating with the far side.',
|
|
6
|
+
7: 'Far end cannot receive at the size of image',
|
|
7
|
+
8: 'No response after sending a page',
|
|
8
|
+
10: 'Disconnected after permitted retries',
|
|
9
|
+
12: 'Received no response to DCS or TCF',
|
|
10
|
+
13: 'Timed out waiting for the first message',
|
|
11
|
+
14: 'Timed out waiting for initial communication',
|
|
12
|
+
18: 'Unexpected message received',
|
|
13
|
+
20: 'The HDLC carrier did not stop in a timely manner',
|
|
14
|
+
21: 'Received a DCN from remote after sending a page',
|
|
15
|
+
22: 'Received bad response to DCS or training',
|
|
16
|
+
25: 'Far end cannot receive at the resolution of the image',
|
|
17
|
+
26: 'The remote fax machine failed to respond',
|
|
18
|
+
28: 'Failed to train with any of the compatible modems',
|
|
19
|
+
29: 'Invalid response after sending a page',
|
|
20
|
+
31: 'Fax machine incompatibility',
|
|
21
|
+
38: 'The remote fax machine hung up before receiving fax',
|
|
22
|
+
40: 'Telephony error',
|
|
23
|
+
41: 'Unexpected DCN while waiting for DCS or DIS',
|
|
24
|
+
44: 'Telephony Error',
|
|
25
|
+
// eslint-disable-next-line max-len
|
|
26
|
+
46: 'Insufficient funds to send fax and not able to auto recharge; There was a problem charging your credit card. Please check your payment information and try again.',
|
|
27
|
+
48: 'No answer (The Receiving Machine May Be Out Of Paper)',
|
|
28
|
+
53: 'Unexpected DCN after EOM or MPS sequence',
|
|
29
|
+
60: 'Transmission error after page break',
|
|
30
|
+
63: 'Fax protocol error',
|
|
31
|
+
68: 'Far end is not compatible',
|
|
32
|
+
75: 'Manually canceled by user',
|
|
33
|
+
76: 'Canceled automatically because timeout exceeded',
|
|
34
|
+
77: 'Timed out waiting for receiver ready (ECM mode)',
|
|
35
|
+
79: 'Can\'t cancel the fax, it\'s already complete!',
|
|
36
|
+
80: 'Received a DCN while waiting for a DIS',
|
|
37
|
+
82: 'There was an error communicating with the far side',
|
|
38
|
+
84: 'Unexpected command after page received',
|
|
39
|
+
113: 'The file for this fax has been deleted or is not accessible.',
|
|
40
|
+
117: 'No pages received',
|
|
41
|
+
119: 'User requested simulated faxError',
|
|
42
|
+
131: 'Incomplete transmission',
|
|
43
|
+
132: 'No fax tone detected',
|
|
44
|
+
133: 'Phone number is not permitted',
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=fax-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fax-error.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/fax-error/fax-error.ts"],"names":[],"mappings":";;;AAiBa,QAAA,kBAAkB,GAAqC;IAClE,CAAC,EAAE,qDAAqD;IACxD,CAAC,EAAE,6CAA6C;IAChD,CAAC,EAAE,kCAAkC;IACrC,EAAE,EAAE,sCAAsC;IAC1C,EAAE,EAAE,oCAAoC;IACxC,EAAE,EAAE,yCAAyC;IAC7C,EAAE,EAAE,6CAA6C;IACjD,EAAE,EAAE,6BAA6B;IACjC,EAAE,EAAE,kDAAkD;IACtD,EAAE,EAAE,iDAAiD;IACrD,EAAE,EAAE,0CAA0C;IAC9C,EAAE,EAAE,uDAAuD;IAC3D,EAAE,EAAE,0CAA0C;IAC9C,EAAE,EAAE,mDAAmD;IACvD,EAAE,EAAE,uCAAuC;IAC3C,EAAE,EAAE,6BAA6B;IACjC,EAAE,EAAE,qDAAqD;IACzD,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,6CAA6C;IACjD,EAAE,EAAE,iBAAiB;IACrB,mCAAmC;IACnC,EAAE,EAAE,mKAAmK;IACvK,EAAE,EAAE,uDAAuD;IAC3D,EAAE,EAAE,0CAA0C;IAC9C,EAAE,EAAE,qCAAqC;IACzC,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,2BAA2B;IAC/B,EAAE,EAAE,2BAA2B;IAC/B,EAAE,EAAE,iDAAiD;IACrD,EAAE,EAAE,iDAAiD;IACrD,EAAE,EAAE,gDAAgD;IACpD,EAAE,EAAE,wCAAwC;IAC5C,EAAE,EAAE,oDAAoD;IACxD,EAAE,EAAE,wCAAwC;IAC5C,GAAG,EAAE,8DAA8D;IACnE,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mCAAmC;IACxC,GAAG,EAAE,yBAAyB;IAC9B,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,+BAA+B;CACrC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.faxErrorCodeLabels = void 0;
|
|
4
|
+
var fax_error_1 = require("./fax-error");
|
|
5
|
+
Object.defineProperty(exports, "faxErrorCodeLabels", { enumerable: true, get: function () { return fax_error_1.faxErrorCodeLabels; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v3/errors/fax-error/index.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAAxC,+GAAA,kBAAkB,OAAA"}
|
|
@@ -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("./call-error"), exports);
|
|
18
|
+
__exportStar(require("./document-conversion-error"), exports);
|
|
19
|
+
__exportStar(require("./fax-error"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v3/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8DAA4C;AAC5C,8CAA4B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BarCode } from '../bar-code';
|
|
2
2
|
import { FaxContentUrl } from '../fax-content-url';
|
|
3
3
|
import { FaxMoney } from '../fax-money';
|
|
4
|
-
import { ErrorType, FaxDirection, FaxStatus, ImageConversionMethod, WebhookContentType } from '../enums';
|
|
4
|
+
import { ErrorType, FaxDirection, FaxStatus, ImageConversionMethod, Resolution, WebhookContentType } from '../enums';
|
|
5
5
|
export interface Fax {
|
|
6
6
|
/** The id of a fax */
|
|
7
7
|
id?: string;
|
|
@@ -19,12 +19,14 @@ export interface Fax {
|
|
|
19
19
|
status?: FaxStatus;
|
|
20
20
|
/** The total price for this fax. This field is populated after the final fax price is calculated. */
|
|
21
21
|
price?: FaxMoney;
|
|
22
|
-
/** The bar codes found in the fax. This field is populated when
|
|
22
|
+
/** The bar codes found in the fax. This field is populated when Sinch detects bar codes on incoming faxes. */
|
|
23
23
|
barCodes?: BarCode[];
|
|
24
24
|
/** A timestamp representing the time when the initial API call was made. */
|
|
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
|
+
/** The number of pages successfully sent to the receiving side in the fax. */
|
|
29
|
+
pagesSentSuccessfully?: number;
|
|
28
30
|
/** 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
31
|
headerText?: string;
|
|
30
32
|
/** If true, page numbers will be displayed in the header. Default is true. */
|
|
@@ -41,22 +43,30 @@ export interface Fax {
|
|
|
41
43
|
callbackUrl?: string;
|
|
42
44
|
/** The content type of the callback. */
|
|
43
45
|
callbackUrlContentType?: WebhookContentType;
|
|
44
|
-
/** Determines how documents are converted to black and white. Defaults to value selected on Fax Service object. */
|
|
46
|
+
/** Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object. */
|
|
45
47
|
imageConversionMethod?: ImageConversionMethod;
|
|
46
48
|
/** @see ErrorType */
|
|
47
49
|
errorType?: ErrorType;
|
|
48
|
-
/** One of the error numbers listed in the [Fax Error Messages section](
|
|
50
|
+
/** One of the error numbers listed in the [Fax Error Messages section](https://developers.sinch.com/docs/fax/api-reference/fax/tag/Error-Messages/). */
|
|
49
51
|
errorCode?: number;
|
|
50
|
-
/** One of the error messages listed in the [Fax Error Messages section](
|
|
52
|
+
/** One of the error messages listed in the [Fax Error Messages section](https://developers.sinch.com/docs/fax/api-reference/fax/tag/Error-Messages/). */
|
|
51
53
|
errorMessage?: string;
|
|
52
|
-
/** The `Id` of the project associated with the call. */
|
|
53
|
-
projectId?: string;
|
|
54
|
-
/** ID of the fax service used. */
|
|
55
|
-
serviceId?: string;
|
|
56
54
|
/** 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
55
|
maxRetries?: number;
|
|
58
56
|
/** The number of times the fax has been retried. */
|
|
59
57
|
retryCount?: number;
|
|
60
58
|
/** Only shown on the fax result. This indicates if the content of the fax is stored with Sinch. (true or false) */
|
|
61
59
|
hasFile?: string;
|
|
60
|
+
/** @see Resolution */
|
|
61
|
+
resolution?: Resolution;
|
|
62
|
+
/** The cover page id you want to use for the fax */
|
|
63
|
+
coverPageId?: string;
|
|
64
|
+
/** You can use this to specify custom data for your cover page that will be sent as part of the fax. It is a key value store. Read more about how to use this [here](https://developers.sinch.com/docs/fax/api-reference/fax/tag/Cover-pages/). All keys used must be lower case. */
|
|
65
|
+
coverPageData?: {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
68
|
+
/** The `Id` of the project associated with the call. */
|
|
69
|
+
projectId?: string;
|
|
70
|
+
/** ID of the fax service used. */
|
|
71
|
+
serviceId?: string;
|
|
62
72
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageConversionMethod, WebhookContentType } from '../enums';
|
|
1
|
+
import { ImageConversionMethod, Resolution, WebhookContentType } from '../enums';
|
|
2
2
|
import { FaxContentUrl } from '../fax-content-url';
|
|
3
3
|
import { FaxBase64File } from '../fax-base64-file';
|
|
4
4
|
export type SingleFaxRequest = SingleFaxRequestJson | SingleFaxRequestFormData;
|
|
@@ -30,6 +30,14 @@ export interface FaxRequestBase {
|
|
|
30
30
|
serviceId?: string;
|
|
31
31
|
/** 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. */
|
|
32
32
|
maxRetries?: number;
|
|
33
|
+
/** @see Resolution */
|
|
34
|
+
resolution?: Resolution;
|
|
35
|
+
/** The cover page id you want to use for the fax */
|
|
36
|
+
coverPageId?: string;
|
|
37
|
+
/** You can use this to specify custom data for your cover page that will be sent as part of the fax. It is a key value store. Read more about how to use this [here](https://developers.sinch.com/docs/fax/api-reference/fax/tag/Cover-pages/). All keys used must be lower case. */
|
|
38
|
+
coverPageData?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
33
41
|
}
|
|
34
42
|
export type FaxRequestJson = FaxRequestBase & {
|
|
35
43
|
/** An array of base64 encoded files */
|
package/dist/models/v3/helper.js
CHANGED
|
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.convertToSupportedFileType = void 0;
|
|
4
4
|
const enums_1 = require("./enums");
|
|
5
5
|
const convertToSupportedFileType = (fileType) => {
|
|
6
|
-
if (!fileType
|
|
6
|
+
if (!fileType) {
|
|
7
|
+
console.warn('No file extension has been defined.');
|
|
7
8
|
return undefined;
|
|
8
9
|
}
|
|
10
|
+
if (!enums_1.validBase64FileTypes.includes(fileType.toUpperCase())) {
|
|
11
|
+
console.warn(`The file extension "${fileType.toUpperCase()}" is not supported.`);
|
|
12
|
+
}
|
|
9
13
|
return fileType.toUpperCase();
|
|
10
14
|
};
|
|
11
15
|
exports.convertToSupportedFileType = convertToSupportedFileType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v3/helper.ts"],"names":[],"mappings":";;;AAAA,mCAAkE;AAE3D,MAAM,0BAA0B,GAAG,CAAC,QAA4B,EAAiC,EAAE;IACxG,IAAI,CAAC,QAAQ,IAAI,CAAC,4BAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAuB,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v3/helper.ts"],"names":[],"mappings":";;;AAAA,mCAAkE;AAE3D,MAAM,0BAA0B,GAAG,CAAC,QAA4B,EAAiC,EAAE;IACxG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,4BAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAuB,CAAC,EAAE,CAAC;QAChF,OAAO,CAAC,IAAI,CAAC,uBAAuB,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC,CAAC;IACnF,CAAC;IACD,OAAO,QAAQ,CAAC,WAAW,EAAuB,CAAC;AACrD,CAAC,CAAC;AATW,QAAA,0BAA0B,8BASrC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export * from './bar-code';
|
|
2
|
+
export * from './cover-page';
|
|
3
|
+
export * from './cover-page-file';
|
|
2
4
|
export * from './date-range-filter';
|
|
3
5
|
export * from './email';
|
|
6
|
+
export * from './errors';
|
|
4
7
|
export * from './fax';
|
|
5
8
|
export * from './fax-base64-file';
|
|
6
9
|
export * from './fax-content-url';
|
|
7
10
|
export * from './fax-money';
|
|
8
11
|
export * from './fax-request';
|
|
9
12
|
export * from './faxes-list';
|
|
13
|
+
export * from './number-with-permissions';
|
|
10
14
|
export * from './mod-events';
|
|
11
15
|
export * from './service';
|
|
12
|
-
export * from './service-email-settings';
|
|
13
16
|
export * from './service-phone-number';
|
|
14
17
|
export * from './update-email-request';
|
|
15
18
|
export * from './webhook-event-parsed';
|
package/dist/models/v3/index.js
CHANGED
|
@@ -15,17 +15,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./bar-code"), exports);
|
|
18
|
+
__exportStar(require("./cover-page"), exports);
|
|
19
|
+
__exportStar(require("./cover-page-file"), exports);
|
|
18
20
|
__exportStar(require("./date-range-filter"), exports);
|
|
19
21
|
__exportStar(require("./email"), exports);
|
|
22
|
+
__exportStar(require("./errors"), exports);
|
|
20
23
|
__exportStar(require("./fax"), exports);
|
|
21
24
|
__exportStar(require("./fax-base64-file"), exports);
|
|
22
25
|
__exportStar(require("./fax-content-url"), exports);
|
|
23
26
|
__exportStar(require("./fax-money"), exports);
|
|
24
27
|
__exportStar(require("./fax-request"), exports);
|
|
25
28
|
__exportStar(require("./faxes-list"), exports);
|
|
29
|
+
__exportStar(require("./number-with-permissions"), exports);
|
|
26
30
|
__exportStar(require("./mod-events"), exports);
|
|
27
31
|
__exportStar(require("./service"), exports);
|
|
28
|
-
__exportStar(require("./service-email-settings"), exports);
|
|
29
32
|
__exportStar(require("./service-phone-number"), exports);
|
|
30
33
|
__exportStar(require("./update-email-request"), exports);
|
|
31
34
|
__exportStar(require("./webhook-event-parsed"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,sDAAoC;AACpC,0CAAwB;AACxB,wCAAsB;AACtB,oDAAkC;AAClC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,sDAAoC;AACpC,0CAAwB;AACxB,2CAAyB;AACzB,wCAAsB;AACtB,oDAAkC;AAClC,oDAAkC;AAClC,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,4DAA0C;AAC1C,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { NumberWithPermissions } from './number-with-permissions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v3/number-with-permissions/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Permissions } from '../enums';
|
|
2
|
+
/**
|
|
3
|
+
* A phone number and its permissions.
|
|
4
|
+
*/
|
|
5
|
+
export interface NumberWithPermissions {
|
|
6
|
+
/** A phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format, including the leading \'+\'. */
|
|
7
|
+
number?: string;
|
|
8
|
+
/** Allows you to set permissions for sending and receiving faxes to this email/phone number combination. Default value is `both`. */
|
|
9
|
+
permissions?: Permissions;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-with-permissions.js","sourceRoot":"","sources":["../../../../src/models/v3/number-with-permissions/number-with-permissions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CoverPageRequest } from '../../cover-page';
|
|
2
|
+
export interface AddCoverPageRequestData {
|
|
3
|
+
/** the serviceId */
|
|
4
|
+
serviceId: string;
|
|
5
|
+
/** */
|
|
6
|
+
addCoverPageRequestBody?: CoverPageRequest;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteCoverPageRequestData {
|
|
9
|
+
/** The serviceId containing the cover page you want to work with. */
|
|
10
|
+
serviceId: string;
|
|
11
|
+
/** */
|
|
12
|
+
coverPageId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetCoverPageRequestData {
|
|
15
|
+
/** The serviceId containing the cover page you want to work with. */
|
|
16
|
+
serviceId: string;
|
|
17
|
+
/** */
|
|
18
|
+
coverPageId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ListCoverPagesRequestData {
|
|
21
|
+
/** the serviceId */
|
|
22
|
+
serviceId: string;
|
|
23
|
+
/** Number of cover pages to return on each request. */
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
/** Optional. The page to fetch. If not specified, the first page will be returned. */
|
|
26
|
+
page?: string;
|
|
27
|
+
}
|