@axinom/mosaic-e2e-page-model 0.2.1-rc.3 → 0.2.1-rc.6

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 (56) hide show
  1. package/dist/managed-services/{image-selection-explorer.d.ts → image-service/image-selection-explorer.d.ts} +1 -1
  2. package/dist/managed-services/image-service/image-selection-explorer.d.ts.map +1 -0
  3. package/dist/managed-services/{image-selection-explorer.js → image-service/image-selection-explorer.js} +3 -2
  4. package/dist/managed-services/image-service/image-selection-explorer.js.map +1 -0
  5. package/dist/managed-services/{image-service.d.ts → image-service/image-service.d.ts} +9 -9
  6. package/dist/managed-services/image-service/image-service.d.ts.map +1 -0
  7. package/dist/managed-services/{image-service.js → image-service/image-service.js} +35 -39
  8. package/dist/managed-services/image-service/image-service.js.map +1 -0
  9. package/dist/managed-services/image-service/index.d.ts +3 -0
  10. package/dist/managed-services/image-service/index.d.ts.map +1 -0
  11. package/dist/managed-services/image-service/index.js +15 -0
  12. package/dist/managed-services/image-service/index.js.map +1 -0
  13. package/dist/managed-services/index.d.ts +1 -1
  14. package/dist/managed-services/index.d.ts.map +1 -1
  15. package/dist/managed-services/index.js +1 -1
  16. package/dist/managed-services/index.js.map +1 -1
  17. package/dist/managed-services/monetization-service/index.d.ts +4 -0
  18. package/dist/managed-services/monetization-service/index.d.ts.map +1 -0
  19. package/dist/managed-services/monetization-service/index.js +16 -0
  20. package/dist/managed-services/monetization-service/index.js.map +1 -0
  21. package/dist/managed-services/monetization-service/monetization-service.d.ts +242 -0
  22. package/dist/managed-services/monetization-service/monetization-service.d.ts.map +1 -0
  23. package/dist/managed-services/monetization-service/monetization-service.js +467 -0
  24. package/dist/managed-services/monetization-service/monetization-service.js.map +1 -0
  25. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.d.ts +14 -0
  26. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.d.ts.map +1 -0
  27. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.js +26 -0
  28. package/dist/managed-services/monetization-service/payment-plan-recurrence-period-field.js.map +1 -0
  29. package/dist/managed-services/monetization-service/payment-provider-settings-field.d.ts +18 -0
  30. package/dist/managed-services/monetization-service/payment-provider-settings-field.d.ts.map +1 -0
  31. package/dist/managed-services/{payment-provider-settings-field.js → monetization-service/payment-provider-settings-field.js} +11 -0
  32. package/dist/managed-services/monetization-service/payment-provider-settings-field.js.map +1 -0
  33. package/dist/managed-services/video-service.d.ts +88 -0
  34. package/dist/managed-services/video-service.d.ts.map +1 -0
  35. package/dist/managed-services/video-service.js +169 -0
  36. package/dist/managed-services/video-service.js.map +1 -0
  37. package/dist/page-model.d.ts +4 -2
  38. package/dist/page-model.d.ts.map +1 -1
  39. package/dist/page-model.js +2 -0
  40. package/dist/page-model.js.map +1 -1
  41. package/dist/ui-selectors/ui-shell-model.d.ts +15 -2
  42. package/dist/ui-selectors/ui-shell-model.d.ts.map +1 -1
  43. package/dist/ui-selectors/ui-shell-model.js +42 -24
  44. package/dist/ui-selectors/ui-shell-model.js.map +1 -1
  45. package/package.json +5 -5
  46. package/dist/managed-services/image-selection-explorer.d.ts.map +0 -1
  47. package/dist/managed-services/image-selection-explorer.js.map +0 -1
  48. package/dist/managed-services/image-service.d.ts.map +0 -1
  49. package/dist/managed-services/image-service.js.map +0 -1
  50. package/dist/managed-services/monetization-service.d.ts +0 -208
  51. package/dist/managed-services/monetization-service.d.ts.map +0 -1
  52. package/dist/managed-services/monetization-service.js +0 -459
  53. package/dist/managed-services/monetization-service.js.map +0 -1
  54. package/dist/managed-services/payment-provider-settings-field.d.ts +0 -7
  55. package/dist/managed-services/payment-provider-settings-field.d.ts.map +0 -1
  56. package/dist/managed-services/payment-provider-settings-field.js.map +0 -1
