@api-client/ui 0.0.12 → 0.0.13
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/demo/elements/authorization/cc.ts +56 -27
- package/dist/bindings/base/FileBindings.d.ts +4 -0
- package/dist/bindings/base/FileBindings.d.ts.map +1 -1
- package/dist/bindings/base/FileBindings.js +21 -1
- package/dist/bindings/base/FileBindings.js.map +1 -1
- package/dist/bindings/base/StoreBindings.d.ts +1 -17
- package/dist/bindings/base/StoreBindings.d.ts.map +1 -1
- package/dist/bindings/base/StoreBindings.js +0 -59
- package/dist/bindings/base/StoreBindings.js.map +1 -1
- package/dist/bindings/web/WebFileBindings.js +1 -1
- package/dist/bindings/web/WebFileBindings.js.map +1 -1
- package/dist/define/http/certificate-add.d.ts +9 -0
- package/dist/define/http/certificate-add.d.ts.map +1 -0
- package/dist/define/http/certificate-add.js +10 -0
- package/dist/define/http/certificate-add.js.map +1 -0
- package/dist/define/ui/ui-segmented-button-set.d.ts +1 -1
- package/dist/define/ui/ui-segmented-button-set.d.ts.map +1 -1
- package/dist/define/ui/ui-segmented-button-set.js.map +1 -1
- package/dist/elements/authorization/ui/CC.styles.d.ts.map +1 -1
- package/dist/elements/authorization/ui/CC.styles.js +4 -9
- package/dist/elements/authorization/ui/CC.styles.js.map +1 -1
- package/dist/elements/authorization/ui/CcAuthorization.d.ts +14 -29
- package/dist/elements/authorization/ui/CcAuthorization.d.ts.map +1 -1
- package/dist/elements/authorization/ui/CcAuthorization.js +67 -158
- package/dist/elements/authorization/ui/CcAuthorization.js.map +1 -1
- package/dist/elements/http/CertificateAdd.element.d.ts +91 -0
- package/dist/elements/http/CertificateAdd.element.d.ts.map +1 -0
- package/dist/elements/http/CertificateAdd.element.js +389 -0
- package/dist/elements/http/CertificateAdd.element.js.map +1 -0
- package/dist/elements/http/CertificateAdd.styles.d.ts +3 -0
- package/dist/elements/http/CertificateAdd.styles.d.ts.map +1 -0
- package/dist/elements/http/CertificateAdd.styles.js +61 -0
- package/dist/elements/http/CertificateAdd.styles.js.map +1 -0
- package/dist/elements/project/ProjectRunReport.d.ts +2 -1
- package/dist/elements/project/ProjectRunReport.d.ts.map +1 -1
- package/dist/elements/project/ProjectRunReport.js.map +1 -1
- package/dist/elements/store/FilePicker.styles.d.ts.map +1 -1
- package/dist/elements/store/FilePicker.styles.js +1 -0
- package/dist/elements/store/FilePicker.styles.js.map +1 -1
- package/dist/events/EventTypes.d.ts +6 -7
- package/dist/events/EventTypes.d.ts.map +1 -1
- package/dist/events/EventTypes.js +7 -7
- package/dist/events/EventTypes.js.map +1 -1
- package/dist/events/Events.d.ts +6 -1
- package/dist/events/Events.d.ts.map +1 -1
- package/dist/events/Events.js +2 -0
- package/dist/events/Events.js.map +1 -1
- package/dist/events/FilesystemEvents.d.ts +8 -0
- package/dist/events/FilesystemEvents.d.ts.map +1 -0
- package/dist/events/FilesystemEvents.js +59 -0
- package/dist/events/FilesystemEvents.js.map +1 -0
- package/dist/events/HttpClientEvents.d.ts +0 -2
- package/dist/events/HttpClientEvents.d.ts.map +1 -1
- package/dist/events/HttpClientEvents.js +0 -2
- package/dist/events/HttpClientEvents.js.map +1 -1
- package/dist/http-client/idb/Arc18DataUpgrade.d.ts +0 -8
- package/dist/http-client/idb/Arc18DataUpgrade.d.ts.map +1 -1
- package/dist/http-client/idb/Arc18DataUpgrade.js +11 -206
- package/dist/http-client/idb/Arc18DataUpgrade.js.map +1 -1
- package/dist/http-client/store/StoreBroadcast.d.ts +0 -5
- package/dist/http-client/store/StoreBroadcast.d.ts.map +1 -1
- package/dist/http-client/store/StoreBroadcast.js +0 -7
- package/dist/http-client/store/StoreBroadcast.js.map +1 -1
- package/dist/lib/files/FileUtils.d.ts +9 -0
- package/dist/lib/files/FileUtils.d.ts.map +1 -0
- package/dist/lib/files/FileUtils.js +13 -0
- package/dist/lib/files/FileUtils.js.map +1 -0
- package/dist/mixins/RouteMixin.d.ts +4 -0
- package/dist/mixins/RouteMixin.d.ts.map +1 -1
- package/dist/mixins/RouteMixin.js +1 -0
- package/dist/mixins/RouteMixin.js.map +1 -1
- package/dist/pages/api-client/ApiClient.screen.d.ts +4 -0
- package/dist/pages/api-client/ApiClient.screen.d.ts.map +1 -1
- package/dist/pages/api-client/ApiClient.screen.js +23 -2
- package/dist/pages/api-client/ApiClient.screen.js.map +1 -1
- package/dist/pages/api-client/ApiClient.styles.d.ts.map +1 -1
- package/dist/pages/api-client/ApiClient.styles.js +0 -12
- package/dist/pages/api-client/ApiClient.styles.js.map +1 -1
- package/dist/pages/api-client/pages/Files.page.d.ts.map +1 -1
- package/dist/pages/api-client/pages/Files.page.js +13 -0
- package/dist/pages/api-client/pages/Files.page.js.map +1 -1
- package/dist/ui/button/SegmentedButtonsSet.d.ts +14 -0
- package/dist/ui/button/SegmentedButtonsSet.d.ts.map +1 -1
- package/dist/ui/button/SegmentedButtonsSet.js.map +1 -1
- package/dist/ui/notification/SnackNotifications.d.ts +1 -0
- package/dist/ui/notification/SnackNotifications.d.ts.map +1 -1
- package/dist/ui/notification/SnackNotifications.js +7 -0
- package/dist/ui/notification/SnackNotifications.js.map +1 -1
- package/package.json +1 -1
- package/src/bindings/base/FileBindings.ts +25 -1
- package/src/bindings/base/StoreBindings.ts +1 -73
- package/src/bindings/web/WebFileBindings.ts +1 -1
- package/src/define/http/certificate-add.ts +12 -0
- package/src/define/ui/ui-segmented-button-set.ts +1 -1
- package/src/elements/authorization/ui/CC.styles.ts +4 -9
- package/src/elements/authorization/ui/CcAuthorization.ts +67 -167
- package/src/elements/http/CertificateAdd.element.ts +443 -0
- package/src/elements/http/CertificateAdd.styles.ts +61 -0
- package/src/elements/project/ProjectRunReport.ts +2 -1
- package/src/elements/store/FilePicker.styles.ts +1 -0
- package/src/events/EventTypes.ts +7 -7
- package/src/events/Events.ts +2 -0
- package/src/events/FilesystemEvents.ts +63 -0
- package/src/events/HttpClientEvents.ts +0 -2
- package/src/http-client/idb/Arc18DataUpgrade.ts +84 -84
- package/src/http-client/store/StoreBroadcast.ts +0 -8
- package/src/lib/files/FileUtils.ts +12 -0
- package/src/mixins/RouteMixin.ts +8 -1
- package/src/pages/api-client/ApiClient.screen.ts +26 -2
- package/src/pages/api-client/ApiClient.styles.ts +0 -12
- package/src/pages/api-client/pages/Files.page.ts +11 -0
- package/src/ui/button/SegmentedButtonsSet.ts +16 -1
- package/src/ui/notification/SnackNotifications.ts +8 -0
- package/test/elements/http/BodyFormdataEditorElement.test.ts +458 -454
- package/test/elements/http/BodyMultipartEditorElement.test.ts +609 -605
- package/test/elements/http/BodyRawEditorElement.test.ts +60 -56
- package/test/elements/http/CertificateAdd.test.ts +430 -0
- package/test/events/EventTypes.test.ts +0 -22
- package/test/helpers/UiMock.ts +19 -2
- package/web-test-runner.config.mjs +4 -3
- package/dist/events/http-client/models/CertificatesEvents.d.ts +0 -12
- package/dist/events/http-client/models/CertificatesEvents.d.ts.map +0 -1
- package/dist/events/http-client/models/CertificatesEvents.js +0 -18
- package/dist/events/http-client/models/CertificatesEvents.js.map +0 -1
- package/dist/http-client/idb/AuthDataModel.d.ts +0 -60
- package/dist/http-client/idb/AuthDataModel.d.ts.map +0 -1
- package/dist/http-client/idb/AuthDataModel.js +0 -150
- package/dist/http-client/idb/AuthDataModel.js.map +0 -1
- package/dist/http-client/idb/HostsModel.d.ts +0 -25
- package/dist/http-client/idb/HostsModel.d.ts.map +0 -1
- package/dist/http-client/idb/HostsModel.js +0 -82
- package/dist/http-client/idb/HostsModel.js.map +0 -1
- package/dist/http-client/idb/LegacyMockedStore.d.ts +0 -214
- package/dist/http-client/idb/LegacyMockedStore.d.ts.map +0 -1
- package/dist/http-client/idb/LegacyMockedStore.js +0 -486
- package/dist/http-client/idb/LegacyMockedStore.js.map +0 -1
- package/src/events/http-client/models/CertificatesEvents.ts +0 -23
- package/src/http-client/idb/AuthDataModel.ts +0 -175
- package/src/http-client/idb/HostsModel.ts +0 -125
- package/src/http-client/idb/LegacyMockedStore.ts +0 -544
- package/test/apic-ui.test.ts +0 -31
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificatesEvents.d.ts","sourceRoot":"","sources":["../../../../src/events/http-client/models/CertificatesEvents.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAG3C,qBAAa,kBAAkB;IAC7B;;;;;;OAMG;WACU,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,MAAM,GAAE,WAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;CAKxI"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-classes-per-file */
|
|
2
|
-
import { ContextListEvent } from '@api-client/core/build/browser.js';
|
|
3
|
-
import { EventTypes } from '../../EventTypes.js';
|
|
4
|
-
export class CertificatesEvents {
|
|
5
|
-
/**
|
|
6
|
-
* Dispatches an event to list the client certificates data.
|
|
7
|
-
*
|
|
8
|
-
* @param target A node on which to dispatch the event.
|
|
9
|
-
* @param opts Query options.
|
|
10
|
-
* @returns The list result.
|
|
11
|
-
*/
|
|
12
|
-
static async list(opts, target = window) {
|
|
13
|
-
const e = new ContextListEvent(EventTypes.Store.Certificate.list, opts);
|
|
14
|
-
target.dispatchEvent(e);
|
|
15
|
-
return e.detail.result;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=CertificatesEvents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CertificatesEvents.js","sourceRoot":"","sources":["../../../../src/events/http-client/models/CertificatesEvents.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EACL,gBAAgB,EAIjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,OAAO,kBAAkB;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAA6B,EAAE,SAAsB,MAAM;QAC3E,MAAM,CAAC,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACxE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,CAAC,MAAM,CAAC,MAAiE,CAAC;IACpF,CAAC;CACF","sourcesContent":["/* eslint-disable max-classes-per-file */\nimport { \n ContextListEvent, \n ContextListResult, \n ContextSpaceListOptions, \n HttpCertificate \n} from '@api-client/core/build/browser.js';\nimport { EventTypes } from '../../EventTypes.js';\n\nexport class CertificatesEvents {\n /**\n * Dispatches an event to list the client certificates data.\n *\n * @param target A node on which to dispatch the event.\n * @param opts Query options.\n * @returns The list result.\n */\n static async list(opts: ContextSpaceListOptions, target: EventTarget = window): Promise<ContextListResult<HttpCertificate> | undefined> {\n const e = new ContextListEvent(EventTypes.Store.Certificate.list, opts);\n target.dispatchEvent(e);\n return e.detail.result as Promise<ContextListResult<HttpCertificate> | undefined>;\n }\n}\n"]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@license
|
|
3
|
-
Copyright 2017 The Advanced REST client authors <arc@mulesoft.com>
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
5
|
-
use this file except in compliance with the License. You may obtain a copy of
|
|
6
|
-
the License at
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
10
|
-
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
11
|
-
License for the specific language governing permissions and limitations under
|
|
12
|
-
the License.
|
|
13
|
-
*/
|
|
14
|
-
import { ContextChangeRecord, IAuthorizationData } from '@api-client/core/build/browser.js';
|
|
15
|
-
import { Base } from './Base.js';
|
|
16
|
-
/**
|
|
17
|
-
* Removes query parameters and the fragment part from the URL
|
|
18
|
-
*
|
|
19
|
-
* @param url The URL to process
|
|
20
|
-
* @return The canonical URL.
|
|
21
|
-
*/
|
|
22
|
-
export declare function normalizeUrl(url: string): string;
|
|
23
|
-
/**
|
|
24
|
-
* Computes the database key for auth data
|
|
25
|
-
*
|
|
26
|
-
* @param method The Authorization method to restore data for.
|
|
27
|
-
* @param url The URL of the request
|
|
28
|
-
* @returns The datastore key for auth data
|
|
29
|
-
*/
|
|
30
|
-
export declare function computeKey(method: string, url?: string): string;
|
|
31
|
-
/**
|
|
32
|
-
* Model for authorization data stored in the application.
|
|
33
|
-
*
|
|
34
|
-
* TODO: (@jarrodek) I don't think this is needed anymore.
|
|
35
|
-
* We do not add basic auth header to requests in the engine anymore.
|
|
36
|
-
*/
|
|
37
|
-
export declare class AuthDataModel extends Base {
|
|
38
|
-
constructor();
|
|
39
|
-
put(value: IAuthorizationData): Promise<ContextChangeRecord<IAuthorizationData>>;
|
|
40
|
-
get(key: string): Promise<IAuthorizationData | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Queries for a datastore entry. Similar to `read()` but without using `id`
|
|
43
|
-
* but rather the URL.
|
|
44
|
-
*
|
|
45
|
-
* @param url The URL of the request
|
|
46
|
-
* @param authMethod The Authorization method to restore data for.
|
|
47
|
-
*/
|
|
48
|
-
query(url: string, authMethod: string): Promise<IAuthorizationData | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates or updates the auth data in the data store for given method and URl.
|
|
51
|
-
*
|
|
52
|
-
* @param url The URL of the request
|
|
53
|
-
* @param authMethod The Authorization method to restore data for.
|
|
54
|
-
* @param authData The authorization data to store. Schema depends on
|
|
55
|
-
* the `authMethod` property. From model standpoint schema does not matter.
|
|
56
|
-
*/
|
|
57
|
-
_update(url: string, authMethod: string, authData: IAuthorizationData): Promise<ContextChangeRecord<IAuthorizationData>>;
|
|
58
|
-
update(value: IAuthorizationData, url?: string, authMethod?: string): Promise<ContextChangeRecord<IAuthorizationData>>;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=AuthDataModel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthDataModel.d.ts","sourceRoot":"","sources":["../../../src/http-client/idb/AuthDataModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;EAYE;AACF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAgBhD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,IAAI;;IAOtB,GAAG,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAYhF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IA+BxE;;;;;;OAMG;IACG,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAoBrF;;;;;;;OAOG;IACG,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAiB/G,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;CAWtI"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { Base } from './Base.js';
|
|
2
|
-
/**
|
|
3
|
-
* Removes query parameters and the fragment part from the URL
|
|
4
|
-
*
|
|
5
|
-
* @param url The URL to process
|
|
6
|
-
* @return The canonical URL.
|
|
7
|
-
*/
|
|
8
|
-
export function normalizeUrl(url) {
|
|
9
|
-
if (!url) {
|
|
10
|
-
return '';
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
const u = new URL(url);
|
|
14
|
-
u.hash = '';
|
|
15
|
-
u.search = '';
|
|
16
|
-
let result = u.toString();
|
|
17
|
-
// polyfill library leaves '?#'
|
|
18
|
-
result = result.replace('?', '');
|
|
19
|
-
result = result.replace('#', '');
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
catch (e) {
|
|
23
|
-
return url;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Computes the database key for auth data
|
|
28
|
-
*
|
|
29
|
-
* @param method The Authorization method to restore data for.
|
|
30
|
-
* @param url The URL of the request
|
|
31
|
-
* @returns The datastore key for auth data
|
|
32
|
-
*/
|
|
33
|
-
export function computeKey(method, url) {
|
|
34
|
-
let path = `${method}/`;
|
|
35
|
-
if (url) {
|
|
36
|
-
path += encodeURIComponent(url);
|
|
37
|
-
}
|
|
38
|
-
return path;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Model for authorization data stored in the application.
|
|
42
|
-
*
|
|
43
|
-
* TODO: (@jarrodek) I don't think this is needed anymore.
|
|
44
|
-
* We do not add basic auth header to requests in the engine anymore.
|
|
45
|
-
*/
|
|
46
|
-
export class AuthDataModel extends Base {
|
|
47
|
-
constructor() {
|
|
48
|
-
super('AuthCache');
|
|
49
|
-
// this[queryHandler] = this[queryHandler].bind(this);
|
|
50
|
-
// this[updateHandler] = this[updateHandler].bind(this);
|
|
51
|
-
}
|
|
52
|
-
async put(value) {
|
|
53
|
-
const result = await super.put(value);
|
|
54
|
-
// Events.HttpClient.Model.AuthData.State.update(result, this.eventsTarget);
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
// override async putBulk(values: IAuthorizationData[]): Promise<ContextChangeRecord<IAuthorizationData>[]> {
|
|
58
|
-
// const result = await super.putBulk(values) as ContextChangeRecord<IAuthorizationData>[];
|
|
59
|
-
// result.forEach(record => Events.HttpClient.Model.AuthData.State.update(record, this.eventsTarget));
|
|
60
|
-
// return result;
|
|
61
|
-
// }
|
|
62
|
-
async get(key) {
|
|
63
|
-
return super.get(key);
|
|
64
|
-
}
|
|
65
|
-
// override async getBulk(keys: string[]): Promise<(IAuthorizationData | undefined)[]> {
|
|
66
|
-
// return super.getBulk(keys) as Promise<(IAuthorizationData | undefined)[]>;
|
|
67
|
-
// }
|
|
68
|
-
// override listen(node: EventTarget = window): void {
|
|
69
|
-
// super.listen(node);
|
|
70
|
-
// node.addEventListener(EventTypes.HttpClient.Model.AuthData.query, this[queryHandler] as EventListener);
|
|
71
|
-
// node.addEventListener(EventTypes.HttpClient.Model.AuthData.update, this[updateHandler] as EventListener);
|
|
72
|
-
// }
|
|
73
|
-
// override unlisten(node: EventTarget = window): void {
|
|
74
|
-
// super.unlisten(node);
|
|
75
|
-
// node.removeEventListener(EventTypes.HttpClient.Model.AuthData.query, this[queryHandler] as EventListener);
|
|
76
|
-
// node.removeEventListener(EventTypes.HttpClient.Model.AuthData.update, this[updateHandler] as EventListener);
|
|
77
|
-
// }
|
|
78
|
-
// [queryHandler](e: AuthDataQueryEvent): void {
|
|
79
|
-
// if (this._eventCancelled(e)) {
|
|
80
|
-
// return;
|
|
81
|
-
// }
|
|
82
|
-
// e.preventDefault();
|
|
83
|
-
// e.stopPropagation();
|
|
84
|
-
// const { url, method } = e;
|
|
85
|
-
// e.detail.result = this.query(url, method);
|
|
86
|
-
// }
|
|
87
|
-
/**
|
|
88
|
-
* Queries for a datastore entry. Similar to `read()` but without using `id`
|
|
89
|
-
* but rather the URL.
|
|
90
|
-
*
|
|
91
|
-
* @param url The URL of the request
|
|
92
|
-
* @param authMethod The Authorization method to restore data for.
|
|
93
|
-
*/
|
|
94
|
-
async query(url, authMethod) {
|
|
95
|
-
const parsedUrl = normalizeUrl(url);
|
|
96
|
-
const key = computeKey(authMethod, parsedUrl);
|
|
97
|
-
try {
|
|
98
|
-
return await this.get(key);
|
|
99
|
-
}
|
|
100
|
-
catch (cause) {
|
|
101
|
-
return undefined;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
// [updateHandler](e: AuthDataUpdateEvent): void {
|
|
105
|
-
// if (this._eventCancelled(e)) {
|
|
106
|
-
// return;
|
|
107
|
-
// }
|
|
108
|
-
// e.preventDefault();
|
|
109
|
-
// e.stopPropagation();
|
|
110
|
-
// const { url, method, authData } = e;
|
|
111
|
-
// e.detail.result = this._update(url, method, authData);
|
|
112
|
-
// }
|
|
113
|
-
/**
|
|
114
|
-
* Creates or updates the auth data in the data store for given method and URl.
|
|
115
|
-
*
|
|
116
|
-
* @param url The URL of the request
|
|
117
|
-
* @param authMethod The Authorization method to restore data for.
|
|
118
|
-
* @param authData The authorization data to store. Schema depends on
|
|
119
|
-
* the `authMethod` property. From model standpoint schema does not matter.
|
|
120
|
-
*/
|
|
121
|
-
async _update(url, authMethod, authData) {
|
|
122
|
-
const parsedUrl = normalizeUrl(url);
|
|
123
|
-
const key = computeKey(authMethod, parsedUrl);
|
|
124
|
-
let stored;
|
|
125
|
-
try {
|
|
126
|
-
stored = await this.get(key);
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
// ...
|
|
130
|
-
}
|
|
131
|
-
if (!stored) {
|
|
132
|
-
stored = { key };
|
|
133
|
-
}
|
|
134
|
-
const doc = { ...stored, ...authData, key };
|
|
135
|
-
const result = await this.put(doc);
|
|
136
|
-
return result;
|
|
137
|
-
}
|
|
138
|
-
async update(value, url, authMethod) {
|
|
139
|
-
if (!url) {
|
|
140
|
-
throw new Error(`The "url" argument is not set.`);
|
|
141
|
-
}
|
|
142
|
-
if (!authMethod) {
|
|
143
|
-
throw new Error(`The "authMethod" argument is not set.`);
|
|
144
|
-
}
|
|
145
|
-
const parsedUrl = normalizeUrl(url);
|
|
146
|
-
const key = computeKey(authMethod, parsedUrl);
|
|
147
|
-
return this.put({ ...value, key });
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
//# sourceMappingURL=AuthDataModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthDataModel.js","sourceRoot":"","sources":["../../../src/http-client/idb/AuthDataModel.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,CAAC;KACX;IACD,IAAI;QACF,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC;QACZ,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC;QACd,IAAI,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1B,+BAA+B;QAC/B,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACjC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC;KACf;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,MAAc,EAAE,GAAY;IACrD,IAAI,IAAI,GAAG,GAAG,MAAM,GAAG,CAAC;IACxB,IAAI,GAAG,EAAE;QACP,IAAI,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAC;KACjC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAO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,KAAK,CAAC,OAAO,CAAC,GAAW,EAAE,UAAkB,EAAE,QAA4B;QACzE,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,MAAM,GAAG,GAAG,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAC9C,IAAI,MAAsC,CAAC;QAC3C,IAAI;YACF,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC9B;QAAC,OAAO,KAAK,EAAE;YACd,MAAM;SACP;QACD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,GAAG,EAAE,GAAG,EAAE,CAAC;SAClB;QACD,MAAM,GAAG,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,EAAE,GAAG,EAAwB,CAAC;QAClE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAA4C,CAAC;QAC9E,OAAO,MAAM,CAAC;IAChB,CAAC;IAEQ,KAAK,CAAC,MAAM,CAAC,KAAyB,EAAE,GAAY,EAAE,UAAmB;QAChF,IAAI,CAAC,GAAG,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;QACD,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SAC1D;QACD,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACpC,MAAM,GAAG,GAAG,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;CACF","sourcesContent":["/**\n@license\nCopyright 2017 The Advanced REST client authors <arc@mulesoft.com>\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License. You may obtain a copy of\nthe License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n*/\nimport { ContextChangeRecord, IAuthorizationData } from '@api-client/core/build/browser.js';\nimport { Base } from './Base.js';\n\n/**\n * Removes query parameters and the fragment part from the URL\n * \n * @param url The URL to process\n * @return The canonical URL.\n */\nexport function normalizeUrl(url: string): string {\n if (!url) {\n return '';\n }\n try {\n const u = new URL(url);\n u.hash = '';\n u.search = '';\n let result = u.toString();\n // polyfill library leaves '?#'\n result = result.replace('?', '');\n result = result.replace('#', '');\n return result;\n } catch (e) {\n return url;\n }\n}\n\n/**\n * Computes the database key for auth data\n *\n * @param method The Authorization method to restore data for.\n * @param url The URL of the request\n * @returns The datastore key for auth data\n */\nexport function computeKey(method: string, url?: string): string {\n let path = `${method}/`;\n if (url) {\n path += encodeURIComponent(url);\n }\n return path;\n}\n\n/**\n * Model for authorization data stored in the application.\n * \n * TODO: (@jarrodek) I don't think this is needed anymore.\n * We do not add basic auth header to requests in the engine anymore.\n */\nexport class AuthDataModel extends Base {\n constructor() {\n super('AuthCache');\n // this[queryHandler] = this[queryHandler].bind(this);\n // this[updateHandler] = this[updateHandler].bind(this);\n }\n\n override async put(value: IAuthorizationData): Promise<ContextChangeRecord<IAuthorizationData>> {\n const result = await super.put(value) as ContextChangeRecord<IAuthorizationData>;\n // Events.HttpClient.Model.AuthData.State.update(result, this.eventsTarget);\n return result;\n }\n\n // override async putBulk(values: IAuthorizationData[]): Promise<ContextChangeRecord<IAuthorizationData>[]> {\n // const result = await super.putBulk(values) as ContextChangeRecord<IAuthorizationData>[];\n // result.forEach(record => Events.HttpClient.Model.AuthData.State.update(record, this.eventsTarget));\n // return result;\n // }\n\n override async get(key: string): Promise<IAuthorizationData | undefined> {\n return super.get(key) as Promise<IAuthorizationData | undefined>;\n }\n\n // override async getBulk(keys: string[]): Promise<(IAuthorizationData | undefined)[]> {\n // return super.getBulk(keys) as Promise<(IAuthorizationData | undefined)[]>;\n // }\n\n // override listen(node: EventTarget = window): void {\n // super.listen(node);\n // node.addEventListener(EventTypes.HttpClient.Model.AuthData.query, this[queryHandler] as EventListener);\n // node.addEventListener(EventTypes.HttpClient.Model.AuthData.update, this[updateHandler] as EventListener);\n // }\n\n // override unlisten(node: EventTarget = window): void {\n // super.unlisten(node);\n // node.removeEventListener(EventTypes.HttpClient.Model.AuthData.query, this[queryHandler] as EventListener);\n // node.removeEventListener(EventTypes.HttpClient.Model.AuthData.update, this[updateHandler] as EventListener);\n // }\n\n // [queryHandler](e: AuthDataQueryEvent): void {\n // if (this._eventCancelled(e)) {\n // return;\n // }\n // e.preventDefault();\n // e.stopPropagation();\n\n // const { url, method } = e;\n // e.detail.result = this.query(url, method);\n // }\n\n /**\n * Queries for a datastore entry. Similar to `read()` but without using `id`\n * but rather the URL.\n *\n * @param url The URL of the request\n * @param authMethod The Authorization method to restore data for.\n */\n async query(url: string, authMethod: string): Promise<IAuthorizationData | undefined> {\n const parsedUrl = normalizeUrl(url);\n const key = computeKey(authMethod, parsedUrl);\n try {\n return await this.get(key);\n } catch (cause) {\n return undefined;\n }\n }\n\n // [updateHandler](e: AuthDataUpdateEvent): void {\n // if (this._eventCancelled(e)) {\n // return;\n // }\n // e.preventDefault();\n // e.stopPropagation();\n // const { url, method, authData } = e;\n // e.detail.result = this._update(url, method, authData);\n // }\n\n /**\n * Creates or updates the auth data in the data store for given method and URl.\n *\n * @param url The URL of the request\n * @param authMethod The Authorization method to restore data for.\n * @param authData The authorization data to store. Schema depends on\n * the `authMethod` property. From model standpoint schema does not matter.\n */\n async _update(url: string, authMethod: string, authData: IAuthorizationData): Promise<ContextChangeRecord<IAuthorizationData>> {\n const parsedUrl = normalizeUrl(url);\n const key = computeKey(authMethod, parsedUrl);\n let stored: IAuthorizationData | undefined;\n try {\n stored = await this.get(key);\n } catch (error) {\n // ...\n }\n if (!stored) {\n stored = { key };\n }\n const doc = { ...stored, ...authData, key } as IAuthorizationData;\n const result = await this.put(doc) as ContextChangeRecord<IAuthorizationData>;\n return result;\n }\n\n override async update(value: IAuthorizationData, url?: string, authMethod?: string): Promise<ContextChangeRecord<IAuthorizationData>> {\n if (!url) {\n throw new Error(`The \"url\" argument is not set.`);\n }\n if (!authMethod) {\n throw new Error(`The \"authMethod\" argument is not set.`);\n }\n const parsedUrl = normalizeUrl(url);\n const key = computeKey(authMethod, parsedUrl);\n return this.put({ ...value, key });\n }\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright 2016 The Advanced REST client authors <arc@mulesoft.com>
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
4
|
-
use this file except in compliance with the License. You may obtain a copy of
|
|
5
|
-
the License at
|
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
9
|
-
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
10
|
-
License for the specific language governing permissions and limitations under
|
|
11
|
-
the License.
|
|
12
|
-
*/
|
|
13
|
-
import { IHostRule, HostRule, ContextChangeRecord, ContextDeleteRecord, ContextListOptions, ContextListResult } from '@api-client/core/build/browser.js';
|
|
14
|
-
import { Base, IGetOptions } from './Base.js';
|
|
15
|
-
/**
|
|
16
|
-
* Hosts table model for version >= 18.
|
|
17
|
-
*/
|
|
18
|
-
export declare class HostsModel extends Base {
|
|
19
|
-
constructor();
|
|
20
|
-
put(value: IHostRule | HostRule): Promise<ContextChangeRecord<IHostRule>>;
|
|
21
|
-
get(key: string, opts?: IGetOptions): Promise<IHostRule | undefined>;
|
|
22
|
-
undeleteBulk(records: ContextDeleteRecord[]): Promise<(ContextChangeRecord<IHostRule> | undefined)[]>;
|
|
23
|
-
list(opts?: ContextListOptions): Promise<ContextListResult<IHostRule>>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=HostsModel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HostsModel.d.ts","sourceRoot":"","sources":["../../../src/http-client/idb/HostsModel.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;EAWE;AACF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACzJ,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE9C;;GAEG;AACH,qBAAa,UAAW,SAAQ,IAAI;;IAKnB,GAAG,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAiCzE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IA0B7E,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;IAkB5F,IAAI,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;CAqBtF"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Base } from './Base.js';
|
|
2
|
-
/**
|
|
3
|
-
* Hosts table model for version >= 18.
|
|
4
|
-
*/
|
|
5
|
-
export class HostsModel extends Base {
|
|
6
|
-
constructor() {
|
|
7
|
-
super('Hosts');
|
|
8
|
-
}
|
|
9
|
-
async put(value) {
|
|
10
|
-
if (!value) {
|
|
11
|
-
throw new Error(`Expected a value when inserting a project.`);
|
|
12
|
-
}
|
|
13
|
-
let insert;
|
|
14
|
-
if (typeof value.toJSON === 'function') {
|
|
15
|
-
insert = value.toJSON();
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
insert = value;
|
|
19
|
-
}
|
|
20
|
-
const result = await super.put(insert);
|
|
21
|
-
// Events.HttpClient.Model.Host.State.update(result, this.eventsTarget);
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
// override async putBulk(values: (IHostRule | HostRule)[]): Promise<ContextChangeRecord<IHostRule>[]> {
|
|
25
|
-
// if (!Array.isArray(values)) {
|
|
26
|
-
// throw new Error(`Expected a value when inserting projects.`);
|
|
27
|
-
// }
|
|
28
|
-
// const inserts: IHostRule[] = [];
|
|
29
|
-
// values.forEach((i) => {
|
|
30
|
-
// if (typeof (i as HostRule).toJSON === 'function') {
|
|
31
|
-
// inserts.push((i as HostRule).toJSON());
|
|
32
|
-
// } else {
|
|
33
|
-
// inserts.push(i as IHostRule);
|
|
34
|
-
// }
|
|
35
|
-
// });
|
|
36
|
-
// const result = await super.putBulk(inserts) as ContextChangeRecord<IHostRule>[];
|
|
37
|
-
// result.forEach(record => Events.HttpClient.Model.Host.State.update(record, this.eventsTarget));
|
|
38
|
-
// return result;
|
|
39
|
-
// }
|
|
40
|
-
async get(key, opts) {
|
|
41
|
-
return super.get(key, opts);
|
|
42
|
-
}
|
|
43
|
-
// override async getBulk(keys: string[], opts?: IGetOptions): Promise<(IHostRule | undefined)[]> {
|
|
44
|
-
// return super.getBulk(keys, opts) as Promise<(IHostRule | undefined)[]>;
|
|
45
|
-
// }
|
|
46
|
-
// override async delete(key: string): Promise<ContextDeleteRecord | undefined> {
|
|
47
|
-
// const result = await super.delete(key);
|
|
48
|
-
// if (result) {
|
|
49
|
-
// Events.HttpClient.Model.Host.State.delete(result, this.eventsTarget);
|
|
50
|
-
// }
|
|
51
|
-
// return result;
|
|
52
|
-
// }
|
|
53
|
-
// override async deleteBulk(keys: string[]): Promise<(ContextDeleteRecord | undefined)[]> {
|
|
54
|
-
// const result = await super.deleteBulk(keys);
|
|
55
|
-
// result.forEach((record) => {
|
|
56
|
-
// if (record) {
|
|
57
|
-
// Events.HttpClient.Model.Host.State.delete(record, this.eventsTarget);
|
|
58
|
-
// }
|
|
59
|
-
// });
|
|
60
|
-
// return result;
|
|
61
|
-
// }
|
|
62
|
-
async undeleteBulk(records) {
|
|
63
|
-
if (!records) {
|
|
64
|
-
throw new Error(`The "records" argument is missing.`);
|
|
65
|
-
}
|
|
66
|
-
if (!Array.isArray(records)) {
|
|
67
|
-
throw new Error(`The "records" argument expected to be an array.`);
|
|
68
|
-
}
|
|
69
|
-
const ids = this._readDeletedRecordKeys(records);
|
|
70
|
-
const result = await super.restoreBulk(ids);
|
|
71
|
-
// result.forEach((record) => {
|
|
72
|
-
// if (record) {
|
|
73
|
-
// Events.HttpClient.Model.Host.State.update(record, this.eventsTarget)
|
|
74
|
-
// }
|
|
75
|
-
// });
|
|
76
|
-
return result;
|
|
77
|
-
}
|
|
78
|
-
async list(opts) {
|
|
79
|
-
return super.list(opts);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=HostsModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HostsModel.js","sourceRoot":"","sources":["../../../src/http-client/idb/HostsModel.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,IAAI,EAAe,MAAM,WAAW,CAAC;AAE9C;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,IAAI;IAClC;QACE,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAEQ,KAAK,CAAC,GAAG,CAAC,KAA2B;QAC5C,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SAC/D;QACD,IAAI,MAAiB,CAAC;QACtB,IAAI,OAAQ,KAAkB,CAAC,MAAM,KAAK,UAAU,EAAE;YACpD,MAAM,GAAI,KAAkB,CAAC,MAAM,EAAE,CAAC;SACvC;aAAM;YACL,MAAM,GAAG,KAAkB,CAAC;SAC7B;QACD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,CAAC,IAAI,CAAC,IAAyB;QAC3C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAA0C,CAAC;IACnE,CAAC;CAmBF","sourcesContent":["/* eslint-disable class-methods-use-this */\n/* eslint-disable arrow-body-style */\n/* eslint-disable no-param-reassign */\n/**\nCopyright 2016 The Advanced REST client authors <arc@mulesoft.com>\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License. You may obtain a copy of\nthe License at\nhttp://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n*/\nimport { IHostRule, HostRule, ContextChangeRecord, ContextDeleteRecord, ContextListOptions, ContextListResult } from '@api-client/core/build/browser.js';\nimport { Base, IGetOptions } from './Base.js';\n\n/**\n * Hosts table model for version >= 18.\n */\nexport class HostsModel extends Base {\n constructor() {\n super('Hosts');\n }\n\n override async put(value: IHostRule | HostRule): Promise<ContextChangeRecord<IHostRule>> {\n if (!value) {\n throw new Error(`Expected a value when inserting a project.`);\n }\n let insert: IHostRule;\n if (typeof (value as HostRule).toJSON === 'function') {\n insert = (value as HostRule).toJSON();\n } else {\n insert = value as IHostRule;\n }\n const result = await super.put(insert) as ContextChangeRecord<IHostRule>;\n // Events.HttpClient.Model.Host.State.update(result, this.eventsTarget);\n return result;\n }\n\n // override async putBulk(values: (IHostRule | HostRule)[]): Promise<ContextChangeRecord<IHostRule>[]> {\n // if (!Array.isArray(values)) {\n // throw new Error(`Expected a value when inserting projects.`);\n // }\n // const inserts: IHostRule[] = [];\n // values.forEach((i) => {\n // if (typeof (i as HostRule).toJSON === 'function') {\n // inserts.push((i as HostRule).toJSON());\n // } else {\n // inserts.push(i as IHostRule);\n // }\n // });\n\n // const result = await super.putBulk(inserts) as ContextChangeRecord<IHostRule>[];\n // result.forEach(record => Events.HttpClient.Model.Host.State.update(record, this.eventsTarget));\n // return result;\n // }\n\n override async get(key: string, opts?: IGetOptions): Promise<IHostRule | undefined> {\n return super.get(key, opts) as Promise<IHostRule | undefined>;\n }\n\n // override async getBulk(keys: string[], opts?: IGetOptions): Promise<(IHostRule | undefined)[]> {\n // return super.getBulk(keys, opts) as Promise<(IHostRule | undefined)[]>;\n // }\n\n // override async delete(key: string): Promise<ContextDeleteRecord | undefined> {\n // const result = await super.delete(key);\n // if (result) {\n // Events.HttpClient.Model.Host.State.delete(result, this.eventsTarget);\n // }\n // return result;\n // }\n\n // override async deleteBulk(keys: string[]): Promise<(ContextDeleteRecord | undefined)[]> {\n // const result = await super.deleteBulk(keys);\n // result.forEach((record) => {\n // if (record) {\n // Events.HttpClient.Model.Host.State.delete(record, this.eventsTarget);\n // }\n // });\n // return result;\n // }\n\n async undeleteBulk(records: ContextDeleteRecord[]): Promise<(ContextChangeRecord<IHostRule> | undefined)[]> {\n if (!records) {\n throw new Error(`The \"records\" argument is missing.`);\n }\n if (!Array.isArray(records)) {\n throw new Error(`The \"records\" argument expected to be an array.`);\n }\n\n const ids = this._readDeletedRecordKeys(records);\n const result = await super.restoreBulk(ids) as (ContextChangeRecord<IHostRule> | undefined)[];\n // result.forEach((record) => {\n // if (record) {\n // Events.HttpClient.Model.Host.State.update(record, this.eventsTarget)\n // }\n // });\n return result;\n }\n\n override async list(opts?: ContextListOptions): Promise<ContextListResult<IHostRule>> {\n return super.list(opts) as Promise<ContextListResult<IHostRule>>;\n }\n\n // override listen(node: EventTarget = window): void {\n // super.listen(node);\n // node.addEventListener(EventTypes.HttpClient.Model.Host.update, this._updateHandler as EventListener);\n // node.addEventListener(EventTypes.HttpClient.Model.Host.updateBulk, this._updateBulkHandler as EventListener);\n // node.addEventListener(EventTypes.HttpClient.Model.Host.delete, this._deleteHandler as EventListener);\n // node.addEventListener(EventTypes.HttpClient.Model.Host.deleteBulk, this._deleteBulkHandler as EventListener);\n // node.addEventListener(EventTypes.HttpClient.Model.Host.list, this._listHandler as EventListener);\n // }\n\n // override unlisten(node: EventTarget = window): void {\n // super.unlisten(node);\n // node.removeEventListener(EventTypes.HttpClient.Model.Host.update, this._updateHandler as EventListener);\n // node.removeEventListener(EventTypes.HttpClient.Model.Host.updateBulk, this._updateBulkHandler as EventListener);\n // node.removeEventListener(EventTypes.HttpClient.Model.Host.delete, this._deleteHandler as EventListener);\n // node.removeEventListener(EventTypes.HttpClient.Model.Host.deleteBulk, this._deleteBulkHandler as EventListener);\n // node.removeEventListener(EventTypes.HttpClient.Model.Host.list, this._listHandler as EventListener);\n // }\n}\n"]}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/// <reference types="pouchdb-find" />
|
|
2
|
-
/// <reference types="pouchdb-core" />
|
|
3
|
-
/// <reference types="pouchdb-mapreduce" />
|
|
4
|
-
/// <reference types="pouchdb-replication" />
|
|
5
|
-
import { LegacyMock, ArcDataMockInit, RestApiIndexInit, VariableInit, ARCProject, ARCAuthData, ARCCookie, ARCHostRule, ARCUrlHistory, ARCEnvironment, ARCVariable, ARCHistoryRequest, ARCSavedRequest, ARCRestApiIndex, ARCRestApi, ARCCertificateIndex, ARCRequestCertificate, ProjectCreateInit, RequestHistoryInit, RequestSavedInit, CertificateCreateInit, Entity } from '@api-client/core/build/legacy.js';
|
|
6
|
-
import 'pouchdb/dist/pouchdb.js';
|
|
7
|
-
export interface InsertSavedResult {
|
|
8
|
-
projects: ARCProject[];
|
|
9
|
-
requests: ARCSavedRequest[];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated This relates to the data structure for ARC that is being deprecated. The full migration should finish in 2024.
|
|
13
|
-
*/
|
|
14
|
-
export declare class LegacyMockedStore {
|
|
15
|
-
mock: LegacyMock;
|
|
16
|
-
constructor(init?: ArcDataMockInit);
|
|
17
|
-
/**
|
|
18
|
-
* @param name The data store name to create.
|
|
19
|
-
*/
|
|
20
|
-
db(name: string): PouchDB.Database;
|
|
21
|
-
/**
|
|
22
|
-
* Creates `_id` on the original insert object if it wasn't created before and
|
|
23
|
-
* updates `_rev` property.
|
|
24
|
-
*
|
|
25
|
-
* @param insertResponse PouchDB build insert response
|
|
26
|
-
* @param insertedData The original array of inserted objects.
|
|
27
|
-
* @returns This changes contents of te array items which is passed by reference.
|
|
28
|
-
*/
|
|
29
|
-
updateRevsAndIds(insertResponse: (PouchDB.Core.Response | PouchDB.Core.Error)[], insertedData: Entity[]): unknown[];
|
|
30
|
-
/**
|
|
31
|
-
* Generates saved requests data and inserts them into the data store if they
|
|
32
|
-
* are missing.
|
|
33
|
-
*
|
|
34
|
-
* @returns Resolved promise when data are inserted into the datastore. The promise resolves to the generated data object
|
|
35
|
-
*/
|
|
36
|
-
insertSaved(requestsSize?: number, projectsSize?: number, requestsInit?: RequestSavedInit, projectInit?: ProjectCreateInit): Promise<InsertSavedResult>;
|
|
37
|
-
/**
|
|
38
|
-
* Generates and saves history data to the data store.
|
|
39
|
-
*
|
|
40
|
-
* @param size The number of requests to generate. Default to 25.
|
|
41
|
-
* @param init History init options.
|
|
42
|
-
* @returns A promise resolved to the generated history list.
|
|
43
|
-
*/
|
|
44
|
-
insertHistory(size?: number, init?: RequestHistoryInit): Promise<ARCHistoryRequest[]>;
|
|
45
|
-
/**
|
|
46
|
-
* Generates and saves a list of project objects.
|
|
47
|
-
*
|
|
48
|
-
* @param size Number of projects to insert. Default to 5.
|
|
49
|
-
*/
|
|
50
|
-
insertProjects(size?: number, init?: ProjectCreateInit): Promise<ARCProject[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Inserts saved data only if the store is empty.
|
|
53
|
-
* @param requestsSize Default 25
|
|
54
|
-
* @param projectsSize Default 5
|
|
55
|
-
* @returns A resolved promise when data are inserted into the datastore.
|
|
56
|
-
*/
|
|
57
|
-
insertSavedIfNotExists(requestsSize?: number, projectsSize?: number, requestsInit?: RequestSavedInit, projectInit?: ProjectCreateInit): Promise<InsertSavedResult>;
|
|
58
|
-
/**
|
|
59
|
-
* Inserts history data if the store is empty.
|
|
60
|
-
*
|
|
61
|
-
* @param size The number of requests to generate. Default to 25.
|
|
62
|
-
* @param init History init options.
|
|
63
|
-
* @returns Resolved promise when data are inserted into the datastore.
|
|
64
|
-
*/
|
|
65
|
-
insertHistoryIfNotExists(size?: number, init?: RequestHistoryInit): Promise<ARCHistoryRequest[]>;
|
|
66
|
-
/**
|
|
67
|
-
* Destroys saved and projects database.
|
|
68
|
-
* @returns Resolved promise when the data are cleared.
|
|
69
|
-
*/
|
|
70
|
-
destroySaved(): Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Destroys history database.
|
|
73
|
-
* @return Resolved promise when the data are cleared.
|
|
74
|
-
*/
|
|
75
|
-
destroyHistory(): Promise<void>;
|
|
76
|
-
/**
|
|
77
|
-
* Destroys legacy projects database.
|
|
78
|
-
* @returns Resolved promise when the data are cleared.
|
|
79
|
-
*/
|
|
80
|
-
clearLegacyProjects(): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Generates and saves websocket data to the data store.
|
|
83
|
-
*
|
|
84
|
-
* @param size The number of websocket data to insert.
|
|
85
|
-
*/
|
|
86
|
-
insertWebsockets(size?: number): Promise<ARCUrlHistory[]>;
|
|
87
|
-
/**
|
|
88
|
-
* Generates and saves url history data to the data store.
|
|
89
|
-
*
|
|
90
|
-
* @param size The number of URL history data to insert.
|
|
91
|
-
*/
|
|
92
|
-
insertUrlHistory(size?: number): Promise<ARCUrlHistory[]>;
|
|
93
|
-
/**
|
|
94
|
-
* Destroys websockets URL history database.
|
|
95
|
-
* @return Resolved promise when the data are cleared.
|
|
96
|
-
*/
|
|
97
|
-
destroyWebsockets(): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Destroys URL history database.
|
|
100
|
-
* @return Resolved promise when the data are cleared.
|
|
101
|
-
*/
|
|
102
|
-
destroyUrlHistory(): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Generates and saves variables data to the data store.
|
|
105
|
-
*
|
|
106
|
-
* @param size The number of variables to generate.
|
|
107
|
-
* @returns Promise resolves to inserted variables.
|
|
108
|
-
*/
|
|
109
|
-
insertVariables(size?: number, init?: VariableInit): Promise<ARCVariable[]>;
|
|
110
|
-
/**
|
|
111
|
-
* Generates and saves variables data to the data store and then environments generated from the variables.
|
|
112
|
-
*
|
|
113
|
-
* @param size The number of variables to generate.
|
|
114
|
-
* @returns Promise resolves to inserted variables.
|
|
115
|
-
*/
|
|
116
|
-
insertVariablesAndEnvironments(size?: number, init?: VariableInit): Promise<ARCVariable[]>;
|
|
117
|
-
/**
|
|
118
|
-
* Destroys variables and environments database.
|
|
119
|
-
* @return Resolved promise when the data are cleared.
|
|
120
|
-
*/
|
|
121
|
-
destroyVariables(): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* Generates and saves cookies data to the data store.
|
|
124
|
-
*
|
|
125
|
-
* @param size Number of cookies to insert. Default to 25.
|
|
126
|
-
*/
|
|
127
|
-
insertCookies(size?: number): Promise<ARCCookie[]>;
|
|
128
|
-
/**
|
|
129
|
-
* Destroys cookies database.
|
|
130
|
-
* @return Resolved promise when the data are cleared.
|
|
131
|
-
*/
|
|
132
|
-
destroyCookies(): Promise<void>;
|
|
133
|
-
/**
|
|
134
|
-
* Generates and saves basic auth data to the data store.
|
|
135
|
-
*
|
|
136
|
-
* @param size Number of auth data to insert. Default to 25.
|
|
137
|
-
* @returns Promise resolved to created auth data.
|
|
138
|
-
*/
|
|
139
|
-
insertBasicAuth(size?: number): Promise<ARCAuthData[]>;
|
|
140
|
-
/**
|
|
141
|
-
* Destroys auth data database.
|
|
142
|
-
* @return Resolved promise when the data are cleared.
|
|
143
|
-
*/
|
|
144
|
-
destroyBasicAuth(): Promise<void>;
|
|
145
|
-
/**
|
|
146
|
-
* Generates and saves host rules data to the data store.
|
|
147
|
-
*
|
|
148
|
-
* @param size Number of rules to insert. Default to 25.
|
|
149
|
-
* @return {Promise<PouchDB.Core.ExistingDocument<ARCHostRule>[]>}
|
|
150
|
-
*/
|
|
151
|
-
insertHostRules(size?: number): Promise<ARCHostRule[]>;
|
|
152
|
-
/**
|
|
153
|
-
* Destroys hosts data database.
|
|
154
|
-
* @return Resolved promise when the data are cleared.
|
|
155
|
-
*/
|
|
156
|
-
destroyHostRules(): Promise<void>;
|
|
157
|
-
insertApis(size?: number, init?: RestApiIndexInit): Promise<(ARCRestApi[] | ARCRestApiIndex[])[]>;
|
|
158
|
-
/**
|
|
159
|
-
* Destroys api-index data database.
|
|
160
|
-
* @return Resolved promise when the data are cleared.
|
|
161
|
-
*/
|
|
162
|
-
destroyApiIndexes(): Promise<void>;
|
|
163
|
-
/**
|
|
164
|
-
* Destroys api-data database.
|
|
165
|
-
* @return Resolved promise when the data are cleared.
|
|
166
|
-
*/
|
|
167
|
-
destroyApiData(): Promise<void>;
|
|
168
|
-
destroyApisAll(): Promise<void>;
|
|
169
|
-
/**
|
|
170
|
-
* @param size The number of certificates to generate.
|
|
171
|
-
* @param opts Create options
|
|
172
|
-
*/
|
|
173
|
-
insertCertificates(size?: number, opts?: CertificateCreateInit): Promise<ARCCertificateIndex[]>;
|
|
174
|
-
destroyClientCertificates(): Promise<void>;
|
|
175
|
-
/**
|
|
176
|
-
* Destroys all databases.
|
|
177
|
-
* @return Resolved promise when the data are cleared.
|
|
178
|
-
*/
|
|
179
|
-
destroyAll(): Promise<void>;
|
|
180
|
-
/**
|
|
181
|
-
* Deeply clones an object.
|
|
182
|
-
* @param {any[]|Date|object} obj Object to be cloned
|
|
183
|
-
* @return {any[]|Date|object} Copied object
|
|
184
|
-
*/
|
|
185
|
-
clone<T>(obj: T): T;
|
|
186
|
-
/**
|
|
187
|
-
* Reads all data from a data store.
|
|
188
|
-
* @param name Name of the data store to read from. Without `_pouch_` prefix
|
|
189
|
-
* @returns Promise resolved to all read docs.
|
|
190
|
-
*/
|
|
191
|
-
getDatastoreData(name: string): Promise<unknown[]>;
|
|
192
|
-
getDatastoreRequestData(): Promise<ARCSavedRequest[]>;
|
|
193
|
-
getDatastoreProjectsData(): Promise<ARCProject[]>;
|
|
194
|
-
getDatastoreHistoryData(): Promise<ARCHistoryRequest[]>;
|
|
195
|
-
getDatastoreVariablesData(): Promise<ARCVariable[]>;
|
|
196
|
-
getDatastoreEnvironmentsData(): Promise<ARCEnvironment[]>;
|
|
197
|
-
getDatastoreCookiesData(): Promise<ARCCookie[]>;
|
|
198
|
-
getDatastoreWebsocketsData(): Promise<ARCUrlHistory[]>;
|
|
199
|
-
getDatastoreUrlsData(): Promise<ARCUrlHistory[]>;
|
|
200
|
-
getDatastoreAuthData(): Promise<ARCAuthData[]>;
|
|
201
|
-
getDatastoreHostRulesData(): Promise<ARCHostRule[]>;
|
|
202
|
-
getDatastoreApiIndexData(): Promise<ARCRestApiIndex[]>;
|
|
203
|
-
getDatastoreHostApiData(): Promise<ARCRestApi[]>;
|
|
204
|
-
getDatastoreClientCertificates(): Promise<(ARCCertificateIndex[] | ARCRequestCertificate[])[]>;
|
|
205
|
-
/**
|
|
206
|
-
* Updates an object in an data store.
|
|
207
|
-
*
|
|
208
|
-
* @param dbName Name of the data store.
|
|
209
|
-
* @param obj The object to be stored.
|
|
210
|
-
* @returns A promise resolved to insert result.
|
|
211
|
-
*/
|
|
212
|
-
updateObject(dbName: string, obj: any): Promise<PouchDB.Core.Response>;
|
|
213
|
-
}
|
|
214
|
-
//# sourceMappingURL=LegacyMockedStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LegacyMockedStore.d.ts","sourceRoot":"","sources":["../../../src/http-client/idb/LegacyMockedStore.ts"],"names":[],"mappings":";;;;AAGA,OAAO,EACL,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EACpF,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EACrF,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,qBAAqB,EACxF,iBAA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