@typespec/spec-api 0.1.0-alpha.2 → 0.1.0-alpha.3-dev.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.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  export { MockRequest } from "./mock-request.js";
2
2
  export { BODY_EMPTY_ERROR_MESSAGE, BODY_NOT_EMPTY_ERROR_MESSAGE, BODY_NOT_EQUAL_ERROR_MESSAGE, validateBodyEmpty, validateBodyEquals, validateBodyNotEmpty, validateCoercedDateBodyEquals, validateHeader, validateQueryParam, validateRawBodyEquals, validateValueFormat, validateXmlBodyEquals, } from "./request-validations.js";
3
- export { json, xml } from "./response-utils.js";
4
- export { mockapi } from "./routes.js";
3
+ export { json, multipart, xml } from "./response-utils.js";
5
4
  export { WithKeysScenarioExpect, passOnCode, passOnSuccess, withKeys, withServiceKeys, } from "./scenarios.js";
6
- export { CollectionFormat, Fail, HttpMethod, KeyedMockApi, KeyedMockRequestHandler, KeyedMockResponse, MockApi, MockApiDefinition, MockApiForHandler, MockRequestHandler, MockResponse, MockResponseBody, PassByKeyScenario, PassByServiceKeyScenario, PassOnCodeScenario, PassOnSuccessScenario, RequestExt, ScenarioMockApi, ScenarioPassCondition, ServiceRequestFile, SimpleMockRequestHandler, } from "./types.js";
5
+ export { CollectionFormat, Fail, HttpMethod, KeyedMockRequestHandler, KeyedMockResponse, MockApiDefinition, MockBody, MockMultipartBody, MockRequestHandler, MockResponse, PassByKeyScenario, PassOnCodeScenario, PassOnSuccessScenario, RequestExt, ScenarioMockApi, ScenarioPassCondition, ServiceRequestFile, SimpleMockRequestHandler, } from "./types.js";
7
6
  export { ValidationError } from "./validation-error.js";
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export { MockRequest } from "./mock-request.js";
2
2
  export { BODY_EMPTY_ERROR_MESSAGE, BODY_NOT_EMPTY_ERROR_MESSAGE, BODY_NOT_EQUAL_ERROR_MESSAGE, validateBodyEmpty, validateBodyEquals, validateBodyNotEmpty, validateCoercedDateBodyEquals, validateHeader, validateQueryParam, validateRawBodyEquals, validateValueFormat, validateXmlBodyEquals, } from "./request-validations.js";
3
- export { json, xml } from "./response-utils.js";
4
- export { mockapi } from "./routes.js";
3
+ export { json, multipart, xml } from "./response-utils.js";
5
4
  export { passOnCode, passOnSuccess, withKeys, withServiceKeys, } from "./scenarios.js";
6
5
  export { Fail, } from "./types.js";
7
6
  export { ValidationError } from "./validation-error.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAEL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,IAAI,GAoBL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,IAAI,GAiBL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,15 +1,16 @@
1
- import { MockResponseBody } from "./types.js";
1
+ import { MockBody, MockMultipartBody } from "./types.js";
2
2
  /**
3
3
  * Serialize the provided content as json to use in a MockResponse body.
4
4
  * @content Object to return as json.
5
- * @returns {MockResponseBody} response body with application/json content type.
5
+ * @returns {MockBody} response body with application/json content type.
6
6
  */
7
- export declare function json(content: unknown): MockResponseBody;
7
+ export declare function json(content: unknown, contentType?: string): MockBody;
8
8
  /**
9
9
  * Sends the provided XML string in a MockResponse body.
10
10
  * The XML declaration prefix will automatically be added to xmlString.
11
11
  * @content Object to return as XML.
12
- * @returns {MockResponseBody} response body with application/xml content type.
12
+ * @returns {MockBody} response body with application/xml content type.
13
13
  */
14
- export declare function xml(xmlString: string): MockResponseBody;
14
+ export declare function xml(xmlString: string): MockBody;
15
+ export declare function multipart(config: Partial<Pick<MockMultipartBody, "contentType" | "parts" | "files">>): MockMultipartBody;
15
16
  //# sourceMappingURL=response-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-utils.d.ts","sourceRoot":"","sources":["../src/response-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAKvD;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAKvD"}
