@leadping/sdk 1.0.47 → 1.0.48

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 UserDataExportDownloadResponse } from '../../../../models/index.js';
1
2
  import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
3
  /**
3
4
  * Builds and executes requests for operations under /reports/exports/{exportId}/download
@@ -6,11 +7,12 @@ export interface DownloadRequestBuilder extends BaseRequestBuilder<DownloadReque
6
7
  /**
7
8
  * Validates an export download token and redirects to the generated file when the current-user report is ready.
8
9
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @returns {Promise<UserDataExportDownloadResponse>}
9
11
  * @throws {ProblemDetails} error when the service returns a 404 status code
10
12
  * @throws {ProblemDetails} error when the service returns a 410 status code
11
13
  * @throws {ProblemDetails} error when the service returns a 429 status code
12
14
  */
13
- get(requestConfiguration?: RequestConfiguration<DownloadRequestBuilderGetQueryParameters> | undefined): Promise<void>;
15
+ get(requestConfiguration?: RequestConfiguration<DownloadRequestBuilderGetQueryParameters> | undefined): Promise<UserDataExportDownloadResponse | undefined>;
14
16
  /**
15
17
  * Validates an export download token and redirects to the generated file when the current-user report is ready.
16
18
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -22,6 +24,10 @@ export interface DownloadRequestBuilder extends BaseRequestBuilder<DownloadReque
22
24
  * Validates an export download token and redirects to the generated file when the current-user report is ready.
23
25
  */
24
26
  export interface DownloadRequestBuilderGetQueryParameters {
27
+ /**
28
+ * Whether to redirect to the temporary file URL. Set to false to return the URL as JSON.
29
+ */
30
+ redirect?: boolean;
25
31
  /**
26
32
  * The short-lived download token issued for this export.
27
33
  */
@@ -30,7 +36,7 @@ export interface DownloadRequestBuilderGetQueryParameters {
30
36
  /**
31
37
  * Uri template for the request builder.
32
38
  */
33
- export declare const DownloadRequestBuilderUriTemplate = "{+baseurl}/reports/exports/{exportId}/download?token={token}";
39
+ export declare const DownloadRequestBuilderUriTemplate = "{+baseurl}/reports/exports/{exportId}/download?token={token}{&redirect*}";
34
40
  /**
35
41
  * Metadata for all the requests in the request builder.
36
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../reports/exports/item/download/index.ts"],"names":[],"mappings":"AAMA,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;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,wCAAwC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,wCAAwC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpJ;AACD;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACrD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,iEAAiE,CAAC;AAChH;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAWpD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../reports/exports/item/download/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA+H,KAAK,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE/M,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;;;;;;;OAOG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,wCAAwC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;IAC9J;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,wCAAwC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpJ;AACD;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD;;GAEG;AACH,eAAO,MAAM,iCAAiC,6EAA6E,CAAC;AAC5H;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAYpD,CAAC"}
@@ -2,24 +2,25 @@
2
2
  /* eslint-disable */
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
- import { createProblemDetailsFromDiscriminatorValue } from '../../../../models/index.js';
5
+ import { createProblemDetailsFromDiscriminatorValue, createUserDataExportDownloadResponseFromDiscriminatorValue } from '../../../../models/index.js';
6
6
  /**
7
7
  * Uri template for the request builder.
8
8
  */
9
- export const DownloadRequestBuilderUriTemplate = "{+baseurl}/reports/exports/{exportId}/download?token={token}";
9
+ export const DownloadRequestBuilderUriTemplate = "{+baseurl}/reports/exports/{exportId}/download?token={token}{&redirect*}";
10
10
  /**
11
11
  * Metadata for all the requests in the request builder.
12
12
  */
13
13
  export const DownloadRequestBuilderRequestsMetadata = {
14
14
  get: {
15
15
  uriTemplate: DownloadRequestBuilderUriTemplate,
16
- responseBodyContentType: "application/problem+json",
16
+ responseBodyContentType: "text/plain;q=0.9",
17
17
  errorMappings: {
18
18
  404: createProblemDetailsFromDiscriminatorValue,
19
19
  410: createProblemDetailsFromDiscriminatorValue,
20
20
  429: createProblemDetailsFromDiscriminatorValue,
21
21
  },
22
- adapterMethodName: "sendNoResponseContent",
22
+ adapterMethodName: "send",
23
+ responseBodyFactory: createUserDataExportDownloadResponseFromDiscriminatorValue,
23
24
  },
24
25
  };
25
26
  /* tslint:enable */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../reports/exports/item/download/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAuB,MAAM,6BAA6B,CAAC;AAgC9G;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8DAA8D,CAAC;AAChH;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAqB;IACpE,GAAG,EAAE;QACD,WAAW,EAAE,iCAAiC;QAC9C,uBAAuB,EAAE,0BAA0B;QACnD,aAAa,EAAE;YACX,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;YAC5E,GAAG,EAAE,0CAAuE;SAC/E;QACD,iBAAiB,EAAE,uBAAuB;KAC7C;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../reports/exports/item/download/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAE,0CAA0C,EAAE,0DAA0D,EAA4D,MAAM,6BAA6B,CAAC;AAqC/M;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,0EAA0E,CAAC;AAC5H;;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;SAC/E;QACD,iBAAiB,EAAE,MAAM;QACzB,mBAAmB,EAAG,0DAA0D;KACnF;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.47",
3
+ "version": "1.0.48",
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",