@@ -11,6 +11,6 @@ export declare class ImageSelectionExplorer extends SelectionExplorer {
11
11
  * - Select the first result by row action
12
12
  * - Wait for the modal to be closed
13
13
  */
14
- selectImage(imageTitle: string): Promise<void>;
14
+ selectImageByTitle(imageTitle: string): Promise<void>;
15
15
  }
16
16
  //# sourceMappingURL=image-selection-explorer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-selection-explorer.d.ts","sourceRoot":"","sources":["../../../src/managed-services/image-service/image-selection-explorer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,gFAAgF;AAChF,qBAAa,sBAAuB,SAAQ,iBAAiB;IAC3D;;;;;;;;;OASG;IACG,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAyB5D"}
@@ -14,12 +14,13 @@ class ImageSelectionExplorer extends mosaic_e2e_ui_selectors_1.SelectionExplorer
14
14
  * - Select the first result by row action
15
15
  * - Wait for the modal to be closed
16
16
  */
17
- async selectImage(imageTitle) {
17
+ async selectImageByTitle(imageTitle) {
18
18
  // verify the modal header
19
19
  await this.pageHeader.title.waitFor({ state: 'visible' });
20
20
  if ((await this.pageHeader.title.textContent()) !== 'Select Image') {
21
21
  throw new Error('Image explorer modal must be showing.');
22
22
  }
23
+ await this.waitToOpen();
23
24
  await this.list.waitForData();
24
25
  await this.filters
25
26
  .getFilterByName('title')
@@ -32,7 +33,7 @@ class ImageSelectionExplorer extends mosaic_e2e_ui_selectors_1.SelectionExplorer
32
33
  }
33
34
  await this.list.getRow(1).selectButton.click();
34
35
  // wait for the modal to close
35
- await this.pageHeader.title.waitFor({ state: 'detached' });
36
+ await this.waitToClose();
36
37
  }
37
38
  }
38
39
  exports.ImageSelectionExplorer = ImageSelectionExplorer;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-selection-explorer.js","sourceRoot":"","sources":["../../../src/managed-services/image-service/image-selection-explorer.ts"],"names":[],"mappings":";;;AAAA,6EAAoE;AAEpE,gFAAgF;AAChF,MAAa,sBAAuB,SAAQ,2CAAiB;IAC3D;;;;;;;;;OASG;IACH,KAAK,CAAC,kBAAkB,CAAC,UAAkB;QACzC,0BAA0B;QAC1B,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,cAAc,EAAE;YAClE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SAC1D;QACD,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxB,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAE9B,MAAM,IAAI,CAAC,OAAO;aACf,eAAe,CAAC,OAAO,CAAC;aACxB,gBAAgB,EAAE;aAClB,QAAQ,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAE9B,oCAAoC;QACpC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE;YAClD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;SACrE;QAED,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QAE/C,8BAA8B;QAC9B,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;IAC3B,CAAC;CACF;AApCD,wDAoCC"}
@@ -1,5 +1,5 @@
1
+ import { ManagedServiceModel } from '../managed-service-model';
1
2
  import { ImageSelectionExplorer } from './image-selection-explorer';
2
- import { ManagedServiceModel } from './managed-service-model';
3
3
  /** A model for the managed image service. */
