@leadping/sdk 1.0.139 → 1.0.141
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/index.d.ts +165 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +147 -0
- package/dist/models/index.js.map +1 -1
- package/dist/phoneCall/budget/index.d.ts +31 -0
- package/dist/phoneCall/budget/index.d.ts.map +1 -0
- package/dist/phoneCall/budget/index.js +28 -0
- package/dist/phoneCall/budget/index.js.map +1 -0
- package/dist/phoneCall/index.d.ts +5 -0
- package/dist/phoneCall/index.d.ts.map +1 -1
- package/dist/phoneCall/index.js +5 -0
- package/dist/phoneCall/index.js.map +1 -1
- package/dist/wallets/me/spendLimits/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type CallBudgetResponse } 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 /phone-call/budget
|
|
5
|
+
*/
|
|
6
|
+
export interface BudgetRequestBuilder extends BaseRequestBuilder<BudgetRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether wallet credit and spending limits allow the current organization to start a call.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<CallBudgetResponse>}
|
|
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 429 status code
|
|
14
|
+
*/
|
|
15
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CallBudgetResponse | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Checks whether wallet credit and spending limits allow the current organization to start a call.
|
|
18
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
19
|
+
* @returns {RequestInformation}
|
|
20
|
+
*/
|
|
21
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Uri template for the request builder.
|
|
25
|
+
*/
|
|
26
|
+
export declare const BudgetRequestBuilderUriTemplate = "{+baseurl}/phone-call/budget";
|
|
27
|
+
/**
|
|
28
|
+
* Metadata for all the requests in the request builder.
|
|
29
|
+
*/
|
|
30
|
+
export declare const BudgetRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../phoneCall/budget/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8F,KAAK,kBAAkB,EAAuB,MAAM,uBAAuB,CAAC;AAEjL,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB,CAAC,oBAAoB,CAAC;IAClF;;;;;;;OAOG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAChH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClH;AACD;;GAEG;AACH,eAAO,MAAM,+BAA+B,iCAAiC,CAAC;AAC9E;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,gBAYlD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createCallBudgetResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../models/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const BudgetRequestBuilderUriTemplate = "{+baseurl}/phone-call/budget";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the requests in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const BudgetRequestBuilderRequestsMetadata = {
|
|
14
|
+
get: {
|
|
15
|
+
uriTemplate: BudgetRequestBuilderUriTemplate,
|
|
16
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
17
|
+
errorMappings: {
|
|
18
|
+
401: createProblemDetailsFromDiscriminatorValue,
|
|
19
|
+
403: createProblemDetailsFromDiscriminatorValue,
|
|
20
|
+
429: createProblemDetailsFromDiscriminatorValue,
|
|
21
|
+
},
|
|
22
|
+
adapterMethodName: "send",
|
|
23
|
+
responseBodyFactory: createCallBudgetResponseFromDiscriminatorValue,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
/* tslint:enable */
|
|
27
|
+
/* eslint-enable */
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../phoneCall/budget/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,8CAA8C,EAAE,0CAA0C,EAAgD,MAAM,uBAAuB,CAAC;AAwBjL;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,8BAA8B,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAqB;IAClE,GAAG,EAAE;QACD,WAAW,EAAE,+BAA+B;QAC5C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,8CAA8C;KACvE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BudgetRequestBuilder } from './budget/index.js';
|
|
1
2
|
import { type DialRequestBuilder } from './dial/index.js';
|
|
2
3
|
import { type InitiateRequestBuilder } from './initiate/index.js';
|
|
3
4
|
import { type WithCallItemRequestBuilder } from './item/index.js';
|
|
@@ -7,6 +8,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
7
8
|
* Builds and executes requests for operations under /phone-call
|
|
8
9
|
*/
|
|
9
10
|
export interface PhoneCallRequestBuilder extends BaseRequestBuilder<PhoneCallRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* The budget property
|
|
13
|
+
*/
|
|
14
|
+
get budget(): BudgetRequestBuilder;
|
|
10
15
|
/**
|
|
11
16
|
* The dial property
|
|
12
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../phoneCall/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwC,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAA0C,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE1G,OAAO,EAAE,KAAK,0BAA0B,EAAgD,MAAM,iBAAiB,CAAC;AAEhH,OAAO,EAAwC,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB,CAAC,uBAAuB,CAAC;I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AA0B,CAAC;CAC1D;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,0BAA0B,CAAC;AAC1E;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAiB5J,CAAC"}
|
package/dist/phoneCall/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
+
import { BudgetRequestBuilderRequestsMetadata } from './budget/index.js';
|
|
6
|
+
// @ts-ignore
|
|
5
7
|
import { DialRequestBuilderNavigationMetadata } from './dial/index.js';
|
|
6
8
|
// @ts-ignore
|
|
7
9
|
import { InitiateRequestBuilderRequestsMetadata } from './initiate/index.js';
|
|
@@ -21,6 +23,9 @@ export const PhoneCallRequestBuilderNavigationMetadata = {
|
|
|
21
23
|
navigationMetadata: WithCallItemRequestBuilderNavigationMetadata,
|
|
22
24
|
pathParametersMappings: ["callId"],
|
|
23
25
|
},
|
|
26
|
+
budget: {
|
|
27
|
+
requestsMetadata: BudgetRequestBuilderRequestsMetadata,
|
|
28
|
+
},
|
|
24
29
|
dial: {
|
|
25
30
|
navigationMetadata: DialRequestBuilderNavigationMetadata,
|
|
26
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../phoneCall/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAA2B,MAAM,iBAAiB,CAAC;AAChG,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAC1G,aAAa;AACb,OAAO,EAAmC,4CAA4C,EAAE,MAAM,iBAAiB,CAAC;AAChH,aAAa;AACb,OAAO,EAAE,oCAAoC,EAA2B,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../phoneCall/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,oCAAoC,EAA6B,MAAM,mBAAmB,CAAC;AACpG,aAAa;AACb,OAAO,EAAE,oCAAoC,EAA2B,MAAM,iBAAiB,CAAC;AAChG,aAAa;AACb,OAAO,EAAE,sCAAsC,EAA+B,MAAM,qBAAqB,CAAC;AAC1G,aAAa;AACb,OAAO,EAAmC,4CAA4C,EAAE,MAAM,iBAAiB,CAAC;AAChH,aAAa;AACb,OAAO,EAAE,oCAAoC,EAA2B,MAAM,iBAAiB,CAAC;AA+BhG;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,uBAAuB,CAAC;AAC1E;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAA2G;IAC7J,QAAQ,EAAE;QACN,kBAAkB,EAAE,4CAA4C;QAChE,sBAAsB,EAAE,CAAC,QAAQ,CAAC;KACrC;IACD,MAAM,EAAE;QACJ,gBAAgB,EAAE,oCAAoC;KACzD;IACD,IAAI,EAAE;QACF,kBAAkB,EAAE,oCAAoC;KAC3D;IACD,QAAQ,EAAE;QACN,gBAAgB,EAAE,sCAAsC;KAC3D;IACD,IAAI,EAAE;QACF,kBAAkB,EAAE,oCAAoC;KAC3D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
|
|
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
5
5
|
*/
|
|
6
6
|
export interface SpendLimitsRequestBuilder extends BaseRequestBuilder<SpendLimitsRequestBuilder> {
|
|
7
7
|
/**
|
|
8
|
-
* Returns
|
|
8
|
+
* Returns organization and channel budgets and usage in the current UTC periods.
|
|
9
9
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
10
|
* @returns {Promise<SpendLimitsResponse>}
|
|
11
11
|
* @throws {ProblemDetails} error when the service returns a 401 status code
|
|
@@ -16,7 +16,7 @@ export interface SpendLimitsRequestBuilder extends BaseRequestBuilder<SpendLimit
|
|
|
16
16
|
*/
|
|
17
17
|
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SpendLimitsResponse | undefined>;
|
|
18
18
|
/**
|
|
19
|
-
* Set
|
|
19
|
+
* Set organization and channel usage budgets in USD for your Leadping organization. Use null to remove a limit or zero to stop new paid usage.
|
|
20
20
|
* @param body Organization usage budgets in USD. Null removes a limit; zero stops new paid usage.
|
|
21
21
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
22
|
* @returns {Promise<SpendLimitsResponse>}
|
|
@@ -30,13 +30,13 @@ export interface SpendLimitsRequestBuilder extends BaseRequestBuilder<SpendLimit
|
|
|
30
30
|
*/
|
|
31
31
|
put(body: SpendLimitsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SpendLimitsResponse | undefined>;
|
|
32
32
|
/**
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns organization and channel budgets and usage in the current UTC periods.
|
|
34
34
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
35
|
* @returns {RequestInformation}
|
|
36
36
|
*/
|
|
37
37
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
38
38
|
/**
|
|
39
|
-
* Set
|
|
39
|
+
* Set organization and channel usage budgets in USD for your Leadping organization. Use null to remove a limit or zero to stop new paid usage.
|
|
40
40
|
* @param body Organization usage budgets in USD. Null removes a limit; zero stops new paid usage.
|
|
41
41
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
42
42
|
* @returns {RequestInformation}
|
package/package.json
CHANGED