@gofynd/fdk-client-javascript 1.3.1 → 1.3.2

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.
@@ -3,12 +3,6 @@ export = ThemePlatformModel;
3
3
  * @typedef AddThemeRequestSchema
4
4
  * @property {string} [theme_id]
5
5
  */
6
- /**
7
- * @typedef AdvanceSetting
8
- * @property {DividerStrokeHighlightSetting} [divider_stroke_highlight]
9
- * @property {OverlayPopupSetting} [overlay_popup]
10
- * @property {UserAlertsSetting} [user_alerts]
11
- */
12
6
  /**
13
7
  * @typedef AllAvailablePageSchema
14
8
  * @property {AvailablePageSchema[]} [pages]
@@ -19,11 +13,6 @@ export = ThemePlatformModel;
19
13
  * @property {CSS} [css]
20
14
  * @property {UMDJs} [umd_js]
21
15
  */
22
- /**
23
- * @typedef AuthConfig
24
- * @property {boolean} [show_footer_auth] - Whether to show footer authentication or not
25
- * @property {boolean} [show_header_auth] - Whether to show header authentication or not
26
- */
27
16
  /**
28
17
  * @typedef AvailablePagePredicate
29
18
  * @property {AvailablePageRoutePredicate} [route]
@@ -98,26 +87,11 @@ export = ThemePlatformModel;
98
87
  * @property {ImagePickerProp} [image]
99
88
  * @property {UrlProp} [slide_link]
100
89
  */
101
- /**
102
- * @typedef ButtonSetting
103
- * @property {string} [button_link] - The button link color
104
- * @property {string} [button_primary] - The primary button color
105
- * @property {string} [button_secondary] - The secondary button color
106
- */
107
90
  /**
108
91
  * @typedef CheckboxProp
109
92
  * @property {string} [type] - The type of the property.
110
93
  * @property {boolean} [value] - The value of the checkbox property.
111
94
  */
112
- /**
113
- * @typedef Colors
114
- * @property {string} [accent_color] - The accent color
115
- * @property {string} [bg_color] - The background color
116
- * @property {string} [button_secondary_color] - The secondary button color
117
- * @property {string} [link_color] - The link color
118
- * @property {string} [primary_color] - The primary color
119
- * @property {string} [secondary_color] - The secondary color
120
- */
121
95
  /**
122
96
  * @typedef CommonJS
123
97
  * @property {string} [link]
@@ -185,11 +159,6 @@ export = ThemePlatformModel;
185
159
  * @property {string} [text_strikethrough_price_color] - The text strikethrough
186
160
  * price color
187
161
  */
188
- /**
189
- * @typedef DividerStrokeHighlightSetting
190
- * @property {string} [divider_strokes] - The divider strokes color
191
- * @property {string} [highlight] - The highlight color
192
- */
193
162
  /**
194
163
  * @typedef DummyResponse
195
164
  * @property {string} [message]
@@ -234,38 +203,10 @@ export = ThemePlatformModel;
234
203
  * @property {FontVariant} [regular]
235
204
  * @property {FontVariant} [semi_bold]
236
205
  */
237
- /**
238
- * @typedef FooterSetting
239
- * @property {string} [footer_background] - The footer background color
240
- * @property {string} [footer_body_text] - The footer body text color
241
- * @property {string} [footer_bottom_background] - The footer bottom background color
242
- * @property {string} [footer_heading_text] - The footer heading text color
243
- * @property {string} [footer_icon] - The footer icon color
244
- */
245
- /**
246
- * @typedef GeneralSetting
247
- * @property {ButtonSetting} [button]
248
- * @property {FooterSetting} [footer]
249
- * @property {HeaderSetting} [header]
250
- * @property {SaleDiscountSetting} [sale_discount]
251
- * @property {TextSetting} [text]
252
- * @property {ThemeSetting} [theme]
253
- */
254
- /**
255
- * @typedef GlobalConfig
256
- * @property {CustomConfig} [custom]
257
- * @property {StaticConfig} [statics]
258
- */
259
206
  /**
260
207
  * @typedef GlobalSchema
261
208
  * @property {Prop[]} [props]
262
209
  */
263
- /**
264
- * @typedef HeaderSetting
265
- * @property {string} [header_background] - The header background color
266
- * @property {string} [header_icon] - The header icon color
267
- * @property {string} [header_nav] - The header navigation color
268
- */
269
210
  /**
270
211
  * @typedef ImagePickerProp
271
212
  * @property {string} [type] - The type of the property.
@@ -291,11 +232,6 @@ export = ThemePlatformModel;
291
232
  * @property {Release} [release]
292
233
  * @property {string} [slug] - The slug of the theme
293
234
  */
