@sinch/numbers 1.2.1 → 1.3.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.
Files changed (39) hide show
  1. package/dist/models/v1/callback-payload/callback-payload.d.ts +2 -2
  2. package/dist/models/v1/enums.d.ts +4 -3
  3. package/dist/models/v1/index.d.ts +1 -3
  4. package/dist/models/v1/index.js +1 -3
  5. package/dist/models/v1/index.js.map +1 -1
  6. package/dist/models/v1/not-found-error/not-found-error.d.ts +2 -1
  7. package/dist/models/v1/not-found-error-details/index.d.ts +1 -0
  8. package/dist/models/v1/not-found-error-details/index.js.map +1 -0
  9. package/dist/models/v1/not-found-error-details/not-found-error-details.d.ts +12 -0
  10. package/dist/models/v1/{number-pattern-search-pattern/index.js → not-found-error-details/not-found-error-details.js} +1 -1
  11. package/dist/models/v1/not-found-error-details/not-found-error-details.js.map +1 -0
  12. package/dist/models/v1/rent-any-number-request/rent-any-number-request.d.ts +6 -6
  13. package/dist/models/v1/rent-any-number-request-sms-configuration/rent-any-number-request-sms-configuration.d.ts +1 -0
  14. package/dist/models/v1/rent-any-number-request-voice-configuration/rent-any-number-request-voice-configuration.d.ts +1 -0
  15. package/dist/models/v1/rent-number-request/rent-number-request.d.ts +6 -6
  16. package/dist/models/v1/requests/active-number/active-number-request-data.d.ts +2 -2
  17. package/dist/models/v1/requests/available-regions/available-regions-request-data.d.ts +6 -3
  18. package/dist/models/v1/sms-configuration/sms-configuration.d.ts +2 -2
  19. package/dist/models/v1/voice-configuration/voice-configuration.d.ts +7 -7
  20. package/dist/rest/v1/callbacks-webhook/callbacks-webhook.js +3 -0
  21. package/dist/rest/v1/callbacks-webhook/callbacks-webhook.js.map +1 -1
  22. package/package.json +2 -2
  23. package/dist/models/v1/list-available-number-request/index.d.ts +0 -1
  24. package/dist/models/v1/list-available-number-request/index.js.map +0 -1
  25. package/dist/models/v1/list-available-number-request/list-available-number-request.d.ts +0 -17
  26. package/dist/models/v1/list-available-number-request/list-available-number-request.js +0 -3
  27. package/dist/models/v1/list-available-number-request/list-available-number-request.js.map +0 -1
  28. package/dist/models/v1/number-pattern-pattern/index.d.ts +0 -1
  29. package/dist/models/v1/number-pattern-pattern/index.js +0 -3
  30. package/dist/models/v1/number-pattern-pattern/index.js.map +0 -1
  31. package/dist/models/v1/number-pattern-pattern/number-pattern-pattern.d.ts +0 -8
  32. package/dist/models/v1/number-pattern-pattern/number-pattern-pattern.js +0 -3
  33. package/dist/models/v1/number-pattern-pattern/number-pattern-pattern.js.map +0 -1
  34. package/dist/models/v1/number-pattern-search-pattern/index.d.ts +0 -1
  35. package/dist/models/v1/number-pattern-search-pattern/index.js.map +0 -1
  36. package/dist/models/v1/number-pattern-search-pattern/number-pattern-search-pattern.d.ts +0 -12
  37. package/dist/models/v1/number-pattern-search-pattern/number-pattern-search-pattern.js +0 -10
  38. package/dist/models/v1/number-pattern-search-pattern/number-pattern-search-pattern.js.map +0 -1
  39. /package/dist/models/v1/{list-available-number-request → not-found-error-details}/index.js +0 -0
