@maxim_mazurok/gapi.client.walletobjects-v1 0.0.20240214 → 0.0.20240215

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 (3) hide show
  1. package/index.d.ts +66 -2
  2. package/package.json +1 -1
  3. package/readme.md +7 -0
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: 20240214
12
+ // Revision: 20240215
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -71,7 +71,9 @@ declare namespace gapi.client {
71
71
  title?: LocalizedString;
72
72
  }
73
73
  interface AppLinkDataAppLinkInfoAppTarget {
74
- /** URI for AppTarget. The description on the URI must be set. */
74
+ /** Package name for AppTarget. For example: com.google.android.gm */
75
+ packageName?: string;
76
+ /** URI for AppTarget. The description on the URI must be set. Prefer setting package field instead, if this target is defined for your application. */
75
77
  targetUri?: Uri;
76
78
  }
77
79
  interface AuthenticationKey {
@@ -755,6 +757,10 @@ declare namespace gapi.client {
755
757
  /** View Unlock Requirement options for the generic pass. */
756
758
  viewUnlockRequirement?: string;
757
759
  }
760
+ interface GenericClassAddMessageResponse {
761
+ /** The updated EventTicketClass resource. */
762
+ resource?: GenericClass;
763
+ }
758
764
  interface GenericClassListResponse {
759
765
  /** Pagination of the response. */
760
766
  pagination?: Pagination;
@@ -3217,6 +3223,64 @@ declare namespace gapi.client {
3217
3223
  ): Request<FlightObject>;
3218
3224
  }
3219
3225
  interface GenericclassResource {
3226
+ /** Adds a message to the generic class referenced by the given class ID. */
3227
+ addmessage(request: {
3228
+ /** V1 error format. */
3229
+ '$.xgafv'?: string;
3230
+ /** OAuth access token. */
3231
+ access_token?: string;
3232
+ /** Data format for response. */
3233
+ alt?: string;
3234
+ /** JSONP */
3235
+ callback?: string;
3236
+ /** Selector specifying which fields to include in a partial response. */
3237
+ fields?: string;
3238
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3239
+ key?: string;
3240
+ /** OAuth 2.0 token for the current user. */
3241
+ oauth_token?: string;
3242
+ /** Returns response with indentations and line breaks. */
3243
+ prettyPrint?: boolean;
3244
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3245
+ quotaUser?: string;
3246
+ /** The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. */
3247
+ resourceId: string;
3248
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3249
+ upload_protocol?: string;
3250
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3251
+ uploadType?: string;
3252
+ /** Request body */
3253
+ resource: AddMessageRequest;
3254
+ }): Request<GenericClassAddMessageResponse>;
3255
+ addmessage(
3256
+ request: {
3257
+ /** V1 error format. */
3258
+ '$.xgafv'?: string;
3259
+ /** OAuth access token. */
3260
+ access_token?: string;
3261
+ /** Data format for response. */
3262
+ alt?: string;
3263
+ /** JSONP */
3264
+ callback?: string;
3265
+ /** Selector specifying which fields to include in a partial response. */
3266
+ fields?: string;
3267
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3268
+ key?: string;
3269
+ /** OAuth 2.0 token for the current user. */
3270
+ oauth_token?: string;
3271
+ /** Returns response with indentations and line breaks. */
3272
+ prettyPrint?: boolean;
3273
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3274
+ quotaUser?: string;
3275
+ /** The unique identifier for a class. This ID must be unique across all classes from an issuer. This value should follow the format issuer ID. identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. */
3276
+ resourceId: string;
3277
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3278
+ upload_protocol?: string;
3279
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3280
+ uploadType?: string;
3281
+ },
3282
+ body: AddMessageRequest
3283
+ ): Request<GenericClassAddMessageResponse>;
3220
3284
  /** Returns the generic class with the given class ID. */
3221
3285
  get(request?: {
3222
3286
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.walletobjects-v1",
3
- "version": "0.0.20240214",
3
+ "version": "0.0.20240215",
4
4
  "description": "TypeScript typings for Google Wallet API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -216,6 +216,13 @@ Updates the flight object referenced by the given object ID.
216
216
  */
217
217
  await gapi.client.walletobjects.flightobject.update({resourceId: 'resourceId'});
218
218
 
219
+ /*
220
+ Adds a message to the generic class referenced by the given class ID.
221
+ */
222
+ await gapi.client.walletobjects.genericclass.addmessage({
223
+ resourceId: 'resourceId',
224
+ });
225
+
219
226
  /*
220
227
  Returns the generic class with the given class ID.
221
228
  */