294
- /**
295
- * @typedef OverlayPopupSetting
296
- * @property {string} [dialog_backgroung] - The dialog background color
297
- * @property {string} [overlay] - The overlay color
298
- */
299
235
  /**
300
236
  * @typedef Page
301
237
  * @property {number} [current]
@@ -306,11 +242,6 @@ export = ThemePlatformModel;
306
242
  * @property {number} [size]
307
243
  * @property {string} type
308
244
  */
309
- /**
310
- * @typedef PaletteConfig
311
- * @property {AdvanceSetting} [advance_setting]
312
- * @property {GeneralSetting} [general_setting]
313
- */
314
245
  /**
315
246
  * @typedef Predicate
316
247
  * @property {Route} [route]
@@ -344,13 +275,6 @@ export = ThemePlatformModel;
344
275
  * @property {string} [exact_url] - The exact URL of the route.
345
276
  * @property {string} [selected] - The selected route.
346
277
  */
347
- /**
348
- * @typedef SaleDiscountSetting
349
- * @property {string} [sale_badge_background] - The sale badge background color
350
- * @property {string} [sale_badge_text] - The sale badge text color
351
- * @property {string} [sale_discount_text] - The sale discount text color
352
- * @property {string} [sale_timer] - The sale timer color
353
- */
354
278
  /**
355
279
  * @typedef Screen
356
280
  * @property {boolean} [desktop] - True if the screen is a desktop device.
@@ -383,28 +307,11 @@ export = ThemePlatformModel;
383
307
  * @property {RangeProp} [slide_interval]
384
308
  * @property {TextProp} [title]
385
309
  */
386
- /**
387
- * @typedef StaticConfig
388
- * @property {StaticProps} [props]
389
- */
390
- /**
391
- * @typedef StaticProps
392
- * @property {AuthConfig} [auth]
393
- * @property {Colors} [colors]
394
- * @property {PaletteConfig} [palette]
395
- */
396
310
  /**
397
311
  * @typedef TextProp
398
312
  * @property {string} [type] - The type of the property.
399
313
  * @property {string} [value] - The value of the text property.
400
314
  */
401
- /**
402
- * @typedef TextSetting
403
- * @property {string} [text_body] - The text body color
404
- * @property {string} [text_heading] - The text heading color
405
- * @property {string} [text_label] - The text label color
406
- * @property {string} [text_secondary] - The secondary text color
407
- */
408
315
  /**
409
316
  * @typedef ThemeConfiguration
410
317
  * @property {CustomConfig} [custom]
@@ -436,11 +343,6 @@ export = ThemePlatformModel;
436
343
  * @property {string} [marketplace_theme_id] - The ID of the marketplace theme
437
344
  * to apply to the company.
438
345
  */
439
- /**
440
- * @typedef ThemeSetting
441
- * @property {string} [page_background] - The page background color
442
- * @property {string} [theme_accent] - The theme accent color
443
- */
444
346
  /**
445
347
  * @typedef ThemesSchema
446
348
  * @property {string} [_id] - The unique identifier of the theme
@@ -495,32 +397,16 @@ export = ThemePlatformModel;
495
397
  * @property {string} [type] - The type of the property.
496
398
  * @property {string} [value] - The value of the URL property.
497
399
  */
498
- /**
499
- * @typedef UserAlertsSetting
500
- * @property {string} [error_background] - The error background color
501
- * @property {string} [error_text] - The error text color
502
- * @property {string} [info_background] - The info background color
503
- * @property {string} [info_text] - The info text color
504
- * @property {string} [success_background] - The success background color
505
- * @property {string} [success_text] - The success text color
506
- */
507
400
  declare class ThemePlatformModel {
508
401
  }
