@maxim_mazurok/gapi.client.walletobjects-v1 0.0.20240925 → 0.0.20240927

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 (2) hide show
  1. package/index.d.ts +47 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://walletobjects.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240925
12
+ // Revision: 20240927
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -417,6 +417,8 @@ declare namespace gapi.client {
417
417
  securityAnimation?: SecurityAnimation;
418
418
  /** Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. */
419
419
  textModulesData?: TextModuleData[];
420
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
421
+ valueAddedModuleData?: ValueAddedModuleData[];
420
422
  /** Event venue details. */
421
423
  venue?: EventVenue;
422
424
  /** Deprecated */
@@ -503,6 +505,8 @@ declare namespace gapi.client {
503
505
  ticketType?: LocalizedString;
504
506
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
505
507
  validTimeInterval?: TimeInterval;
508
+ /** Optional value added module data. Maximum of ten on the object. */
509
+ valueAddedModuleData?: ValueAddedModuleData[];
506
510
  /** Deprecated */
507
511
  version?: string;
508
512
  }
@@ -632,6 +636,8 @@ declare namespace gapi.client {
632
636
  securityAnimation?: SecurityAnimation;
633
637
  /** Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. */
634
638
  textModulesData?: TextModuleData[];
639
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
640
+ valueAddedModuleData?: ValueAddedModuleData[];
635
641
  /** Deprecated */
636
642
  version?: string;
637
643
  /** View Unlock Requirement options for the boarding pass. */
@@ -722,6 +728,8 @@ declare namespace gapi.client {
722
728
  textModulesData?: TextModuleData[];
723
729
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
724
730
  validTimeInterval?: TimeInterval;
731
+ /** Optional value added module data. Maximum of ten on the object. */
732
+ valueAddedModuleData?: ValueAddedModuleData[];
725
733
  /** Deprecated */
726
734
  version?: string;
727
735
  }
@@ -768,6 +776,8 @@ declare namespace gapi.client {
768
776
  securityAnimation?: SecurityAnimation;
769
777
  /** Text module data. If `textModulesData` is also defined on the object, both will be displayed. The maximum number of these fields displayed is 10 from class and 10 from object. */
770
778
  textModulesData?: TextModuleData[];
779
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
780
+ valueAddedModuleData?: ValueAddedModuleData[];
771
781
  /** View Unlock Requirement options for the generic pass. */
772
782
  viewUnlockRequirement?: string;
773
783
  }
@@ -832,6 +842,8 @@ declare namespace gapi.client {
832
842
  textModulesData?: TextModuleData[];
833
843
  /** The time period this object will be considered valid or usable. When the time period is passed, the object will be considered expired, which will affect the rendering on user's devices. */
834
844
  validTimeInterval?: TimeInterval;
845
+ /** Optional value added module data. Maximum of ten on the object. */
846
+ valueAddedModuleData?: ValueAddedModuleData[];
835
847
  /** The wide logo of the pass. When provided, this will be used in place of the logo in the top left of the card view. */
836
848
  wideLogo?: Image;
837
849
  }
@@ -914,6 +926,8 @@ declare namespace gapi.client {
914
926
  securityAnimation?: SecurityAnimation;
915
927
  /** Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. */
916
928
  textModulesData?: TextModuleData[];
929
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
930
+ valueAddedModuleData?: ValueAddedModuleData[];
917
931
  /** Deprecated */
918
932
  version?: string;
919
933
  /** View Unlock Requirement options for the gift card. */
@@ -992,6 +1006,8 @@ declare namespace gapi.client {
992
1006
  textModulesData?: TextModuleData[];
993
1007
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
994
1008
  validTimeInterval?: TimeInterval;
1009
+ /** Optional value added module data. Maximum of ten on the object. */
1010
+ valueAddedModuleData?: ValueAddedModuleData[];
995
1011
  /** Deprecated */
996
1012
  version?: string;
997
1013
  }
@@ -1207,6 +1223,8 @@ declare namespace gapi.client {
1207
1223
  securityAnimation?: SecurityAnimation;
1208
1224
  /** Text module data. If text module data is also defined on the class, both will be displayed. The maximum number of these fields displayed is 10 from the object and 10 from the class. */
1209
1225
  textModulesData?: TextModuleData[];
1226
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
1227
+ valueAddedModuleData?: ValueAddedModuleData[];
1210
1228
  /** Deprecated */
1211
1229
  version?: string;
1212
1230
  /** View Unlock Requirement options for the loyalty card. */
@@ -1285,6 +1303,8 @@ declare namespace gapi.client {
1285
1303
  textModulesData?: TextModuleData[];
1286
1304
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
1287
1305
  validTimeInterval?: TimeInterval;
1306
+ /** Optional value added module data. Maximum of ten on the object. */
1307
+ valueAddedModuleData?: ValueAddedModuleData[];
1288
1308
  /** Deprecated */
1289
1309
  version?: string;
1290
1310
  }
@@ -1426,6 +1446,10 @@ declare namespace gapi.client {
1426
1446
  /** The linked offer object ids to add or remove from the object. */
1427
1447
  linkedOfferObjectIds?: ModifyLinkedOfferObjects;
1428
1448
  }
1449
+ interface ModuleViewConstraints {
1450
+ /** The period of time that the module will be displayed to users. Can define both a `startTime` and `endTime`. The module is displayed immediately after insertion unless a `startTime` is set. The module is displayed indefinitely if `endTime` is not set. */
1451
+ displayInterval?: TimeInterval;
1452
+ }
1429
1453
  interface Money {
1430
1454
  /** The currency code, such as "USD" or "EUR." */
1431
1455
  currencyCode?: string;
@@ -1523,6 +1547,8 @@ declare namespace gapi.client {
1523
1547
  title?: string;
1524
1548
  /** The title image of the offer. This image is displayed in both the details and list views of the app. */
1525
1549
  titleImage?: Image;
1550
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
1551
+ valueAddedModuleData?: ValueAddedModuleData[];
1526
1552
  /** Deprecated */
1527
1553
  version?: string;
1528
1554
  /** View Unlock Requirement options for the offer. */
@@ -1591,6 +1617,8 @@ declare namespace gapi.client {
1591
1617
  textModulesData?: TextModuleData[];
1592
1618
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
1593
1619
  validTimeInterval?: TimeInterval;
1620
+ /** Optional value added module data. Maximum of ten on the object. */
1621
+ valueAddedModuleData?: ValueAddedModuleData[];
1594
1622
  /** Deprecated */
1595
1623
  version?: string;
1596
1624
  }
@@ -1936,6 +1964,8 @@ declare namespace gapi.client {
1936
1964
  transitOperatorName?: LocalizedString;
1937
1965
  /** Required. The type of transit this class represents, such as "bus". */
1938
1966
  transitType?: string;
1967
+ /** Optional value added module data. Maximum of ten on the class. For a pass only ten will be displayed, prioritizing those from the object. */
1968
+ valueAddedModuleData?: ValueAddedModuleData[];
1939
1969
  /** Deprecated */
1940
1970
  version?: string;
1941
1971
  /** View Unlock Requirement options for the transit ticket. */
@@ -2036,6 +2066,8 @@ declare namespace gapi.client {
2036
2066
  tripType?: string;
2037
2067
  /** The time period this object will be `active` and object can be used. An object's state will be changed to `expired` when this time period has passed. */
2038
2068
  validTimeInterval?: TimeInterval;
2069
+ /** Optional value added module data. Maximum of ten on the object. */
2070
+ valueAddedModuleData?: ValueAddedModuleData[];
2039
2071
  /** Deprecated */
2040
2072
  version?: string;
2041
2073
  }
@@ -2080,6 +2112,20 @@ declare namespace gapi.client {
2080
2112
  /** The location of a web page, image, or other resource. URIs in the `LinksModuleData` module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme. */
2081
2113
  uri?: string;
2082
2114
  }
2115
+ interface ValueAddedModuleData {
2116
+ /** Body to be displayed on the module. Character limit is 50 and longer strings will be truncated. */
2117
+ body?: LocalizedString;
2118
+ /** Header to be displayed on the module. Character limit is 60 and longer strings will be truncated. */
2119
+ header?: LocalizedString;
2120
+ /** Image to be displayed on the module. Recommended image ratio is 1:1. Images will be resized to fit this ratio. */
2121
+ image?: Image;
2122
+ /** The index for sorting the modules. Modules with a lower sort index are shown before modules with a higher sort index. If unspecified, the sort index is assumed to be INT_MAX. For two modules with the same index, the sorting behavior is undefined. */
2123
+ sortIndex?: number;
2124
+ /** URI that the module leads to on click. This can be a web link or a deep link as mentioned in https://developer.android.com/training/app-links/deep-linking. */
2125
+ uri?: string;
2126
+ /** Constraints that all must be met for the module to be shown. */
2127
+ viewConstraints?: ModuleViewConstraints;
2128
+ }
2083
2129
  interface EventticketclassResource {
2084
2130
  /** Adds a message to the event ticket class referenced by the given class ID. */
2085
2131
  addmessage(request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.walletobjects-v1",
3
- "version": "0.0.20240925",
3
+ "version": "0.0.20240927",
4
4
  "description": "TypeScript typings for Google Wallet API v1",
5
5
  "repository": {
6
6
  "type": "git",