@leadping/sdk 1.0.86 → 1.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { type WithPhoneNumberItemRequestBuilder } from './item/index.js';
1
2
  import { type OverviewRequestBuilder } from './overview/index.js';
2
3
  import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
4
  /**
@@ -8,6 +9,12 @@ export interface OutboundRequestBuilder extends BaseRequestBuilder<OutboundReque
8
9
  * The overview property
9
10
  */
10
11
  get overview(): OverviewRequestBuilder;
12
+ /**
13
+ * Gets an item from the leadping.outbound.item collection
14
+ * @param phoneNumberId The ID of the phone number whose outbound capacity should be retrieved.
15
+ * @returns {WithPhoneNumberItemRequestBuilder}
16
+ */
17
+ byPhoneNumberId(phoneNumberId: string): WithPhoneNumberItemRequestBuilder;
11
18
  }
12
19
  /**
13
20
  * Uri template for the request builder.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../outbound/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1G,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC;IACtF;;OAEG;IACH,IAAI,QAAQ,IAAI,sBAAsB,CAAC;CAC1C;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,wBAAwB,CAAC;AACvE;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAI1J,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../outbound/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iCAAiC,EAAuD,MAAM,iBAAiB,CAAC;AAE9H,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1G,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC;IACtF;;OAEG;IACH,IAAI,QAAQ,IAAI,sBAAsB,CAAC;IACvC;;;;OAIG;IACF,eAAe,CAAC,aAAa,EAAE,MAAM,GAAI,iCAAiC,CAAC;CAC/E;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,wBAAwB,CAAC;AACvE;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAQ1J,CAAC"}
@@ -2,6 +2,8 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
+ import { WithPhoneNumberItemRequestBuilderNavigationMetadata } from './item/index.js';
6
+ // @ts-ignore
5
7
  import { OverviewRequestBuilderRequestsMetadata } from './overview/index.js';
6
8
  /**
7
9
  * Uri template for the request builder.
@@ -11,6 +13,10 @@ export const OutboundRequestBuilderUriTemplate = "{+baseurl}/outbound";
11
13
  * Metadata for all the navigation properties in the request builder.
12
14
  */
