@cruglobal/godtools-shared 0.9.0-PR436-SNAPSHOT.1220 → 0.9.0-PR436-SNAPSHOT.1236

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.
@@ -132,6 +132,36 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
132
132
  }
133
133
  }
134
134
  }
135
+ export declare namespace org.cru.godtools.shared.tool.parser.model {
136
+ /* @ts-ignore: extends class with private primary constructor */
137
+ class Animation extends org.cru.godtools.shared.tool.parser.model.Content implements org.cru.godtools.shared.tool.parser.model.Clickable {
138
+ private constructor();
139
+ get resource(): Nullable<org.cru.godtools.shared.tool.parser.model.Resource>;
140
+ get loop(): boolean;
141
+ get autoPlay(): boolean;
142
+ get _playListeners(): any/* kotlin.collections.Set<org.cru.godtools.shared.tool.parser.model.EventId> */;
143
+ get _stopListeners(): any/* kotlin.collections.Set<org.cru.godtools.shared.tool.parser.model.EventId> */;
144
+ get _events(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.EventId> */;
145
+ get url(): Nullable<string>;
146
+ get playListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
147
+ get stopListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
148
+ get isClickable(): boolean;
149
+ get events(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
150
+ readonly __doNotUseOrImplementIt: org.cru.godtools.shared.tool.parser.model.Clickable["__doNotUseOrImplementIt"];
151
+ }
152
+ }
153
+ export declare namespace org.cru.godtools.shared.tool.parser.model {
154
+ class AspectRatio {
155
+ constructor(width: number, height: number);
156
+ get width(): number;
157
+ get height(): number;
158
+ get ratio(): number;
159
+ copy(width?: number, height?: number): org.cru.godtools.shared.tool.parser.model.AspectRatio;
160
+ toString(): string;
161
+ hashCode(): number;
162
+ equals(other: Nullable<any>): boolean;
163
+ }
164
+ }
135
165
  export declare namespace org.cru.godtools.shared.tool.parser.model {
136
166
  interface Clickable /* extends org.cru.godtools.shared.tool.parser.model.Base */ {
137
167
  readonly isClickable: boolean;
@@ -277,6 +307,51 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
277
307
  readonly __doNotUseOrImplementIt: org.cru.godtools.shared.tool.parser.model.Clickable["__doNotUseOrImplementIt"];
278
308
  }
279
309
  }
310
+ export declare namespace org.cru.godtools.shared.tool.parser.model {
311
+ /* @ts-ignore: extends class with private primary constructor */
312
+ class Input extends org.cru.godtools.shared.tool.parser.model.Content {
313
+ private constructor();
314
+ get type(): org.cru.godtools.shared.tool.parser.model.Input.Type;
315
+ get name(): Nullable<string>;
316
+ get value(): Nullable<string>;
317
+ get isRequired(): boolean;
318
+ get label(): Nullable<org.cru.godtools.shared.tool.parser.model.Text>;
319
+ get placeholder(): Nullable<org.cru.godtools.shared.tool.parser.model.Text>;
320
+ validateValue(raw: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.Input.Error>;
321
+ }
322
+ namespace Input {
323
+ abstract class Error {
324
+ protected constructor();
325
+ static get Required(): {
326
+ } & org.cru.godtools.shared.tool.parser.model.Input.Error;
327
+ static get InvalidEmail(): {
328
+ } & org.cru.godtools.shared.tool.parser.model.Input.Error;
329
+ }
330
+ abstract class Type {
331
+ private constructor();
332
+ static get TEXT(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
333
+ get name(): "TEXT";
334
+ get ordinal(): 0;
335
+ };
336
+ static get EMAIL(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
337
+ get name(): "EMAIL";
338
+ get ordinal(): 1;
339
+ };
340
+ static get PHONE(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
341
+ get name(): "PHONE";
342
+ get ordinal(): 2;
343
+ };
344
+ static get HIDDEN(): org.cru.godtools.shared.tool.parser.model.Input.Type & {
345
+ get name(): "HIDDEN";
346
+ get ordinal(): 3;
347
+ };
348
+ static values(): Array<org.cru.godtools.shared.tool.parser.model.Input.Type>;
349
+ static valueOf(value: string): org.cru.godtools.shared.tool.parser.model.Input.Type;
350
+ get name(): "TEXT" | "EMAIL" | "PHONE" | "HIDDEN";
351
+ get ordinal(): 0 | 1 | 2 | 3;
352
+ }
353
+ }
354
+ }
280
355
  export declare namespace org.cru.godtools.shared.tool.parser.model {
281
356
  class Manifest /* extends org.cru.godtools.shared.tool.parser.model.BaseModel */ /* implements org.cru.godtools.shared.tool.parser.model.Styles */ {
282
357
  private constructor();
@@ -292,7 +367,7 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
292
367
  set _pages(value: any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */);
293
368
  get shareables(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */;
294
369
  get relatedFiles(): any/* kotlin.collections.Set<string> */;
295
- static createTestManifest(config?: org.cru.godtools.shared.tool.parser.ParserConfig, type?: org.cru.godtools.shared.tool.parser.model.Manifest.Type, code?: Nullable<string>, locale?: Nullable<string>, primaryColor?: string, primaryTextColor?: string, navBarColor?: Nullable<string>, navBarControlColor?: Nullable<string>, backgroundColor?: string, cardBackgroundColor?: Nullable<string>, categoryLabelColor?: Nullable<string>, pageControlColor?: string, multiselectOptionSelectedColor?: Nullable<string>, textColor?: string, textScale?: number, resources?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.Resource> */>, shareables?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */>, tips?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tips.Tip> */>, pages?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */>): org.cru.godtools.shared.tool.parser.model.Manifest;
370
+ static createTestManifest(config?: org.cru.godtools.shared.tool.parser.ParserConfig, type?: org.cru.godtools.shared.tool.parser.model.Manifest.Type, code?: Nullable<string>, locale?: Nullable<string>, primaryColor?: string, primaryTextColor?: string, navBarColor?: Nullable<string>, navBarControlColor?: Nullable<string>, backgroundColor?: string, cardBackgroundColor?: Nullable<string>, categoryLabelColor?: Nullable<string>, pageControlColor?: string, multiselectOptionBackgroundColor?: Nullable<string>, multiselectOptionSelectedColor?: Nullable<string>, textColor?: string, textScale?: number, resources?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.Resource> */>, shareables?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.shareable.Shareable> */>, tips?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tips.Tip> */>, pages?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.Manifest) => any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.page.Page> */>): org.cru.godtools.shared.tool.parser.model.Manifest;
296
371
  get hasTips(): boolean;
297
372
  findPage(id: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.page.Page>;
298
373
  get dismissListeners(): Array<org.cru.godtools.shared.tool.parser.model.EventId>;
@@ -413,6 +488,34 @@ export declare namespace org.cru.godtools.shared.tool.parser.model {
413
488
  }
414
489
  }
415
490
  }
491
+ export declare namespace org.cru.godtools.shared.tool.parser.model {
492
+ /* @ts-ignore: extends class with private primary constructor */
493
+ class Video extends org.cru.godtools.shared.tool.parser.model.Content {
494
+ private constructor();
495
+ get provider(): org.cru.godtools.shared.tool.parser.model.Video.Provider;
496
+ get videoId(): Nullable<string>;
497
+ get aspectRatio(): org.cru.godtools.shared.tool.parser.model.AspectRatio;
498
+ get gravity(): org.cru.godtools.shared.tool.parser.model.Gravity.Horizontal;
499
+ get width(): org.cru.godtools.shared.tool.parser.model.Dimension;
500
+ }
501
+ namespace Video {
502
+ abstract class Provider {
503
+ private constructor();
504
+ static get YOUTUBE(): org.cru.godtools.shared.tool.parser.model.Video.Provider & {
505
+ get name(): "YOUTUBE";
506
+ get ordinal(): 0;
507
+ };
508
+ static get UNKNOWN(): org.cru.godtools.shared.tool.parser.model.Video.Provider & {
509
+ get name(): "UNKNOWN";
510
+ get ordinal(): 1;
511
+ };
512
+ static values(): Array<org.cru.godtools.shared.tool.parser.model.Video.Provider>;
513
+ static valueOf(value: string): org.cru.godtools.shared.tool.parser.model.Video.Provider;
514
+ get name(): "YOUTUBE" | "UNKNOWN";
515
+ get ordinal(): 0 | 1;
516
+ }
517
+ }
518
+ }
416
519
  export declare namespace org.cru.godtools.shared.tool.parser.model.page {
417
520
  abstract class Page /* extends org.cru.godtools.shared.tool.parser.model.BaseModel */ implements org.cru.godtools.shared.tool.parser.model.HasAnalyticsEvents/*, org.cru.godtools.shared.tool.parser.model.Styles */ {
418
521
  get id(): string;
@@ -487,13 +590,15 @@ export declare namespace org.cru.godtools.shared.tool.parser.model.tract {
487
590
  get isLastPage(): boolean;
488
591
  get header(): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Header>;
489
592
  get hero(): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Hero>;
490
- get modals(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.Modal> */;
593
+ get _modals(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.Modal> */;
491
594
  get callToAction(): org.cru.godtools.shared.tool.parser.model.tract.CallToAction;
492
595
  static createTestTractPage(manifest?: org.cru.godtools.shared.tool.parser.model.Manifest, fileName?: Nullable<string>, backgroundColor?: string, backgroundImage?: Nullable<string>, primaryColor?: Nullable<string>, backgroundImageGravity?: org.cru.godtools.shared.tool.parser.model.Gravity, backgroundImageScaleType?: any/* org.cru.godtools.shared.tool.parser.model.ImageScaleType */, textColor?: Nullable<string>, textScale?: number, cardBackgroundColor?: Nullable<string>, cardTextColor?: Nullable<string>, cards?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.tract.TractPage) => Nullable<any>/* Nullable<kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card>> */>, callToAction?: Nullable<(p0: org.cru.godtools.shared.tool.parser.model.tract.TractPage) => Nullable<org.cru.godtools.shared.tool.parser.model.tract.CallToAction>>): org.cru.godtools.shared.tool.parser.model.tract.TractPage;
493
596
  findModal(id: Nullable<string>): Nullable<org.cru.godtools.shared.tool.parser.model.tract.Modal>;
494
- get cards(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card> */;
597
+ get _cards(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card> */;
495
598
  get visibleCards(): any/* kotlin.collections.List<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card> */;
496
599
  get cardTextColor(): string;
600
+ get cards(): Array<org.cru.godtools.shared.tool.parser.model.tract.TractPage.Card>;
601
+ get modals(): Array<org.cru.godtools.shared.tool.parser.model.tract.Modal>;
497
602
  getAnalyticsEvents(type: org.cru.godtools.shared.tool.parser.model.AnalyticsEvent.Trigger): Array<org.cru.godtools.shared.tool.parser.model.AnalyticsEvent>;
498
603
  }
499
604
  namespace TractPage {