@digitraffic/common 2024.8.27-1 → 2024.8.30-1

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.
@@ -64,9 +64,6 @@ export class DigitrafficIntegration {
64
64
  proxy: false,
65
65
  integrationResponses,
66
66
  requestParameters: undefined,
67
- // this.parameters.length === 0
68
- // ? undefined
69
- // : this.createRequestParameters(),
70
67
  requestTemplates: this.parameters.length === 0 && !this._passAllQueryParameters
71
68
  ? undefined
72
69
  : this.createRequestTemplates(),
@@ -1,4 +1,4 @@
1
- import { MockIntegration, type Resource } from "aws-cdk-lib/aws-apigateway";
1
+ import { type IntegrationResponse, MockIntegration, type Resource } from "aws-cdk-lib/aws-apigateway";
2
2
  import { MediaType } from "../../types/mediatypes.js";
3
3
  /**
4
4
  * Static integration, that returns the given response with given mediaType from given resource.
@@ -10,13 +10,7 @@ import { MediaType } from "../../types/mediatypes.js";
10
10
  export declare class DigitrafficStaticIntegration extends MockIntegration {
11
11
  constructor(resource: Resource, mediaType: MediaType, response: string, enableCors?: boolean, apiKeyRequired?: boolean, headers?: Record<string, string>);
12
12
  static json<K>(resource: Resource, response: K, enableCors?: boolean, apiKeyRequired?: boolean, headers?: Record<string, string>): DigitrafficStaticIntegration;
13
- static createIntegrationResponse(response: string, mediaType: MediaType, headers?: Record<string, string>): {
14
- statusCode: string;
15
- responseTemplates: {
16
- [x: string]: string;
17
- };
18
- responseParameters: Record<string, string>;
19
- };
13
+ static createIntegrationResponse(response: string, mediaType: MediaType, headers?: Record<string, string>): IntegrationResponse;
20
14
  static createMethodResponse(headers: Record<string, string>): {
21
15
  statusCode: string;
22
16
  responseParameters: Record<string, boolean>;