@umbraco/playwright-testhelpers 2.0.0-beta.2 → 2.0.0-beta.3

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.
@@ -15,6 +15,7 @@ import { PackageApiHelper } from "./PackageApiHelper";
15
15
  import { ScriptApiHelper } from "./ScriptApiHelper";
16
16
  import { PartialViewApiHelper } from "./PartialViewApiHelper";
17
17
  import { StylesheetApiHelper } from "./StylesheetApiHelper";
18
+ import { LogViewerApiHelper } from "./LogViewerApiHelper";
18
19
  export declare class ApiHelpers {
19
20
  baseUrl: string;
20
21
  page: Page;
@@ -34,8 +35,14 @@ export declare class ApiHelpers {
34
35
  script: ScriptApiHelper;
35
36
  partialView: PartialViewApiHelper;
36
37
  stylesheet: StylesheetApiHelper;
38
+ logViewer: LogViewerApiHelper;
37
39
  constructor(page: Page);
38
40
  getBearerToken(): Promise<string>;
41
+ getCookie(): Promise<string>;
42
+ getHeaders(): Promise<{
43
+ Authorization: string;
44
+ Cookie: string;
45
+ }>;
39
46
  get(url: string, params?: {
40
47
  [key: string]: string | number | boolean;
41
48
  }): Promise<import("playwright-core").APIResponse>;
@@ -19,6 +19,7 @@ const ScriptApiHelper_1 = require("./ScriptApiHelper");
19
19
  const PartialViewApiHelper_1 = require("./PartialViewApiHelper");
20
20
  const StylesheetApiHelper_1 = require("./StylesheetApiHelper");
21
21
  const fs = require("fs");
22
+ const LogViewerApiHelper_1 = require("./LogViewerApiHelper");
22
23
  class ApiHelpers {
23
24
  baseUrl = umbraco_config_1.umbracoConfig.environment.baseUrl;
24
25
  page;
@@ -38,6 +39,7 @@ class ApiHelpers {
38
39
  script;
39
40
  partialView;
40
41
  stylesheet;
42
+ logViewer;
41
43
  constructor(page) {
42
44
  this.page = page;
43
45
  this.alias = new AliasHelper_1.AliasHelper();
@@ -56,17 +58,30 @@ class ApiHelpers {
56
58
  this.script = new ScriptApiHelper_1.ScriptApiHelper(this);
57
59
  this.partialView = new PartialViewApiHelper_1.PartialViewApiHelper(this);
58
60
  this.stylesheet = new StylesheetApiHelper_1.StylesheetApiHelper(this);
61
+ this.logViewer = new LogViewerApiHelper_1.LogViewerApiHelper(this);
59
62
  }
60
63
  async getBearerToken() {
61
64
  let someStorage = await this.page.context().storageState();
62
65
  let someObject = JSON.parse(someStorage.origins[0].localStorage[0].value);
63
66
  return 'Bearer ' + someObject.access_token;
64
67
  }
68
+ async getCookie() {
69
+ let someStorage = await this.page.context().storageState();
70
+ let cookieString = "";
71
+ for (let cookie of someStorage.cookies) {
72
+ cookieString += cookie.name + '=' + cookie.value + ';';
73
+ }
74
+ return cookieString;
75
+ }
76
+ async getHeaders() {
77
+ return {
78
+ 'Authorization': await this.getBearerToken(),
79
+ 'Cookie': await this.getCookie(),
80
+ };
81
+ }
65
82
  async get(url, params) {
66
83
  const options = {
67
- headers: {
68
- 'Authorization': await this.getBearerToken(),
69
- },
84
+ headers: await this.getHeaders(),
70
85
  params: params,
71
86
  ignoreHTTPSErrors: true
72
87
  };
@@ -80,9 +95,7 @@ class ApiHelpers {
80
95
  }
81
96
  async post(url, data) {
82
97
  const options = {
83
- headers: {
84
- 'Authorization': await this.getBearerToken(),
85
- },
98
+ headers: await this.getHeaders(),
86
99
  data: data,
87
100
  ignoreHTTPSErrors: true
88
101
  };
@@ -90,9 +103,7 @@ class ApiHelpers {
90
103
  }
91
104
  async delete(url, data) {
92
105
  const options = {
93
- headers: {
94
- 'Authorization': await this.getBearerToken(),
95
- },
106
+ headers: await this.getHeaders(),
96
107
  data: data,
97
108
  ignoreHTTPSErrors: true
98
109
  };
@@ -100,9 +111,7 @@ class ApiHelpers {
100
111
  }
101
112
  async put(url, data) {
102
113
  const options = {
103
- headers: {
104
- 'Authorization': await this.getBearerToken(),
105
- },
114
+ headers: await this.getHeaders(),
106
115
  data: data,
107
116
  ignoreHTTPSErrors: true
108
117
  };
@@ -110,9 +119,7 @@ class ApiHelpers {
110
119
  }
111
120
  async postMultiPartForm(url, id, name, mimeType, filePath) {
112
121
  const options = {
113
- headers: {
114
- 'Authorization': await this.getBearerToken(),
115
- },
122
+ headers: await this.getHeaders(),
116
123
  multipart: {
117
124
  Id: id,
118
125
  File: {
@@ -1 +1 @@
1
- {"version":3,"file":"ApiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/ApiHelpers.ts"],"names":[],"mappings":";;;AACA,yDAAmD;AACnD,iDAA4C;AAC5C,qEAAgE;AAChE,2DAAuD;AACvD,+DAA0D;AAC1D,iDAAqD;AACrD,6DAAwD;AACxD,2DAAsD;AACtD,+CAA0C;AAC1C,2DAAsD;AACtD,mDAA8C;AAC9C,qEAAgE;AAChE,2DAAsD;AACtD,yDAAoD;AACpD,uDAAkD;AAClD,iEAA4D;AAC5D,+DAA0D;AAC1D,yBAAyB;AAEzB,MAAa,UAAU;IACrB,OAAO,GAAW,8BAAa,CAAC,WAAW,CAAC,OAAO,CAAC;IACpD,IAAI,CAAO;IACX,KAAK,CAAc;IACnB,MAAM,CAAe;IACrB,SAAS,CAAyB;IAClC,QAAQ,CAAqB;IAC7B,UAAU,CAAsB;IAChC,YAAY,CAAwB;IACpC,SAAS,CAAqB;IAC9B,QAAQ,CAAoB;IAC5B,QAAQ,CAAoB;IAC5B,IAAI,CAAgB;IACpB,aAAa,CAAyB;IACtC,QAAQ,CAAoB;IAC5B,OAAO,CAAmB;IAC1B,MAAM,CAAkB;IACxB,WAAW,CAAuB;IAClC,UAAU,CAAsB;IAEhC,YAAY,IAAU;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,yBAAW,EAAE,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,+CAAsB,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,IAAI,sCAAkB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,C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iB,EAAE,IAAI;SACxB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,GAAW,EAAE,EAAE,EAAE,IAAY,EAAE,QAAgB,EAAE,QAAQ;QAC/E,MAAM,OAAO,GAAG;YACd,OAAO,EAAE;gBACP,eAAe,EAAE,MAAM,IAAI,CAAC,cAAc,EAAE;aAC7C;YACD,SAAS,EAAE;gBACT,EAAE,EAAE,EAAE;gBACN,IAAI,EAAE;oBACJ,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,QAAQ;oBAClB,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC;iBAClC;aACF;YACD,iBAAiB,EAAE,IAAI;SACxB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAnHD,gCAmHC","sourcesContent":["import {Page} from \"@playwright/test\"\nimport {umbracoConfig} from \"../../umbraco.config\";\nimport {ReportHelper} from \"./ReportHelper\";\nimport {TelemetryDataApiHelper} from \"./TelemetryDataApiHelper\";\nimport {LanguagesApiHelper} from \"./LanguageApiHelper\";\nimport {DictionaryApiHelper} from \"./DictionaryApiHelper\";\nimport {RelationTypeApiHelper} from \"./RelationType\";\nimport {UserGroupApiHelper} from \"./UserGroupApiHelper\";\nimport {TemplateApiHelper} from \"./TemplateApiHelper\";\nimport {AliasHelper} from \"./AliasHelper\";\nimport {DataTypeApiHelper} from \"./DataTypeApiHelper\";\nimport {UserApiHelper} from \"./UserApiHelper\";\nimport {TemporaryFileApiHelper} from \"./TemporaryFileApiHelper\";\nimport {DocumentApiHelper} from \"./DocumentApiHelper\";\nimport {PackageApiHelper} from \"./PackageApiHelper\";\nimport {ScriptApiHelper} from \"./ScriptApiHelper\";\nimport {PartialViewApiHelper} from \"./PartialViewApiHelper\";\nimport {StylesheetApiHelper} from \"./StylesheetApiHelper\";\nimport * as fs from \"fs\";\n\nexport class ApiHelpers {\n baseUrl: string = umbracoConfig.environment.baseUrl;\n page: Page;\n alias: AliasHelper;\n report: ReportHelper;\n telemetry: TelemetryDataApiHelper;\n language: LanguagesApiHelper;\n dictionary: DictionaryApiHelper;\n relationType: RelationTypeApiHelper;\n userGroup: UserGroupApiHelper;\n template: TemplateApiHelper;\n dataType: DataTypeApiHelper;\n user: UserApiHelper;\n temporaryFile: TemporaryFileApiHelper;\n document: DocumentApiHelper;\n package: PackageApiHelper;\n script: ScriptApiHelper;\n partialView: PartialViewApiHelper;\n stylesheet: StylesheetApiHelper;\n\n constructor(page: Page) {\n this.page = page;\n this.alias = new AliasHelper();\n this.report = new ReportHelper(this);\n this.telemetry = new TelemetryDataApiHelper(this);\n this.language = new LanguagesApiHelper(this);\n this.dictionary = new DictionaryApiHelper(this);\n this.relationType = new RelationTypeApiHelper(this);\n this.userGroup = new UserGroupApiHelper(this);\n this.template = new TemplateApiHelper(this);\n this.dataType = new DataTypeApiHelper(this);\n this.user = new UserApiHelper(this);\n this.temporaryFile = new TemporaryFileApiHelper(this);\n this.document = new DocumentApiHelper(this);\n this.package = new PackageApiHelper(this);\n this.script = new ScriptApiHelper(this);\n this.partialView = new PartialViewApiHelper(this);\n this.stylesheet = new StylesheetApiHelper(this);\n }\n\n async getBearerToken() {\n let someStorage = await this.page.context().storageState();\n let someObject = JSON.parse(someStorage.origins[0].localStorage[0].value);\n return 'Bearer ' + someObject.access_token;\n }\n\n async get(url: string, params?: { [key: string]: string | number | boolean; }) {\n const options = {\n headers: {\n 'Authorization': await this.getBearerToken(),\n },\n params: params,\n ignoreHTTPSErrors: true\n }\n return this.page.request.get(url, options);\n }\n\n async saveCodeFile(codeFile) {\n if (codeFile == null) {\n return;\n }\n\n return await this.post(umbracoConfig.environment.baseUrl + '/umbraco/backoffice/UmbracoApi/CodeFile/PostSave', codeFile);\n }\n\n async post(url: string, data?: object) {\n const options = {\n headers: {\n 'Authorization': await this.getBearerToken(),\n },\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n\n async delete(url: string, data?: object) {\n const options = {\n headers: {\n 'Authorization': await this.getBearerToken(),\n },\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.delete(url, options);\n }\n\n async put(url: string, data?: object) {\n const options = {\n headers: {\n 'Authorization': await this.getBearerToken(),\n },\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.put(url, options);\n }\n\n async postMultiPartForm(url: string, id, name: string, mimeType: string, filePath) {\n const options = {\n headers: {\n 'Authorization': await this.getBearerToken(),\n },\n multipart: {\n Id: id,\n File: {\n name: name,\n mimeType: mimeType,\n buffer: fs.readFileSync(filePath)\n }\n },\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n}"]}
1
+ {"version":3,"file":"ApiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/ApiHelpers.ts"],"names":[],"mappings":";;;AACA,yDAAmD;AACnD,iDAA4C;AAC5C,qEAAgE;AAChE,2DAAuD;AACvD,+DAA0D;AAC1D,iDAAqD;AACrD,6DAAwD;AACxD,2DAAsD;AACtD,+CAA0C;AAC1C,2DAAsD;AACtD,mDAA8C;AAC9C,qEAAgE;AAChE,2DAAsD;AACtD,yDAAoD;AACpD,uDAAkD;AAClD,iEAA4D;AAC5D,+DAA0D;AAC1D,yBAAyB;AACzB,6DAAwD;AAExD,MAAa,UAAU;IACrB,OAAO,GAAW,8BAAa,CAAC,WAAW,CAAC,OAAO,CAAC;IACpD,IAAI,CAAO;IACX,KAAK,CAAc;IACnB,MAAM,CAAe;IACrB,SAAS,CAAyB;IAClC,QAAQ,CAAqB;IAC7B,UAAU,CAAsB;IAChC,YAAY,CAAwB;IACpC,SAAS,CAAqB;IAC9B,QAAQ,CAAoB;IAC5B,QAAQ,CAAoB;IAC5B,IAAI,CAAg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AE;YAChC,SAAS,EAAE;gBACT,EAAE,EAAE,EAAE;gBACN,IAAI,EAAE;oBACJ,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,QAAQ;oBAClB,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC;iBAClC;aACF;YACD,iBAAiB,EAAE,IAAI;SACxB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AA9HD,gCA8HC","sourcesContent":["import {Page} from \"@playwright/test\"\nimport {umbracoConfig} from \"../../umbraco.config\";\nimport {ReportHelper} from \"./ReportHelper\";\nimport {TelemetryDataApiHelper} from \"./TelemetryDataApiHelper\";\nimport {LanguagesApiHelper} from \"./LanguageApiHelper\";\nimport {DictionaryApiHelper} from \"./DictionaryApiHelper\";\nimport {RelationTypeApiHelper} from \"./RelationType\";\nimport {UserGroupApiHelper} from \"./UserGroupApiHelper\";\nimport {TemplateApiHelper} from \"./TemplateApiHelper\";\nimport {AliasHelper} from \"./AliasHelper\";\nimport {DataTypeApiHelper} from \"./DataTypeApiHelper\";\nimport {UserApiHelper} from \"./UserApiHelper\";\nimport {TemporaryFileApiHelper} from \"./TemporaryFileApiHelper\";\nimport {DocumentApiHelper} from \"./DocumentApiHelper\";\nimport {PackageApiHelper} from \"./PackageApiHelper\";\nimport {ScriptApiHelper} from \"./ScriptApiHelper\";\nimport {PartialViewApiHelper} from \"./PartialViewApiHelper\";\nimport {StylesheetApiHelper} from \"./StylesheetApiHelper\";\nimport * as fs from \"fs\";\nimport {LogViewerApiHelper} from \"./LogViewerApiHelper\";\n\nexport class ApiHelpers {\n baseUrl: string = umbracoConfig.environment.baseUrl;\n page: Page;\n alias: AliasHelper;\n report: ReportHelper;\n telemetry: TelemetryDataApiHelper;\n language: LanguagesApiHelper;\n dictionary: DictionaryApiHelper;\n relationType: RelationTypeApiHelper;\n userGroup: UserGroupApiHelper;\n template: TemplateApiHelper;\n dataType: DataTypeApiHelper;\n user: UserApiHelper;\n temporaryFile: TemporaryFileApiHelper;\n document: DocumentApiHelper;\n package: PackageApiHelper;\n script: ScriptApiHelper;\n partialView: PartialViewApiHelper;\n stylesheet: StylesheetApiHelper;\n logViewer: LogViewerApiHelper;\n\n constructor(page: Page) {\n this.page = page;\n this.alias = new AliasHelper();\n this.report = new ReportHelper(this);\n this.telemetry = new TelemetryDataApiHelper(this);\n this.language = new LanguagesApiHelper(this);\n this.dictionary = new DictionaryApiHelper(this);\n this.relationType = new RelationTypeApiHelper(this);\n this.userGroup = new UserGroupApiHelper(this);\n this.template = new TemplateApiHelper(this);\n this.dataType = new DataTypeApiHelper(this);\n this.user = new UserApiHelper(this);\n this.temporaryFile = new TemporaryFileApiHelper(this);\n this.document = new DocumentApiHelper(this);\n this.package = new PackageApiHelper(this);\n this.script = new ScriptApiHelper(this);\n this.partialView = new PartialViewApiHelper(this);\n this.stylesheet = new StylesheetApiHelper(this);\n this.logViewer = new LogViewerApiHelper(this);\n }\n\n async getBearerToken() {\n let someStorage = await this.page.context().storageState();\n let someObject = JSON.parse(someStorage.origins[0].localStorage[0].value);\n return 'Bearer ' + someObject.access_token;\n }\n\n async getCookie() {\n let someStorage = await this.page.context().storageState();\n\n let cookieString = \"\";\n\n for (let cookie of someStorage.cookies) {\n cookieString += cookie.name + '=' + cookie.value + ';';\n }\n\n return cookieString;\n }\n\n async getHeaders() {\n return {\n 'Authorization': await this.getBearerToken(),\n 'Cookie': await this.getCookie(),\n }\n }\n\n async get(url: string, params?: { [key: string]: string | number | boolean; }) {\n const options = {\n headers: await this.getHeaders(),\n params: params,\n ignoreHTTPSErrors: true\n }\n return this.page.request.get(url, options);\n }\n\n async saveCodeFile(codeFile) {\n if (codeFile == null) {\n return;\n }\n\n return await this.post(umbracoConfig.environment.baseUrl + '/umbraco/backoffice/UmbracoApi/CodeFile/PostSave', codeFile);\n }\n \n async post(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n\n async delete(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.delete(url, options);\n }\n\n async put(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.put(url, options);\n }\n\n async postMultiPartForm(url: string, id, name: string, mimeType: string, filePath) {\n const options = {\n headers: await this.getHeaders(),\n multipart: {\n Id: id,\n File: {\n name: name,\n mimeType: mimeType,\n buffer: fs.readFileSync(filePath)\n }\n },\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n}"]}
@@ -0,0 +1,15 @@
1
+ import { ApiHelpers } from "./ApiHelpers";
2
+ export declare class LogViewerApiHelper {
3
+ api: ApiHelpers;
4
+ constructor(api: ApiHelpers);
5
+ getLevel(): Promise<any>;
6
+ getLevelCount(startDate?: null, endDate?: null): Promise<any>;
7
+ getLog(skip: number | undefined, take: number | undefined, orderDirection: string, filterExpression?: null, logLevel?: null, startDate?: null, endDate?: null): Promise<any>;
8
+ getMessageTemplate(skip?: number, take?: number, startDate?: null, endDate?: null): Promise<any>;
9
+ getSavedSearches(skip?: number, take?: number): Promise<any>;
10
+ createSavedSearch(name: string, query: string): Promise<string | undefined>;
11
+ getSavedSearch(name: string): Promise<any>;
12
+ deleteSavedSearch(name: string): Promise<number>;
13
+ validateLogSize(startDate?: null, endDate?: null): Promise<any>;
14
+ doesSavedSearchExist(name: string): Promise<boolean>;
15
+ }
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogViewerApiHelper = void 0;
4
+ class LogViewerApiHelper {
5
+ api;
6
+ constructor(api) {
7
+ this.api = api;
8
+ }
9
+ async getLevel() {
10
+ const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/level?skip=0&take=1000');
11
+ const json = await response.json();
12
+ if (json !== null) {
13
+ return json;
14
+ }
15
+ return null;
16
+ }
17
+ async getLevelCount(startDate = null, endDate = null) {
18
+ const queryParams = [];
19
+ if (startDate !== null) {
20
+ queryParams.push('startDate=' + startDate);
21
+ }
22
+ if (endDate !== null) {
23
+ queryParams.push('endDate=' + endDate);
24
+ }
25
+ const query = queryParams.length > 0 ? '?' + queryParams.join('&') : '';
26
+ const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/level-count' + query);
27
+ const json = await response.json();
28
+ if (json !== null) {
29
+ return json;
30
+ }
31
+ return null;
32
+ }
33
+ async getLog(skip = 0, take = 100, orderDirection, filterExpression = null, logLevel = null, startDate = null, endDate = null) {
34
+ const queryParams = [
35
+ filterExpression !== null ? `&filterExpression=${filterExpression}` : '',
36
+ logLevel !== null ? `&logLevel=${logLevel}` : '',
37
+ startDate !== null ? `&startDate=${startDate}` : '',
38
+ endDate !== null ? `&endDate=${endDate}` : '',
39
+ ].join('');
40
+ const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/log?skip=${skip}&take=${take}&orderDirection=${orderDirection}` + queryParams);
41
+ const json = await response.json();
42
+ if (json !== null) {
43
+ return json;
44
+ }
45
+ return null;
46
+ }
47
+ async getMessageTemplate(skip = 0, take = 100, startDate = null, endDate = null) {
48
+ const queryParams = [
49
+ startDate !== null ? `&startDate=${startDate}` : '',
50
+ endDate !== null ? `&endDate=${endDate}` : '',
51
+ ].join('');
52
+ const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/message-template?skip=${skip}&take=${take}` + queryParams);
53
+ const json = await response.json();
54
+ if (json !== null) {
55
+ return json;
56
+ }
57
+ return null;
58
+ }
59
+ async getSavedSearches(skip = 0, take = 100) {
60
+ const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/saved-search?skip=${skip}&take=${take}`);
61
+ const json = await response.json();
62
+ if (json !== null) {
63
+ return json;
64
+ }
65
+ return null;
66
+ }
67
+ async createSavedSearch(name, query) {
68
+ const searchData = {
69
+ "name": name,
70
+ "query": query
71
+ };
72
+ const response = await this.api.post(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/saved-search`, searchData);
73
+ return response.headers().location.split("/").pop();
74
+ }
75
+ async getSavedSearch(name) {
76
+ const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);
77
+ const json = await response.json();
78
+ if (json !== null) {
79
+ return json;
80
+ }
81
+ return null;
82
+ }
83
+ async deleteSavedSearch(name) {
84
+ const response = await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);
85
+ return response.status();
86
+ }
87
+ async validateLogSize(startDate = null, endDate = null) {
88
+ const queryParams = [];
89
+ if (startDate !== null) {
90
+ queryParams.push('startDate=' + startDate);
91
+ }
92
+ if (endDate !== null) {
93
+ queryParams.push('endDate=' + endDate);
94
+ }
95
+ const query = queryParams.length > 0 ? '?' + queryParams.join('&') : '';
96
+ const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/validate-logs-size' + query);
97
+ const json = await response.json();
98
+ if (json !== null) {
99
+ return json;
100
+ }
101
+ return null;
102
+ }
103
+ async doesSavedSearchExist(name) {
104
+ const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);
105
+ if (response.status() === 404) {
106
+ return false; // Not found, the saved search does not exist
107
+ }
108
+ return response.status() === 200; // Check if the response status is 200 (OK)
109
+ }
110
+ }
111
+ exports.LogViewerApiHelper = LogViewerApiHelper;
112
+ //# sourceMappingURL=LogViewerApiHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogViewerApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/LogViewerApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAC7B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG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CAAC,OAAO,GAAG,qDAAqD,GAAG,IAAI,CAAC,CAAC;QACrH,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,EAAE;YAC7B,OAAO,KAAK,CAAC,CAAC,6CAA6C;SAC5D;QAED,OAAO,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC,CAAC,2CAA2C;IAC/E,CAAC;CACF;AAtID,gDAsIC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\n\nexport class LogViewerApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async getLevel() {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/level?skip=0&take=1000');\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getLevelCount(startDate = null, endDate = null) {\n const queryParams: string[] = [];\n\n if (startDate !== null) {\n queryParams.push('startDate=' + startDate);\n }\n\n if (endDate !== null) {\n queryParams.push('endDate=' + endDate);\n }\n\n const query = queryParams.length > 0 ? '?' + queryParams.join('&') : '';\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/level-count' + query);\n\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getLog(skip = 0, take = 100, orderDirection: string, filterExpression = null, logLevel = null, startDate = null, endDate = null) {\n const queryParams = [\n filterExpression !== null ? `&filterExpression=${filterExpression}` : '',\n logLevel !== null ? `&logLevel=${logLevel}` : '',\n startDate !== null ? `&startDate=${startDate}` : '',\n endDate !== null ? `&endDate=${endDate}` : '',\n ].join('');\n const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/log?skip=${skip}&take=${take}&orderDirection=${orderDirection}` + queryParams);\n\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getMessageTemplate(skip = 0, take = 100, startDate = null, endDate = null) {\n const queryParams = [\n startDate !== null ? `&startDate=${startDate}` : '',\n endDate !== null ? `&endDate=${endDate}` : '',\n ].join('');\n const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/message-template?skip=${skip}&take=${take}` + queryParams);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getSavedSearches(skip = 0, take = 100) {\n const response = await this.api.get(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/saved-search?skip=${skip}&take=${take}`);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async createSavedSearch(name: string, query: string) {\n const searchData = {\n \"name\": name,\n \"query\": query\n }\n\n const response = await this.api.post(this.api.baseUrl + `/umbraco/management/api/v1/log-viewer/saved-search`, searchData);\n return response.headers().location.split(\"/\").pop();\n }\n\n async getSavedSearch(name: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async deleteSavedSearch(name: string) {\n const response = await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);\n return response.status();\n }\n\n async validateLogSize(startDate = null, endDate = null) {\n const queryParams: string[] = [];\n\n if (startDate !== null) {\n queryParams.push('startDate=' + startDate);\n }\n\n if (endDate !== null) {\n queryParams.push('endDate=' + endDate);\n }\n\n const query = queryParams.length > 0 ? '?' + queryParams.join('&') : '';\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/validate-logs-size' + query);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async doesSavedSearchExist(name: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/log-viewer/saved-search/' + name);\n if (response.status() === 404) {\n return false; // Not found, the saved search does not exist\n }\n\n return response.status() === 200; // Check if the response status is 200 (OK)\n }\n}\n"]}
@@ -3,5 +3,5 @@ export declare class TelemetryDataApiHelper {
3
3
  api: ApiHelpers;
4
4
  constructor(api: ApiHelpers);
5
5
  setLevel(level: string): Promise<import("playwright-core").APIResponse>;
6
- checkLevel(level: string): Promise<boolean>;
6
+ getLevel(): Promise<any>;
7
7
  }
@@ -12,10 +12,10 @@ class TelemetryDataApiHelper {
12
12
  };
13
13
  return await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level', data);
14
14
  }
15
- async checkLevel(level) {
15
+ async getLevel() {
16
16
  const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level');
17
17
  const json = await response.json();
18
- return level === json.telemetryLevel;
18
+ return json.telemetryLevel;
19
19
  }
20
20
  }
21
21
  exports.TelemetryDataApiHelper = TelemetryDataApiHelper;
@@ -1 +1 @@
1
- {"version":3,"file":"TelemetryDataApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/TelemetryDataApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IACjC,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC1B,MAAM,IAAI,GAAG;YACX,gBAAgB,EAAE,KAAK;SACxB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,4CAA4C,EAAE,IAAI,CAAC,CAAC;IACpG,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,KAAa;QAC5B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,4CAA4C,CAAC,CAAC;QACrG,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,OAAO,KAAK,KAAK,IAAI,CAAC,cAAc,CAAC;IACvC,CAAC;CACF;AApBD,wDAoBC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\n\nexport class TelemetryDataApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async setLevel(level: string) {\n const data = {\n \"telemetryLevel\": level\n }\n return await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level', data);\n }\n\n async checkLevel(level: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level');\n const json = await response.json();\n\n return level === json.telemetryLevel;\n }\n}"]}
1
+ {"version":3,"file":"TelemetryDataApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/TelemetryDataApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;IACjC,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC1B,MAAM,IAAI,GAAG;YACX,gBAAgB,EAAE,KAAK;SACxB,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,4CAA4C,EAAE,IAAI,CAAC,CAAC;IACpG,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,4CAA4C,CAAC,CAAC;QACrG,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;CACF;AApBD,wDAoBC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\n\nexport class TelemetryDataApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async setLevel(level: string) {\n const data = {\n \"telemetryLevel\": level\n }\n return await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level', data);\n }\n\n async getLevel() {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/telemetry/level');\n const json = await response.json();\n\n return json.telemetryLevel;\n }\n}"]}
@@ -2,4 +2,10 @@ import { Page } from "@playwright/test";
2
2
  export declare class UiHelpers {
3
3
  page: Page;
4
4
  constructor(page: Page);
5
+ clickButton(buttonName: string): Promise<void>;
6
+ goToSection(sectionName: string): Promise<void>;
7
+ goToSettingsTreeItem(settingsTreeItemName: string): Promise<void>;
8
+ clickDataElement(elementName: string, options?: any): Promise<void>;
9
+ getDataElement(elementName: string): Promise<import("playwright-core").Locator>;
10
+ isNotificationVisible(notificationMessage: string): Promise<void>;
5
11
  }
@@ -1,11 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UiHelpers = void 0;
4
+ const test_1 = require("@playwright/test");
4
5
  class UiHelpers {
5
6
  page;
6
7
  constructor(page) {
7
8
  this.page = page;
8
9
  }
10
+ async clickButton(buttonName) {
11
+ await this.page.getByRole('button', { name: buttonName }).click();
12
+ }
13
+ async goToSection(sectionName) {
14
+ await this.page.getByRole('tab', { name: sectionName }).click();
15
+ }
16
+ async goToSettingsTreeItem(settingsTreeItemName) {
17
+ await this.goToSection('Settings');
18
+ await this.page.getByLabel(settingsTreeItemName).click();
19
+ }
20
+ async clickDataElement(elementName, options = null) {
21
+ await this.page.click(`[data-element="${elementName}"]`, options);
22
+ }
23
+ async getDataElement(elementName) {
24
+ return this.page.locator(`[data-element="${elementName}"]`);
25
+ }
26
+ async isNotificationVisible(notificationMessage) {
27
+ return (0, test_1.expect)(this.page.locator('uui-toast-notification', { hasText: notificationMessage })).toBeVisible();
28
+ }
9
29
  }
10
30
  exports.UiHelpers = UiHelpers;
11
31
  //# sourceMappingURL=UiHelpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/UiHelpers.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;IAEpB,IAAI,CAAO;IAEX,YAAY,IAAU;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAIF;AAVD,8BAUC","sourcesContent":["import {Page} from \"@playwright/test\"\n\nexport class UiHelpers {\n\n page: Page;\n\n constructor(page: Page) {\n this.page = page;\n }\n\n \n \n}"]}
1
+ {"version":3,"file":"UiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/UiHelpers.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAE7C,MAAa,SAAS;IAElB,IAAI,CAAO;IAEX,YAAY,IAAU;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,UAAkB;QAChC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,WAAmB;QACjC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IAEpE,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,oBAA4B;QACnD,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACnC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,KAAK,EAAE,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,WAAmB,EAAE,UAAe,IAAI;QAC3D,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,WAAW,IAAI,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,WAAmB;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,WAAW,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,mBAA2B;QACnD,OAAO,IAAA,aAAM,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAC,OAAO,EAAE,mBAAmB,EAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7G,CAAC;CACJ;AAjCD,8BAiCC","sourcesContent":["import {expect, Page} from \"@playwright/test\"\n\nexport class UiHelpers {\n\n page: Page;\n\n constructor(page: Page) {\n this.page = page;\n }\n \n async clickButton(buttonName: string) {\n await this.page.getByRole('button', {name: buttonName}).click();\n }\n\n async goToSection(sectionName: string) {\n await this.page.getByRole('tab', { name: sectionName }).click();\n\n }\n \n async goToSettingsTreeItem(settingsTreeItemName: string) {\n await this.goToSection('Settings');\n await this.page.getByLabel(settingsTreeItemName).click(); \n }\n\n async clickDataElement(elementName: string, options: any = null) {\n await this.page.click(`[data-element=\"${elementName}\"]`, options);\n }\n\n async getDataElement(elementName: string) {\n return this.page.locator(`[data-element=\"${elementName}\"]`);\n }\n\n async isNotificationVisible(notificationMessage: string) {\n return expect(this.page.locator('uui-toast-notification', {hasText: notificationMessage})).toBeVisible();\n }\n}"]}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-core/types/types.d.ts","../node_modules/@playwright/test/types/test.d.ts","../node_modules/@playwright/test/index.d.ts","../umbraco.config.ts","../lib/helpers/ReportHelper.ts","../lib/helpers/TelemetryDataApiHelper.ts","../lib/helpers/LanguageApiHelper.ts","../lib/helpers/DictionaryApiHelper.ts","../lib/helpers/RelationType.ts","../lib/helpers/UserGroupApiHelper.ts","../lib/helpers/TemplateApiHelper.ts","../lib/helpers/AliasHelper.ts","../lib/helpers/DataTypeApiHelper.ts","../lib/helpers/UserApiHelper.ts","../lib/helpers/TemporaryFileApiHelper.ts","../lib/helpers/DocumentApiHelper.ts","../lib/helpers/PackageApiHelper.ts","../lib/helpers/ScriptApiHelper.ts","../lib/helpers/PartialViewApiHelper.ts","../lib/helpers/StylesheetApiHelper.ts","../lib/helpers/ApiHelpers.ts","../lib/helpers/UiHelpers.ts","../lib/helpers/testExtension.ts","../lib/helpers/index.ts","../lib/index.ts","../node_modules/@types/node/ts4.8/assert.d.ts","../node_modules/@types/node/ts4.8/assert/strict.d.ts","../node_modules/@types/node/ts4.8/globals.d.ts","../node_modules/@types/node/ts4.8/async_hooks.d.ts","../node_modules/@types/node/ts4.8/buffer.d.ts","../node_modules/@types/node/ts4.8/child_process.d.ts","../node_modules/@types/node/ts4.8/cluster.d.ts","../node_modules/@types/node/ts4.8/console.d.ts","../node_modules/@types/node/ts4.8/constants.d.ts","../node_modules/@types/node/ts4.8/crypto.d.ts","../node_modules/@types/node/ts4.8/dgram.d.ts","../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../node_modules/@types/node/ts4.8/dns.d.ts","../node_modules/@types/node/ts4.8/dns/promises.d.ts","../node_modules/@types/node/ts4.8/domain.d.ts","../node_modules/@types/node/ts4.8/dom-events.d.ts","../node_modules/@types/node/ts4.8/events.d.ts","../node_modules/@types/node/ts4.8/fs.d.ts","../node_modules/@types/node/ts4.8/fs/promises.d.ts","../node_modules/@types/node/ts4.8/http.d.ts","../node_modules/@types/node/ts4.8/http2.d.ts","../node_modules/@types/node/ts4.8/https.d.ts","../node_modules/@types/node/ts4.8/inspector.d.ts","../node_modules/@types/node/ts4.8/module.d.ts","../node_modules/@types/node/ts4.8/net.d.ts","../node_modules/@types/node/ts4.8/os.d.ts","../node_modules/@types/node/ts4.8/path.d.ts","../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../node_modules/@types/node/ts4.8/process.d.ts","../node_modules/@types/node/ts4.8/punycode.d.ts","../node_modules/@types/node/ts4.8/querystring.d.ts","../node_modules/@types/node/ts4.8/readline.d.ts","../node_modules/@types/node/ts4.8/readline/promises.d.ts","../node_modules/@types/node/ts4.8/repl.d.ts","../node_modules/@types/node/ts4.8/stream.d.ts","../node_modules/@types/node/ts4.8/stream/promises.d.ts","../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../node_modules/@types/node/ts4.8/stream/web.d.ts","../node_modules/@types/node/ts4.8/string_decoder.d.ts","../node_modules/@types/node/ts4.8/test.d.ts","../node_modules/@types/node/ts4.8/timers.d.ts","../node_modules/@types/node/ts4.8/timers/promises.d.ts","../node_modules/@types/node/ts4.8/tls.d.ts","../node_modules/@types/node/ts4.8/trace_events.d.ts","../node_modules/@types/node/ts4.8/tty.d.ts","../node_modules/@types/node/ts4.8/url.d.ts","../node_modules/@types/node/ts4.8/util.d.ts","../node_modules/@types/node/ts4.8/v8.d.ts","../node_modules/@types/node/ts4.8/vm.d.ts","../node_modules/@types/node/ts4.8/wasi.d.ts","../node_modules/@types/node/ts4.8/worker_threads.d.ts","../node_modules/@types/node/ts4.8/zlib.d.ts","../node_modules/@types/node/ts4.8/globals.global.d.ts","../node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","75bf34aac8c4c15887d1ba7028e25efb1feae1e5727bf5de7d37aae5c4235d4e","8d13c86e53ac8a5ed2c205497dbf9446fa854c7b8a23288de62cb797fb4ca486","e392ded372dfacfa3068b7fd5390df236982ca99b990d7014da957f4a315ba3a",{"version":"98acf9e8f3f35e91f4953010fd8ff973576186987b8a585903aa8db1469d38d9","affectsGlobalScope":true},"3f00324f263189b385c3a9383b1f4dae6237697bcf0801f96aa35c340512d79c",{"version":"c93350324664aeec0217741e56c4950435f58ebba7c4589b99deec894b33d67b","signature":"22fea8c28752d1a841afd4b34f886b6ddd7701982943de4a92694a371824b818"},{"version":"e598311445ebe4378af1cb00abfb7222659a7851aaa3d9549c64628857ab4838","signature":"d9e590839d9b5259ea85c4b7b8abedd8459bfadad3aa2ab707df5f06d838a879"},{"version":"8ff3c16cfa34a66b9f7c4c34d42e053404387084814639ab852f2429ca63f981","signature":"efd9c299098f817bb075f6bba2a165162856f994106396aa5aa6fc2f4e2b92a7"},{"version":"7a4a8fa9be7dd4a0eacf6fcc79982805195f24c62c8419af326ec22b1a534345","signature":"9631597fd2063026932c3a99645b68682cef2081aead168c0416026468c64388"},{"version":"64ea91ed2aae8aeb8e45e53934fe756af0d7fa3a05172300a3b9404a6192c390","signature":"cd091e88f3461938d185a251e0146b32d0be6b29ad3deab8baa1f5d4fc1597d8"},{"version":"08a26c1d6bbbfb44ef2484675d96f5bf36d427b0e6edad61b38d68858a884098","signature":"e7bfac5c6a6ab4c11b72866e86bbf758f38a8c7c983ea10787a54f10460ae013"},{"version":"7426201624290b4bbe597a6e4bdaa8a5b84ec70333e28b324ee95f51af08c296","signature":"7407519d4b5aefa9a1d72b84833ebc8bf55ae8f45cc37ee2448eb1ee1e61deb3"},{"version":"1fa79a7893e5d300d0d535beec045b99fa3179fece057e40faae11d1b3557bec","signature":"31da70ceb2eb41e94cda849a79c8fe2361fee003c39a2bd21375582a6f2262a0"},{"version":"e17f07b028b14f80d6c625470844ec2f52f37efcd58f80dffc607fb8653cd4d0","signature":"7c9803e8b478726fc90dac32492eb1904cf2ddf6cacc9393a823a1f56c8de2b6"},{"version":"324203f35fe8c0bb25b887cd8325314e672f884200fe9b6b93c8dc9eba09fcee","signature":"0eafac28ea0186d351cdda9458653d1dbd6f283bd0f8c571d7169b1dbcf7e978"},{"version":"39fbeac72c4027903be763529c6caa5dc5c1c4ee359b6f6adfdc912484e57116","signature":"e024dceb8caff34db9cfba3b2ac19170b0afc1b817a0b66e22e0141b34e2fc6e"},{"version":"95b1d0701ff22a984ce1b67910110194ed14ffa433b44a3be5111174d5695559","signature":"b3e9372b4dbae48465582902ca7446cd9ef9dae6092670eaa18af04d5c089c00"},{"version":"fadb42657de31f353a17a9cce4ca0bdb0424b58179197ce97f1f49313b35df93","signature":"4af44936bc7df88f3d8bbf0b250cf4fd76ad9d38bd2884db6ca9b0c97c42ce99"},{"version":"d609d8b0a013e2645316b975ab68855dfbd72cbd5311e0093c4f14d87defd34f","signature":"2698823199b9e32187daacb96108ed9a06e913d2e5347bf99ea2c1d1d33df20a"},{"version":"65a9aa25ba5766698759b6dac11748c748b3fe789933c295ba5216d8b0365919","signature":"fe505f3be60d71c2669aa753385861c1cc84f1f9a4fa3f65e64d40a7bc9854fb"},{"version":"88a8deea4903f2b6219f77a2f8c30b1277852441f4f36d447f58acc9f565298f","signature":"f6bcea6d0ed15c89143a3362fc8d4f8f523da6c4da16bc4eef2859cb1b0be90d"},{"version":"961e703fe7be2fa3a307ccaf8e381de7444d22a6417bb3b811fbb59341ee3c6f","signature":"52ed0834eed3548ac5adff54c0ffb7cc33496d90f8aef9ba30dca85bc005d6c9"},{"version":"f078b0f5b797c3afc056ebe472b52c1443150327712279f048065dcb8c40c55f","signature":"b92cac374ebb501d109e8330b49bc13f1b06fc88c1aaae662e569097c9369afc"},{"version":"a51e08b12c52aa4d8127067d68c3ba1fdbe173976ae325af2a4c02ceca413d2a","signature":"76bd6b2e6b2bb4e363c6665f294e2f86bbab325b1c309e0b484938911b8342a1"},{"version":"94ed2d1240b347c3f620642cde781b2048a7d17d5cf957e2379088a39d35418f","signature":"302280c749ac14a35a70667829db1fb7118cc298f4a9c98dbde1a69899158aeb"},{"version":"ec79bfa0a74278cae18716266cdb0b736c6504e7f59eeb400d687f4e7380146d","signature":"3f639630fea7b319a2a6040996414c8ef9535ff7a3266f15dc964f5e42b66aff"},{"version":"b9181bea4a29329594d5c5a53bec78507fcc67ad0c5afa2a580dc51d6f19a4f7","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"931776d985dedeaead3b5c1bfdb976a0818a11b08660ee0afeeebf39a872f7ae","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"211e3f15fbced4ab4be19f49ffa990b9ff20d749d33b65ff753be691e7616239","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5450889a3b688f9da80e7c96963b2cfebc6097e8e95790a23a48558b61e6aea7","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","eb0621cc37d1cb25eb8777fb9835c5d98d5e69aac78e8437aa041b6325b70e05","216717f17c095cde1dc19375e1ab3af0a4a485355860c077a4f9d6ea59fab5b5","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"00dee7cdca8b8420c47ea4a31a34b8e8294013ebc4f463fd941e867e7bf05029","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"a40be9f6243a0a32f578ba8db1a31de58cd98d6fd0eedaec416307c8ad53442a","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","1bbf3c9f66a3cc7468a12f373cacfa2e8f172c1b40959bbd659116f915b0b7e2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"a73ae8c0e62103bb9e21bb6538700881bf135b9a8b125b857ec68edfa0da4ed3","affectsGlobalScope":true},{"version":"fbeb4d15a681c95b51a4072776dd43eaa4b68a14d2ae964f181b13190df47c3e","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":false,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":99},"fileIdsList":[[43,117],[43,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,88,117],[43,66,117],[43,48,66,117],[43,48,117],[43,57,66,67,68,117],[43,48,69,117],[43,69,117],[47,117],[46,117],[71,117],[74,117],[75,80,108,117],[76,87,88,95,105,116,117],[76,77,87,95,117],[78,117],[79,80,88,96,117],[80,105,113,117],[81,83,87,95,117],[82,117],[83,84,117],[87,117],[85,87,117],[87,88,89,105,116,117],[87,88,89,102,105,108,117],[117,121],[117],[83,90,95,105,116,117],[87,88,90,91,95,105,113,116,117],[90,92,105,113,116,117],[71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],[87,93,117],[94,116,117],[83,87,95,105,117],[96,117],[97,117],[74,98,117],[99,115,117,121],[100,117],[101,117],[87,102,103,117],[102,104,117,119],[75,87,105,106,107,108,117],[75,105,107,117],[105,106,117],[108,117],[109,117],[87,111,112,117],[111,112,117],[80,95,105,113,117],[114,117],[95,115,117],[75,90,101,116,117],[80,117],[105,117,118],[117,119],[117,120],[75,80,87,89,98,105,116,117,119,121],[105,117,122],[44,45,76,87,88,105,117],[46,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],[46,66],[66],[48,66],[48],[57,66,67,68],[48,69],[69]],"referencedMap":[[57,1],[66,2],[58,3],[53,3],[61,3],[52,3],[62,3],[64,3],[54,3],[50,4],[63,3],[65,3],[51,3],[56,3],[60,3],[67,5],[59,3],[55,3],[69,6],[68,7],[70,8],[48,9],[47,10],[71,11],[72,11],[74,12],[75,13],[76,14],[77,15],[78,16],[79,17],[80,18],[81,19],[82,20],[83,21],[84,21],[86,22],[85,23],[87,22],[88,24],[89,25],[73,26],[123,27],[90,28],[91,29],[92,30],[124,31],[93,32],[94,33],[95,34],[96,35],[97,36],[98,37],[99,38],[100,39],[101,40],[102,41],[103,41],[104,42],[105,43],[107,44],[106,45],[108,46],[109,47],[110,27],[111,48],[112,49],[113,50],[114,51],[115,52],[116,53],[117,54],[118,55],[119,56],[120,57],[121,58],[122,59],[44,27],[45,10],[46,60],[43,27],[8,27],[9,27],[11,27],[10,27],[2,27],[12,27],[13,27],[14,27],[15,27],[16,27],[17,27],[18,27],[19,27],[3,27],[4,27],[23,27],[20,27],[21,27],[22,27],[24,27],[25,27],[26,27],[5,27],[27,27],[28,27],[29,27],[30,27],[6,27],[31,27],[32,27],[33,27],[34,27],[7,27],[35,27],[40,27],[41,27],[36,27],[37,27],[38,27],[39,27],[1,27],[42,27],[49,1]],"exportedModulesMap":[[66,61],[58,62],[53,62],[61,63],[52,62],[62,62],[64,62],[54,62],[50,64],[63,62],[65,62],[51,62],[56,62],[60,62],[67,65],[59,62],[55,62],[69,66],[68,67],[70,68],[48,9],[47,10],[71,11],[72,11],[74,12],[75,13],[76,14],[77,15],[78,16],[79,17],[80,18],[81,19],[82,20],[83,21],[84,21],[86,22],[85,23],[87,22],[88,24],[89,25],[73,26],[123,27],[90,28],[91,29],[92,30],[124,31],[93,32],[94,33],[95,34],[96,35],[97,36],[98,37],[99,38],[100,39],[101,40],[102,41],[103,41],[104,42],[105,43],[107,44],[106,45],[108,46],[109,47],[110,27],[111,48],[112,49],[113,50],[114,51],[115,52],[116,53],[117,54],[118,55],[119,56],[120,57],[121,58],[122,59],[44,27],[45,10],[46,60],[43,27],[8,27],[9,27],[11,27],[10,27],[2,27],[12,27],[13,27],[14,27],[15,27],[16,27],[17,27],[18,27],[19,27],[3,27],[4,27],[23,27],[20,27],[21,27],[22,27],[24,27],[25,27],[26,27],[5,27],[27,27],[28,27],[29,27],[30,27],[6,27],[31,27],[32,27],[33,27],[34,27],[7,27],[35,27],[40,27],[41,27],[36,27],[37,27],[38,27],[39,27],[1,27],[42,27]],"semanticDiagnosticsPerFile":[57,66,58,53,61,52,62,64,54,50,63,65,51,56,60,67,59,55,69,68,70,48,47,71,72,74,75,76,77,78,79,80,81,82,83,84,86,85,87,88,89,73,123,90,91,92,124,93,94,95,96,97,98,99,100,101,102,103,104,105,107,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,44,45,46,43,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,35,40,41,36,37,38,39,1,42,49],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"4.8.3"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-core/types/types.d.ts","../node_modules/playwright/types/test.d.ts","../node_modules/playwright/test.d.ts","../node_modules/@playwright/test/index.d.ts","../umbraco.config.ts","../lib/helpers/ReportHelper.ts","../lib/helpers/TelemetryDataApiHelper.ts","../lib/helpers/LanguageApiHelper.ts","../lib/helpers/DictionaryApiHelper.ts","../lib/helpers/RelationType.ts","../lib/helpers/UserGroupApiHelper.ts","../lib/helpers/TemplateApiHelper.ts","../lib/helpers/AliasHelper.ts","../lib/helpers/DataTypeApiHelper.ts","../lib/helpers/UserApiHelper.ts","../lib/helpers/TemporaryFileApiHelper.ts","../lib/helpers/DocumentApiHelper.ts","../lib/helpers/PackageApiHelper.ts","../lib/helpers/ScriptApiHelper.ts","../lib/helpers/PartialViewApiHelper.ts","../lib/helpers/StylesheetApiHelper.ts","../lib/helpers/LogViewerApiHelper.ts","../lib/helpers/ApiHelpers.ts","../lib/helpers/UiHelpers.ts","../lib/helpers/testExtension.ts","../lib/helpers/index.ts","../lib/index.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","08f466e76048fdad5b11cfea3e71f14dd81392831483f098c92715d62f2855db","8d13c86e53ac8a5ed2c205497dbf9446fa854c7b8a23288de62cb797fb4ca486","eacf1ea6f35270dcfba0a5931e753616734d11ccddc6b2c2a9767b38058a3279",{"version":"de6d2e55195064e4460f0dcc4d560f4aaf84c202290dd4b5306affaf4eb4cb1d","affectsGlobalScope":true},"3f00324f263189b385c3a9383b1f4dae6237697bcf0801f96aa35c340512d79c","ec8997c2e5cea26befc76e7bf990750e96babb16977673a9ff3b5c0575d01e48",{"version":"c93350324664aeec0217741e56c4950435f58ebba7c4589b99deec894b33d67b","signature":"22fea8c28752d1a841afd4b34f886b6ddd7701982943de4a92694a371824b818"},{"version":"e598311445ebe4378af1cb00abfb7222659a7851aaa3d9549c64628857ab4838","signature":"d9e590839d9b5259ea85c4b7b8abedd8459bfadad3aa2ab707df5f06d838a879"},{"version":"16bc0fd4adf6f83440a9f0401fc64bd45c73ca0e5e3efa7a3df152e884420ccd","signature":"f4c914bf76148b4feba712d9e6b2b33b52ee537448d9002e48faaadd12d8f1e9"},{"version":"7a4a8fa9be7dd4a0eacf6fcc79982805195f24c62c8419af326ec22b1a534345","signature":"9631597fd2063026932c3a99645b68682cef2081aead168c0416026468c64388"},{"version":"64ea91ed2aae8aeb8e45e53934fe756af0d7fa3a05172300a3b9404a6192c390","signature":"cd091e88f3461938d185a251e0146b32d0be6b29ad3deab8baa1f5d4fc1597d8"},{"version":"08a26c1d6bbbfb44ef2484675d96f5bf36d427b0e6edad61b38d68858a884098","signature":"e7bfac5c6a6ab4c11b72866e86bbf758f38a8c7c983ea10787a54f10460ae013"},{"version":"7426201624290b4bbe597a6e4bdaa8a5b84ec70333e28b324ee95f51af08c296","signature":"7407519d4b5aefa9a1d72b84833ebc8bf55ae8f45cc37ee2448eb1ee1e61deb3"},{"version":"1fa79a7893e5d300d0d535beec045b99fa3179fece057e40faae11d1b3557bec","signature":"31da70ceb2eb41e94cda849a79c8fe2361fee003c39a2bd21375582a6f2262a0"},{"version":"e17f07b028b14f80d6c625470844ec2f52f37efcd58f80dffc607fb8653cd4d0","signature":"7c9803e8b478726fc90dac32492eb1904cf2ddf6cacc9393a823a1f56c8de2b6"},{"version":"324203f35fe8c0bb25b887cd8325314e672f884200fe9b6b93c8dc9eba09fcee","signature":"0eafac28ea0186d351cdda9458653d1dbd6f283bd0f8c571d7169b1dbcf7e978"},{"version":"39fbeac72c4027903be763529c6caa5dc5c1c4ee359b6f6adfdc912484e57116","signature":"e024dceb8caff34db9cfba3b2ac19170b0afc1b817a0b66e22e0141b34e2fc6e"},{"version":"95b1d0701ff22a984ce1b67910110194ed14ffa433b44a3be5111174d5695559","signature":"b3e9372b4dbae48465582902ca7446cd9ef9dae6092670eaa18af04d5c089c00"},{"version":"fadb42657de31f353a17a9cce4ca0bdb0424b58179197ce97f1f49313b35df93","signature":"4af44936bc7df88f3d8bbf0b250cf4fd76ad9d38bd2884db6ca9b0c97c42ce99"},{"version":"d609d8b0a013e2645316b975ab68855dfbd72cbd5311e0093c4f14d87defd34f","signature":"2698823199b9e32187daacb96108ed9a06e913d2e5347bf99ea2c1d1d33df20a"},{"version":"65a9aa25ba5766698759b6dac11748c748b3fe789933c295ba5216d8b0365919","signature":"fe505f3be60d71c2669aa753385861c1cc84f1f9a4fa3f65e64d40a7bc9854fb"},{"version":"88a8deea4903f2b6219f77a2f8c30b1277852441f4f36d447f58acc9f565298f","signature":"f6bcea6d0ed15c89143a3362fc8d4f8f523da6c4da16bc4eef2859cb1b0be90d"},{"version":"961e703fe7be2fa3a307ccaf8e381de7444d22a6417bb3b811fbb59341ee3c6f","signature":"52ed0834eed3548ac5adff54c0ffb7cc33496d90f8aef9ba30dca85bc005d6c9"},{"version":"f1bd24334e503e833a2cecf306de16ba4c5cf2fefd6fda9d57c19d838f6cb8ec","signature":"35d0dad48d46ff699954fd32afe947a9191acfd3a0dbf1d9d75f4f8785d41cc3"},{"version":"214e34a1be8ad6d79e788dfdde64b260e3d4355829169e508c72e12e91211898","signature":"e60e1e97c3bbcfcd8b1c9a1beff849fc749146da4fe2d17479c1e20a5cbacc6b"},{"version":"a5827c248aeddc53ed4023b24b971345142b63cd26c27ce0d5a103204580aa69","signature":"8dd10f9496ac4e3b1eb717761f7f0a2996209ada7c1e30e614eadb68a0719584"},{"version":"94ed2d1240b347c3f620642cde781b2048a7d17d5cf957e2379088a39d35418f","signature":"302280c749ac14a35a70667829db1fb7118cc298f4a9c98dbde1a69899158aeb"},{"version":"ec79bfa0a74278cae18716266cdb0b736c6504e7f59eeb400d687f4e7380146d","signature":"3f639630fea7b319a2a6040996414c8ef9535ff7a3266f15dc964f5e42b66aff"},{"version":"b9181bea4a29329594d5c5a53bec78507fcc67ad0c5afa2a580dc51d6f19a4f7","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},{"version":"e7f447ee6988ff9fefe357e8672350b2c6ca3d088f0f8359ec5d0a4b6c82b37a","affectsGlobalScope":true},"2ee6b8d10878e64227c146bdbda238deeb794b6b56db11dd82fc23547071d8ed"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":false,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":99},"fileIdsList":[[22],[22,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,52],[22,47],[22,28,47],[22,28],[22,37,47,48,49],[22,28,50],[22,50],[27],[52],[25],[23,24,52],[26],[25,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],[25,47],[47],[28,47],[25,28],[37,47,48,49],[28,50],[50]],"referencedMap":[[37,1],[47,2],[38,3],[33,3],[41,3],[32,3],[46,3],[42,3],[44,3],[34,3],[30,4],[43,3],[45,3],[31,3],[36,3],[40,3],[48,5],[39,3],[35,3],[50,6],[49,7],[51,8],[28,9],[52,10],[53,10],[24,11],[25,12],[27,13],[26,11],[29,1]],"exportedModulesMap":[[47,14],[38,15],[33,15],[41,16],[32,15],[46,16],[42,15],[44,15],[34,15],[30,17],[43,15],[45,15],[31,15],[36,15],[40,15],[48,18],[39,15],[35,15],[50,19],[49,20],[51,21],[28,9],[52,10],[53,10],[24,11],[25,12],[27,13],[26,11]],"semanticDiagnosticsPerFile":[37,47,38,33,41,32,46,42,44,34,30,43,45,31,36,40,48,39,35,50,49,51,28,52,53,23,24,25,27,26,22,5,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,1,29],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"4.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco/playwright-testhelpers",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.3",
4
4
  "description": "Test helpers for making playwright tests for Umbraco solutions",
5
5
  "main": "dist/lib/index.js",
6
6
  "files": ["dist/**/*"],
@@ -26,16 +26,17 @@
26
26
  "author": "Umbraco",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@playwright/test": "^1.35",
29
+ "@playwright/test": "^1.37",
30
30
  "typescript": "^4.8.3",
31
31
  "tslib": "^2.4.0"
32
32
  },
33
33
  "dependencies": {
34
- "@umbraco/json-models-builders": "^1.0.5",
34
+ "@umbraco/json-models-builders": "^1.0.6",
35
35
  "camelize": "^1.0.0",
36
36
  "faker": "^4.1.0",
37
37
  "form-data": "^4.0.0",
38
38
  "node-fetch": "^2.6.7",
39
- "xhr2": "^0.2.1"
39
+ "xhr2": "^0.2.1",
40
+ "@types/node": "^7.0.5"
40
41
  }
41
42
  }