13
15
  export const OutboundRequestBuilderNavigationMetadata = {
16
+ byPhoneNumberId: {
17
+ navigationMetadata: WithPhoneNumberItemRequestBuilderNavigationMetadata,
18
+ pathParametersMappings: ["phoneNumberId"],
19
+ },
14
20
  overview: {
15
21
  requestsMetadata: OverviewRequestBuilderRequestsMetadata,
16
22
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../outbound/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAa1G;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAA0G;IAC3J,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;KAC3D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../outbound/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAA0C,mDAAmD,EAAE,MAAM,iBAAiB,CAAC;AAC9H,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAmB1G;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAA0G;IAC3J,eAAe,EAAE;QACb,kBAAkB,EAAE,mDAAmD;QACvE,sBAAsB,EAAE,CAAC,eAAe,CAAC;KAC5C;IACD,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;KAC3D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,32 @@
1
+ import { type OutboundPhoneNumberCapacity } from '../../../models/index.js';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /outbound/{phoneNumberId}/capacity
5
+ */
6
+ export interface CapacityRequestBuilder extends BaseRequestBuilder<CapacityRequestBuilder> {
7
+ /**
8
+ * Returns the phone number's outbound sending capacity based on current provider and Leadping state, including throttling and delivery eligibility.The phone number must belong to the current organization.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<OutboundPhoneNumberCapacity>}
11
+ * @throws {ProblemDetails} error when the service returns a 401 status code
12
+ * @throws {ProblemDetails} error when the service returns a 403 status code
13
+ * @throws {ProblemDetails} error when the service returns a 404 status code
14
+ * @throws {ProblemDetails} error when the service returns a 429 status code
15
+ */
16
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OutboundPhoneNumberCapacity | undefined>;
17
+ /**
18
+ * Returns the phone number's outbound sending capacity based on current provider and Leadping state, including throttling and delivery eligibility.The phone number must belong to the current organization.
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Uri template for the request builder.
26
+ */
27
+ export declare const CapacityRequestBuilderUriTemplate = "{+baseurl}/outbound/{phoneNumberId}/capacity";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const CapacityRequestBuilderRequestsMetadata: RequestsMetadata;
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../outbound/item/capacity/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuG,KAAK,2BAA2B,EAAuB,MAAM,0BAA0B,CAAC;AAEtM,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC;IACtF;;;;;;;;OAQG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;IACzH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClH;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,iDAAiD,CAAC;AAChG;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAapD,CAAC"}
@@ -0,0 +1,29 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createOutboundPhoneNumberCapacityFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const CapacityRequestBuilderUriTemplate = "{+baseurl}/outbound/{phoneNumberId}/capacity";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const CapacityRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: CapacityRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 401: createProblemDetailsFromDiscriminatorValue,
19
+ 403: createProblemDetailsFromDiscriminatorValue,
20
+ 404: createProblemDetailsFromDiscriminatorValue,
21
+ 429: createProblemDetailsFromDiscriminatorValue,
22
+ },
23
+ adapterMethodName: "send",
24
+ responseBodyFactory: createOutboundPhoneNumberCapacityFromDiscriminatorValue,
25
+ },
26
+ };
27
+ /* tslint:enable */
28
+ /* eslint-enable */
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../outbound/item/capacity/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,uDAAuD,EAAE,0CAA0C,EAAyD,MAAM,0BAA0B,CAAC;AAyBtM;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8CAA8C,CAAC;AAChG;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAqB;IACpE,GAAG,EAAE;QACD,WAAW,EAAE,iCAAiC;QAC9C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,uDAAuD;KAChF;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,20 @@
1
+ import { type CapacityRequestBuilder } from './capacity/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /outbound/{phoneNumberId}
5
+ */
6
+ export interface WithPhoneNumberItemRequestBuilder extends BaseRequestBuilder<WithPhoneNumberItemRequestBuilder> {
7
+ /**
8
+ * The capacity property
9
+ */
10
+ get capacity(): CapacityRequestBuilder;
11
+ }
12
+ /**
13
+ * Uri template for the request builder.
14
+ */
15
+ export declare const WithPhoneNumberItemRequestBuilderUriTemplate = "{+baseurl}/outbound/{phoneNumberId}";
16
+ /**
17
+ * Metadata for all the navigation properties in the request builder.
18
+ */
19
+ export declare const WithPhoneNumberItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithPhoneNumberItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../outbound/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1G,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,kBAAkB,CAAC,iCAAiC,CAAC;IAC5G;;OAEG;IACH,IAAI,QAAQ,IAAI,sBAAsB,CAAC;CAC1C;AACD;;GAEG;AACH,eAAO,MAAM,4CAA4C,wCAAwC,CAAC;AAClG;;GAEG;AACH,eAAO,MAAM,mDAAmD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iCAAiC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAIhL,CAAC"}
@@ -0,0 +1,20 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { CapacityRequestBuilderRequestsMetadata } from './capacity/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const WithPhoneNumberItemRequestBuilderUriTemplate = "{+baseurl}/outbound/{phoneNumberId}";
10
+ /**
11
+ * Metadata for all the navigation properties in the request builder.
12
+ */
13
+ export const WithPhoneNumberItemRequestBuilderNavigationMetadata = {
14
+ capacity: {
15
+ requestsMetadata: CapacityRequestBuilderRequestsMetadata,
16
+ },
17
+ };
18
+ /* tslint:enable */
19
+ /* eslint-enable */
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../outbound/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAa1G;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,qCAAqC,CAAC;AAClG;;GAEG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAAqH;IACjL,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;KAC3D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadping/sdk",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Typed TypeScript client for the Leadping API, generated from the Leadping OpenAPI document with Microsoft Kiota.",
5
5
  "type": "module",
6
6
  "license": "MIT",