@axinom/mosaic-e2e-page-model 0.17.6 → 0.17.7-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/managed-services/index.d.ts +0 -1
  2. package/dist/managed-services/index.d.ts.map +1 -1
  3. package/dist/managed-services/index.js +0 -1
  4. package/dist/managed-services/index.js.map +1 -1
  5. package/dist/managed-services/managed-service-model.d.ts +2 -2
  6. package/dist/managed-services/managed-service-model.js +1 -1
  7. package/dist/page-model.d.ts +2 -4
  8. package/dist/page-model.d.ts.map +1 -1
  9. package/dist/page-model.js +1 -3
  10. package/dist/page-model.js.map +1 -1
  11. package/dist/ui-selectors/ui-shell-model.d.ts +1 -1
  12. package/dist/ui-selectors/ui-shell-model.js +1 -1
  13. package/package.json +3 -3
  14. package/src/managed-services/index.ts +0 -1
  15. package/src/managed-services/managed-service-model.ts +1 -1
  16. package/src/page-model.ts +2 -13
  17. package/src/ui-selectors/ui-shell-model.ts +1 -1
  18. package/dist/managed-services/monetization-service/claim-set-control.d.ts +0 -48
  19. package/dist/managed-services/monetization-service/claim-set-control.d.ts.map +0 -1
  20. package/dist/managed-services/monetization-service/claim-set-control.js +0 -74
  21. package/dist/managed-services/monetization-service/claim-set-control.js.map +0 -1
  22. package/dist/managed-services/monetization-service/index.d.ts +0 -4
  23. package/dist/managed-services/monetization-service/index.d.ts.map +0 -1
  24. package/dist/managed-services/monetization-service/index.js +0 -20
  25. package/dist/managed-services/monetization-service/index.js.map +0 -1
  26. package/dist/managed-services/monetization-service/monetization-service.d.ts +0 -211
  27. package/dist/managed-services/monetization-service/monetization-service.d.ts.map +0 -1
  28. package/dist/managed-services/monetization-service/monetization-service.js +0 -416
  29. package/dist/managed-services/monetization-service/monetization-service.js.map +0 -1
  30. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.d.ts +0 -32
  31. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.d.ts.map +0 -1
  32. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.js +0 -48
  33. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.js.map +0 -1
  34. package/dist/managed-services/monetization-service/payment-provider-settings-field.d.ts +0 -35
  35. package/dist/managed-services/monetization-service/payment-provider-settings-field.d.ts.map +0 -1
  36. package/dist/managed-services/monetization-service/payment-provider-settings-field.js +0 -65
  37. package/dist/managed-services/monetization-service/payment-provider-settings-field.js.map +0 -1
  38. package/src/managed-services/monetization-service/claim-set-control.ts +0 -84
  39. package/src/managed-services/monetization-service/index.ts +0 -3
  40. package/src/managed-services/monetization-service/monetization-service.ts +0 -552
  41. package/src/managed-services/monetization-service/payment-plan-recurrence-period-field.ts +0 -54
  42. package/src/managed-services/monetization-service/payment-provider-settings-field.ts +0 -75
@@ -1,4 +1,3 @@
1
1
  export * from './image-service';
2
- export * from './monetization-service';
3
2
  export * from './video-service';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./image-service"), exports);
