@leadping/sdk 1.0.34 → 1.0.36

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 CHANGED
@@ -5,47 +5,77 @@
5
5
 
6
6
  # ![Leadping](https://leadping.ai/favicon.ico) Leadping TypeScript SDK
7
7
 
8
- Type-safe TypeScript client for the Leadping API.
8
+ The official, type-safe TypeScript and JavaScript SDK for the Leadping API. Use it to integrate lead management, conversations, SMS and calling, automations, reporting, billing, and business settings into Node.js and server-side TypeScript applications.
9
9
 
10
- ## Install
10
+ The package is generated from the [Leadping OpenAPI specification](https://leadping.ai/docs/openapi.json) with Microsoft Kiota. It contains request builders and models; your application supplies the fetch request adapter, credentials, retry policy, and credential storage.
11
11
 
12
- ```bash
13
- npm install @leadping/sdk
14
- ```
12
+ ## Installation
15
13
 
16
- The generated client uses a Kiota request adapter. Install the default fetch adapter:
14
+ Install the SDK and Kiota's fetch adapter:
17
15
 
18
16
  ```bash
19
- npm install @microsoft/kiota-http-fetchlibrary
17
+ npm install @leadping/sdk @microsoft/kiota-http-fetchlibrary
20
18
  ```
21
19
 
22
- GitHub Packages is also available:
20
+ The SDK package is `@leadping/sdk`. The similarly named `@leadpingai/sdk` package is only used when consuming releases from GitHub Packages.
23
21
 
24
- ```bash
25
- npm config set @leadpingai:registry https://npm.pkg.github.com
26
- npm install @leadpingai/sdk
27
- ```
22
+ ## Authentication
23
+
24
+ Set `LEADPING_API_KEY` to a WorkOS organization API key (`sk_...`). The SDK sends it as `Authorization: Bearer <credential>`. User access tokens are also supported when acting for a signed-in user; `lp_src_...` keys are only for lead-ingestion endpoints. See [API authentication](https://leadping.ai/docs/api-authentication). Do not expose organization or source keys in browser code.
25
+
26
+ ## Create a client
28
27
 
29
- ## Use
28
+ Kiota's API-key authentication provider can place the complete Bearer value in the `Authorization` header:
30
29
 
31
30
  ```ts
32
31
  import { createLeadpingOpenApiClient } from "@leadping/sdk";
33
-
34
- const adapter = createLeadpingRequestAdapter();
32
+ import {
33
+ ApiKeyAuthenticationProvider,
34
+ ApiKeyLocation,
35
+ } from "@microsoft/kiota-abstractions";
36
+ import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
37
+
38
+ const credential = process.env.LEADPING_API_KEY;
39
+ if (!credential) {
40
+ throw new Error("LEADPING_API_KEY is not set.");
41
+ }
42
+
43
+ const authProvider = new ApiKeyAuthenticationProvider(
44
+ `Bearer ${credential}`,
45
+ "Authorization",
46
+ ApiKeyLocation.Header,
47
+ new Set(["api.leadping.ai"]),
48
+ );
49
+
50
+ const adapter = new FetchRequestAdapter(authProvider);
35
51
  const client = createLeadpingOpenApiClient(adapter);
36
52
 
37
- const me = await client.users.me.get();
53
+ const lead = await client.leads.byId("lead-id").get();
54
+ console.log(lead?.id);
38
55
  ```
39
56
 
40
- `createLeadpingRequestAdapter` is application code. Configure it to send one of:
57
+ The client defaults to `https://api.leadping.ai`.
58
+
59
+ ## Common operations
60
+
61
+ Request builders mirror the API path. Methods such as `byId()` select a resource; terminal methods send the request.
41
62
 
42
- - `Authorization: Bearer <token>`
43
- - `X-Leadping-Api-Key: <key>`
63
+ ```ts
64
+ // Requires a user access token.
65
+ const currentUser = await client.users.me.get();
66
+
67
+ // Retrieve organization resources by ID.
68
+ const source = await client.sources.byId("source-id").get();
69
+ const lead = await client.leads.byId("lead-id").get();
70
+ ```
44
71
 
45
- The client defaults to `https://api.leadping.ai` when the adapter does not already have a base URL.
72
+ Create and update operations accept generated request-body types exported by `@leadping/sdk`.
46
73
 
47
- ## Links
74
+ ## Resources
48
75
 
49
- - [Documentation](https://leadping.ai/docs)
76
+ - [Leadping introduction](https://leadping.ai/docs/introduction)
77
+ - [API authentication](https://leadping.ai/docs/api-authentication)
50
78
  - [API reference](https://leadping.ai/docs/api-reference)
79
+ - [OpenAPI specification](https://leadping.ai/docs/openapi.json)
80
+ - [npm package](https://www.npmjs.com/package/@leadping/sdk)
51
81
  - [License](LICENSE)
@@ -1 +1 @@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AM,2CAA2C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,yBAAyB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAYhK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAcvD,CAAC"}
@@ -6,7 +6,7 @@ import { createAutomationResponseFromDiscriminatorValue, createProblemDetailsFro
6
6
  // @ts-ignore
7
7
  import { AllRequestBuilderNavigationMetadata } from './all/index.js';
8
8
  // @ts-ignore
9
- import { AutomationsItemRequestBuilderRequestsMetadata } from './item/index.js';
9
+ import { AutomationsItemRequestBuilderNavigationMetadata, AutomationsItemRequestBuilderRequestsMetadata } from './item/index.js';
10
10
  // @ts-ignore
11
11
  import { PreviewRequestBuilderRequestsMetadata } from './preview/index.js';
12
12
  /**
@@ -19,6 +19,7 @@ export const AutomationsRequestBuilderUriTemplate = "{+baseurl}/automations";
19
19
  export const AutomationsRequestBuilderNavigationMetadata = {
20
20
  byId: {
21
21
  requestsMetadata: AutomationsItemRequestBuilderRequestsMetadata,
22
+ navigationMetadata: AutomationsItemRequestBuilderNavigationMetadata,
22
23
  pathParametersMappings: ["id"],
23
24
  },
24
25
  all: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../automations/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,8CAA8C,EAAE,0CAA0C,EAAE,0BAA0B,EAAqG,MAAM,oBAAoB,CAAC;AAC/P,aAAa;AACb,OAAO,EAAE,mCAAmC,EAA0B,MAAM,gBAAgB,CAAC;AAC7F,aAAa;AACb,OAAO,EAAE,6CAA6C,EAAsC,MAAM,iBAAiB,CAAC;AACpH,aAAa;AACb,OAAO,EAAE,qCAAqC,EAA8B,MAAM,oBAAoB,CAAC;AAuCvG;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,wBAAwB,CAAC;AAC7E;;GAEG;AACH,MAAM,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AA+C;QACnE,sBAAsB,EAAE,CAAC,IAAI,CAAC;KACjC;IACD,GAAG,EAAE;QACD,kBAAkB,EAAE,mCAAmC;KAC1D;IACD,OAAO,EAAE;QACL,gBAAgB,EAAE,qCAAqC;KAC1D;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAqB;IACvE,IAAI,EAAE;QACF,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,8CAA8C;QACpE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,0BAA0B;QACjD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -1,9 +1,19 @@
1
1
  import { type AutomationRequest, type AutomationResponse } from '../../models/index.js';
2
- import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ import { type RunRequestBuilder } from './run/index.js';
3
+ import { type RunsRequestBuilder } from './runs/index.js';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
5
  /**
4
6
  * Builds and executes requests for operations under /automations/{id}
5
7
  */
6
8
  export interface AutomationsItemRequestBuilder extends BaseRequestBuilder<AutomationsItemRequestBuilder> {
9
+ /**
10
+ * The run property
11
+ */
12
+ get run(): RunRequestBuilder;
13
+ /**
14
+ * The runs property
15
+ */
16
+ get runs(): RunsRequestBuilder;
7
17
  /**
8
18
  * Deletes an automation for the current organization so it no longer schedules follow-up or routing work for captured leads.
9
19
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -54,6 +64,10 @@ export interface AutomationsItemRequestBuilder extends BaseRequestBuilder<Automa
54
64
  * Uri template for the request builder.
55
65
  */
56
66
  export declare const AutomationsItemRequestBuilderUriTemplate = "{+baseurl}/automations/{id}";
67
+ /**
68
+ * Metadata for all the navigation properties in the request builder.
69
+ */
70
+ export declare const AutomationsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof AutomationsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
57
71
  /**
58
72
  * Metadata for all the requests in the request builder.
59
73
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../automations/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuJ,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAuB,MAAM,uBAAuB,CAAC;AAElQ,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB,CAAC,6BAA6B,CAAC;IACpG;;;;;;OAMG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACxG;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAChH;;;;;;;;OAQG;IACF,GAAG,CAAC,IAAI,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IACzI;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAk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AAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAChH;;;;;;;;OAQG;IACF,GAAG,CAAC,IAAI,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IACzI;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC/G;;;;;OAKG;IACF,uBAAuB,CAAC,IAAI,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC3I;AACD;;GAEG;AACH,eAAO,MAAM,wCAAwC,gCAAgC,CAAC;AACtF;;GAEG;AACH,eAAO,MAAM,+CAA+C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,6BAA6B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAQxK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,gBAmC3D,CAAC"}
@@ -3,10 +3,26 @@
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
5
  import { createAutomationResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue, serializeAutomationRequest } from '../../models/index.js';
6
+ // @ts-ignore
7
+ import { RunRequestBuilderRequestsMetadata } from './run/index.js';
8
+ // @ts-ignore
9
+ import { RunsRequestBuilderNavigationMetadata, RunsRequestBuilderRequestsMetadata } from './runs/index.js';
6
10
  /**
7
11
  * Uri template for the request builder.
8
12
  */
9
13
  export const AutomationsItemRequestBuilderUriTemplate = "{+baseurl}/automations/{id}";
14
+ /**
15
+ * Metadata for all the navigation properties in the request builder.
16
+ */
17
+ export const AutomationsItemRequestBuilderNavigationMetadata = {
18
+ run: {
19
+ requestsMetadata: RunRequestBuilderRequestsMetadata,
20
+ },
21
+ runs: {
22
+ requestsMetadata: RunsRequestBuilderRequestsMetadata,
23
+ navigationMetadata: RunsRequestBuilderNavigationMetadata,
24
+ },
25
+ };
10
26
  /**
11
27
  * Metadata for all the requests in the request builder.
12
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../automations/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,8CAA8C,EAAE,0CAA0C,EAAE,0BAA0B,EAAqG,MAAM,uBAAuB,CAAC;AAsDlQ;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,6BAA6B,CAAC;AACtF;;GAEG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAqB;IAC3E,MAAM,EAAE;QACJ,WAAW,EAAE,wCAAwC;QACrD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,eAAe;QAClC,mBAAmB,EAAG,SAAS;KAClC;IACD,GAAG,EAAE;QACD,WAAW,EAAE,wCAAwC;QACrD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,8CAA8C;KACvE;IACD,GAAG,EAAE;QACD,WAAW,EAAE,wCAAwC;QACrD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB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;QACzB,mBAAmB,EAAG,8CAA8C;KACvE;IACD,GAAG,EAAE;QACD,WAAW,EAAE,wCAAwC;QACrD,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;QACpE,sBAAsB,EAAE,kBAAkB;QAC1C,qBAAqB,EAAE,0BAA0B;QACjD,kCAAkC,EAAE,wBAAwB;KAC/D;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,30 @@
1
+ import { type AutomationRunRecord } 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 /automations/{id}/run
5
+ */
6
+ export interface RunRequestBuilder extends BaseRequestBuilder<RunRequestBuilder> {
7
+ /**
8
+ * Runs an automation through its Manual trigger.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<AutomationRunRecord>}
11
+ * @throws {ProblemDetails} error when the service returns a 400 status code
12
+ * @throws {ProblemDetails} error when the service returns a 403 status code
13
+ */
14
+ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AutomationRunRecord | undefined>;
15
+ /**
16
+ * Runs an automation through its Manual trigger.
17
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18
+ * @returns {RequestInformation}
19
+ */
20
+ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
21
+ }
22
+ /**
23
+ * Uri template for the request builder.
24
+ */
25
+ export declare const RunRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/run";
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ export declare const RunRequestBuilderRequestsMetadata: RequestsMetadata;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../automations/item/run/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+F,KAAK,mBAAmB,EAAuB,MAAM,0BAA0B,CAAC;AAEtL,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;;;;;OAMG;IACF,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAClH;;;;OAIG;IACF,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnH;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,gBAW/C,CAAC"}
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAutomationRunRecordFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const RunRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/run";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const RunRequestBuilderRequestsMetadata = {
14
+ post: {
15
+ uriTemplate: RunRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 400: createProblemDetailsFromDiscriminatorValue,
19
+ 403: createProblemDetailsFromDiscriminatorValue,
20
+ },
21
+ adapterMethodName: "send",
22
+ responseBodyFactory: createAutomationRunRecordFromDiscriminatorValue,
23
+ },
24
+ };
25
+ /* tslint:enable */
26
+ /* eslint-enable */
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../automations/item/run/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,+CAA+C,EAAE,0CAA0C,EAAiD,MAAM,0BAA0B,CAAC;AAuBtL;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,iCAAiC,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAqB;IAC/D,IAAI,EAAE;QACF,WAAW,EAAE,4BAA4B;QACzC,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,+CAA+C;KACxE;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,40 @@
1
+ import { type AutomationConsoleResponse } from '../../../models/index.js';
2
+ import { type WithRunItemRequestBuilder } from './item/index.js';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Builds and executes requests for operations under /automations/{id}/runs
6
+ */
7
+ export interface RunsRequestBuilder extends BaseRequestBuilder<RunsRequestBuilder> {
8
+ /**
9
+ * Gets an item from the leadping.automations.item.runs.item collection
10
+ * @param runId Unique identifier of the item
11
+ * @returns {WithRunItemRequestBuilder}
12
+ */
13
+ byRunId(runId: string): WithRunItemRequestBuilder;
14
+ /**
15
+ * Gets recent persisted execution runs for an automation console.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<AutomationConsoleResponse>}
18
+ * @throws {ProblemDetails} error when the service returns a 401 status code
19
+ */
20
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AutomationConsoleResponse | undefined>;
21
+ /**
22
+ * Gets recent persisted execution runs for an automation console.
23
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24
+ * @returns {RequestInformation}
25
+ */
26
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
27
+ }
28
+ /**
29
+ * Uri template for the request builder.
30
+ */
31
+ export declare const RunsRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/runs";
32
+ /**
33
+ * Metadata for all the navigation properties in the request builder.
34
+ */
35
+ export declare const RunsRequestBuilderNavigationMetadata: Record<Exclude<keyof RunsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
36
+ /**
37
+ * Metadata for all the requests in the request builder.
38
+ */
39
+ export declare const RunsRequestBuilderRequestsMetadata: RequestsMetadata;
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../automations/item/runs/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqG,KAAK,yBAAyB,EAAuB,MAAM,0BAA0B,CAAC;AAElM,OAAO,EAAE,KAAK,yBAAyB,EAA6C,MAAM,iBAAiB,CAAC;AAE5G,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB,CAAC,kBAAkB,CAAC;IAC9E;;;;OAIG;IACF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAI,yBAAyB,CAAC;IACpD;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IACvH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClH;AACD;;GAEG;AACH,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKlJ,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,gBAUhD,CAAC"}
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAutomationConsoleResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../models/index.js';
6
+ // @ts-ignore
7
+ import { WithRunItemRequestBuilderRequestsMetadata } from './item/index.js';
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ export const RunsRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/runs";
12
+ /**
13
+ * Metadata for all the navigation properties in the request builder.
14
+ */
15
+ export const RunsRequestBuilderNavigationMetadata = {
16
+ byRunId: {
17
+ requestsMetadata: WithRunItemRequestBuilderRequestsMetadata,
18
+ pathParametersMappings: ["runId"],
19
+ },
20
+ };
21
+ /**
22
+ * Metadata for all the requests in the request builder.
23
+ */
24
+ export const RunsRequestBuilderRequestsMetadata = {
25
+ get: {
26
+ uriTemplate: RunsRequestBuilderUriTemplate,
27
+ responseBodyContentType: "application/json",
28
+ errorMappings: {
29
+ 401: createProblemDetailsFromDiscriminatorValue,
30
+ },
31
+ adapterMethodName: "send",
32
+ responseBodyFactory: createAutomationConsoleResponseFromDiscriminatorValue,
33
+ },
34
+ };
35
+ /* tslint:enable */
36
+ /* eslint-enable */
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../automations/item/runs/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,qDAAqD,EAAE,0CAA0C,EAAuD,MAAM,0BAA0B,CAAC;AAClM,aAAa;AACb,OAAO,EAAkC,yCAAyC,EAAE,MAAM,iBAAiB,CAAC;AA4B5G;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAAkC,CAAC;AAChF;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAsG;IACnJ,OAAO,EAAE;QACL,gBAAgB,EAAE,yCAAyC;QAC3D,sBAAsB,EAAE,CAAC,OAAO,CAAC;KACpC;CACJ,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAqB;IAChE,GAAG,EAAE;QACD,WAAW,EAAE,6BAA6B;QAC1C,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,qDAAqD;KAC9E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -0,0 +1,30 @@
1
+ import { type AutomationConsoleResponse } 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 /automations/{id}/runs/{runId}
5
+ */
6
+ export interface WithRunItemRequestBuilder extends BaseRequestBuilder<WithRunItemRequestBuilder> {
7
+ /**
8
+ * Gets one persisted automation execution run for its console.
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<AutomationConsoleResponse>}
11
+ * @throws {ProblemDetails} error when the service returns a 401 status code
12
+ * @throws {ProblemDetails} error when the service returns a 404 status code
13
+ */
14
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AutomationConsoleResponse | undefined>;
15
+ /**
16
+ * Gets one persisted automation execution run for its console.
17
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
18
+ * @returns {RequestInformation}
19
+ */
20
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
21
+ }
22
+ /**
23
+ * Uri template for the request builder.
24
+ */
25
+ export declare const WithRunItemRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/runs/{runId}";
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ export declare const WithRunItemRequestBuilderRequestsMetadata: RequestsMetadata;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../automations/item/runs/item/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqG,KAAK,yBAAyB,EAAuB,MAAM,6BAA6B,CAAC;AAErM,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;IACvH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAClH;AACD;;GAEG;AACH,eAAO,MAAM,oCAAoC,6CAA6C,CAAC;AAC/F;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAWvD,CAAC"}
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
5
+ import { createAutomationConsoleResponseFromDiscriminatorValue, createProblemDetailsFromDiscriminatorValue } from '../../../../models/index.js';
6
+ /**
7
+ * Uri template for the request builder.
8
+ */
9
+ export const WithRunItemRequestBuilderUriTemplate = "{+baseurl}/automations/{id}/runs/{runId}";
10
+ /**
11
+ * Metadata for all the requests in the request builder.
12
+ */
13
+ export const WithRunItemRequestBuilderRequestsMetadata = {
14
+ get: {
15
+ uriTemplate: WithRunItemRequestBuilderUriTemplate,
16
+ responseBodyContentType: "application/json",
17
+ errorMappings: {
18
+ 401: createProblemDetailsFromDiscriminatorValue,
19
+ 404: createProblemDetailsFromDiscriminatorValue,
20
+ },
21
+ adapterMethodName: "send",
22
+ responseBodyFactory: createAutomationConsoleResponseFromDiscriminatorValue,
23
+ },
24
+ };
25
+ /* tslint:enable */
26
+ /* eslint-enable */
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../automations/item/runs/item/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,qDAAqD,EAAE,0CAA0C,EAAuD,MAAM,6BAA6B,CAAC;AAuBrM;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,0CAA0C,CAAC;AAC/F;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAqB;IACvE,GAAG,EAAE;QACD,WAAW,EAAE,oCAAoC;QACjD,uBAAuB,EAAE,kBAAkB;QAC3C,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,qDAAqD;KAC9E;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
@@ -35,7 +35,7 @@ export interface ItemRequestBuilder extends BaseRequestBuilder<ItemRequestBuilde
35
35
  */
36
36
  get workflowStatus(): WorkflowStatusRequestBuilder;
37
37
  /**
38
- * Deletes a lead from the current organization when it should no longer appear in communication, routing, or event workflows.
38
+ * Marks a lead as deleted so it no longer appears in user-facing lead, conversation, routing, or event workflows. The stored lead,conversation, and event records are retained.
39
39
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
40
  * @throws {ProblemDetails} error when the service returns a 401 status code
41
41
  * @throws {ProblemDetails} error when the service returns a 404 status code
@@ -60,7 +60,7 @@ export interface ItemRequestBuilder extends BaseRequestBuilder<ItemRequestBuilde
60
60
  */
61
61
  put(body: LeadRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<LeadResponse | undefined>;
62
62
  /**
63
- * Deletes a lead from the current organization when it should no longer appear in communication, routing, or event workflows.
63
+ * Marks a lead as deleted so it no longer appears in user-facing lead, conversation, routing, or event workflows. The stored lead,conversation, and event records are retained.
64
64
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65
65
  * @returns {RequestInformation}
66
66
  */