509
402
  declare namespace ThemePlatformModel {
510
- export { AddThemeRequestSchema, AdvanceSetting, AllAvailablePageSchema, Assets, AuthConfig, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, ButtonSetting, CheckboxProp, Colors, CommonJS, CompanyThemeSchema, Config, CSS, CustomConfig, CustomProps, DividerStrokeHighlightSetting, DummyResponse, Font, FontsSchema, FontsSchemaItems, FontsSchemaItemsFiles, FontVariant, FontVariants, FooterSetting, GeneralSetting, GlobalConfig, GlobalSchema, HeaderSetting, ImagePickerProp, Images, MarketplaceThemeId, Meta, OverlayPopupSetting, Page, PaletteConfig, Predicate, Preset, Prop, RangeProp, Release, Route, SaleDiscountSetting, Screen, Section, SectionItem, SectionPreset, SectionProps, StaticConfig, StaticProps, TextProp, TextSetting, ThemeConfiguration, ThemeImages, ThemeMeta, ThemePayment, ThemeReq, ThemeSetting, ThemesSchema, ThemeUpgradableResponse, ThemeUserSchema, ThemeVersions, UMDJs, UpdateThemeNameRequestBody, UpdateThemeRequestBody, UrlProp, UserAlertsSetting };
403
+ export { AddThemeRequestSchema, AllAvailablePageSchema, Assets, AvailablePagePredicate, AvailablePageRoutePredicate, AvailablePageSchema, AvailablePageSchemaSections, AvailablePageScreenPredicate, AvailablePageSectionMetaAttributes, AvailablePageSeo, AvailablePageUserPredicate, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, Block, BlockProps, CheckboxProp, CommonJS, CompanyThemeSchema, Config, CSS, CustomConfig, CustomProps, DummyResponse, Font, FontsSchema, FontsSchemaItems, FontsSchemaItemsFiles, FontVariant, FontVariants, GlobalSchema, ImagePickerProp, Images, MarketplaceThemeId, Meta, Page, Predicate, Preset, Prop, RangeProp, Release, Route, Screen, Section, SectionItem, SectionPreset, SectionProps, TextProp, ThemeConfiguration, ThemeImages, ThemeMeta, ThemePayment, ThemeReq, ThemesSchema, ThemeUpgradableResponse, ThemeUserSchema, ThemeVersions, UMDJs, UpdateThemeNameRequestBody, UpdateThemeRequestBody, UrlProp };
511
404
  }
512
405
  /** @returns {AddThemeRequestSchema} */
513
406
  declare function AddThemeRequestSchema(): AddThemeRequestSchema;
514
407
  type AddThemeRequestSchema = {
515
408
  theme_id?: string;
516
409
  };
517
- /** @returns {AdvanceSetting} */
518
- declare function AdvanceSetting(): AdvanceSetting;
519
- type AdvanceSetting = {
520
- divider_stroke_highlight?: DividerStrokeHighlightSetting;
521
- overlay_popup?: OverlayPopupSetting;
522
- user_alerts?: UserAlertsSetting;
523
- };
524
410
  /** @returns {AllAvailablePageSchema} */
525
411
  declare function AllAvailablePageSchema(): AllAvailablePageSchema;
