@raydiant/playlist-window-manager 0.22.0 → 0.22.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.
@@ -98,13 +98,7 @@ var isValidChargeRequest = function (value) {
98
98
  return value &&
99
99
  typeof value === 'object' &&
100
100
  typeof value.requestId === 'string' &&
101
- typeof value.amount === 'number' &&
102
- (value.tags === undefined ||
103
- value.tags === null ||
104
- typeof value.tags === 'object') &&
105
- (value.idempotencyId === undefined ||
106
- value.idempotencyId === null ||
107
- typeof value.idempotencyId === 'string');
101
+ typeof value.amount === 'number';
108
102
  };
109
103
  var PresentationWindow = /** @class */ (function () {
110
104
  function PresentationWindow(options) {
package/build/types.d.ts CHANGED
@@ -143,8 +143,13 @@ export interface AnalyticsEvent {
143
143
  export interface ChargeRequest {
144
144
  requestId: string;
145
145
  amount: number;
146
- tags?: Record<string, undefined | null | boolean | number | string>;
147
- idempotencyId?: string;
146
+ items: Array<{
147
+ name: string;
148
+ price: number;
149
+ description?: string;
150
+ sku?: string;
151
+ quantity?: number;
152
+ }>;
148
153
  }
149
154
  export interface Charge {
150
155
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -78,13 +78,7 @@ const isValidChargeRequest = (value: any): value is ChargeRequest =>
78
78
  value &&
79
79
  typeof value === 'object' &&
80
80
  typeof value.requestId === 'string' &&
81
- typeof value.amount === 'number' &&
82
- (value.tags === undefined ||
83
- value.tags === null ||
84
- typeof value.tags === 'object') &&
85
- (value.idempotencyId === undefined ||
86
- value.idempotencyId === null ||
87
- typeof value.idempotencyId === 'string');
81
+ typeof value.amount === 'number';
88
82
 
89
83
  export default class PresentationWindow {
90
84
  private didReceiveReady: boolean = false;
package/src/types.ts CHANGED
@@ -177,8 +177,13 @@ export interface AnalyticsEvent {
177
177
  export interface ChargeRequest {
178
178
  requestId: string;
179
179
  amount: number;
180
- tags?: Record<string, undefined | null | boolean | number | string>;
181
- idempotencyId?: string;
180
+ items: Array<{
181
+ name: string;
182
+ price: number;
183
+ description?: string;
184
+ sku?: string;
185
+ quantity?: number;
186
+ }>;
182
187
  }
183
188
 
184
189
  export interface Charge {