quidproquo-web 0.1.8 → 0.1.10
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/lib/commonjs/actions/index.d.ts +0 -1
- package/lib/commonjs/actions/index.js +0 -1
- package/lib/commonjs/actions/index.js.map +1 -1
- package/lib/esm/actions/index.d.ts +0 -1
- package/lib/esm/actions/index.js +0 -1
- package/lib/esm/actions/index.js.map +1 -1
- package/package.json +4 -4
- package/lib/commonjs/actions/api/ApiActionType.d.ts +0 -3
- package/lib/commonjs/actions/api/ApiActionType.js +0 -8
- package/lib/commonjs/actions/api/ApiActionType.js.map +0 -1
- package/lib/commonjs/actions/api/ApiRequestActionRequester.d.ts +0 -3
- package/lib/commonjs/actions/api/ApiRequestActionRequester.js +0 -19
- package/lib/commonjs/actions/api/ApiRequestActionRequester.js.map +0 -1
- package/lib/commonjs/actions/api/ApiRequestActionRequesterTypes.d.ts +0 -18
- package/lib/commonjs/actions/api/ApiRequestActionRequesterTypes.js +0 -3
- package/lib/commonjs/actions/api/ApiRequestActionRequesterTypes.js.map +0 -1
- package/lib/commonjs/actions/api/index.d.ts +0 -3
- package/lib/commonjs/actions/api/index.js +0 -20
- package/lib/commonjs/actions/api/index.js.map +0 -1
- package/lib/esm/actions/api/ApiActionType.d.ts +0 -3
- package/lib/esm/actions/api/ApiActionType.js +0 -5
- package/lib/esm/actions/api/ApiActionType.js.map +0 -1
- package/lib/esm/actions/api/ApiRequestActionRequester.d.ts +0 -3
- package/lib/esm/actions/api/ApiRequestActionRequester.js +0 -16
- package/lib/esm/actions/api/ApiRequestActionRequester.js.map +0 -1
- package/lib/esm/actions/api/ApiRequestActionRequesterTypes.d.ts +0 -18
- package/lib/esm/actions/api/ApiRequestActionRequesterTypes.js +0 -2
- package/lib/esm/actions/api/ApiRequestActionRequesterTypes.js.map +0 -1
- package/lib/esm/actions/api/index.d.ts +0 -3
- package/lib/esm/actions/api/index.js +0 -4
- package/lib/esm/actions/api/index.js.map +0 -1
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./api"), exports);
|
|
18
17
|
__exportStar(require("./queryParams"), exports);
|
|
19
18
|
__exportStar(require("./window"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB","sourcesContent":["export * from './queryParams';\nexport * from './window';\n"]}
|
package/lib/esm/actions/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC","sourcesContent":["export * from './queryParams';\nexport * from './window';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/joe-coady/quidproquo#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"quidproquo-core": "0.1.
|
|
36
|
-
"quidproquo-tsconfig": "0.1.
|
|
37
|
-
"quidproquo-webserver": "0.1.
|
|
35
|
+
"quidproquo-core": "0.1.10",
|
|
36
|
+
"quidproquo-tsconfig": "0.1.10",
|
|
37
|
+
"quidproquo-webserver": "0.1.10",
|
|
38
38
|
"typescript": "^5.8.2"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiActionType = void 0;
|
|
4
|
-
var ApiActionType;
|
|
5
|
-
(function (ApiActionType) {
|
|
6
|
-
ApiActionType["Request"] = "@quidproquo-web/Api/Request";
|
|
7
|
-
})(ApiActionType || (exports.ApiActionType = ApiActionType = {}));
|
|
8
|
-
//# sourceMappingURL=ApiActionType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiActionType.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiActionType.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,wDAAuC,CAAA;AACzC,CAAC,EAFW,aAAa,6BAAb,aAAa,QAExB","sourcesContent":["export enum ApiActionType {\n Request = '@quidproquo-web/Api/Request',\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { HTTPMethod } from 'quidproquo-core';
|
|
2
|
-
import { ApiRequestActionRequester, ApiRequestOptions } from './ApiRequestActionRequesterTypes';
|
|
3
|
-
export declare function askApiRequest<T, R>(service: string, method: HTTPMethod, endpoint: string, options?: ApiRequestOptions<T>): ApiRequestActionRequester<T, R>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.askApiRequest = askApiRequest;
|
|
4
|
-
const ApiActionType_1 = require("./ApiActionType");
|
|
5
|
-
function* askApiRequest(service, method, endpoint, options) {
|
|
6
|
-
return yield {
|
|
7
|
-
type: ApiActionType_1.ApiActionType.Request,
|
|
8
|
-
payload: {
|
|
9
|
-
service,
|
|
10
|
-
endpoint,
|
|
11
|
-
method,
|
|
12
|
-
body: options === null || options === void 0 ? void 0 : options.body,
|
|
13
|
-
headers: options === null || options === void 0 ? void 0 : options.headers,
|
|
14
|
-
params: options === null || options === void 0 ? void 0 : options.params,
|
|
15
|
-
responseType: (options === null || options === void 0 ? void 0 : options.responseType) || 'json',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=ApiRequestActionRequester.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestActionRequester.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiRequestActionRequester.ts"],"names":[],"mappings":";;AAKA,sCAkBC;AArBD,mDAAgD;AAGhD,QAAe,CAAC,CAAC,aAAa,CAC5B,OAAe,EACf,MAAkB,EAClB,QAAgB,EAChB,OAA8B;IAE9B,OAAO,MAAM;QACX,IAAI,EAAE,6BAAa,CAAC,OAAO;QAC3B,OAAO,EAAE;YACP,OAAO;YACP,QAAQ;YACR,MAAM;YACN,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;YACnB,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;YACzB,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,KAAI,MAAM;SAC9C;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { HTTPMethod } from 'quidproquo-core';\n\nimport { ApiActionType } from './ApiActionType';\nimport { ApiRequestActionRequester, ApiRequestOptions } from './ApiRequestActionRequesterTypes';\n\nexport function* askApiRequest<T, R>(\n service: string,\n method: HTTPMethod,\n endpoint: string,\n options?: ApiRequestOptions<T>,\n): ApiRequestActionRequester<T, R> {\n return yield {\n type: ApiActionType.Request,\n payload: {\n service,\n endpoint,\n method,\n body: options?.body,\n headers: options?.headers,\n params: options?.params,\n responseType: options?.responseType || 'json',\n },\n };\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Action, ActionProcessor, ActionRequester, HTTPMethod, HTTPNetworkResponse, HTTPRequestOptions, ResponseType } from 'quidproquo-core';
|
|
2
|
-
import { ApiActionType } from './ApiActionType';
|
|
3
|
-
export type ApiRequestOptions<T> = Omit<HTTPRequestOptions<T>, 'basePath'>;
|
|
4
|
-
export interface ApiRequestActionPayload<T> {
|
|
5
|
-
service: string;
|
|
6
|
-
endpoint: string;
|
|
7
|
-
method: HTTPMethod;
|
|
8
|
-
body?: T;
|
|
9
|
-
params?: Record<string, string>;
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
responseType: ResponseType;
|
|
12
|
-
}
|
|
13
|
-
export interface ApiRequestAction<T> extends Action<ApiRequestActionPayload<T>> {
|
|
14
|
-
type: ApiActionType.Request;
|
|
15
|
-
payload: ApiRequestActionPayload<T>;
|
|
16
|
-
}
|
|
17
|
-
export type ApiRequestActionProcessor<T, R> = ActionProcessor<ApiRequestAction<T>, HTTPNetworkResponse<R>>;
|
|
18
|
-
export type ApiRequestActionRequester<T, R> = ActionRequester<ApiRequestAction<T>, HTTPNetworkResponse<R>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestActionRequesterTypes.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiRequestActionRequesterTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, ActionProcessor, ActionRequester, HTTPMethod, HTTPNetworkResponse, HTTPRequestOptions, ResponseType } from 'quidproquo-core';\n\nimport { ApiActionType } from './ApiActionType';\n\n// basePath is resolved by the processor, so it is omitted from the caller options\nexport type ApiRequestOptions<T> = Omit<HTTPRequestOptions<T>, 'basePath'>;\n\n// Payload\nexport interface ApiRequestActionPayload<T> {\n service: string;\n endpoint: string;\n method: HTTPMethod;\n body?: T;\n params?: Record<string, string>;\n headers?: Record<string, string>;\n responseType: ResponseType;\n}\n\n// Action\nexport interface ApiRequestAction<T> extends Action<ApiRequestActionPayload<T>> {\n type: ApiActionType.Request;\n payload: ApiRequestActionPayload<T>;\n}\n\n// Function Types\nexport type ApiRequestActionProcessor<T, R> = ActionProcessor<ApiRequestAction<T>, HTTPNetworkResponse<R>>;\nexport type ApiRequestActionRequester<T, R> = ActionRequester<ApiRequestAction<T>, HTTPNetworkResponse<R>>;\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ApiActionType"), exports);
|
|
18
|
-
__exportStar(require("./ApiRequestActionRequester"), exports);
|
|
19
|
-
__exportStar(require("./ApiRequestActionRequesterTypes"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actions/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,8DAA4C;AAC5C,mEAAiD","sourcesContent":["export * from './ApiActionType';\nexport * from './ApiRequestActionRequester';\nexport * from './ApiRequestActionRequesterTypes';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiActionType.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiActionType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAEX;AAFD,WAAY,aAAa;IACvB,wDAAuC,CAAA;AACzC,CAAC,EAFW,aAAa,KAAb,aAAa,QAExB","sourcesContent":["export enum ApiActionType {\n Request = '@quidproquo-web/Api/Request',\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { HTTPMethod } from 'quidproquo-core';
|
|
2
|
-
import { ApiRequestActionRequester, ApiRequestOptions } from './ApiRequestActionRequesterTypes';
|
|
3
|
-
export declare function askApiRequest<T, R>(service: string, method: HTTPMethod, endpoint: string, options?: ApiRequestOptions<T>): ApiRequestActionRequester<T, R>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ApiActionType } from './ApiActionType';
|
|
2
|
-
export function* askApiRequest(service, method, endpoint, options) {
|
|
3
|
-
return yield {
|
|
4
|
-
type: ApiActionType.Request,
|
|
5
|
-
payload: {
|
|
6
|
-
service,
|
|
7
|
-
endpoint,
|
|
8
|
-
method,
|
|
9
|
-
body: options?.body,
|
|
10
|
-
headers: options?.headers,
|
|
11
|
-
params: options?.params,
|
|
12
|
-
responseType: options?.responseType || 'json',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=ApiRequestActionRequester.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestActionRequester.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiRequestActionRequester.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,SAAS,CAAC,CAAC,aAAa,CAC5B,OAAe,EACf,MAAkB,EAClB,QAAgB,EAChB,OAA8B;IAE9B,OAAO,MAAM;QACX,IAAI,EAAE,aAAa,CAAC,OAAO;QAC3B,OAAO,EAAE;YACP,OAAO;YACP,QAAQ;YACR,MAAM;YACN,IAAI,EAAE,OAAO,EAAE,IAAI;YACnB,OAAO,EAAE,OAAO,EAAE,OAAO;YACzB,MAAM,EAAE,OAAO,EAAE,MAAM;YACvB,YAAY,EAAE,OAAO,EAAE,YAAY,IAAI,MAAM;SAC9C;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { HTTPMethod } from 'quidproquo-core';\n\nimport { ApiActionType } from './ApiActionType';\nimport { ApiRequestActionRequester, ApiRequestOptions } from './ApiRequestActionRequesterTypes';\n\nexport function* askApiRequest<T, R>(\n service: string,\n method: HTTPMethod,\n endpoint: string,\n options?: ApiRequestOptions<T>,\n): ApiRequestActionRequester<T, R> {\n return yield {\n type: ApiActionType.Request,\n payload: {\n service,\n endpoint,\n method,\n body: options?.body,\n headers: options?.headers,\n params: options?.params,\n responseType: options?.responseType || 'json',\n },\n };\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Action, ActionProcessor, ActionRequester, HTTPMethod, HTTPNetworkResponse, HTTPRequestOptions, ResponseType } from 'quidproquo-core';
|
|
2
|
-
import { ApiActionType } from './ApiActionType';
|
|
3
|
-
export type ApiRequestOptions<T> = Omit<HTTPRequestOptions<T>, 'basePath'>;
|
|
4
|
-
export interface ApiRequestActionPayload<T> {
|
|
5
|
-
service: string;
|
|
6
|
-
endpoint: string;
|
|
7
|
-
method: HTTPMethod;
|
|
8
|
-
body?: T;
|
|
9
|
-
params?: Record<string, string>;
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
responseType: ResponseType;
|
|
12
|
-
}
|
|
13
|
-
export interface ApiRequestAction<T> extends Action<ApiRequestActionPayload<T>> {
|
|
14
|
-
type: ApiActionType.Request;
|
|
15
|
-
payload: ApiRequestActionPayload<T>;
|
|
16
|
-
}
|
|
17
|
-
export type ApiRequestActionProcessor<T, R> = ActionProcessor<ApiRequestAction<T>, HTTPNetworkResponse<R>>;
|
|
18
|
-
export type ApiRequestActionRequester<T, R> = ActionRequester<ApiRequestAction<T>, HTTPNetworkResponse<R>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestActionRequesterTypes.js","sourceRoot":"","sources":["../../../../src/actions/api/ApiRequestActionRequesterTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, ActionProcessor, ActionRequester, HTTPMethod, HTTPNetworkResponse, HTTPRequestOptions, ResponseType } from 'quidproquo-core';\n\nimport { ApiActionType } from './ApiActionType';\n\n// basePath is resolved by the processor, so it is omitted from the caller options\nexport type ApiRequestOptions<T> = Omit<HTTPRequestOptions<T>, 'basePath'>;\n\n// Payload\nexport interface ApiRequestActionPayload<T> {\n service: string;\n endpoint: string;\n method: HTTPMethod;\n body?: T;\n params?: Record<string, string>;\n headers?: Record<string, string>;\n responseType: ResponseType;\n}\n\n// Action\nexport interface ApiRequestAction<T> extends Action<ApiRequestActionPayload<T>> {\n type: ApiActionType.Request;\n payload: ApiRequestActionPayload<T>;\n}\n\n// Function Types\nexport type ApiRequestActionProcessor<T, R> = ActionProcessor<ApiRequestAction<T>, HTTPNetworkResponse<R>>;\nexport type ApiRequestActionRequester<T, R> = ActionRequester<ApiRequestAction<T>, HTTPNetworkResponse<R>>;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/actions/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './ApiActionType';\nexport * from './ApiRequestActionRequester';\nexport * from './ApiRequestActionRequesterTypes';\n"]}
|