526
412
  type AllAvailablePageSchema = {
@@ -533,18 +419,6 @@ type Assets = {
533
419
  css?: CSS;
534
420
  umd_js?: UMDJs;
535
421
  };
536
- /** @returns {AuthConfig} */
537
- declare function AuthConfig(): AuthConfig;
538
- type AuthConfig = {
539
- /**
540
- * - Whether to show footer authentication or not
541
- */
542
- show_footer_auth?: boolean;
543
- /**
544
- * - Whether to show header authentication or not
545
- */
546
- show_header_auth?: boolean;
547
- };
548
422
  /** @returns {AvailablePagePredicate} */
549
423
  declare function AvailablePagePredicate(): AvailablePagePredicate;
550
424
  type AvailablePagePredicate = {
@@ -637,22 +511,6 @@ type BlockProps = {
637
511
  image?: ImagePickerProp;
638
512
  slide_link?: UrlProp;
639
513
  };
640
- /** @returns {ButtonSetting} */
641
- declare function ButtonSetting(): ButtonSetting;
642
- type ButtonSetting = {
643
- /**
644
- * - The button link color
645
- */
646
- button_link?: string;
647
- /**
648
- * - The primary button color
649
- */
650
- button_primary?: string;
651
- /**
652
- * - The secondary button color
653
- */
654
- button_secondary?: string;
655
- };
656
514
  /** @returns {CheckboxProp} */
657
515
  declare function CheckboxProp(): CheckboxProp;
658
516
  type CheckboxProp = {
@@ -665,34 +523,6 @@ type CheckboxProp = {
665
523
  */
666
524
  value?: boolean;
667
525
  };
668
- /** @returns {Colors} */
669
- declare function Colors(): Colors;
670
- type Colors = {
671
- /**
672
- * - The accent color
673
- */
674
- accent_color?: string;
675
- /**
676
- * - The background color
677
- */
678
- bg_color?: string;
679
- /**
680
- * - The secondary button color
681
- */
682
- button_secondary_color?: string;
683
- /**
684
- * - The link color
685
- */
686
- link_color?: string;
687
- /**
688
- * - The primary color
689
- */
690
- primary_color?: string;
691
- /**
692
- * - The secondary color
693
- */
694
- secondary_color?: string;
695
- };
696
526
  /** @returns {CommonJS} */
697
527
  declare function CommonJS(): CommonJS;
698
528
  type CommonJS = {
@@ -877,18 +707,6 @@ type CustomProps = {
877
707
  */
878
708
  text_strikethrough_price_color?: string;
879
709
  };
880
- /** @returns {DividerStrokeHighlightSetting} */
881
- declare function DividerStrokeHighlightSetting(): DividerStrokeHighlightSetting;
882
- type DividerStrokeHighlightSetting = {
883
- /**
884
- * - The divider strokes color
885
- */
886
- divider_strokes?: string;
887
- /**
888
- * - The highlight color
889
- */
890
- highlight?: string;
891
- };
892
710
  /** @returns {DummyResponse} */
893
711
  declare function DummyResponse(): DummyResponse;
894
712
  type DummyResponse = {
@@ -949,67 +767,11 @@ type FontVariants = {
949
767
  regular?: FontVariant;
950
768
  semi_bold?: FontVariant;
951
769
  };
952
- /** @returns {FooterSetting} */
953
- declare function FooterSetting(): FooterSetting;
954
- type FooterSetting = {
955
- /**
956
- * - The footer background color
957
- */
958
- footer_background?: string;
959
- /**
960
- * - The footer body text color
961
- */
962
- footer_body_text?: string;
963
- /**
964
- * - The footer bottom background color
965
- */
966
- footer_bottom_background?: string;
967
- /**
968
- * - The footer heading text color
969
- */
970
- footer_heading_text?: string;
971
- /**
972
- * - The footer icon color
973
- */
974
- footer_icon?: string;
975
- };
976
- /** @returns {GeneralSetting} */
977
- declare function GeneralSetting(): GeneralSetting;
978
- type GeneralSetting = {
979
- button?: ButtonSetting;
980
- footer?: FooterSetting;
981
- header?: HeaderSetting;
982
- sale_discount?: SaleDiscountSetting;
983
- text?: TextSetting;
984
- theme?: ThemeSetting;
985
- };
986
- /** @returns {GlobalConfig} */
987
- declare function GlobalConfig(): GlobalConfig;
988
- type GlobalConfig = {
989
- custom?: CustomConfig;
990
- statics?: StaticConfig;
991
- };
992
770
  /** @returns {GlobalSchema} */
993
771
  declare function GlobalSchema(): GlobalSchema;
994
772
  type GlobalSchema = {
995
773
  props?: Prop[];
996
774
  };
997
- /** @returns {HeaderSetting} */
998
- declare function HeaderSetting(): HeaderSetting;
999
- type HeaderSetting = {
1000
- /**
1001
- * - The header background color
1002
- */
1003
- header_background?: string;
1004
- /**
1005
- * - The header icon color
1006
- */
1007
- header_icon?: string;
1008
- /**
1009
- * - The header navigation color
1010
- */
1011
- header_nav?: string;
1012
- };
1013
775
  /** @returns {ImagePickerProp} */
1014
776
  declare function ImagePickerProp(): ImagePickerProp;
1015
777
  type ImagePickerProp = {
@@ -1069,18 +831,6 @@ type Meta = {
1069
831
  */
1070
832
  slug?: string;
1071
833
  };
1072
- /** @returns {OverlayPopupSetting} */
1073
- declare function OverlayPopupSetting(): OverlayPopupSetting;
1074
- type OverlayPopupSetting = {
1075
- /**
1076
- * - The dialog background color
1077
- */
1078
- dialog_backgroung?: string;
1079
- /**
1080
- * - The overlay color
1081
- */
1082
- overlay?: string;
1083
- };
1084
834
  /** @returns {Page} */
1085
835
  declare function Page(): Page;
1086
836
  type Page = {
@@ -1092,12 +842,6 @@ type Page = {
1092
842
  size?: number;
1093
843
  type: string;
1094
844
  };
1095
- /** @returns {PaletteConfig} */
1096
- declare function PaletteConfig(): PaletteConfig;
1097
- type PaletteConfig = {
1098
- advance_setting?: AdvanceSetting;
1099
- general_setting?: GeneralSetting;
1100
- };
1101
845
  /** @returns {Predicate} */
1102
846
  declare function Predicate(): Predicate;
1103
847
  type Predicate = {
@@ -1170,26 +914,6 @@ type Route = {
1170
914
  */
1171
915
  selected?: string;
1172
916
  };
1173
- /** @returns {SaleDiscountSetting} */
1174
- declare function SaleDiscountSetting(): SaleDiscountSetting;
1175
- type SaleDiscountSetting = {
1176
- /**
1177
- * - The sale badge background color
1178
- */
1179
- sale_badge_background?: string;
1180
- /**
1181
- * - The sale badge text color
1182
- */
1183
- sale_badge_text?: string;
1184
- /**
1185
- * - The sale discount text color
1186
- */
1187
- sale_discount_text?: string;
1188
- /**
1189
- * - The sale timer color
1190
- */
1191
- sale_timer?: string;
1192
- };
1193
917
  /** @returns {Screen} */
1194
918
  declare function Screen(): Screen;
1195
919
  type Screen = {
@@ -1248,18 +972,6 @@ type SectionProps = {
1248
972
  slide_interval?: RangeProp;
1249
973
  title?: TextProp;
1250
974
  };
1251
- /** @returns {StaticConfig} */
1252
- declare function StaticConfig(): StaticConfig;
1253
- type StaticConfig = {
1254
- props?: StaticProps;
1255
- };
1256
- /** @returns {StaticProps} */
1257
- declare function StaticProps(): StaticProps;
1258
- type StaticProps = {
1259
- auth?: AuthConfig;
1260
- colors?: Colors;
1261
- palette?: PaletteConfig;
1262
- };
1263
975
  /** @returns {TextProp} */
1264
976
  declare function TextProp(): TextProp;
1265
977
  type TextProp = {
@@ -1272,26 +984,6 @@ type TextProp = {
1272
984
  */
1273
985
  value?: string;
1274
986
  };
1275
- /** @returns {TextSetting} */
1276
- declare function TextSetting(): TextSetting;
1277
- type TextSetting = {
1278
- /**
1279
- * - The text body color
1280
- */
1281
- text_body?: string;
1282
- /**
1283
- * - The text heading color
1284
- */
1285
- text_heading?: string;
1286
- /**
1287
- * - The text label color
1288
- */
1289
- text_label?: string;
1290
- /**
1291
- * - The secondary text color
1292
- */
1293
- text_secondary?: string;
1294
- };
1295
987
  /** @returns {ThemeConfiguration} */
1296
988
  declare function ThemeConfiguration(): ThemeConfiguration;
1297
989
  type ThemeConfiguration = {
@@ -1358,18 +1050,6 @@ type ThemeReq = {
1358
1050
  */
1359
1051
  marketplace_theme_id?: string;
1360
1052
  };
1361
- /** @returns {ThemeSetting} */
1362
- declare function ThemeSetting(): ThemeSetting;
1363
- type ThemeSetting = {
1364
- /**
1365
- * - The page background color
1366
- */
1367
- page_background?: string;
1368
- /**
1369
- * - The theme accent color
1370
- */
1371
- theme_accent?: string;
1372
- };
1373
1053
  /** @returns {ThemesSchema} */
1374
1054
  declare function ThemesSchema(): ThemesSchema;
1375
1055
  type ThemesSchema = {
@@ -1498,31 +1178,3 @@ type UrlProp = {
1498
1178
  */
1499
1179
  value?: string;
1500
1180
  };
1501
- /** @returns {UserAlertsSetting} */
1502
- declare function UserAlertsSetting(): UserAlertsSetting;
1503
- type UserAlertsSetting = {
1504
- /**
1505
- * - The error background color
1506
- */
1507
- error_background?: string;
1508
- /**
1509
- * - The error text color
1510
- */
1511
- error_text?: string;
1512
- /**
1513
- * - The info background color
1514
- */
1515
- info_background?: string;
1516
- /**
1517
- * - The info text color
1518
- */
1519
- info_text?: string;
1520
- /**
1521
- * - The success background color
1522
- */
1523
- success_background?: string;
1524
- /**
1525
- * - The success text color
1526
- */
1527
- success_text?: string;
1528
- };