4
4
  export declare class ImageService extends ManagedServiceModel {
5
5
  /**
@@ -9,11 +9,11 @@ export declare class ImageService extends ManagedServiceModel {
9
9
  *
10
10
  * The following steps will be taken:
11
11
  * - Navigate to the home breadcrumb then the 'Images' tile
12
- * - Filter by title and verify that a single result is shown
13
- * - Click the image row action
12
+ * - Filter by title and click the image row action
14
13
  * - Wait for the image details station to load
15
14
  */
16
- navigateToImageDetails(filterBy: {
15
+ navigateToImageDetails(args: {
16
+ /** A unique image title. */
17
17
  title: string;
18
18
  }): Promise<void>;
19
19
  /**
@@ -30,10 +30,10 @@ export declare class ImageService extends ManagedServiceModel {
30
30
  */
31
31
  uploadImage(properties: {
32
32
  /** Path to a local image file. */
33
- localFilename: string;
33
+ sourceFile: string;
34
34
  /** A unique image title. */
35
35
  title: string;
36
- /** An existing image type. */
36
+ /** An existing image type (display value). */
37
37
  imageType: string;
38
38
  }): Promise<void>;
39
39
  /**
@@ -43,12 +43,12 @@ export declare class ImageService extends ManagedServiceModel {
43
43
  *
44
44
  * The following steps will be taken:
45
45
  * - Navigate to the home breadcrumb then the 'Images' tile
46
- * - Filter by title and verify that a single result is shown
47
- * - Navigate to the image with the row action
46
+ * - Filter by title and click the image row action
48
47
  * - Click 'Archive' and confirm
49
48
  * - Wait for the image explorer station to load
50
49
  */
51
- archiveImage(filters: {
50
+ archiveImage(args: {
51
+ /** A unique image title. */
52
52
  title: string;
53
53
  }): Promise<void>;
54
54
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-service.d.ts","sourceRoot":"","sources":["../../../src/managed-services/image-service/image-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,6CAA6C;AAC7C,qBAAa,YAAa,SAAQ,mBAAmB;IACnD;;;;;;;;;OASG;IACG,sBAAsB,CAAC,IAAI,EAAE;QACjC,4BAA4B;QAC5B,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BjB;;;;;;;;;;;OAWG;IACG,WAAW,CAAC,UAAU,EAAE;QAC5B,kCAAkC;QAClC,UAAU,EAAE,MAAM,CAAC;QACnB,4BAA4B;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,8CAA8C;QAC9C,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoCjB;;;;;;;;;;OAUG;IACG,YAAY,CAAC,IAAI,EAAE;QACvB,4BAA4B;QAC5B,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,sBAAsB,gCAA0B;CAC1D"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ImageService = void 0;
4
4
  const mosaic_e2e_ui_selectors_1 = require("@axinom/mosaic-e2e-ui-selectors");
5
+ const managed_service_model_1 = require("../managed-service-model");
5
6
  const image_selection_explorer_1 = require("./image-selection-explorer");
6
- const managed_service_model_1 = require("./managed-service-model");
7
7
  /** A model for the managed image service. */
8
8
  class ImageService extends managed_service_model_1.ManagedServiceModel {
9
9
  constructor() {
@@ -26,28 +26,26 @@ class ImageService extends managed_service_model_1.ManagedServiceModel {
26
26
  *
27
27
  * The following steps will be taken:
28
28
  * - Navigate to the home breadcrumb then the 'Images' tile
29
- * - Filter by title and verify that a single result is shown
30
- * - Click the image row action
29
+ * - Filter by title and click the image row action
31
30
  * - Wait for the image details station to load
32
31
  */
33
- async navigateToImageDetails(filterBy) {
34
- const { form, list, filters } = this.uiManagedWorkflows;
35
- await this.uiShell.navigateToLandingPageTile('Images');
36
- await list.waitForData();
32
+ async navigateToImageDetails(args) {
33
+ const { uiShell, uiManagedWorkflows } = this;
34
+ await uiShell.navigateToLandingPageTile('Images');
35
+ await uiManagedWorkflows.list.waitForData();
37
36
  // filter to the item
38
- await filters
37
+ await uiManagedWorkflows.filters
39
38
  .getFilterByName('title')
40
39
  .asFreeTextFilter()
41
- .setValue(filterBy.title);
42
- await list.waitForData();
40
+ .setValue(args.title);
41
+ await uiManagedWorkflows.list.waitForData();
43
42
  // Verify that there is exactly one matching row
44
- if ((await list.allVisibleRows.count()) !== 1) {
45
- throw new Error(`Failed to find exactly one image with title '${filterBy.title}'.`);
43
+ if ((await uiManagedWorkflows.list.allVisibleRows.count()) !== 1) {
44
+ throw new Error(`Failed to find exactly one non-archived image with title '${args.title}'.`);
46
45
  }
47
46
  // navigate
48
- await list.getRow(1).actionButton.click();
49
- await this.uiShell.waitForPageTransition();
50
- await form.waitForData();
47
+ await uiShell.waitForPageTransition(uiManagedWorkflows.list.getRow(1).actionButton.click());
48
+ await uiManagedWorkflows.form.waitForData();
51
49
  }
52
50
  /**
53
51
  * This method uploads an image file from the local file system.
@@ -62,32 +60,30 @@ class ImageService extends managed_service_model_1.ManagedServiceModel {
62
60
  * - Click the 'refresh' breadcrumb and wait for the image details station to reload
63
61
  */
64
62
  async uploadImage(properties) {
65
- const { form, pageHeader, actions } = this.uiManagedWorkflows;
66
- await this.uiShell.navigateToLandingPageTile('Images');
67
- await pageHeader.actions.getActionByLabel('Upload').click();
68
- await this.uiShell.waitForPageTransition();
63
+ const { uiShell, uiManagedWorkflows } = this;
64
+ await uiShell.navigateToLandingPageTile('Images');
65
+ await uiShell.waitForPageTransition(uiManagedWorkflows.pageHeader.actions.getActionByLabel('Upload').click());
69
66
  // Setting image upload input
70
- await form
67
+ await uiManagedWorkflows.form
71
68
  .getFieldByName('file')
72
69
  .asFileUploadField()
73
- .setValue(properties.localFilename);
70
+ .setValue(properties.sourceFile);
74
71
  // Set image type.
75
- await form
72
+ await uiManagedWorkflows.form
76
73
  .getFieldByName('imageType')
77
74
  .asSelectField()
78
- .setValue(properties.imageType);
75
+ .setValueByLabel(properties.imageType);
79
76
  // Submitting the upload
80
- await actions.getActionByLabel(mosaic_e2e_ui_selectors_1.ActionLabel.Proceed).click();
81
- await this.uiShell.waitForPageTransition();
82
- await form.waitForData();
77
+ await uiShell.waitForPageTransition(uiManagedWorkflows.actions.getActionByLabel(mosaic_e2e_ui_selectors_1.ActionLabel.Proceed).click());
78
+ await uiManagedWorkflows.form.waitForData();
83
79
  // Set image title.
84
- await form
80
+ await uiManagedWorkflows.form
85
81
  .getFieldByName('title')
86
82
  .asSingleLineTextField()
87
83
  .setValue(properties.title);
88
84
  // Refresh to save
89
- await this.uiShell.navigateToBreadcrumbRefresh();
90
- await form.waitForData();
85
+ await uiShell.navigateToBreadcrumbRefresh();
86
+ await uiManagedWorkflows.form.waitForData();
91
87
  }
92
88
  /**
93
89
  * This method archives an image by title.
@@ -96,24 +92,24 @@ class ImageService extends managed_service_model_1.ManagedServiceModel {
96
92
  *
97
93
  * The following steps will be taken:
98
94
  * - Navigate to the home breadcrumb then the 'Images' tile
99
- * - Filter by title and verify that a single result is shown
100
- * - Navigate to the image with the row action
95
+ * - Filter by title and click the image row action
101
96
  * - Click 'Archive' and confirm
102
97
  * - Wait for the image explorer station to load
103
98
  */
104
- async archiveImage(filters) {
105
- const { list, actions } = this.uiManagedWorkflows;
106
- await this.navigateToImageDetails(filters);
99
+ async archiveImage(args) {
100
+ const { uiShell, uiManagedWorkflows } = this;
101
+ await this.navigateToImageDetails(args);
107
102
  try {
108
- await actions.getActionByLabel('Archive').waitFor({ state: 'visible' });
103
+ await uiManagedWorkflows.actions
104
+ .getActionByLabel('Archive')
105
+ .waitFor({ state: 'visible' });
109
106
  }
110
107
  catch (_a) {
111
108
  throw new Error(`The image archive button is not visible.`);
112
109
  }
113
- await actions.getActionByLabel('Archive').click();
114
- await actions.confirmButton.click();
115
- await this.uiShell.waitForPageTransition();
116
- await list.waitForData();
110
+ await uiManagedWorkflows.actions.getActionByLabel('Archive').click();
111
+ await uiShell.waitForPageTransition(uiManagedWorkflows.actions.confirmButton.click());
112
+ await uiManagedWorkflows.list.waitForData();
117
113
  }
118
114
  }
119
115
  exports.ImageService = ImageService;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-service.js","sourceRoot":"","sources":["../../../src/managed-services/image-service/image-service.ts"],"names":[],"mappings":";;;AAAA,6EAA8D;AAC9D,oEAA+D;AAC/D,yEAAoE;AAEpE,6CAA6C;AAC7C,MAAa,YAA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gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;QACrE,MAAM,OAAO,CAAC,qBAAqB,CACjC,kBAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,CACjD,CAAC;QACF,MAAM,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9C,CAAC;CAYF;AAxID,oCAwIC"}
@@ -0,0 +1,3 @@
1
+ export * from './image-selection-explorer';
2
+ export * from './image-service';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/managed-services/image-service/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./image-selection-explorer"), exports);
14
+ __exportStar(require("./image-service"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/managed-services/image-service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC"}
@@ -1,4 +1,4 @@
1
- export * from './image-selection-explorer';
2
1
  export * from './image-service';
3
2
  export * from './monetization-service';
3
+ export * from './video-service';
4
4
  //# 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,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
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"}
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./image-selection-explorer"), exports);
14
13
  __exportStar(require("./image-service"), exports);
15
14
  __exportStar(require("./monetization-service"), exports);
15
+ __exportStar(require("./video-service"), exports);
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC;AAChC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/managed-services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,yDAAuC;AACvC,kDAAgC"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./monetization-service"), exports);
14
+ __exportStar(require("./payment-plan-recurrence-period-field"), exports);
15
+ __exportStar(require("./payment-provider-settings-field"), exports);
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,yEAAuD;AACvD,oEAAkD"}
@@ -0,0 +1,242 @@
1
+ import { ManagedServiceModel } from '../managed-service-model';
2
+ import { PaymentPlanRecurrencePeriodField } from './payment-plan-recurrence-period-field';
3
+ import { PaymentProviderSettingsField } from './payment-provider-settings-field';
4
+ export interface SubscriptionPlanFilters {
5
+ subscriptionPlanTitle: string;
6
+ }
7
+ export interface ClaimSetFilters {
8
+ uniqueKey: string;
9
+ }
10
+ /** A model for the managed monetization service. */
11
+ export declare class MonetizationService extends ManagedServiceModel {
12
+ /**
13
+ * This method navigates to the subscription plans explorer station.
14
+ * The management system must be loaded & signed in before using this method.
15
+ *
16
+ * The following steps will be taken:
17
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
18
+ * - Wait for data to load
19
+ */
20
+ navigateToSubscriptionPlans(): Promise<void>;
21
+ /**
22
+ * This method navigates to the claim sets explorer station.
23
+ * The management system must be loaded & signed in before using this method.
24
+ *
25
+ * The following steps will be taken:
26
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
27
+ * - Wait for data to load
28
+ */
29
+ navigateToClaimSets(): Promise<void>;
30
+ /**
31
+ * This method navigates to a subscription plan details station by title.
32
+ * The management system must be loaded & signed in before using this method.
33
+ * If there is not exactly one matching subscription plan an exception will be raised.
34
+ *
35
+ * The following steps will be taken:
36
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
37
+ * - Filter by title and click the subscription plan row action
38
+ * - Wait for the subscription plan details page to load
39
+ */
40
+ navigateToSubscriptionPlanDetails(filterBy: {
41
+ /** A unique subscription plan title. */
42
+ title: string;
43
+ }): Promise<void>;
44
+ /**
45
+ * This method navigates to a claim set details station by unique key.
46
+ * The management system must be loaded & signed in before using this method.
47
+ * If there is not exactly one matching claim set an exception will be raised.
48
+ *
49
+ * The following steps will be taken:
50
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
51
+ * - Filter by unique key and click the claim set row action
52
+ * - Wait for the claim set details station to load
53
+ */
54
+ navigateToClaimSetDetails(args: {
55
+ /** The claim set unique key. */
56
+ uniqueKey: string;
57
+ }): Promise<void>;
58
+ /**
59
+ * This method assigns a claim set to the subscription plan.
60
+ * The management system must be loaded & signed in before using this method.
61
+ * If the claim set does not exist, or is already added to this subscription plan then an exception will be raised.
62
+ *
63
+ * The following steps will be taken:
64
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
65
+ * - Filter by title and click the subscription plan row action
66
+ * - Click the 'Claim Sets' action
67
+ * - Open the claim sets explorer modal, filter by key and select the first result
68
+ * - Click the 'previous' breadcrumb and wait for the subscription plan details station to load
69
+ */
70
+ assignClaimSetToSubscriptionPlan(args: {
71
+ /** A unique subscription plan title. */
72
+ subscriptionPlanTitle: string;
73
+ /** The claim set unique key. */
74
+ claimSetUniqueKey: string;
75
+ }): Promise<void>;
76
+ /**
77
+ * This method removes a claim set assignment from a subscription plan.
78
+ * The management system must be loaded & signed in before using this method.
79
+ * If the claim set is not assigned to this subscription plan then an exception will be raised.
80
+ *
81
+ * The following steps will be taken:
82
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
83
+ * - Filter by title and click the subscription plan row action
84
+ * - Click the 'Claim Sets' action
85
+ * - Unassign the claim set using the inline menu
86
+ * - Click the 'previous' breadcrumb and wait for the subscription plan details station to load
87
+ */
88
+ removeClaimSetFromSubscriptionPlan(args: {
89
+ /** A unique subscription plan title. */
90
+ subscriptionPlanTitle: string;
91
+ /** The claim set unique key. */
92
+ claimSetUniqueKey: string;
93
+ }): Promise<void>;
94
+ /**
95
+ * This method sets subscription plan status and publishes the subscription plan.
96
+ * The management system must be loaded & signed in before using this method.
97
+ * If the subscription plan cannot be published then an exception will be raised.
98
+ *
99
+ * The following steps will be taken:
100
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Subscription Plans'
101
+ * - Filter by title and click the subscription plan row action
102
+ * - Set the Status field
103
+ * - Click 'Publishing'
104
+ * - Click 'Publish' and confirm
105
+ * - Wait for the subscription plan details station to load and verify that the publication state is 'PUBLISHED'
106
+ */
107
+ publishSubscriptionPlan(args: {
108
+ /** A unique subscription plan title. */
109
+ title: string;
110
+ /** The subscription plan status to be set. If omitted no change will be made. */
111
+ status?: 'Active' | 'Inactive';
112
+ }): Promise<void>;
113
+ /**
114
+ * This method creates a new claim set.
115
+ * The management system must be loaded & signed in before using this method.
116
+ * When this method completes, the new claim set details station will be loaded.
117
+ *
118
+ * The following steps will be taken:
119
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
120
+ * - Click 'NEW', enter the title and key then click 'Proceed'
121
+ * - Wait for the claim set details station to load
122
+ */
123
+ createClaimSet(properties: {
124
+ /** A unique subscription plan title. */
125
+ title: string;
126
+ /** The claim set unique key. */
127
+ uniqueKey: string;
128
+ }): Promise<void>;
129
+ /**
130
+ * This method assigns claims to a claim set.
131
+ * The management system must be loaded & signed in before using this method.
132
+ * NOTE: This method does not support adding claims by mod*a*l.
133
+ *
134
+ * The following steps will be taken:
135
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
136
+ * - Filter by unique key and click the claim set row action
137
+ * - Click 'Claims'
138
+ * - Add each claim by checkbox or radio button
139
+ * - Click the 'previous' breadcrumb and wait for the claim set details station to load
140
+ */
141
+ assignClaimsToClaimSet(args: {
142
+ /** The claim set unique key. */
143
+ uniqueKey: string;
144
+ /** The list of claim values to be assigned. Each claim input will be clicked. */
145
+ claims: string[];
146
+ }): Promise<void>;
147
+ /**
148
+ * This method assigns claims to a claim set.
149
+ * The management system must be loaded & signed in before using this method.
150
+ * NOTE: This method *does* support adding claims by mod*a*l.
151
+ *
152
+ * The following steps will be taken:
153
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
154
+ * - Filter by unique key and click the claim set row action
155
+ * - Click 'Claims'
156
+ * - Add each claim by checkbox or radio button
157
+ * - Click the 'previous' breadcrumb and wait for the claim set details station to load
158
+ */
159
+ assignClaimsToClaimSetByLabel(args: {
160
+ /** The claim set unique key. */
161
+ uniqueKey: string;
162
+ /** The label of the claim group. */
163
+ claimGroupLabel: string;
164
+ /** The claim labels in the claim group. Each will be clicked or added by modal as required. */
165
+ claimLabels: string[];
166
+ }): Promise<void>;
167
+ /**
168
+ * This method publishes a claim set.
169
+ * The management system must be loaded & signed in before using this method.
170
+ * If the claim set cannot be published then an exception will be raised.
171
+ *
172
+ * The following steps will be taken:
173
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
174
+ * - Filter by unique key and click the claim set row action
175
+ * - Click 'Publishing'
176
+ * - Click 'Publish' and confirm
177
+ * - Wait for the claim set details station to load
178
+ */
179
+ publishClaimSet(args: {
180
+ /** The claim set unique key. */
181
+ uniqueKey: string;
182
+ }): Promise<void>;
183
+ /**
184
+ * This method unpublishes a claim set by unique key.
185
+ * The management system must be loaded & signed in before using this method.
186
+ * If the claim set cannot be unpublished then an exception will be raised.
187
+ *
188
+ * The following steps will be taken:
189
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
190
+ * - Filter by unique key and click the claim set row action
191
+ * - Click 'Unpublish' and confirm
192
+ * - Wait for the claim sets details station to load
193
+ */
194
+ unpublishClaimSet(args: {
195
+ uniqueKey: string;
196
+ }): Promise<void>;
197
+ /**
198
+ * This method deletes a claim set by unique key.
199
+ * The management system must be loaded & signed in before using this method.
200
+ * If the claim set cannot be deleted then an exception will be raised.
201
+ *
202
+ * The following steps will be taken:
203
+ * - Navigate to the home breadcrumb, then tiles: 'Monetization', 'Claim Sets'
204
+ * - Filter by unique key and click the claim set row action
205
+ * - Click 'Delete' and confirm
206
+ * - Wait for the claim sets explorer to load
207
+ */
208
+ deleteClaimSet(args: {
209
+ /** The claim set unique key. */
210
+ uniqueKey: string;
211
+ }): Promise<void>;
212
+ /**
213
+ * A reference to a PaymentProviderSettingsField component mod*e*l which can
214
+ * be used to configure payment provider settings on subscription plans and
215
+ * payment plans. This is a custom FormField component.
216
+ *
217
+ * Example usage:
218
+ * ```
219
+ * const field = uiManagedWorkflows.form
220
+ * .getFieldByLabel('Payment Providers & Settings')
221
+ * .as(monetizationService.PaymentProviderSettingsField);
222
+ * await field.addPaymentProvider('PAYPAL');
223
+ * await field.setExternalId('PAYPAL', 'P-123XYZ');
224
+ * ```
225
+ */
226
+ readonly PaymentProviderSettingsField: typeof PaymentProviderSettingsField;
227
+ /**
228
+ * A reference to a PaymentPlanRecurrencePeriodField component mod*e*l which
229
+ * can be used to configure the "Recurrence Period" field on payment plans.
230
+ * This is a custom FormField component.
231
+ *
232
+ * Example usage:
233
+ * ```
234
+ * await uiManagedWorkflows.form
235
+ .getFieldByLabel('Recurrence Period')
236
+ .as(monetizationService.PaymentPlanRecurrencePeriodField)
237
+ .setValues(1, 'WEEK');
238
+ * ```
239
+ */
240
+ readonly PaymentPlanRecurrencePeriodField: typeof PaymentPlanRecurrencePeriodField;
241
+ }
242
+ //# sourceMappingURL=monetization-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monetization-service.d.ts","sourceRoot":"","sources":["../../../src/managed-services/monetization-service/monetization-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,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;IAgBlD;;;;;;;OAOG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;;;;;;;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;IAkCjB;;;;;;;;;;;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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