@elasticpath/component-test-framework 1.0.19 → 1.0.20

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.
@@ -28,6 +28,7 @@ export interface ApiResponse {
28
28
  status: number;
29
29
  data: V2Response | V3Response;
30
30
  links?: ApiLinks;
31
+ meta?: any;
31
32
  }
32
33
  interface V2Payload {
33
34
  [key: string]: any;
@@ -42,6 +43,8 @@ interface V3Payload {
42
43
  export interface ApiArrayResponse {
43
44
  status: number;
44
45
  data: Array<V2Response> | Array<V3Response>;
46
+ links?: ApiLinks;
47
+ meta?: any;
45
48
  }
46
49
  export interface ApiPayload {
47
50
  data: V2Payload | V3Payload;
@@ -1 +1 @@
1
- {"version":3,"file":"api.interfaces.js","sourceRoot":"","sources":["../src/api.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface Error {\n status: string\n title: string\n detail: string\n}\n\nexport interface V2Response {\n id: string\n type: string\n [key: string]: any\n errors?: Array<any> // V2 has inconsistant error responses\n}\n\nexport interface V3Response {\n id: string\n type: string\n attributes: {\n [key: string]: any\n }\n relationships?: any\n errors?: Array<Error>\n}\n\nexport interface ApiLinks {\n next: string | null\n prev: string | null\n first: string\n last: string | null\n}\n\nexport interface ApiResponse {\n status: number\n data: V2Response | V3Response\n links?: ApiLinks\n}\n\ninterface V2Payload {\n [key: string]: any\n}\n\ninterface V3Payload {\n id?: string\n type?: string\n attributes: {\n [key: string]: string\n }\n}\n\nexport interface ApiArrayResponse {\n status: number\n data: Array<V2Response> | Array<V3Response>\n}\n\nexport interface ApiPayload {\n data: V2Payload | V3Payload\n}\n"]}
1
+ {"version":3,"file":"api.interfaces.js","sourceRoot":"","sources":["../src/api.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface Error {\n status: string\n title: string\n detail: string\n}\n\nexport interface V2Response {\n id: string\n type: string\n [key: string]: any\n errors?: Array<any> // V2 has inconsistent error responses\n}\n\nexport interface V3Response {\n id: string\n type: string\n attributes: {\n [key: string]: any\n }\n relationships?: any\n errors?: Array<Error>\n}\n\nexport interface ApiLinks {\n next: string | null\n prev: string | null\n first: string\n last: string | null\n}\n\nexport interface ApiResponse {\n status: number\n data: V2Response | V3Response\n links?: ApiLinks\n meta?: any\n}\n\ninterface V2Payload {\n [key: string]: any\n}\n\ninterface V3Payload {\n id?: string\n type?: string\n attributes: {\n [key: string]: string\n }\n}\n\nexport interface ApiArrayResponse {\n status: number\n data: Array<V2Response> | Array<V3Response>\n links?: ApiLinks\n meta?: any\n}\n\nexport interface ApiPayload {\n data: V2Payload | V3Payload\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elasticpath/component-test-framework",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "A framework for component tests written using ts-flow",
5
5
  "main": "./lib/index.js",
6
6
  "directories": {