18
- __exportStar(require("./monetization-service"), exports);
19
18
  __exportStar(require("./video-service"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,yDAAuC;AACvC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC"}
@@ -20,7 +20,7 @@ export declare abstract class ManagedServiceModel {
20
20
  * A model representing Mosaic UI workflows.
21
21
  *
22
22
  * Use this model to interact with workflows or mod*a*ls of any managed
23
- * service (Image, Video, Monetization, etc).
23
+ * service (Image, Video, etc).
24
24
  */
25
25
  protected readonly uiManagedWorkflows: UiWorkflowsModel;
26
26
  constructor(
@@ -39,7 +39,7 @@ export declare abstract class ManagedServiceModel {
39
39
  * A model representing Mosaic UI workflows.
40
40
  *
41
41
  * Use this model to interact with workflows or mod*a*ls of any managed
42
- * service (Image, Video, Monetization, etc).
42
+ * service (Image, Video, etc).
43
43
  */
44
44
  uiManagedWorkflows: UiWorkflowsModel);
45
45
  }
@@ -21,7 +21,7 @@ class ManagedServiceModel {
21
21
  * A model representing Mosaic UI workflows.
22
22
  *
23
23
  * Use this model to interact with workflows or mod*a*ls of any managed
24
- * service (Image, Video, Monetization, etc).
24
+ * service (Image, Video, etc).
25
25
  */
26
26
  uiManagedWorkflows) {
27
27
  this.page = page;
@@ -1,6 +1,6 @@
1
1
  import { UiWorkflowsModel } from '@axinom/mosaic-e2e-ui-selectors';
2
2
  import { Page } from 'playwright-core';
3
- import { ImageService, MonetizationService, VideoService } from './managed-services';
3
+ import { ImageService, VideoService } from './managed-services';
4
4
  import { SignInPage } from './sign-in';
5
5
  import { UiShellModel } from './ui-selectors';
6
6
  /**
@@ -26,7 +26,7 @@ export declare class PageModel {
26
26
  * A model representing Mosaic UI workflows for managed services.
27
27
  *
28
28
  * Use this model to interact with workflows or mod*a*ls of any managed
29
- * service (Image, Video, Monetization, etc).
29
+ * service (Image, Video, etc).
30
30
  *
31
31
  * To avoid UI changes from breaking your tests try to avoid using this model
32
32
  * and prefer to use the methods provided by each service model.
@@ -38,8 +38,6 @@ export declare class PageModel {
38
38
  readonly imageService: ImageService;
39
39
  /** A model for the managed video service. */
40
40
  readonly videoService: VideoService;
41
- /** A model for the managed monetization service. */
42
- readonly monetizationService: MonetizationService;
43
41
  /** This method waits for the management system to load after sign in. */
44
42
  waitForAppToLoad(): Promise<void>;
45
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"page-model.d.ts","sourceRoot":"","sources":["../src/page-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,qBAAa,SAAS;IAElB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,IAAI;;IADnB,kCAAkC;IACzB,IAAI,EAAE,IAAI;IAGrB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,eAA+B;IAE/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,kBAAkB,mBAAmC;IAE9D,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,aAA6B;IAEhD,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,eAInB;IAEF,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,eAInB;IAEF,oDAAoD;IACpD,QAAQ,CAAC,mBAAmB,sBAI1B;IAEF,yEAAyE;IACnE,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAWxC"}
1
+ {"version":3,"file":"page-model.d.ts","sourceRoot":"","sources":["../src/page-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,qBAAa,SAAS;IAElB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,IAAI;;IADnB,kCAAkC;IACzB,IAAI,EAAE,IAAI;IAGrB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,eAA+B;IAE/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,kBAAkB,mBAAmC;IAE9D,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,aAA6B;IAEhD,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,eAInB;IAEF,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,eAInB;IAEF,yEAAyE;IACnE,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAWxC"}
@@ -27,7 +27,7 @@ class PageModel {
27
27
  * A model representing Mosaic UI workflows for managed services.
28
28
  *
29
29
  * Use this model to interact with workflows or mod*a*ls of any managed
30
- * service (Image, Video, Monetization, etc).
30
+ * service (Image, Video, etc).
31
31
  *
32
32
  * To avoid UI changes from breaking your tests try to avoid using this model
33
33
  * and prefer to use the methods provided by each service model.
@@ -39,8 +39,6 @@ class PageModel {
39
39
  this.imageService = new managed_services_1.ImageService(this.page, this.uiShell, this.uiManagedWorkflows);
40
40
  /** A model for the managed video service. */
41
41
  this.videoService = new managed_services_1.VideoService(this.page, this.uiShell, this.uiManagedWorkflows);
42
- /** A model for the managed monetization service. */
43
- this.monetizationService = new managed_services_1.MonetizationService(this.page, this.uiShell, this.uiManagedWorkflows);
44
42
  }
45
43
  /** This method waits for the management system to load after sign in. */
46
44
  async waitForAppToLoad() {
@@ -1 +1 @@
1
- {"version":3,"file":"page-model.js","sourceRoot":"","sources":["../src/page-model.ts"],"names":[],"mappings":";;;AAAA,6EAAmE;AAEnE,yDAI4B;AAC5B,uCAAuC;AACvC,iDAA8C;AAE9C;;;GAGG;AACH,MAAa,SAAS;IACpB;IACE,kCAAkC;IACzB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAGrB;;;;;;;WAOG;QACM,YAAO,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE/C;;;;;;;;WAQG;QACM,uBAAkB,GAAG,IAAI,0CAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9D,4CAA4C;QACnC,eAAU,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhD,6CAA6C;QACpC,iBAAY,GAAG,IAAI,+BAAY,CACtC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,kBAAkB,CACxB,CAAC;QAEF,6CAA6C;QACpC,iBAAY,GAAG,IAAI,+BAAY,CACtC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,kBAAkB,CACxB,CAAC;QAEF,oDAAoD;QAC3C,wBAAmB,GAAG,IAAI,sCAAmB,CACpD,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,kBAAkB,CACxB,CAAC;IA7CC,CAAC;IA+CJ,yEAAyE;IACzE,KAAK,CAAC,gBAAgB;QACpB,oDAAoD;QACpD,IAAI;YACF,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACxE,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;SAC/D;QAAC,WAAM;YACN,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;SACH;IACH,CAAC;CACF;AA/DD,8BA+DC"}
1
+ {"version":3,"file":"page-model.js","sourceRoot":"","sources":["../src/page-model.ts"],"names":[],"mappings":";;;AAAA,6EAAmE;AAEnE,yDAAgE;AAChE,uCAAuC;AACvC,iDAA8C;AAE9C;;;GAGG;AACH,MAAa,SAAS;IACpB;IACE,kCAAkC;IACzB,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAGrB;;;;;;;WAOG;QACM,YAAO,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE/C;;;;;;;;WAQG;QACM,uBAAkB,GAAG,IAAI,0CAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9D,4CAA4C;QACnC,eAAU,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhD,6CAA6C;QACpC,iBAAY,GAAG,IAAI,+BAAY,CACtC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,kBAAkB,CACxB,CAAC;QAEF,6CAA6C;QACpC,iBAAY,GAAG,IAAI,+BAAY,CACtC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,kBAAkB,CACxB,CAAC;IAtCC,CAAC;IAwCJ,yEAAyE;IACzE,KAAK,CAAC,gBAAgB;QACpB,oDAAoD;QACpD,IAAI;YACF,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACxE,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;SAC/D;QAAC,WAAM;YACN,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;SACH;IACH,CAAC;CACF;AAxDD,8BAwDC"}
@@ -11,7 +11,7 @@ import { Notifications } from './toast-notifications';
11
11
  * - The breadcrumbs bar (on any page)
12
12
  * - The landing page
13
13
  * - The settings hub page
14
- * - Pages, settings or mod*a*ls of any managed service (Image, Video, Monetization, etc)
14
+ * - Pages, settings or mod*a*ls of any managed service (Image, Video, etc)
15
15
  */
16
16
  export declare class UiShellModel {
17
17
  /** The playwright page object. */
@@ -14,7 +14,7 @@ const toast_notifications_1 = require("./toast-notifications");
14
14
  * - The breadcrumbs bar (on any page)
15
15
  * - The landing page
16
16
  * - The settings hub page
17
- * - Pages, settings or mod*a*ls of any managed service (Image, Video, Monetization, etc)
17
+ * - Pages, settings or mod*a*ls of any managed service (Image, Video, etc)
18
18
  */
19
19
  class UiShellModel {
20
20
  constructor(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-e2e-page-model",
3
- "version": "0.17.6",
3
+ "version": "0.17.7-rc.1",
4
4
  "description": "A page model for testing an Axinom Mosaic Management System with Playwright.",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -23,7 +23,7 @@
23
23
  "dev": "tsc -w"
24
24
  },
25
25
  "dependencies": {
26
- "@axinom/mosaic-e2e-ui-selectors": "^0.16.3"
26
+ "@axinom/mosaic-e2e-ui-selectors": "^0.16.4-rc.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@playwright/test": "1.42.0",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "cbf19f8a2e0de34816bc9693ce891868a722544e"
39
+ "gitHead": "0bd46a2db66288f5a36c0d3758c7786d553e3f41"
40
40
  }
@@ -1,3 +1,2 @@
1
1
  export * from './image-service';
2
- export * from './monetization-service';
3
2
  export * from './video-service';
@@ -24,7 +24,7 @@ export abstract class ManagedServiceModel {
24
24
  * A model representing Mosaic UI workflows.
25
25
  *
26
26
  * Use this model to interact with workflows or mod*a*ls of any managed
27
- * service (Image, Video, Monetization, etc).
27
+ * service (Image, Video, etc).
28
28
  */
29
29
  protected readonly uiManagedWorkflows: UiWorkflowsModel,
30
30
  ) {}
package/src/page-model.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import { UiWorkflowsModel } from '@axinom/mosaic-e2e-ui-selectors';
2
2
  import { Page } from 'playwright-core';
3
- import {
4
- ImageService,
5
- MonetizationService,
6
- VideoService,
7
- } from './managed-services';
3
+ import { ImageService, VideoService } from './managed-services';
8
4
  import { SignInPage } from './sign-in';
9
5
  import { UiShellModel } from './ui-selectors';
10
6
 
@@ -32,7 +28,7 @@ export class PageModel {
32
28
  * A model representing Mosaic UI workflows for managed services.
33
29
  *
34
30
  * Use this model to interact with workflows or mod*a*ls of any managed
35
- * service (Image, Video, Monetization, etc).
31
+ * service (Image, Video, etc).
36
32
  *
37
33
  * To avoid UI changes from breaking your tests try to avoid using this model
38
34
  * and prefer to use the methods provided by each service model.
@@ -56,13 +52,6 @@ export class PageModel {
56
52
  this.uiManagedWorkflows,
57
53
  );
58
54
 
59
- /** A model for the managed monetization service. */
60
- readonly monetizationService = new MonetizationService(
61
- this.page,
62
- this.uiShell,
63
- this.uiManagedWorkflows,
64
- );
65
-
66
55
  /** This method waits for the management system to load after sign in. */
67
56
  async waitForAppToLoad(): Promise<void> {
68
57
  // expect elements 'header' and 'main' to be visible
@@ -18,7 +18,7 @@ import { Notifications } from './toast-notifications';
18
18
  * - The breadcrumbs bar (on any page)
19
19
  * - The landing page
20
20
  * - The settings hub page
21
- * - Pages, settings or mod*a*ls of any managed service (Image, Video, Monetization, etc)
21
+ * - Pages, settings or mod*a*ls of any managed service (Image, Video, etc)
22
22
  */
23
23
  export class UiShellModel {
24
24
  constructor(
@@ -1,48 +0,0 @@
1
- import { AccordionItem, ComponentModel, DynamicDataList } from '@axinom/mosaic-e2e-ui-selectors';
2
- import { FrameLocator, Locator, Page } from 'playwright-core';
3
- /**
4
- * A model for the a claim row in the claims editor station. This model should not be used directly.
5
- * It is used internally by methods of the `MonetizationService` model.
6
- */
7
- export declare class ClaimRow extends ComponentModel {
8
- /** Get a locator to the appropriate input element to select this claim. */
9
- getInput(): Promise<Locator>;
10
- /** This method toggles the claim selection. */
11
- toggle(): Promise<void>;
12
- }
13
- /**
14
- * A model for the a claim group in the claims editor station. This model should not be used directly.
15
- * It is used internally by methods of the `MonetizationService` model.
16
- */
17
- export declare class ClaimGroup extends AccordionItem {
18
- /** A model for the dynamic data list used to for claim multiple select. */
19
- readonly dataList: DynamicDataList;
20
- /** A model for the modal opened by the dynamic data list. */
21
- readonly explorerModal: import("@axinom/mosaic-e2e-ui-selectors").SelectionExplorer;
22
- /**
23
- * This method will determine whether the claim group uses modal input.
24
- * If this returns true, then claims should be selected with the `dataList` and `explorerModal` properties.
25
- * If it returns false then the `getClaimRowByLabel` method should be used.
26
- */
27
- isDataListEntry(): Promise<boolean>;
28
- /** This method gets a claim row by label. */
29
- getClaimRowByLabel(claimLabel: string): ClaimRow;
30
- }
31
- /**
32
- * A model for the claims editor station. This model should not be used directly.
33
- * It is used internally by methods of the `MonetizationService` model.
34
- */
35
- export declare class ClaimsEditor extends ComponentModel {
36
- /**
37
- * A model for an accordion component.
38
- * @param parent The parent playwright page, frame or component model.
39
- * @param xpath A relative xpath selector to this element from the parent.
40
- */
41
- constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
42
- private accordion;
43
- /** This method gets a claim row by claim value. */
44
- getClaimRow(claim: string): ClaimRow;
45
- /** This method gets a claim group by label. */
46
- getClaimGroup(claimGroupLabel: string): ClaimGroup;
47
- }
48
- //# sourceMappingURL=claim-set-control.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim-set-control.d.ts","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/claim-set-control.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,cAAc,EACd,eAAe,EAEhB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;GAGG;AACH,qBAAa,QAAS,SAAQ,cAAc;IAC1C,2EAA2E;IACrE,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAMlC,+CAA+C;IACzC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAI9B;AAED;;;GAGG;AACH,qBAAa,UAAW,SAAQ,aAAa;IAC3C,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,kBAA6B;IAE9C,6DAA6D;IAC7D,QAAQ,CAAC,aAAa,8DAAyC;IAE/D;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAIzC,6CAA6C;IAC7C,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ;CAMjD;AAED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,cAAc;IAC9C;;;;OAIG;gBACS,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAAE,KAAK,SAAW;IAI1E,OAAO,CAAC,SAAS,CAAwC;IAEzD,mDAAmD;IACnD,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ;IAIpC,+CAA+C;IAC/C,aAAa,CAAC,eAAe,EAAE,MAAM,GAAG,UAAU;CAInD"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClaimsEditor = exports.ClaimGroup = exports.ClaimRow = void 0;
4
- const mosaic_e2e_ui_selectors_1 = require("@axinom/mosaic-e2e-ui-selectors");
5
- /**
6
- * A model for the a claim row in the claims editor station. This model should not be used directly.
7
- * It is used internally by methods of the `MonetizationService` model.
8
- */
9
- class ClaimRow extends mosaic_e2e_ui_selectors_1.ComponentModel {
10
- /** Get a locator to the appropriate input element to select this claim. */
11
- async getInput() {
12
- const radioLabel = this.getLocator('//label', -1);
13
- const checkBox = this.getLocator('//input', -1);
14
- return (await radioLabel.isVisible()) ? radioLabel : checkBox;
15
- }
16
- /** This method toggles the claim selection. */
17
- async toggle() {
18
- const input = await this.getInput();
19
- await input.check();
20
- }
21
- }
22
- exports.ClaimRow = ClaimRow;
23
- /**
24
- * A model for the a claim group in the claims editor station. This model should not be used directly.
25
- * It is used internally by methods of the `MonetizationService` model.
26
- */
27
- class ClaimGroup extends mosaic_e2e_ui_selectors_1.AccordionItem {
28
- constructor() {
29
- super(...arguments);
30
- /** A model for the dynamic data list used to for claim multiple select. */
31
- this.dataList = new mosaic_e2e_ui_selectors_1.DynamicDataList(this);
32
- /** A model for the modal opened by the dynamic data list. */
33
- this.explorerModal = new mosaic_e2e_ui_selectors_1.Modal(this).asSelectionExplorer();
34
- }
35
- /**
36
- * This method will determine whether the claim group uses modal input.
37
- * If this returns true, then claims should be selected with the `dataList` and `explorerModal` properties.
38
- * If it returns false then the `getClaimRowByLabel` method should be used.
39
- */
40
- async isDataListEntry() {
41
- return this.dataList.getLocator().isVisible();
42
- }
43
- /** This method gets a claim row by label. */
44
- getClaimRowByLabel(claimLabel) {
45
- return new ClaimRow(this, `//*[contains(@data-test-id, "claim:") and .//*[@data-test-id="claim-label" and text()="${claimLabel}"]]`);
46
- }
47
- }
48
- exports.ClaimGroup = ClaimGroup;
49
- /**
50
- * A model for the claims editor station. This model should not be used directly.
51
- * It is used internally by methods of the `MonetizationService` model.
52
- */
53
- class ClaimsEditor extends mosaic_e2e_ui_selectors_1.ComponentModel {
54
- /**
55
- * A model for an accordion component.
56
- * @param parent The parent playwright page, frame or component model.
57
- * @param xpath A relative xpath selector to this element from the parent.
58
- */
59
- constructor(parent, xpath = '//form') {
60
- super(parent, xpath);
61
- this.accordion = new mosaic_e2e_ui_selectors_1.Accordion(this.root, this.xpath);
62
- }
63
- /** This method gets a claim row by claim value. */
64
- getClaimRow(claim) {
65
- return new ClaimRow(this.accordion, `//*[@data-test-id="claim:${claim}"]`);
66
- }
67
- /** This method gets a claim group by label. */
68
- getClaimGroup(claimGroupLabel) {
69
- const accordionItem = this.accordion.getItemContainingText(claimGroupLabel);
70
- return new ClaimGroup(this.root, accordionItem.xpath);
71
- }
72
- }
73
- exports.ClaimsEditor = ClaimsEditor;
74
- //# sourceMappingURL=claim-set-control.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim-set-control.js","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/claim-set-control.ts"],"names":[],"mappings":";;;AAAA,6EAMyC;AAGzC;;;GAGG;AACH,MAAa,QAAS,SAAQ,wCAAc;IAC1C,2EAA2E;IAC3E,KAAK,CAAC,QAAQ;QACZ,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;QAChD,OAAO,CAAC,MAAM,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;IAChE,CAAC;IAED,+CAA+C;IAC/C,KAAK,CAAC,MAAM;QACV,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF;AAbD,4BAaC;AAED;;;GAGG;AACH,MAAa,UAAW,SAAQ,uCAAa;IAA7C;;QACE,2EAA2E;QAClE,aAAQ,GAAG,IAAI,yCAAe,CAAC,IAAI,CAAC,CAAC;QAE9C,6DAA6D;QACpD,kBAAa,GAAG,IAAI,+BAAK,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;IAkBjE,CAAC;IAhBC;;;;OAIG;IACH,KAAK,CAAC,eAAe;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,CAAC;IAChD,CAAC;IAED,6CAA6C;IAC7C,kBAAkB,CAAC,UAAkB;QACnC,OAAO,IAAI,QAAQ,CACjB,IAAI,EACJ,0FAA0F,UAAU,KAAK,CAC1G,CAAC;IACJ,CAAC;CACF;AAvBD,gCAuBC;AAED;;;GAGG;AACH,MAAa,YAAa,SAAQ,wCAAc;IAC9C;;;;OAIG;IACH,YAAY,MAA4C,EAAE,KAAK,GAAG,QAAQ;QACxE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGf,cAAS,GAAG,IAAI,mCAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAFzD,CAAC;IAID,mDAAmD;IACnD,WAAW,CAAC,KAAa;QACvB,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,KAAK,IAAI,CAAC,CAAC;IAC7E,CAAC;IAED,+CAA+C;IAC/C,aAAa,CAAC,eAAuB;QACnC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5E,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;CACF;AAtBD,oCAsBC"}
@@ -1,4 +0,0 @@
1
- export * from './monetization-service';
2
- export * from './payment-plan-recurrence-period-field';
3
- export * from './payment-provider-settings-field';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./monetization-service"), exports);
18
- __exportStar(require("./payment-plan-recurrence-period-field"), exports);
19
- __exportStar(require("./payment-provider-settings-field"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yEAAuD;AACvD,oEAAkD"}
@@ -1,211 +0,0 @@
1
- import { ManagedServiceModel } from '../managed-service-model';
2
- export interface SubscriptionPlanFilters {
3
- subscriptionPlanTitle: string;
4
- }
5
- export interface ClaimSetFilters {
6
- uniqueKey: string;
7
- }
8
- /** A model for the managed monetization service. */
9
- export declare class MonetizationService extends ManagedServiceModel {
10
- /**
11
- * This method navigates to the subscription plans explorer station.
12
- * The management system must be loaded & signed in before using this method.
13
- *
14
- * The following steps will be taken:
15
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
16
- * - Wait for data to load
17
- */
18
- navigateToSubscriptionPlans(): Promise<void>;
19
- /**
20
- * This method navigates to the claim sets explorer station.
21
- * The management system must be loaded & signed in before using this method.
22
- *
23
- * The following steps will be taken:
24
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
25
- * - Wait for data to load
26
- */
27
- navigateToClaimSets(): Promise<void>;
28
- /**
29
- * This method navigates to a subscription plan details station by title.
30
- * The management system must be loaded & signed in before using this method.
31
- * If there is not exactly one matching subscription plan an exception will be raised.
32
- *
33
- * The following steps will be taken:
34
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
35
- * - Filter by title and click the subscription plan row action
36
- * - Wait for the subscription plan details page to load
37
- */
38
- navigateToSubscriptionPlanDetails(filterBy: {
39
- /** A unique subscription plan title. */
40
- title: string;
41
- }): Promise<void>;
42
- /**
43
- * This method navigates to a claim set details station by unique key.
44
- * The management system must be loaded & signed in before using this method.
45
- * If there is not exactly one matching claim set an exception will be raised.
46
- *
47
- * The following steps will be taken:
48
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
49
- * - Filter by unique key and click the claim set row action
50
- * - Wait for the claim set details station to load
51
- */
52
- navigateToClaimSetDetails(args: {
53
- /** The claim set unique key. */
54
- uniqueKey: string;
55
- }): Promise<void>;
56
- /**
57
- * This method assigns a claim set to the subscription plan.
58
- * The management system must be loaded & signed in before using this method.
59
- * If the claim set does not exist, or is already added to this subscription plan then an exception will be raised.
60
- *
61
- * The following steps will be taken:
62
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
63
- * - Filter by title and click the subscription plan row action
64
- * - Click the 'Claim Sets' action
65
- * - Open the claim sets explorer modal, filter by key and select the first result
66
- * - Click the 'previous' breadcrumb and wait for the subscription plan details station to load
67
- */
68
- assignClaimSetToSubscriptionPlan(args: {
69
- /** A unique subscription plan title. */
70
- subscriptionPlanTitle: string;
71
- /** The claim set unique key. */
72
- claimSetUniqueKey: string;
73
- }): Promise<void>;
74
- /**
75
- * This method removes a claim set assignment from a subscription plan.
76
- * The management system must be loaded & signed in before using this method.
77
- * If the claim set is not assigned to this subscription plan then an exception will be raised.
78
- *
79
- * The following steps will be taken:
80
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
81
- * - Filter by title and click the subscription plan row action
82
- * - Click the 'Claim Sets' action
83
- * - Unassign the claim set using the inline menu
84
- * - Click the 'previous' breadcrumb and wait for the subscription plan details station to load
85
- */
86
- removeClaimSetFromSubscriptionPlan(args: {
87
- /** A unique subscription plan title. */
88
- subscriptionPlanTitle: string;
89
- /** The claim set unique key. */
90
- claimSetUniqueKey: string;
91
- }): Promise<void>;
92
- /**
93
- * This method sets subscription plan status and publishes the subscription plan.
94
- * The management system must be loaded & signed in before using this method.
95
- * If the subscription plan cannot be published then an exception will be raised.
96
- *
97
- * The following steps will be taken:
98
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
99
- * - Filter by title and click the subscription plan row action
100
- * - Set the Status field
101
- * - Click 'Publishing'
102
- * - Click 'Publish' and confirm
103
- * - Wait for the subscription plan details station to load and verify that the publication state is 'PUBLISHED'
104
- */
105
- publishSubscriptionPlan(args: {
106
- /** A unique subscription plan title. */
107
- title: string;
108
- /** The subscription plan status to be set. If omitted no change will be made. */
109
- status?: 'Active' | 'Inactive';
110
- }): Promise<void>;
111
- /**
112
- * This method creates a new claim set.
113
- * The management system must be loaded & signed in before using this method.
114
- * When this method completes, the new claim set details station will be loaded.
115
- *
116
- * The following steps will be taken:
117
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
118
- * - Click 'New', enter the title and key then click 'Proceed'
119
- * - Wait for the claim set details station to load
120
- */
121
- createClaimSet(properties: {
122
- /** A unique subscription plan title. */
123
- title: string;
124
- /** The claim set unique key. */
125
- uniqueKey: string;
126
- }): Promise<void>;
127
- /**
128
- * This method assigns claims to a claim set.
129
- * The management system must be loaded & signed in before using this method.
130
- * NOTE: This method does not support adding claims by mod*a*l.
131
- *
132
- * The following steps will be taken:
133
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
134
- * - Filter by unique key and click the claim set row action
135
- * - Click 'Claims'
136
- * - Add each claim by checkbox or radio button
137
- * - Click the 'previous' breadcrumb and wait for the claim set details station to load
138
- */
139
- assignClaimsToClaimSet(args: {
140
- /** The claim set unique key. */
141
- uniqueKey: string;
142
- /** The list of claim values to be assigned. Each claim input will be clicked. */
143
- claims: string[];
144
- }): Promise<void>;
145
- /**
146
- * This method assigns claims to a claim set.
147
- * The management system must be loaded & signed in before using this method.
148
- * NOTE: This method *does* support adding claims by mod*a*l.
149
- *
150
- * The following steps will be taken:
151
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
152
- * - Filter by unique key and click the claim set row action
153
- * - Click 'Claims'
154
- * - Add each claim by checkbox or radio button
155
- * - Click the 'previous' breadcrumb and wait for the claim set details station to load
156
- */
157
- assignClaimsToClaimSetByLabel(args: {
158
- /** The claim set unique key. */
159
- uniqueKey: string;
160
- /** The label of the claim group. */
161
- claimGroupLabel: string;
162
- /** The claim labels in the claim group. Each will be clicked or added by modal as required. */
163
- claimLabels: string[];
164
- }): Promise<void>;
165
- /**
166
- * This method publishes a claim set.
167
- * The management system must be loaded & signed in before using this method.
168
- * If the claim set cannot be published then an exception will be raised.
169
- *
170
- * The following steps will be taken:
171
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
172
- * - Filter by unique key and click the claim set row action
173
- * - Click 'Publishing'
174
- * - Click 'Publish' and confirm
175
- * - Wait for the claim set details station to load
176
- */
177
- publishClaimSet(args: {
178
- /** The claim set unique key. */
179
- uniqueKey: string;
180
- }): Promise<void>;
181
- /**
182
- * This method unpublishes a claim set by unique key.
183
- * The management system must be loaded & signed in before using this method.
184
- * If the claim set cannot be unpublished then an exception will be raised.
185
- *
186
- * The following steps will be taken:
187
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
188
- * - Filter by unique key and click the claim set row action
189
- * - Click 'Unpublish' and confirm
190
- * - Wait for the claim sets details station to load
191
- */
192
- unpublishClaimSet(args: {
193
- uniqueKey: string;
194
- }): Promise<void>;
195
- /**
196
- * This method deletes a claim set by unique key.
197
- * The management system must be loaded & signed in before using this method.
198
- * If the claim set cannot be deleted then an exception will be raised.
199
- *
200
- * The following steps will be taken:
201
- * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
202
- * - Filter by unique key and click the claim set row action
203
- * - Click 'Delete' and confirm
204
- * - Wait for the claim sets explorer to load
205
- */
206
- deleteClaimSet(args: {
207
- /** The claim set unique key. */
208
- uniqueKey: string;
209
- }): Promise<void>;
210
- }
211
- //# sourceMappingURL=monetization-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monetization-service.d.ts","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/monetization-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,MAAM,WAAW,uBAAuB;IACtC,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,oDAAoD;AACpD,qBAAa,mBAAoB,SAAQ,mBAAmB;IAC1D;;;;;;;OAOG;IACG,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IAUlD;;;;;;;OAOG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU1C;;;;;;;;;OASG;IACG,iCAAiC,CAAC,QAAQ,EAAE;QAChD,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBjB;;;;;;;;;OASG;IACG,yBAAyB,CAAC,IAAI,EAAE;QACpC,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BjB;;;;;;;;;;;OAWG;IACG,gCAAgC,CAAC,IAAI,EAAE;QAC3C,wCAAwC;QACxC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gCAAgC;QAChC,iBAAiB,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC;IAuCjB;;;;;;;;;;;OAWG;IACG,kCAAkC,CAAC,IAAI,EAAE;QAC7C,wCAAwC;QACxC,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gCAAgC;QAChC,iBAAiB,EAAE,MAAM,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC;IA8BjB;;;;;;;;;;;;OAYG;IACG,uBAAuB,CAAC,IAAI,EAAE;QAClC,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAC;QACd,iFAAiF;QACjF,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;KAChC,GAAG,OAAO,CAAC,IAAI,CAAC;IAgCjB;;;;;;;;;OASG;IACG,cAAc,CAAC,UAAU,EAAE;QAC/B,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAC;QACd,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBjB;;;;;;;;;;;OAWG;IACG,sBAAsB,CAAC,IAAI,EAAE;QACjC,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;QAClB,iFAAiF;QACjF,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BjB;;;;;;;;;;;OAWG;IACG,6BAA6B,CAAC,IAAI,EAAE;QACxC,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;QAClB,oCAAoC;QACpC,eAAe,EAAE,MAAM,CAAC;QACxB,+FAA+F;QAC/F,WAAW,EAAE,MAAM,EAAE,CAAC;KACvB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkEjB;;;;;;;;;;;OAWG;IACG,eAAe,CAAC,IAAI,EAAE;QAC1B,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBjB;;;;;;;;;;OAUG;IACG,iBAAiB,CAAC,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBnE;;;;;;;;;;OAUG;IACG,cAAc,CAAC,IAAI,EAAE;QACzB,gCAAgC;QAChC,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;CAiBlB"}