1
+ {"version":3,"file":"response-utils.d.ts","sourceRoot":"","sources":["../src/response-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,GAAE,MAA2B,GAAG,QAAQ,CAKzF;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAK/C;AAED,wBAAgB,SAAS,CACvB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,OAAO,GAAG,OAAO,CAAC,CAAC,GAC1E,iBAAiB,CAMnB"}
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Serialize the provided content as json to use in a MockResponse body.
3
3
  * @content Object to return as json.
4
- * @returns {MockResponseBody} response body with application/json content type.
4
+ * @returns {MockBody} response body with application/json content type.
5
5
  */
6
- export function json(content) {
6
+ export function json(content, contentType = "application/json") {
7
7
  return {
8
- contentType: "application/json",
8
+ contentType,
9
9
  rawContent: JSON.stringify(content),
10
10
  };
11
11
  }
@@ -13,7 +13,7 @@ export function json(content) {
13
13
  * Sends the provided XML string in a MockResponse body.
14
14
  * The XML declaration prefix will automatically be added to xmlString.
15
15
  * @content Object to return as XML.
16
- * @returns {MockResponseBody} response body with application/xml content type.
16
+ * @returns {MockBody} response body with application/xml content type.
17
17
  */
18
18
  export function xml(xmlString) {
19
19
  return {
@@ -21,4 +21,11 @@ export function xml(xmlString) {
21
21
  rawContent: `<?xml version='1.0' encoding='UTF-8'?>` + xmlString,
22
22
  };
23
23
  }
24
+ export function multipart(config) {
25
+ return {
26
+ kind: "multipart",
27
+ contentType: "multipart/form-data",
28
+ ...config,
29
+ };
30
+ }
24
31
  //# sourceMappingURL=response-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-utils.js","sourceRoot":"","sources":["../src/response-utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,IAAI,CAAC,OAAgB;IACnC,OAAO;QACL,WAAW,EAAE,kBAAkB;QAC/B,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,SAAiB;IACnC,OAAO;QACL,WAAW,EAAE,iBAAiB;QAC9B,UAAU,EAAE,wCAAwC,GAAG,SAAS;KACjE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"response-utils.js","sourceRoot":"","sources":["../src/response-utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,IAAI,CAAC,OAAgB,EAAE,cAAsB,kBAAkB;IAC7E,OAAO;QACL,WAAW;QACX,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,SAAiB;IACnC,OAAO;QACL,WAAW,EAAE,iBAAiB;QAC9B,UAAU,EAAE,wCAAwC,GAAG,SAAS;KACjE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,MAA2E;IAE3E,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,qBAAqB;QAClC,GAAG,MAAM;KACV,CAAC;AACJ,CAAC"}
@@ -1,17 +1,17 @@
1
- import { KeyedMockApi, KeyedMockApiDefinition, MockApi, MockApiDefinition, PassByKeyScenario, PassByServiceKeyScenario, PassOnCodeScenario, PassOnSuccessScenario } from "./types.js";
1
+ import { KeyedMockApiDefinition, MockApiDefinition, PassByKeyScenario, PassOnCodeScenario, PassOnSuccessScenario } from "./types.js";
2
2
  /**
3
3
  * Specify that the scenario should be a `pass` if all the endpoints are called and the API response with 2xx exit code.
4
4
  * @param apis Endpoint or List of endpoints for this scenario
5
5
  */
6
- export declare function passOnSuccess(apis: MockApi | readonly MockApi[] | MockApiDefinition | readonly MockApiDefinition[]): PassOnSuccessScenario;
6
+ export declare function passOnSuccess(apis: MockApiDefinition | readonly MockApiDefinition[]): PassOnSuccessScenario;
7
7
  /**
8
8
  * Specify that the scenario should be a `pass` if all the endpoints are called and the API response with the given exit code.
9
9
  * @param code Status code all endpoint should return
10
10
  * @param apis Endpoint or List of endpoints for this scenario
11
11
  */
12
- export declare function passOnCode(code: number, apis: MockApi | readonly MockApi[] | MockApiDefinition): PassOnCodeScenario;
12
+ export declare function passOnCode(code: number, apis: MockApiDefinition): PassOnCodeScenario;
13
13
  export interface WithKeysScenarioExpect<K extends string> {
14
- pass(api: KeyedMockApi<K>): PassByKeyScenario<K>;
14
+ pass(api: KeyedMockApiDefinition<K>): PassByKeyScenario<K>;
15
15
  }
16
16
  /**
17
17
  * Specify a list of keys that must be hit to this scenario to pass
@@ -20,7 +20,7 @@ export interface WithKeysScenarioExpect<K extends string> {
20
20
  */
21
21
  export declare function withKeys<const K extends string>(keys: K[]): WithKeysScenarioExpect<K>;
22
22
  export interface WithServiceKeysScenarioExpect<K extends string> {
23
- pass(api: KeyedMockApiDefinition<K> | KeyedMockApiDefinition<K>[]): PassByServiceKeyScenario<K>;
23
+ pass(api: KeyedMockApiDefinition<K> | KeyedMockApiDefinition<K>[]): PassByKeyScenario<K>;
24
24
  }
25
25
  export declare function withServiceKeys<const K extends string>(keys: K[]): WithServiceKeysScenarioExpect<K>;
26
26
  //# sourceMappingURL=scenarios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../src/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,OAAO,EACP,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,SAAS,OAAO,EAAE,GAAG,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,GACpF,qBAAqB,CAKvB;AACD;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,GAAG,SAAS,OAAO,EAAE,GAAG,iBAAiB,GACrD,kBAAkB,CAMpB;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,MAAM;IACtD,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAClD;AACD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAUrF;AAED,MAAM,WAAW,6BAA6B,CAAC,CAAC,SAAS,MAAM;IAC7D,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,EAAE,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;CACjG;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EACpD,IAAI,EAAE,CAAC,EAAE,GACR,6BAA6B,CAAC,CAAC,CAAC,CAUlC"}
1
+ {"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../src/scenarios.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,GACrD,qBAAqB,CAKvB;AACD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,kBAAkB,CAMpF;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,MAAM;IACtD,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAC5D;AACD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAUrF;AAED,MAAM,WAAW,6BAA6B,CAAC,CAAC,SAAS,MAAM;IAC7D,IAAI,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAC1F;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EACpD,IAAI,EAAE,CAAC,EAAE,GACR,6BAA6B,CAAC,CAAC,CAAC,CAUlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scenarios.js","sourceRoot":"","sources":["../src/scenarios.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAqF;IAErF,OAAO;QACL,aAAa,EAAE,kBAAkB;QACjC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KAC1C,CAAC;AACJ,CAAC;AACD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CACxB,IAAY,EACZ,IAAsD;IAEtD,OAAO;QACL,aAAa,EAAE,aAAa;QAC5B,IAAI;QACJ,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KAC1C,CAAC;AACJ,CAAC;AAKD;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAyB,IAAS;IACxD,OAAO;QACL,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YACZ,OAAO;gBACL,aAAa,EAAE,QAAQ;gBACvB,IAAI;gBACJ,IAAI,EAAE,CAAC,GAAG,CAAC;aACZ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAMD,MAAM,UAAU,eAAe,CAC7B,IAAS;IAET,OAAO;QACL,IAAI,EAAE,CAAC,GAA4D,EAAE,EAAE;YACrE,OAAO;gBACL,aAAa,EAAE,QAAQ;gBACvB,IAAI;gBACJ,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;aACvC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"scenarios.js","sourceRoot":"","sources":["../src/scenarios.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAsD;IAEtD,OAAO;QACL,aAAa,EAAE,kBAAkB;QACjC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KAC1C,CAAC;AACJ,CAAC;AACD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,IAAuB;IAC9D,OAAO;QACL,aAAa,EAAE,aAAa;QAC5B,IAAI;QACJ,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;KAC1C,CAAC;AACJ,CAAC;AAKD;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAyB,IAAS;IACxD,OAAO;QACL,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;YACZ,OAAO;gBACL,aAAa,EAAE,QAAQ;gBACvB,IAAI;gBACJ,IAAI,EAAE,CAAC,GAAG,CAAC;aACZ,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAMD,MAAM,UAAU,eAAe,CAC7B,IAAS;IAET,OAAO;QACL,IAAI,EAAE,CAAC,GAA4D,EAAE,EAAE;YACrE,OAAO;gBACL,aAAa,EAAE,QAAQ;gBACvB,IAAI;gBACJ,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;aACvC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/types.d.ts CHANGED
@@ -12,40 +12,28 @@ export interface RequestExt extends Request {
12
12
  export type ScenarioPassCondition = "response-success" | "status-code";
13
13
  export interface PassOnSuccessScenario {
14
14
  passCondition: "response-success";
15
- apis: MockApi[] | MockApiDefinition[];
15
+ apis: MockApiDefinition[];
16
16
  }
17
17
  export interface PassOnCodeScenario {
18
18
  passCondition: "status-code";
19
19
  code: number;
20
- apis: MockApi[] | MockApiDefinition[];
20
+ apis: MockApiDefinition[];
21
21
  }
22
22
  export interface PassByKeyScenario<K extends string = string> {
23
- passCondition: "by-key";
24
- keys: K[];
25
- apis: KeyedMockApi<K>[];
26
- }
27
- export interface PassByServiceKeyScenario<K extends string = string> {
28
23
  passCondition: "by-key";
29
24
  keys: K[];
30
25
  apis: KeyedMockApiDefinition<K>[];
31
26
  }
32
- export type ScenarioMockApi = PassOnSuccessScenario | PassOnCodeScenario | PassByKeyScenario | PassByServiceKeyScenario;
27
+ export type ScenarioMockApi = PassOnSuccessScenario | PassOnCodeScenario | PassByKeyScenario;
33
28
  export type MockRequestHandler = SimpleMockRequestHandler | KeyedMockRequestHandler;
34
29
  export type SimpleMockRequestHandler = (req: MockRequest) => MockResponse | Promise<MockResponse>;
35
30
  export type KeyedMockRequestHandler<T extends string = string> = (req: MockRequest) => KeyedMockResponse<T> | Promise<KeyedMockResponse<T>>;
36
31
  export type KeyedServiceRequestHandler<T extends string = string> = (req: ServiceRequest) => KeyedMockResponse<T> | Promise<KeyedMockResponse<T>>;
37
32
  export type HttpMethod = "get" | "post" | "put" | "patch" | "delete" | "head" | "options";
38
- export type MockApiForHandler<Handler extends MockRequestHandler> = Handler extends KeyedMockRequestHandler<infer K> ? KeyedMockApi<K> : MockApi;
39
- export interface MockApi {
40
- method: HttpMethod;
41
- uri: string;
42
- handler: MockRequestHandler;
43
- kind: "MockApi";
44
- }
45
33
  export interface MockApiDefinition {
46
34
  uri: string;
47
35
  method: HttpMethod;
48
- request: ServiceRequest;
36
+ request?: ServiceRequest;
49
37
  response: MockResponse;
50
38
  handler?: MockRequestHandler;
51
39
  kind: "MockApiDefinition";
@@ -57,19 +45,16 @@ export interface ServiceRequestFile {
57
45
  mimetype: string;
58
46
  }
59
47
  export interface ServiceRequest {
60
- body?: any;
48
+ body?: MockBody | MockMultipartBody;
61
49
  status?: number;
62
50
  /**
63
51
  * Query parameters to match to the request.
64
52
  */
65
- params?: Record<string, unknown>;
53
+ query?: Record<string, unknown>;
66
54
  headers?: Record<string, unknown>;
67
55
  files?: ServiceRequestFile[];
68
56
  }
69
57
  export declare const Fail: unique symbol;
70
- export interface KeyedMockApi<K extends string> extends MockApi {
71
- handler: KeyedMockRequestHandler<K>;
72
- }
73
58
  export interface KeyedMockApiDefinition<K extends string> extends MockApiDefinition {
74
59
  handler: KeyedMockRequestHandler<K>;
75
60
  }
@@ -78,7 +63,7 @@ export interface MockResponse {
78
63
  headers?: {
79
64
  [key: string]: string | null;
80
65
  };
81
- body?: MockResponseBody;
66
+ body?: MockBody;
82
67
  /**
83
68
  * Let the mock API know that this request was successful to counting coverage regardless of the status code.
84
69
  * By default only 2xx status code will count toward success.
@@ -88,9 +73,15 @@ export interface MockResponse {
88
73
  export interface KeyedMockResponse<K extends string = string> extends MockResponse {
89
74
  pass: K | typeof Fail;
90
75
  }
91
- export interface MockResponseBody {
76
+ export interface MockBody {
92
77
  contentType: string;
93
78
  rawContent: string | Buffer | undefined;
94
79
  }
80
+ export interface MockMultipartBody {
81
+ kind: "multipart";
82
+ contentType: `multipart/${string}`;
83
+ parts?: Record<string, unknown>;
84
+ files?: ServiceRequestFile[];
85
+ }
95
86
  export type CollectionFormat = "multi" | "csv" | "ssv" | "tsv" | "pipes";
96
87
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,OAAO;IACzC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EACF;QACE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KAC5C,GACD,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,GACrB,SAAS,CAAC;CACf;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,GAAG,aAAa,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,kBAAkB,CAAC;IAClC,IAAI,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;CACvC;AACD,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC1D,aAAa,EAAE,QAAQ,CAAC;IACxB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;CACzB;AACD,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACjE,aAAa,EAAE,QAAQ,CAAC;IACxB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;CACnC;AAED,MAAM,MAAM,eAAe,GACvB,qBAAqB,GACrB,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,CAAC;AAC7B,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG,uBAAuB,CAAC;AACpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAClG,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,CAC/D,GAAG,EAAE,WAAW,KACb,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,CAClE,GAAG,EAAE,cAAc,KAChB,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1F,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,kBAAkB,IAC9D,OAAO,SAAS,uBAAuB,CAAC,MAAM,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;AAE/E,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,IAAI,eAAqB,CAAC;AACvC,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,OAAO;IAC7D,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC;CACrC;AACD,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,iBAAiB;IACjF,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;IAEF,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,YAAY;IAChF,IAAI,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA4FA,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAyEA,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@typespec/spec-api",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3-dev.1",
4
4
  "description": "Spec api to implement mock api",
5
- "main": "dist/index.js",
6
5
  "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
7
11
  "engines": {
8
12
  "node": ">=20.0.0"
9
13
  },
@@ -45,6 +49,7 @@
45
49
  "typescript": "~5.8.2",
46
50
  "vitest": "^3.0.7"
47
51
  },
52
+ "peerDependencies": {},
48
53
  "scripts": {
49
54
  "watch": "tsc -p ./tsconfig.build.json --watch",
50
55
  "build": "tsc -p ./tsconfig.build.json",
package/src/index.ts CHANGED
@@ -13,8 +13,7 @@ export {
13
13
  validateValueFormat,
14
14
  validateXmlBodyEquals,
15
15
  } from "./request-validations.js";
16
- export { json, xml } from "./response-utils.js";
17
- export { mockapi } from "./routes.js";
16
+ export { json, multipart, xml } from "./response-utils.js";
18
17
  export {
19
18
  WithKeysScenarioExpect,
20
19
  passOnCode,
@@ -26,17 +25,14 @@ export {
26
25
  CollectionFormat,
27
26
  Fail,
28
27
  HttpMethod,
29
- KeyedMockApi,
30
28
  KeyedMockRequestHandler,
31
29
  KeyedMockResponse,
32
- MockApi,
33
30
  MockApiDefinition,
34
- MockApiForHandler,
31
+ MockBody,
32
+ MockMultipartBody,
35
33
  MockRequestHandler,
36
34
  MockResponse,
37
- MockResponseBody,
38
35
  PassByKeyScenario,
39
- PassByServiceKeyScenario,
40
36
  PassOnCodeScenario,
41
37
  PassOnSuccessScenario,
42
38
  RequestExt,
@@ -1,13 +1,13 @@
1
- import { MockResponseBody } from "./types.js";
1
+ import { MockBody, MockMultipartBody } from "./types.js";
2
2
 
3
3
  /**
4
4
  * Serialize the provided content as json to use in a MockResponse body.
5
5
  * @content Object to return as json.
6
- * @returns {MockResponseBody} response body with application/json content type.
6
+ * @returns {MockBody} response body with application/json content type.
7
7
  */
8
- export function json(content: unknown): MockResponseBody {
8
+ export function json(content: unknown, contentType: string = "application/json"): MockBody {
9
9
  return {
10
- contentType: "application/json",
10
+ contentType,
11
11
  rawContent: JSON.stringify(content),
12
12
  };
13
13
  }
@@ -16,11 +16,21 @@ export function json(content: unknown): MockResponseBody {
16
16
  * Sends the provided XML string in a MockResponse body.
17
17
  * The XML declaration prefix will automatically be added to xmlString.
18
18
  * @content Object to return as XML.
19
- * @returns {MockResponseBody} response body with application/xml content type.
19
+ * @returns {MockBody} response body with application/xml content type.
20
20
  */
21
- export function xml(xmlString: string): MockResponseBody {
21
+ export function xml(xmlString: string): MockBody {
22
22
  return {
23
23
  contentType: "application/xml",
24
24
  rawContent: `<?xml version='1.0' encoding='UTF-8'?>` + xmlString,
25
25
  };
26
26
  }
27
+
28
+ export function multipart(
29
+ config: Partial<Pick<MockMultipartBody, "contentType" | "parts" | "files">>,
30
+ ): MockMultipartBody {
31
+ return {
32
+ kind: "multipart",
33
+ contentType: "multipart/form-data",
34
+ ...config,
35
+ };
36
+ }
package/src/scenarios.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import {
2
- KeyedMockApi,
3
2
  KeyedMockApiDefinition,
4
- MockApi,
5
3
  MockApiDefinition,
6
4
  PassByKeyScenario,
7
- PassByServiceKeyScenario,
8
5
  PassOnCodeScenario,
9
6
  PassOnSuccessScenario,
10
7
  } from "./types.js";
@@ -14,7 +11,7 @@ import {
14
11
  * @param apis Endpoint or List of endpoints for this scenario
15
12
  */
16
13
  export function passOnSuccess(
17
- apis: MockApi | readonly MockApi[] | MockApiDefinition | readonly MockApiDefinition[],
14
+ apis: MockApiDefinition | readonly MockApiDefinition[],
18
15
  ): PassOnSuccessScenario {
19
16
  return {
20
17
  passCondition: "response-success",
@@ -26,10 +23,7 @@ export function passOnSuccess(
26
23
  * @param code Status code all endpoint should return
27
24
  * @param apis Endpoint or List of endpoints for this scenario
28
25
  */
29
- export function passOnCode(
30
- code: number,
31
- apis: MockApi | readonly MockApi[] | MockApiDefinition,
32
- ): PassOnCodeScenario {
26
+ export function passOnCode(code: number, apis: MockApiDefinition): PassOnCodeScenario {
33
27
  return {
34
28
  passCondition: "status-code",
35
29
  code,
@@ -38,7 +32,7 @@ export function passOnCode(
38
32
  }
39
33
 
40
34
  export interface WithKeysScenarioExpect<K extends string> {
41
- pass(api: KeyedMockApi<K>): PassByKeyScenario<K>;
35
+ pass(api: KeyedMockApiDefinition<K>): PassByKeyScenario<K>;
42
36
  }
43
37
  /**
44
38
  * Specify a list of keys that must be hit to this scenario to pass
@@ -58,7 +52,7 @@ export function withKeys<const K extends string>(keys: K[]): WithKeysScenarioExp
58
52
  }
59
53
 
60
54
  export interface WithServiceKeysScenarioExpect<K extends string> {
61
- pass(api: KeyedMockApiDefinition<K> | KeyedMockApiDefinition<K>[]): PassByServiceKeyScenario<K>;
55
+ pass(api: KeyedMockApiDefinition<K> | KeyedMockApiDefinition<K>[]): PassByKeyScenario<K>;
62
56
  }
63
57
 
64
58
  export function withServiceKeys<const K extends string>(
package/src/types.ts CHANGED
@@ -18,30 +18,21 @@ export type ScenarioPassCondition = "response-success" | "status-code";
18
18
 
19
19
  export interface PassOnSuccessScenario {
20
20
  passCondition: "response-success";
21
- apis: MockApi[] | MockApiDefinition[];
21
+ apis: MockApiDefinition[];
22
22
  }
23
23
 
24
24
  export interface PassOnCodeScenario {
25
25
  passCondition: "status-code";
26
26
  code: number;
27
- apis: MockApi[] | MockApiDefinition[];
27
+ apis: MockApiDefinition[];
28
28
  }
29
29
  export interface PassByKeyScenario<K extends string = string> {
30
- passCondition: "by-key";
31
- keys: K[];
32
- apis: KeyedMockApi<K>[];
33
- }
34
- export interface PassByServiceKeyScenario<K extends string = string> {
35
30
  passCondition: "by-key";
36
31
  keys: K[];
37
32
  apis: KeyedMockApiDefinition<K>[];
38
33
  }
39
34
 
40
- export type ScenarioMockApi =
41
- | PassOnSuccessScenario
42
- | PassOnCodeScenario
43
- | PassByKeyScenario
44
- | PassByServiceKeyScenario;
35
+ export type ScenarioMockApi = PassOnSuccessScenario | PassOnCodeScenario | PassByKeyScenario;
45
36
  export type MockRequestHandler = SimpleMockRequestHandler | KeyedMockRequestHandler;
46
37
  export type SimpleMockRequestHandler = (req: MockRequest) => MockResponse | Promise<MockResponse>;
47
38
  export type KeyedMockRequestHandler<T extends string = string> = (
@@ -53,20 +44,10 @@ export type KeyedServiceRequestHandler<T extends string = string> = (
53
44
 
54
45
  export type HttpMethod = "get" | "post" | "put" | "patch" | "delete" | "head" | "options";
55
46
 
56
- export type MockApiForHandler<Handler extends MockRequestHandler> =
57
- Handler extends KeyedMockRequestHandler<infer K> ? KeyedMockApi<K> : MockApi;
58
-
59
- export interface MockApi {
60
- method: HttpMethod;
61
- uri: string;
62
- handler: MockRequestHandler;
63
- kind: "MockApi";
64
- }
65
-
66
47
  export interface MockApiDefinition {
67
48
  uri: string;
68
49
  method: HttpMethod;
69
- request: ServiceRequest;
50
+ request?: ServiceRequest;
70
51
  response: MockResponse;
71
52
  handler?: MockRequestHandler;
72
53
  kind: "MockApiDefinition";
@@ -80,20 +61,17 @@ export interface ServiceRequestFile {
80
61
  }
81
62
 
82
63
  export interface ServiceRequest {
83
- body?: any;
64
+ body?: MockBody | MockMultipartBody;
84
65
  status?: number;
85
66
  /**
86
67
  * Query parameters to match to the request.
87
68
  */
88
- params?: Record<string, unknown>;
69
+ query?: Record<string, unknown>;
89
70
  headers?: Record<string, unknown>;
90
71
  files?: ServiceRequestFile[];
91
72
  }
92
73
 
93
74
  export const Fail = Symbol.for("Fail");
94
- export interface KeyedMockApi<K extends string> extends MockApi {
95
- handler: KeyedMockRequestHandler<K>;
96
- }
97
75
  export interface KeyedMockApiDefinition<K extends string> extends MockApiDefinition {
98
76
  handler: KeyedMockRequestHandler<K>;
99
77
  }
@@ -104,7 +82,7 @@ export interface MockResponse {
104
82
  [key: string]: string | null;
105
83
  };
106
84
 
107
- body?: MockResponseBody;
85
+ body?: MockBody;
108
86
 
109
87
  /**
110
88
  * Let the mock API know that this request was successful to counting coverage regardless of the status code.
@@ -117,9 +95,15 @@ export interface KeyedMockResponse<K extends string = string> extends MockRespon
117
95
  pass: K | typeof Fail;
118
96
  }
119
97
 
120
- export interface MockResponseBody {
98
+ export interface MockBody {
121
99
  contentType: string;
122
100
  rawContent: string | Buffer | undefined;
123
101
  }
102
+ export interface MockMultipartBody {
103
+ kind: "multipart";
104
+ contentType: `multipart/${string}`;
105
+ parts?: Record<string, unknown>;
106
+ files?: ServiceRequestFile[];
107
+ }
124
108
 
125
109
  export type CollectionFormat = "multi" | "csv" | "ssv" | "tsv" | "pipes";
package/temp/.tsbuildinfo CHANGED
@@ -1 +1 @@
1
- {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@types+deep-equal@1.0.4/node_modules/@types/deep-equal/index.d.ts","../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/doc.d.ts","../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+xml2js@0.4.14/node_modules/@types/xml2js/lib/processors.d.ts","../../../node_modules/.pnpm/@types+xml2js@0.4.14/node_modules/@types/xml2js/index.d.ts","../../../node_modules/.pnpm/@types+mime@1.3.5/node_modules/@types/mime/index.d.ts","../../../node_modules/.pnpm/@types+send@0.17.4/node_modules/@types/send/index.d.ts","../../../node_modules/.pnpm/@types+qs@6.9.17/node_modules/@types/qs/index.d.ts","../../../node_modules/.pnpm/@types+range-parser@1.2.7/node_modules/@types/range-parser/index.d.ts","../../../node_modules/.pnpm/@types+express-serve-static-core@5.0.1/node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/.pnpm/@types+http-errors@2.0.4/node_modules/@types/http-errors/index.d.ts","../../../node_modules/.pnpm/@types+serve-static@1.15.7/node_modules/@types/serve-static/index.d.ts","../../../node_modules/.pnpm/@types+connect@3.4.38/node_modules/@types/connect/index.d.ts","../../../node_modules/.pnpm/@types+body-parser@1.19.5/node_modules/@types/body-parser/index.d.ts","../../../node_modules/.pnpm/@types+express@5.0.0/node_modules/@types/express/index.d.ts","../src/mock-request.ts","../src/types.ts","../src/validation-error.ts","../src/request-validations.ts","../src/expectation.ts","../src/response-utils.ts","../src/routes.ts","../src/scenarios.ts","../src/index.ts","../../../node_modules/.pnpm/@types+multer@1.4.12/node_modules/@types/multer/index.d.ts"],"fileIdsList":[[67,110,125,160,170],[67,110,125,160],[67,110],[67,110,122,125,160,164,165,166],[67,110,165,167,169,171],[67,110,142,172],[67,107,110],[67,109,110],[110],[67,110,115,145],[67,110,111,116,122,123,130,142,153],[67,110,111,112,122,130],[62,63,64,67,110],[67,110,113,154],[67,110,114,115,123,131],[67,110,115,142,150],[67,110,116,118,122,130],[67,109,110,117],[67,110,118,119],[67,110,122],[67,110,120,122],[67,109,110,122],[67,110,122,123,124,142,153],[67,110,122,123,124,137,142,145],[67,105,110,158],[67,105,110,118,122,125,130,142,153],[67,110,122,123,125,126,130,142,150,153],[67,110,125,127,142,150,153],[65,66,67,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,122,128],[67,110,129,153],[67,110,118,122,130,142],[67,110,131],[67,110,132],[67,109,110,133],[67,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,135],[67,110,136],[67,110,122,137,138],[67,110,137,139,154,156],[67,110,122,142,143,145],[67,110,142,144],[67,110,142,143],[67,110,145],[67,110,146],[67,107,110,142],[67,110,122,148,149],[67,110,148,149],[67,110,115,130,142,150],[67,110,151],[67,110,130,152],[67,110,125,136,153],[67,110,115,154],[67,110,142,155],[67,110,129,156],[67,110,157],[67,110,115,122,124,133,142,153,156,158],[67,110,142,159],[67,110,123,142,160,163],[67,110,125,160,164,168],[67,110,122,160,161],[60,67,110],[67,77,81,110,153],[67,77,110,142,153],[67,72,110],[67,74,77,110,150,153],[67,110,130,150],[67,110,160],[67,72,110,160],[67,74,77,110,130,153],[67,69,70,73,76,110,122,142,153],[67,77,84,110],[67,69,75,110],[67,77,98,99,110],[67,73,77,110,145,153,160],[67,98,110,160],[67,71,72,110,160],[67,77,110],[67,71,72,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,110],[67,77,92,110],[67,77,84,85,110],[67,75,77,85,86,110],[67,76,110],[67,69,72,77,110],[67,77,81,85,86,110],[67,81,110],[67,75,77,80,110,153],[67,69,74,77,84,110],[67,110,142],[67,72,77,98,110,158,160],[59,67,110,174,175,176],[67,110,173,174,175,176,178,179,180],[67,110,174,177],[59,61,67,110,162,174,175],[67,110,174],[67,110,172,173]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"9b792a2f6ce65a166cda560290a73583284d6eb74e8ee5d2c260f25b56fb2b1f","impliedFormat":1},{"version":"f63cb353cd53da6be4a34f6fdece6316dac14fd62cccf9a4d2ce6bab2c37bc8c","impliedFormat":1},{"version":"54751c34f1e8c3bedd7a4501762c8a9567160ac76bd6bc35b73429d3e2cf2ec7","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"9057f224b79846e3a95baf6dad2c8103278de2b0c5eebda23fc8188171ad2398","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"f579f267a2f4c2278cca2ec84613e95059368b503ce96586972d304e5e40125b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"f7b1df115dbd1b8522cba4f404a9f4fdcd5169e2137129187ffeee9d287e4fd1","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"c0288f54de6f544706a3150c8b579b1a975870695c4be866f727ece6a16f3976","impliedFormat":1},{"version":"f8636a916949481bc363ae24cbeb8451fa98fd2d07329e0664a46567278c9adb","impliedFormat":1},{"version":"d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769","impliedFormat":1},{"version":"b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a","impliedFormat":1},{"version":"f0c3a51c7314523b169d4756b2df6e3e59a3f0d9bc4848248362edaf75b5d315","impliedFormat":1},{"version":"2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed","impliedFormat":1},{"version":"19b033811fe520aca7d0f098f924ea1e5fcf282616009e90455fa3390ad2c9b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b","impliedFormat":1},{"version":"0e13570a7e86c6d83dd92e81758a930f63747483e2cd34ef36fcdb47d1f9726a","impliedFormat":1},{"version":"104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e","impliedFormat":1},{"version":"cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c","impliedFormat":1},{"version":"5c45abf1e13e4463eacfd5dedda06855da8748a6a6cb3334f582b52e219acc04","impliedFormat":1},{"version":"28a174173e2c212b804d156acfbe6a9c594c0d48aaaf707d134f222b97be887f","signature":"5a56298d9078420f4ff6828a08509c65a19135a1676892e2d50f0b55ba38255f","impliedFormat":99},{"version":"712fd14f2f0467465e0c73e2d60fbb1aad807f73a7294765543d0c94824a3d29","signature":"4940652a496311c4ca2ac8873146da563f67c27796a40ccdfac5f0af646da132","impliedFormat":99},{"version":"393b26fe5adf0fd437a02c17be5e2264112c7917087860a6143b39e823792ecf","signature":"f18cff67db1a40d35bfa637e36f36d3a1606e75346280a386aa5ea09c043fbb6","impliedFormat":99},{"version":"71ac3894b4e9afc2f3896f116195aa955f6cb124a983df2ba156796d40fbb81b","signature":"34560ba1fa51aa323a8611bf8f025b7a01ea964f6e2884c72a9b37908e6af72c","impliedFormat":99},{"version":"f8280577dae69a260ac937aca2bd674c01f4f7a4168ef00c6bd52b1f1adc671f","signature":"2b773fd408f77b571cb3ea2f2a81e74d0dcabb85ee65c8ab893eaad815a3ad8e","impliedFormat":99},{"version":"2fc2fac6e5ba33759cf8b688316f9c3cb0562910360c115175190ab0bf41c608","signature":"b5820362971c03ac9d6891de7e3ecd2d337e6c2f327b2d181c0db053eeabf0f1","impliedFormat":99},{"version":"90ed01552577d178dcd4d1281afc7438ce3a5a38fb91715bed22f1547bafa6b4","signature":"9f189df8505e8bd90a8996866af555970461cba197be48a1c9f0903fcbb6cbe2","impliedFormat":99},{"version":"ef22d15c46038176e62024307484cd500229fe308919b3c3f6033d0928623ab4","signature":"723508c947677cbb21d6dfdebc8537302b4f5e09b72779ffb19541ce758b3eef","impliedFormat":99},{"version":"c5b8fa39341b3b5ff66ef830a002e897d0ef001b51afca547dc50db0770873ed","signature":"7639d88c1bf8a1d397c069bb92ef8de7f7dbc65c09bd0798265464518ff8ef3f","impliedFormat":99},{"version":"d57be402cf1a3f1bd1852fc71b31ff54da497f64dcdcf8af9ad32435e3f32c1f","affectsGlobalScope":true,"impliedFormat":1}],"root":[[173,181]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"module":100,"newLine":1,"noEmitHelpers":false,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"outDir":"../dist","rootDir":"../src","sourceMap":true,"strict":true,"stripInternal":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[171,1],[170,2],[59,3],[167,4],[172,5],[168,3],[163,3],[182,6],[107,7],[108,7],[109,8],[67,9],[110,10],[111,11],[112,12],[62,3],[65,13],[63,3],[64,3],[113,14],[114,15],[115,16],[116,17],[117,18],[118,19],[119,19],[121,20],[120,21],[122,22],[123,23],[124,24],[106,25],[66,3],[125,26],[126,27],[127,28],[160,29],[128,30],[129,31],[130,32],[131,33],[132,34],[133,35],[134,36],[135,37],[136,38],[137,39],[138,39],[139,40],[140,3],[141,3],[142,41],[144,42],[143,43],[145,44],[146,45],[147,46],[148,47],[149,48],[150,49],[151,50],[152,51],[153,52],[154,53],[155,54],[156,55],[157,56],[158,57],[159,58],[165,3],[166,3],[164,59],[169,60],[162,61],[161,3],[68,3],[60,3],[61,62],[57,3],[58,3],[10,3],[12,3],[11,3],[2,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[3,3],[21,3],[22,3],[4,3],[23,3],[27,3],[24,3],[25,3],[26,3],[28,3],[29,3],[30,3],[5,3],[31,3],[32,3],[33,3],[34,3],[6,3],[38,3],[35,3],[36,3],[37,3],[39,3],[7,3],[40,3],[45,3],[46,3],[41,3],[42,3],[43,3],[44,3],[8,3],[50,3],[47,3],[48,3],[49,3],[51,3],[9,3],[52,3],[53,3],[54,3],[56,3],[55,3],[1,3],[84,63],[94,64],[83,63],[104,65],[75,66],[74,67],[103,68],[97,69],[102,70],[77,71],[91,72],[76,73],[100,74],[72,75],[71,68],[101,76],[73,77],[78,78],[79,3],[82,78],[69,3],[105,79],[95,80],[86,81],[87,82],[89,83],[85,84],[88,85],[98,68],[80,86],[81,87],[90,88],[70,89],[93,80],[92,78],[96,3],[99,90],[177,91],[181,92],[173,93],[176,94],[178,95],[179,95],[180,95],[174,96],[175,3]],"latestChangedDtsFile":"../dist/index.d.ts","version":"5.8.2"}
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@types+deep-equal@1.0.4/node_modules/@types/deep-equal/index.d.ts","../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/doc.d.ts","../../../node_modules/.pnpm/prettier@3.5.3/node_modules/prettier/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.13.9/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+xml2js@0.4.14/node_modules/@types/xml2js/lib/processors.d.ts","../../../node_modules/.pnpm/@types+xml2js@0.4.14/node_modules/@types/xml2js/index.d.ts","../../../node_modules/.pnpm/@types+mime@1.3.5/node_modules/@types/mime/index.d.ts","../../../node_modules/.pnpm/@types+send@0.17.4/node_modules/@types/send/index.d.ts","../../../node_modules/.pnpm/@types+qs@6.9.17/node_modules/@types/qs/index.d.ts","../../../node_modules/.pnpm/@types+range-parser@1.2.7/node_modules/@types/range-parser/index.d.ts","../../../node_modules/.pnpm/@types+express-serve-static-core@5.0.1/node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/.pnpm/@types+http-errors@2.0.4/node_modules/@types/http-errors/index.d.ts","../../../node_modules/.pnpm/@types+serve-static@1.15.7/node_modules/@types/serve-static/index.d.ts","../../../node_modules/.pnpm/@types+connect@3.4.38/node_modules/@types/connect/index.d.ts","../../../node_modules/.pnpm/@types+body-parser@1.19.5/node_modules/@types/body-parser/index.d.ts","../../../node_modules/.pnpm/@types+express@5.0.0/node_modules/@types/express/index.d.ts","../src/mock-request.ts","../src/types.ts","../src/validation-error.ts","../src/request-validations.ts","../src/expectation.ts","../src/response-utils.ts","../src/scenarios.ts","../src/index.ts","../../../node_modules/.pnpm/@types+multer@1.4.12/node_modules/@types/multer/index.d.ts"],"fileIdsList":[[67,110,125,160,170],[67,110,125,160],[67,110],[67,110,122,125,160,164,165,166],[67,110,165,167,169,171],[67,110,142,172],[67,107,110],[67,109,110],[110],[67,110,115,145],[67,110,111,116,122,123,130,142,153],[67,110,111,112,122,130],[62,63,64,67,110],[67,110,113,154],[67,110,114,115,123,131],[67,110,115,142,150],[67,110,116,118,122,130],[67,109,110,117],[67,110,118,119],[67,110,122],[67,110,120,122],[67,109,110,122],[67,110,122,123,124,142,153],[67,110,122,123,124,137,142,145],[67,105,110,158],[67,105,110,118,122,125,130,142,153],[67,110,122,123,125,126,130,142,150,153],[67,110,125,127,142,150,153],[65,66,67,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,122,128],[67,110,129,153],[67,110,118,122,130,142],[67,110,131],[67,110,132],[67,109,110,133],[67,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,135],[67,110,136],[67,110,122,137,138],[67,110,137,139,154,156],[67,110,122,142,143,145],[67,110,142,144],[67,110,142,143],[67,110,145],[67,110,146],[67,107,110,142],[67,110,122,148,149],[67,110,148,149],[67,110,115,130,142,150],[67,110,151],[67,110,130,152],[67,110,125,136,153],[67,110,115,154],[67,110,142,155],[67,110,129,156],[67,110,157],[67,110,115,122,124,133,142,153,156,158],[67,110,142,159],[67,110,123,142,160,163],[67,110,125,160,164,168],[67,110,122,160,161],[60,67,110],[67,77,81,110,153],[67,77,110,142,153],[67,72,110],[67,74,77,110,150,153],[67,110,130,150],[67,110,160],[67,72,110,160],[67,74,77,110,130,153],[67,69,70,73,76,110,122,142,153],[67,77,84,110],[67,69,75,110],[67,77,98,99,110],[67,73,77,110,145,153,160],[67,98,110,160],[67,71,72,110,160],[67,77,110],[67,71,72,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,110],[67,77,92,110],[67,77,84,85,110],[67,75,77,85,86,110],[67,76,110],[67,69,72,77,110],[67,77,81,85,86,110],[67,81,110],[67,75,77,80,110,153],[67,69,74,77,84,110],[67,110,142],[67,72,77,98,110,158,160],[59,67,110,174,175,176],[67,110,173,174,175,176,178,179],[67,110,174,177],[59,61,67,110,162,174,175],[67,110,174],[67,110,172,173]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"9b792a2f6ce65a166cda560290a73583284d6eb74e8ee5d2c260f25b56fb2b1f","impliedFormat":1},{"version":"f63cb353cd53da6be4a34f6fdece6316dac14fd62cccf9a4d2ce6bab2c37bc8c","impliedFormat":1},{"version":"54751c34f1e8c3bedd7a4501762c8a9567160ac76bd6bc35b73429d3e2cf2ec7","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"9057f224b79846e3a95baf6dad2c8103278de2b0c5eebda23fc8188171ad2398","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"f579f267a2f4c2278cca2ec84613e95059368b503ce96586972d304e5e40125b","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"f7b1df115dbd1b8522cba4f404a9f4fdcd5169e2137129187ffeee9d287e4fd1","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"993985beef40c7d113f6dd8f0ba26eed63028b691fbfeb6a5b63f26408dd2c6d","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"c0288f54de6f544706a3150c8b579b1a975870695c4be866f727ece6a16f3976","impliedFormat":1},{"version":"f8636a916949481bc363ae24cbeb8451fa98fd2d07329e0664a46567278c9adb","impliedFormat":1},{"version":"d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769","impliedFormat":1},{"version":"b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a","impliedFormat":1},{"version":"f0c3a51c7314523b169d4756b2df6e3e59a3f0d9bc4848248362edaf75b5d315","impliedFormat":1},{"version":"2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed","impliedFormat":1},{"version":"19b033811fe520aca7d0f098f924ea1e5fcf282616009e90455fa3390ad2c9b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b","impliedFormat":1},{"version":"0e13570a7e86c6d83dd92e81758a930f63747483e2cd34ef36fcdb47d1f9726a","impliedFormat":1},{"version":"104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e","impliedFormat":1},{"version":"cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c","impliedFormat":1},{"version":"5c45abf1e13e4463eacfd5dedda06855da8748a6a6cb3334f582b52e219acc04","impliedFormat":1},{"version":"28a174173e2c212b804d156acfbe6a9c594c0d48aaaf707d134f222b97be887f","signature":"5a56298d9078420f4ff6828a08509c65a19135a1676892e2d50f0b55ba38255f","impliedFormat":99},{"version":"2c57d74114b61452000b351c89f25d339df1b49c378c6faa4df267d13f4e5197","signature":"ebfd54251e27c1a3328f4aa27ab71304e23662c5fa00351d0813a73c20d9b11d","impliedFormat":99},{"version":"393b26fe5adf0fd437a02c17be5e2264112c7917087860a6143b39e823792ecf","signature":"f18cff67db1a40d35bfa637e36f36d3a1606e75346280a386aa5ea09c043fbb6","impliedFormat":99},{"version":"71ac3894b4e9afc2f3896f116195aa955f6cb124a983df2ba156796d40fbb81b","signature":"34560ba1fa51aa323a8611bf8f025b7a01ea964f6e2884c72a9b37908e6af72c","impliedFormat":99},{"version":"f8280577dae69a260ac937aca2bd674c01f4f7a4168ef00c6bd52b1f1adc671f","signature":"2b773fd408f77b571cb3ea2f2a81e74d0dcabb85ee65c8ab893eaad815a3ad8e","impliedFormat":99},{"version":"1aca9eeda0a5d48e4e21ee87aab777a6716893408e391856445addae11e27c5c","signature":"a2a344f26374f55461cb4415b2bd12be06c49a3ff18eddeda3fe13bf5cbb87eb","impliedFormat":99},{"version":"aecb8b3fe51e6343406ed4c254eea27109578e26cda961fb9e6274958778dc00","signature":"21654b47a817bf9c6e1ed97bf571b8e12a7ff9039dbdea0499f8fe423426950f","impliedFormat":99},{"version":"57e89e38050bd1ce8507fee11a1a06d0a2618c9b0463f6fbada1a7cd086393e2","signature":"3326751ff70576f82d6c1fa38448f5eaca3bfb208f3318df2500a373b5baa20f","impliedFormat":99},{"version":"d57be402cf1a3f1bd1852fc71b31ff54da497f64dcdcf8af9ad32435e3f32c1f","affectsGlobalScope":true,"impliedFormat":1}],"root":[[173,180]],"options":{"alwaysStrict":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"module":100,"newLine":1,"noEmitHelpers":false,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"outDir":"../dist","rootDir":"../src","sourceMap":true,"strict":true,"stripInternal":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[171,1],[170,2],[59,3],[167,4],[172,5],[168,3],[163,3],[181,6],[107,7],[108,7],[109,8],[67,9],[110,10],[111,11],[112,12],[62,3],[65,13],[63,3],[64,3],[113,14],[114,15],[115,16],[116,17],[117,18],[118,19],[119,19],[121,20],[120,21],[122,22],[123,23],[124,24],[106,25],[66,3],[125,26],[126,27],[127,28],[160,29],[128,30],[129,31],[130,32],[131,33],[132,34],[133,35],[134,36],[135,37],[136,38],[137,39],[138,39],[139,40],[140,3],[141,3],[142,41],[144,42],[143,43],[145,44],[146,45],[147,46],[148,47],[149,48],[150,49],[151,50],[152,51],[153,52],[154,53],[155,54],[156,55],[157,56],[158,57],[159,58],[165,3],[166,3],[164,59],[169,60],[162,61],[161,3],[68,3],[60,3],[61,62],[57,3],[58,3],[10,3],[12,3],[11,3],[2,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[3,3],[21,3],[22,3],[4,3],[23,3],[27,3],[24,3],[25,3],[26,3],[28,3],[29,3],[30,3],[5,3],[31,3],[32,3],[33,3],[34,3],[6,3],[38,3],[35,3],[36,3],[37,3],[39,3],[7,3],[40,3],[45,3],[46,3],[41,3],[42,3],[43,3],[44,3],[8,3],[50,3],[47,3],[48,3],[49,3],[51,3],[9,3],[52,3],[53,3],[54,3],[56,3],[55,3],[1,3],[84,63],[94,64],[83,63],[104,65],[75,66],[74,67],[103,68],[97,69],[102,70],[77,71],[91,72],[76,73],[100,74],[72,75],[71,68],[101,76],[73,77],[78,78],[79,3],[82,78],[69,3],[105,79],[95,80],[86,81],[87,82],[89,83],[85,84],[88,85],[98,68],[80,86],[81,87],[90,88],[70,89],[93,80],[92,78],[96,3],[99,90],[177,91],[180,92],[173,93],[176,94],[178,95],[179,95],[174,96],[175,3]],"latestChangedDtsFile":"../dist/index.d.ts","version":"5.8.2"}
package/dist/routes.d.ts DELETED
@@ -1,65 +0,0 @@
1
- import { HttpMethod, MockApiForHandler, MockRequestHandler } from "./types.js";
2
- /**
3
- * Register a GET request for the provided uri.
4
- * @param uri URI to match.
5
- * @param func Request handler.
6
- */
7
- declare function get<const T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
8
- /**
9
- * Register a POST request for the provided uri.
10
- * @param uri URI to match.
11
- * @param func Request handler.
12
- */
13
- declare function post<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
14
- /**
15
- * Register a PUT request for the provided uri.
16
- * @param uri URI to match.
17
- * @param func Request handler.
18
- */
19
- declare function put<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
20
- /**
21
- * Register a PATCH request for the provided uri.
22
- * @param uri URI to match.
23
- * @param func Request handler.
24
- */
25
- declare function patch<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
26
- /**
27
- * Register a DELETE request for the provided uri.
28
- * @param uri URI to match.
29
- * @param func Request handler.
30
- */
31
- declare function deleteReq<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
32
- /**
33
- * Register a Options request for the provided uri.
34
- * @param uri URI to match.
35
- * @param func Request handler.
36
- */
37
- declare function options<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
38
- /**
39
- * Register a HEAD request for the provided uri.
40
- * @param uri URI to match.
41
- * @param name Name of the scenario(For coverage).
42
- * @param func Request handler.
43
- */
44
- declare function head<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T>;
45
- /**
46
- * Register a request for the provided uri.
47
- * @param method Method to use.
48
- * @param uri URI to match.
49
- * @param func Request handler.
50
- *
51
- * @note prefer to use the corresponding method method directly instead of `request()`(i.e `get(), post()`)
52
- */
53
- declare function request<T extends MockRequestHandler>(method: HttpMethod, uri: string, handler: T): MockApiForHandler<T>;
54
- export declare const mockapi: {
55
- get: typeof get;
56
- post: typeof post;
57
- put: typeof put;
58
- patch: typeof patch;
59
- delete: typeof deleteReq;
60
- options: typeof options;
61
- head: typeof head;
62
- request: typeof request;
63
- };
64
- export {};
65
- //# sourceMappingURL=routes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE/E;;;;GAIG;AACH,iBAAS,GAAG,CAAC,KAAK,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAE3F;AAED;;;;GAIG;AACH,iBAAS,IAAI,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEtF;AAED;;;;GAIG;AACH,iBAAS,GAAG,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAErF;AAED;;;;GAIG;AACH,iBAAS,KAAK,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEvF;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAE3F;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEzF;AAED;;;;;GAKG;AACH,iBAAS,IAAI,CAAC,CAAC,SAAS,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAEtF;AAED;;;;;;;GAOG;AACH,iBAAS,OAAO,CAAC,CAAC,SAAS,kBAAkB,EAC3C,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,CAAC,GACT,iBAAiB,CAAC,CAAC,CAAC,CAEtB;AAED,eAAO,MAAM,OAAO;;;;;;;;;CASnB,CAAC"}
package/dist/routes.js DELETED
@@ -1,79 +0,0 @@
1
- /**
2
- * Register a GET request for the provided uri.
3
- * @param uri URI to match.
4
- * @param func Request handler.
5
- */
6
- function get(uri, func) {
7
- return request("get", uri, func);
8
- }
9
- /**
10
- * Register a POST request for the provided uri.
11
- * @param uri URI to match.
12
- * @param func Request handler.
13
- */
14
- function post(uri, func) {
15
- return request("post", uri, func);
16
- }
17
- /**
18
- * Register a PUT request for the provided uri.
19
- * @param uri URI to match.
20
- * @param func Request handler.
21
- */
22
- function put(uri, func) {
23
- return request("put", uri, func);
24
- }
25
- /**
26
- * Register a PATCH request for the provided uri.
27
- * @param uri URI to match.
28
- * @param func Request handler.
29
- */
30
- function patch(uri, func) {
31
- return request("patch", uri, func);
32
- }
33
- /**
34
- * Register a DELETE request for the provided uri.
35
- * @param uri URI to match.
36
- * @param func Request handler.
37
- */
38
- function deleteReq(uri, func) {
39
- return request("delete", uri, func);
40
- }
41
- /**
42
- * Register a Options request for the provided uri.
43
- * @param uri URI to match.
44
- * @param func Request handler.
45
- */
46
- function options(uri, func) {
47
- return request("options", uri, func);
48
- }
49
- /**
50
- * Register a HEAD request for the provided uri.
51
- * @param uri URI to match.
52
- * @param name Name of the scenario(For coverage).
53
- * @param func Request handler.
54
- */
55
- function head(uri, func) {
56
- return request("head", uri, func);
57
- }
58
- /**
59
- * Register a request for the provided uri.
60
- * @param method Method to use.
61
- * @param uri URI to match.
62
- * @param func Request handler.
63
- *
64
- * @note prefer to use the corresponding method method directly instead of `request()`(i.e `get(), post()`)
65
- */
66
- function request(method, uri, handler) {
67
- return { method, uri, handler };
68
- }
69
- export const mockapi = {
70
- get,
71
- post,
72
- put,
73
- patch,
74
- delete: deleteReq,
75
- options,
76
- head,
77
- request,
78
- };
79
- //# sourceMappingURL=routes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,SAAS,GAAG,CAAqC,GAAW,EAAE,IAAO;IACnE,OAAO,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH,SAAS,IAAI,CAA+B,GAAW,EAAE,IAAO;IAC9D,OAAO,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC;AAED;;;;GAIG;AACH,SAAS,GAAG,CAA+B,GAAW,EAAE,IAAO;IAC7D,OAAO,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH,SAAS,KAAK,CAA+B,GAAW,EAAE,IAAO;IAC/D,OAAO,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAA+B,GAAW,EAAE,IAAO;IACnE,OAAO,OAAO,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAED;;;;GAIG;AACH,SAAS,OAAO,CAA+B,GAAW,EAAE,IAAO;IACjE,OAAO,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;;;;GAKG;AACH,SAAS,IAAI,CAA+B,GAAW,EAAE,IAAO;IAC9D,OAAO,OAAO,CAAI,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,OAAO,CACd,MAAkB,EAClB,GAAW,EACX,OAAU;IAEV,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAS,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG;IACH,IAAI;IACJ,GAAG;IACH,KAAK;IACL,MAAM,EAAE,SAAS;IACjB,OAAO;IACP,IAAI;IACJ,OAAO;CACR,CAAC"}
package/src/routes.ts DELETED
@@ -1,92 +0,0 @@
1
- import { HttpMethod, MockApiForHandler, MockRequestHandler } from "./types.js";
2
-
3
- /**
4
- * Register a GET request for the provided uri.
5
- * @param uri URI to match.
6
- * @param func Request handler.
7
- */
8
- function get<const T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
9
- return request("get", uri, func);
10
- }
11
-
12
- /**
13
- * Register a POST request for the provided uri.
14
- * @param uri URI to match.
15
- * @param func Request handler.
16
- */
17
- function post<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
18
- return request("post", uri, func);
19
- }
20
-
21
- /**
22
- * Register a PUT request for the provided uri.
23
- * @param uri URI to match.
24
- * @param func Request handler.
25
- */
26
- function put<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
27
- return request("put", uri, func);
28
- }
29
-
30
- /**
31
- * Register a PATCH request for the provided uri.
32
- * @param uri URI to match.
33
- * @param func Request handler.
34
- */
35
- function patch<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
36
- return request("patch", uri, func);
37
- }
38
-
39
- /**
40
- * Register a DELETE request for the provided uri.
41
- * @param uri URI to match.
42
- * @param func Request handler.
43
- */
44
- function deleteReq<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
45
- return request("delete", uri, func);
46
- }
47
-
48
- /**
49
- * Register a Options request for the provided uri.
50
- * @param uri URI to match.
51
- * @param func Request handler.
52
- */
53
- function options<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
54
- return request("options", uri, func);
55
- }
56
-
57
- /**
58
- * Register a HEAD request for the provided uri.
59
- * @param uri URI to match.
60
- * @param name Name of the scenario(For coverage).
61
- * @param func Request handler.
62
- */
63
- function head<T extends MockRequestHandler>(uri: string, func: T): MockApiForHandler<T> {
64
- return request<T>("head", uri, func);
65
- }
66
-
67
- /**
68
- * Register a request for the provided uri.
69
- * @param method Method to use.
70
- * @param uri URI to match.
71
- * @param func Request handler.
72
- *
73
- * @note prefer to use the corresponding method method directly instead of `request()`(i.e `get(), post()`)
74
- */
75
- function request<T extends MockRequestHandler>(
76
- method: HttpMethod,
77
- uri: string,
78
- handler: T,
79
- ): MockApiForHandler<T> {
80
- return { method, uri, handler } as any;
81
- }
82
-
83
- export const mockapi = {
84
- get,
85
- post,
86
- put,
87
- patch,
88
- delete: deleteReq,
89
- options,
90
- head,
91
- request,
92
- };