@@ -8,11 +8,11 @@ export interface CallbackPayload {
8
8
  /** The unique identifier of the resource, depending on the resource type. For example, a phone number, a hosting order ID, or a brand ID. */
9
9
  resourceId?: string;
10
10
  /** The type of the resource. */
11
- resourceType?: string;
11
+ resourceType?: 'ACTIVE_NUMBER' | string;
12
12
  /** The type of the event. */
13
13
  eventType?: EventTypeEnum;
14
14
  /** The status of the event. For example, `SUCCEEDED` or `FAILED`. */
15
- status?: string;
15
+ status?: 'SUCCEEDED' | 'FAILED' | string;
16
16
  /** If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won\'t be any extra `failureCode`, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values. */
17
17
  failureCode?: FailureCodeEnum;
18
18
  }
@@ -3,6 +3,7 @@ export type { EventTypeEnum as CallbackPayloadEventTypeEnum, FailureCodeEnum as
3
3
  export type { CodeEnum as InternalErrorErrorCodeEnum, StatusEnum as InternalErrorErrorStatusEnum, } from './internal-error-error/internal-error-error';
4
4
  export type { CodeEnum as InvalidArgumentErrorCodeEnum, StatusEnum as InvalidArgumentErrorStatusEnum, } from './invalid-argument-error/invalid-argument-error';
5
5
  export type { CodeEnum as NotFoundErrorCodeEnum, StatusEnum as NotFoundErrorStatusEnum, } from './not-found-error/not-found-error';
6
- export type NumberTypeEnum = 'MOBILE' | 'LOCAL' | 'TOLL_FREE';
7
- export type SearchPatternEnum = 'START' | 'CONTAINS' | 'END';
8
- export type CapabilitiesEnum = 'SMS' | 'VOICE';
6
+ export type NumberTypeEnum = 'MOBILE' | 'LOCAL' | 'TOLL_FREE' | string;
7
+ export type SearchPatternEnum = 'START' | 'CONTAINS' | 'END' | string;
8
+ export type CapabilitiesEnum = 'SMS' | 'VOICE' | string;
9
+ export type OrderByEnum = 'phoneNumber' | 'displayName' | string;
@@ -13,13 +13,11 @@ export * from './internal-error';
13
13
  export * from './internal-error-error';
14
14
  export * from './invalid-argument';
15
15
  export * from './invalid-argument-error';
16
- export * from './list-available-number-request';
17
16
  export * from './list-available-regions-response';
18
17
  export * from './money';
19
18
  export * from './not-found';
20
19
  export * from './not-found-error';
21
- export * from './number-pattern-pattern';
22
- export * from './number-pattern-search-pattern';
20
+ export * from './not-found-error-details';
23
21
  export * from './provisioning-status';
24
22
  export * from './rent-any-number-request';
25
23
  export * from './rent-any-number-request-sms-configuration';
@@ -29,13 +29,11 @@ __exportStar(require("./internal-error"), exports);
29
29
  __exportStar(require("./internal-error-error"), exports);
30
30
  __exportStar(require("./invalid-argument"), exports);
31
31
  __exportStar(require("./invalid-argument-error"), exports);
32
- __exportStar(require("./list-available-number-request"), exports);
33
32
  __exportStar(require("./list-available-regions-response"), exports);
34
33
  __exportStar(require("./money"), exports);
35
34
  __exportStar(require("./not-found"), exports);
36
35
  __exportStar(require("./not-found-error"), exports);
37
- __exportStar(require("./number-pattern-pattern"), exports);
38
- __exportStar(require("./number-pattern-search-pattern"), exports);
36
+ __exportStar(require("./not-found-error-details"), exports);
39
37
  __exportStar(require("./provisioning-status"), exports);
40
38
  __exportStar(require("./rent-any-number-request"), exports);
41
39
  __exportStar(require("./rent-any-number-request-sms-configuration"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,+DAA6C;AAC7C,qDAAmC;AACnC,gDAA8B;AAC9B,2DAAyC;AACzC,kEAAgD;AAChD,qDAAmC;AACnC,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,kEAAgD;AAChD,oEAAkD;AAClD,0CAAwB;AACxB,8CAA4B;AAC5B,oDAAkC;AAClC,2DAAyC;AACzC,kEAAgD;AAChD,wDAAsC;AACtC,4DAA0C;AAC1C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,iEAA+C;AAC/C,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,0CAAwB;AACxB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,+DAA6C;AAC7C,qDAAmC;AACnC,gDAA8B;AAC9B,2DAAyC;AACzC,kEAAgD;AAChD,qDAAmC;AACnC,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,2DAAyC;AACzC,oEAAkD;AAClD,0CAAwB;AACxB,8CAA4B;AAC5B,oDAAkC;AAClC,4DAA0C;AAC1C,wDAAsC;AACtC,4DAA0C;AAC1C,8EAA4D;AAC5D,gFAA8D;AAC9D,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,iEAA+C;AAC/C,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,0CAAwB;AACxB,6CAA2B"}
@@ -1,3 +1,4 @@
1
+ import { NotFoundErrorDetails } from '../not-found-error-details';
1
2
  export interface NotFoundError {
2
3
  /** @see CodeEnum */
3
4
  code?: CodeEnum;
@@ -5,7 +6,7 @@ export interface NotFoundError {
5
6
  /** @see StatusEnum */
6
7
  status?: StatusEnum;
7
8
  /** List of objects */
8
- details?: object[];
9
+ details?: NotFoundErrorDetails[];
9
10
  }
10
11
  export type CodeEnum = '404';
11
12
  export type StatusEnum = 'NOT_FOUND';
@@ -0,0 +1 @@
1
+ export type { NotFoundErrorDetails } from './not-found-error-details';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/not-found-error-details/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export interface NotFoundErrorDetails {
2
+ /** */
3
+ type?: string;
4
+ /** The type of the resource that was not found. */
5
+ resourceType?: string;
6
+ /** The name of the resource that was not found. */
7
+ resourceName?: string;
8
+ /** The owner of the resource that was not found. */
9
+ owner?: string;
10
+ /** A description of the error. */
11
+ description?: string;
12
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=not-found-error-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-found-error-details.js","sourceRoot":"","sources":["../../../../src/models/v1/not-found-error-details/not-found-error-details.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import { RentAnyNumberRequestSmsConfiguration } from '../rent-any-number-request-sms-configuration';
2
- import { RentAnyNumberRequestVoiceConfiguration } from '../rent-any-number-request-voice-configuration';
3
1
  import { SearchPattern } from '../search-pattern';
4
2
  import { CapabilitiesEnum, NumberTypeEnum } from '../enums';
3
+ import { VoiceConfiguration } from '../voice-configuration';
4
+ import { SMSConfiguration } from '../sms-configuration';
5
5
  /**
6
6
  * Request message for searching and renting in one go any number that matches the search criteria.
7
7
  */
@@ -14,10 +14,10 @@ export interface RentAnyNumberRequest {
14
14
  type: NumberTypeEnum;
15
15
  /** Number capabilities to filter by, `SMS` and/or `VOICE`. */
16
16
  capabilities?: CapabilitiesEnum[];
17
- /** @see RentAnyNumberRequestSmsConfiguration */
18
- smsConfiguration?: RentAnyNumberRequestSmsConfiguration;
19
- /** @see RentAnyNumberRequestVoiceConfiguration */
20
- voiceConfiguration?: RentAnyNumberRequestVoiceConfiguration;
17
+ /** @see SMSConfiguration */
18
+ smsConfiguration?: SMSConfiguration;
19
+ /** @see VoiceConfiguration */
20
+ voiceConfiguration?: VoiceConfiguration;
21
21
  /** The active number's callback URL to be called for provisioning / deprovisioning updates */
22
22
  callbackUrl?: string;
23
23
  }
@@ -1,3 +1,4 @@
1
+ /** @deprecated - use SMSConfiguration */
1
2
  export interface RentAnyNumberRequestSmsConfiguration {
2
3
  /** The SMS service that the number will be linked to. The `servicePlanId` can be found in the [Sinch Customer Dashboard](https://dashboard.sinch.com/sms/api/rest). */
3
4
  servicePlanId: string;
@@ -1,3 +1,4 @@
1
+ /** @deprecated - use VoiceConfiguration */
1
2
  export interface RentAnyNumberRequestVoiceConfiguration {
2
3
  /** Your app ID for the Voice API. The `appId` can be found in your <a href=\"https://dashboard.sinch.com/voice/apps\" target=\"_blank\">Sinch Customer Dashboard</a> under Voice, then apps. */
3
4
  appId: string;
@@ -1,13 +1,13 @@
1
- import { RentAnyNumberRequestSmsConfiguration } from '../rent-any-number-request-sms-configuration';
2
- import { RentAnyNumberRequestVoiceConfiguration } from '../rent-any-number-request-voice-configuration';
1
+ import { SMSConfiguration } from '../sms-configuration';
2
+ import { VoiceConfiguration } from '../voice-configuration';
3
3
  /**
4
4
  * Request message for renting a phone number.
5
5
  */
6
6
  export interface RentNumberRequest {
7
- /** @see RentAnyNumberRequestSmsConfiguration */
8
- smsConfiguration?: RentAnyNumberRequestSmsConfiguration;
9
- /** @see RentAnyNumberRequestVoiceConfiguration */
10
- voiceConfiguration?: RentAnyNumberRequestVoiceConfiguration;
7
+ /** @see SMSConfiguration */
8
+ smsConfiguration?: SMSConfiguration;
9
+ /** @see VoiceConfiguration */
10
+ voiceConfiguration?: VoiceConfiguration;
11
11
  /** The callback URL to be called for a rented number provisioning / deprovisioning operations */
12
12
  callbackUrl?: string;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { CapabilitiesEnum, NumberTypeEnum, SearchPatternEnum } from '../../enums';
1
+ import { CapabilitiesEnum, NumberTypeEnum, OrderByEnum, SearchPatternEnum } from '../../enums';
2
2
  import { ActiveNumberRequest } from '../../active-number-request';
3
3
  export interface GetActiveNumberRequestData {
4
4
  /** Output only. The phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format with leading `+`. */
@@ -20,7 +20,7 @@ export interface ListActiveNumbersRequestData {
20
20
  /** The next page token value returned from a previous List request, if any. */
21
21
  pageToken?: string;
22
22
  /** Supported fields for ordering by `phoneNumber` or `displayName`. */
23
- orderBy?: string;
23
+ orderBy?: OrderByEnum;
24
24
  }
25
25
  export interface ReleaseNumberRequestData {
26
26
  /** Output only. The phone number in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format with leading `+`. */
@@ -1,10 +1,13 @@
1
+ import { NumberTypeEnum } from '../../enums';
2
+ /** @deprecated Use `NumberTypeEnum` instead. */
1
3
  export type RegionNumberTypeEnum = 'NUMBER_TYPE_UNSPECIFIED' | 'MOBILE' | 'LOCAL' | 'TOLL_FREE';
2
4
  export interface ListAvailableRegionsRequestData {
3
- /** Only returns regions for which numbers are provided with the given types v1: `MOBILE`, `LOCAL` or `TOLL_FREE`. However, you can indicate `NUMBER_TYPE_UNSPECIFIED: null` when searching.
4
- * - NUMBER_TYPE_UNSPECIFIED: Null value
5
+ /** Only returns regions for which numbers are provided with the given types v1: `MOBILE`, `LOCAL` or `TOLL_FREE`.
5
6
  * - MOBILE: Numbers that belong to a specific range.
6
7
  * - LOCAL: Numbers that are assigned to a specific geographic region.
7
8
  * - TOLL_FREE: Number that are free of charge for the calling party but billed for all arriving calls.
9
+ *
10
+ * If you want to see all results, do not add the `types` query parameter.
8
11
  */
9
- types?: Array<RegionNumberTypeEnum>;
12
+ types?: Array<NumberTypeEnum>;
10
13
  }
@@ -3,9 +3,9 @@ import { ScheduledProvisioning } from '../scheduled-provisioning';
3
3
  * The current SMS configuration for this number. Once the `servicePlanId` is sent, it enters scheduled provisioning. The status of scheduled provisioning will show under a `scheduledProvisioning` object if it\'s still running. Once processed successfully, the `servicePlanId` sent will appear directly under the `smsConfiguration` object.
4
4
  */
5
5
  export interface SMSConfiguration {
6
- /** The `servicePlanId` can be found in the <a href=\"https://dashboard.sinch.com/sms/api/rest\" target=\"_blank\">Sinch Customer Dashboard</a>. The service plan ID is what ties this number to the configured SMS service. */
6
+ /** The `servicePlanId` can be found in the [Sinch Customer Dashboard](https://dashboard.sinch.com/sms/api/rest). The service plan ID is what ties this number to the configured SMS service. */
7
7
  servicePlanId: string;
8
- /** Only for US virtual numbers. This campaign ID relates to <a href=\"https://community.sinch.com/t5/10DLC/What-is-10DLC/ta-p/7845\" target=\"_blank\">10DLC numbers</a>. So, it is the current campaign ID for this number. The `campaignId` is found on your TCR platform. */
8
+ /** Only for US virtual numbers. This campaign ID relates to [10DLC numbers](https://community.sinch.com/t5/10DLC/What-is-10DLC/ta-p/7845). So, it is the current campaign ID for this number. The `campaignId` is found on your TCR platform. */
9
9
  campaignId?: string;
10
10
  }
11
11
  export interface SMSConfigurationResponse extends SMSConfiguration {
@@ -5,27 +5,27 @@ import { ScheduledVoiceProvisioning } from '../scheduled-voice-provisioning';
5
5
  export type VoiceConfiguration = VoiceConfigurationRtc | VoiceConfigurationFax | VoiceConfigurationEst;
6
6
  export interface VoiceConfigurationRtc {
7
7
  /** The voice application type. */
8
- type: 'RTC';
9
- /** Your app ID for the Voice API. The `appId` can be found in your <a href="https://dashboard.sinch.com/voice/apps" target="_blank">Sinch Customer Dashboard</a> under Voice, then apps. */
8
+ type?: 'RTC';
9
+ /** Your app ID for the Voice API. The `appId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/voice/apps). */
10
10
  appId?: string;
11
11
  }
12
12
  export interface VoiceConfigurationFax {
13
13
  /** The voice application type. */
14
14
  type: 'FAX';
15
- /** The service ID for the FAX configuration. The `serviceId` can be found in your <a href="https://dashboard.sinch.com/fax/services" target="_blank">Sinch Customer Dashboard</a> under fax, then services.*/
15
+ /** The service ID for the FAX configuration. The `serviceId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/fax/services).*/
16
16
  serviceId?: string;
17
17
  }
18
18
  export interface VoiceConfigurationEst {
19
19
  /** The voice application type. */
20
20
  type: 'EST';
21
- /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your <a href="https://dashboard.sinch.com/sip/trunks" target="_blank">Sinch Customer Dashboard</a> under sip, then trunks.*/
21
+ /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/trunks/your-trunks). */
22
22
  trunkId?: string;
23
23
  }
24
24
  /**
25
25
  * The current voice configuration for this number. During scheduled provisioning, the app ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a `scheduledVoiceProvisioning` object if it\'s still running. Once processed successfully, the `appId` sent will appear directly under the `voiceConfiguration` object.
26
26
  */
27
27
  export interface VoiceConfigurationResponse {
28
- /** Your app ID for the Voice API. The `appId` can be found in your <a href="https://dashboard.sinch.com/voice/apps" target="_blank">Sinch Customer Dashboard</a> under Voice, then apps. */
28
+ /** Your app ID for the Voice API. The `appId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/voice/apps). */
29
29
  appId?: string;
30
30
  /** Timestamp when the status was last updated. */
31
31
  lastUpdatedTime?: Date | null;
@@ -33,8 +33,8 @@ export interface VoiceConfigurationResponse {
33
33
  scheduledVoiceProvisioning?: ScheduledVoiceProvisioning | null;
34
34
  /** The type of voice configuration. Default is `RTC`. */
35
35
  type: 'RTC' | 'EST' | 'FAX';
36
- /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your <a href="https://dashboard.sinch.com/sip/trunks" target="_blank">Sinch Customer Dashboard</a> under sip, then trunks.*/
36
+ /** The trunk ID for the EST voice configuration. The `trunkId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/trunks/your-trunks). */
37
37
  trunkId?: string;
38
- /** The service ID for the FAX configuration. The `serviceId` can be found in your <a href="https://dashboard.sinch.com/fax/services" target="_blank">Sinch Customer Dashboard</a> under fax, then services.*/
38
+ /** The service ID for the FAX configuration. The `serviceId` can be found in your [Sinch Customer Dashboard](https://dashboard.sinch.com/fax/services). */
39
39
  serviceId?: string;
40
40
  }
@@ -27,6 +27,9 @@ class NumbersCallbackWebhooks {
27
27
  * @return {NumbersCallback} - The parsed voice event object.
28
28
  */
29
29
  parseEvent(eventBody) {
30
+ if (typeof eventBody === 'string') {
31
+ eventBody = JSON.parse(eventBody);
32
+ }
30
33
  // There is a bug in the API which doesn't send the timezone along with the timestamp
31
34
  // As the server formats the timestamp as GMT, we check if the timezone is missing and add it if needed
32
35
  const timestamp = eventBody.timestamp;
@@ -1 +1 @@
1
- {"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks-webhook/callbacks-webhook.ts"],"names":[],"mappings":";;;AAEA,kDAA+E;AAI/E,MAAa,uBAAuB;IAIlC,YAAY,cAAsB;QAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED;;;;;;;OAOG;IACI,4BAA4B,CACjC,OAA4B,EAC5B,IAAS;IACT,6DAA6D;IAC7D,KAAc,EAAE,OAAgB;QAEhC,OAAO,IAAA,oCAAuB,EAC5B,IAAI,CAAC,cAAc,EACnB,OAAO,EACP,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,SAAc;QAC9B,qFAAqF;QACrF,uGAAuG;QACvG,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACtC,MAAM,aAAa,GAAG,uBAAuB,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACnC,SAAS,CAAC,SAAS,GAAG,SAAS,GAAG,GAAG,CAAC;QACxC,CAAC;QACD,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;YACxB,SAAS,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,SAA4B,CAAC;IACtC,CAAC;IAAA,CAAC;CACH;AAjDD,0DAiDC"}
1
+ {"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks-webhook/callbacks-webhook.ts"],"names":[],"mappings":";;;AAEA,kDAA+E;AAI/E,MAAa,uBAAuB;IAIlC,YAAY,cAAsB;QAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED;;;;;;;OAOG;IACI,4BAA4B,CACjC,OAA4B,EAC5B,IAAS;IACT,6DAA6D;IAC7D,KAAc,EAAE,OAAgB;QAEhC,OAAO,IAAA,oCAAuB,EAC5B,IAAI,CAAC,cAAc,EACnB,OAAO,EACP,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YAClC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACpC,CAAC;QACD,qFAAqF;QACrF,uGAAuG;QACvG,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACtC,MAAM,aAAa,GAAG,uBAAuB,CAAC;QAC9C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACnC,SAAS,CAAC,SAAS,GAAG,SAAS,GAAG,GAAG,CAAC;QACxC,CAAC;QACD,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;YACxB,SAAS,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,SAA4B,CAAC;IACtC,CAAC;IAAA,CAAC;CACH;AApDD,0DAoDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinch/numbers",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Sinch Numbers API",
5
5
  "homepage": "",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "test:e2e": "cucumber-js"
30
30
  },
31
31
  "dependencies": {
32
- "@sinch/sdk-client": "^1.2.1"
32
+ "@sinch/sdk-client": "^1.3.0"
33
33
  },
34
34
  "devDependencies": {},
35
35
  "publishConfig": {
@@ -1 +0,0 @@
1
- export type { ListAvailableNumberRequest } from './list-available-number-request';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/list-available-number-request/index.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { NumberPatternPattern } from '../number-pattern-pattern';
2
- import { NumberPatternSearchPattern } from '../number-pattern-search-pattern';
3
- /**
4
- * Available numbers schema base.
5
- */
6
- export interface ListAvailableNumberRequest {
7
- /** @see NumberPatternPattern */
8
- NumberPattern?: NumberPatternPattern;
9
- /** @see NumberPatternSearchPattern */
10
- NumberPatternSearchPattern?: NumberPatternSearchPattern;
11
- /** Region code to filter by. ISO 3166-1 alpha-2 country code of the phone number. Example: `US`, `GB` or `SE`. */
12
- regionCode?: string;
13
- /** Number type to filter by. `MOBILE`, `LOCAL` or `TOLL_FREE`. */
14
- type?: string;
15
- /** Number capabilities to filter by, `SMS` and/or `VOICE`. */
16
- capabilities?: string[];
17
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=list-available-number-request.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-available-number-request.js","sourceRoot":"","sources":["../../../../src/models/v1/list-available-number-request/list-available-number-request.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type { NumberPatternPattern } from './number-pattern-pattern';
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/number-pattern-pattern/index.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { SearchPattern } from '../search-pattern';
2
- /**
3
- * Sequence of digits to search for.
4
- */
5
- export interface NumberPatternPattern {
6
- /** @see SearchPattern */
7
- NumberPattern?: SearchPattern;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=number-pattern-pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-pattern-pattern.js","sourceRoot":"","sources":["../../../../src/models/v1/number-pattern-pattern/number-pattern-pattern.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type { NumberPatternSearchPattern } from './number-pattern-search-pattern';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/number-pattern-search-pattern/index.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- /**
2
- * Search pattern to apply. Options include, `START`, `CONTAIN`, and `END`.
3
- */
4
- export interface NumberPatternSearchPattern {
5
- /** The pattern to apply to searches. Options include, `START`, `CONTAIN`, and `END`. */
6
- NumberPatternSearchPattern?: NumberPatternSearchPatternEnum;
7
- }
8
- export declare enum NumberPatternSearchPatternEnum {
9
- START = "START",
10
- CONTAINS = "CONTAINS",
11
- END = "END"
12
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NumberPatternSearchPatternEnum = void 0;
4
- var NumberPatternSearchPatternEnum;
5
- (function (NumberPatternSearchPatternEnum) {
6
- NumberPatternSearchPatternEnum["START"] = "START";
7
- NumberPatternSearchPatternEnum["CONTAINS"] = "CONTAINS";
8
- NumberPatternSearchPatternEnum["END"] = "END";
9
- })(NumberPatternSearchPatternEnum || (exports.NumberPatternSearchPatternEnum = NumberPatternSearchPatternEnum = {}));
10
- //# sourceMappingURL=number-pattern-search-pattern.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-pattern-search-pattern.js","sourceRoot":"","sources":["../../../../src/models/v1/number-pattern-search-pattern/number-pattern-search-pattern.ts"],"names":[],"mappings":";;;AAQA,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,iDAAe,CAAA;IACf,uDAAqB,CAAA;IACrB,6CAAW,CAAA;AACb,CAAC,EAJW,8BAA8B,8CAA9B,8BAA8B,QAIzC"}