@maxim_mazurok/gapi.client.walletobjects-v1 0.0.20240213 → 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.
- package/index.d.ts +68 -100
- package/package.json +1 -1
- 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:
|
|
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
|
-
/**
|
|
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 {
|
|
@@ -742,6 +744,8 @@ declare namespace gapi.client {
|
|
|
742
744
|
imageModulesData?: ImageModuleData[];
|
|
743
745
|
/** Links module data. If `linksModuleData` 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. */
|
|
744
746
|
linksModuleData?: LinksModuleData;
|
|
747
|
+
/** An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10. */
|
|
748
|
+
messages?: Message[];
|
|
745
749
|
/** Identifies whether multiple users and devices will save the same object referencing this class. */
|
|
746
750
|
multipleDevicesAndHoldersAllowedStatus?: string;
|
|
747
751
|
/** Identifies which redemption issuers can redeem the pass over Smart Tap. Redemption issuers are identified by their issuer ID. Redemption issuers must have at least one Smart Tap key configured. The `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also be set up correctly in order for a pass to support Smart Tap. */
|
|
@@ -753,6 +757,10 @@ declare namespace gapi.client {
|
|
|
753
757
|
/** View Unlock Requirement options for the generic pass. */
|
|
754
758
|
viewUnlockRequirement?: string;
|
|
755
759
|
}
|
|
760
|
+
interface GenericClassAddMessageResponse {
|
|
761
|
+
/** The updated EventTicketClass resource. */
|
|
762
|
+
resource?: GenericClass;
|
|
763
|
+
}
|
|
756
764
|
interface GenericClassListResponse {
|
|
757
765
|
/** Pagination of the response. */
|
|
758
766
|
pagination?: Pagination;
|
|
@@ -1580,18 +1588,6 @@ declare namespace gapi.client {
|
|
|
1580
1588
|
/** The complete list of permissions for the issuer account. */
|
|
1581
1589
|
permissions?: Permission[];
|
|
1582
1590
|
}
|
|
1583
|
-
interface PrivateText {
|
|
1584
|
-
/** Translated strings for the body. */
|
|
1585
|
-
body?: LocalizedString;
|
|
1586
|
-
/** Translated strings for the header. */
|
|
1587
|
-
header?: LocalizedString;
|
|
1588
|
-
}
|
|
1589
|
-
interface PrivateUri {
|
|
1590
|
-
/** The URI's title appearing in the app as text and its translated strings. Recommended maximum is 20 characters to ensure the full string is displayed on smaller screens. */
|
|
1591
|
-
description?: LocalizedString;
|
|
1592
|
-
/** The location of a web page, image, or other resource. URIs in the `LinksModuleData` 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). */
|
|
1593
|
-
uri?: string;
|
|
1594
|
-
}
|
|
1595
1591
|
interface PurchaseDetails {
|
|
1596
1592
|
/** ID of the account used to purchase the ticket. */
|
|
1597
1593
|
accountId?: string;
|
|
@@ -2004,28 +2000,6 @@ declare namespace gapi.client {
|
|
|
2004
2000
|
/** Indicates if the object needs to have upcoming notification enabled. */
|
|
2005
2001
|
enableNotification?: boolean;
|
|
2006
2002
|
}
|
|
2007
|
-
interface UploadPrivateDataRequest {
|
|
2008
|
-
/** The ID of the issuer sending the data. */
|
|
2009
|
-
issuerId?: string;
|
|
2010
|
-
/** Private text data of the user. */
|
|
2011
|
-
text?: PrivateText;
|
|
2012
|
-
/** Private URIs of the user. */
|
|
2013
|
-
uri?: PrivateUri;
|
|
2014
|
-
}
|
|
2015
|
-
interface UploadPrivateDataResponse {
|
|
2016
|
-
/** A 64-bit content id for the private data that was uploaded by the Issuer. */
|
|
2017
|
-
privateContentId?: string;
|
|
2018
|
-
}
|
|
2019
|
-
interface UploadPrivateImageRequest {
|
|
2020
|
-
/** A reference to the image payload that was uploaded by Scotty. */
|
|
2021
|
-
blob?: Media;
|
|
2022
|
-
/** Extra information about the uploaded media. */
|
|
2023
|
-
mediaRequestInfo?: MediaRequestInfo;
|
|
2024
|
-
}
|
|
2025
|
-
interface UploadPrivateImageResponse {
|
|
2026
|
-
/** A 64-bit content id for the image that was uploaded by the Issuer. */
|
|
2027
|
-
privateContentId?: string;
|
|
2028
|
-
}
|
|
2029
2003
|
interface Uri {
|
|
2030
2004
|
/** The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when `description` is part of an image. */
|
|
2031
2005
|
description?: string;
|
|
@@ -3249,6 +3223,64 @@ declare namespace gapi.client {
|
|
|
3249
3223
|
): Request<FlightObject>;
|
|
3250
3224
|
}
|
|
3251
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>;
|
|
3252
3284
|
/** Returns the generic class with the given class ID. */
|
|
3253
3285
|
get(request?: {
|
|
3254
3286
|
/** V1 error format. */
|
|
@@ -6580,68 +6612,6 @@ declare namespace gapi.client {
|
|
|
6580
6612
|
body: TransitObject
|
|
6581
6613
|
): Request<TransitObject>;
|
|
6582
6614
|
}
|
|
6583
|
-
interface PrivateContentResource {
|
|
6584
|
-
/** Upload private data (text or URI) and returns an Id to be used in its place. */
|
|
6585
|
-
uploadPrivateData(request: {
|
|
6586
|
-
/** V1 error format. */
|
|
6587
|
-
'$.xgafv'?: string;
|
|
6588
|
-
/** OAuth access token. */
|
|
6589
|
-
access_token?: string;
|
|
6590
|
-
/** Data format for response. */
|
|
6591
|
-
alt?: string;
|
|
6592
|
-
/** JSONP */
|
|
6593
|
-
callback?: string;
|
|
6594
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
6595
|
-
fields?: string;
|
|
6596
|
-
/** 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. */
|
|
6597
|
-
key?: string;
|
|
6598
|
-
/** OAuth 2.0 token for the current user. */
|
|
6599
|
-
oauth_token?: string;
|
|
6600
|
-
/** Returns response with indentations and line breaks. */
|
|
6601
|
-
prettyPrint?: boolean;
|
|
6602
|
-
/** 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. */
|
|
6603
|
-
quotaUser?: string;
|
|
6604
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6605
|
-
upload_protocol?: string;
|
|
6606
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6607
|
-
uploadType?: string;
|
|
6608
|
-
/** Request body */
|
|
6609
|
-
resource: UploadPrivateDataRequest;
|
|
6610
|
-
}): Request<UploadPrivateDataResponse>;
|
|
6611
|
-
uploadPrivateData(
|
|
6612
|
-
request: {
|
|
6613
|
-
/** V1 error format. */
|
|
6614
|
-
'$.xgafv'?: string;
|
|
6615
|
-
/** OAuth access token. */
|
|
6616
|
-
access_token?: string;
|
|
6617
|
-
/** Data format for response. */
|
|
6618
|
-
alt?: string;
|
|
6619
|
-
/** JSONP */
|
|
6620
|
-
callback?: string;
|
|
6621
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
6622
|
-
fields?: string;
|
|
6623
|
-
/** 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. */
|
|
6624
|
-
key?: string;
|
|
6625
|
-
/** OAuth 2.0 token for the current user. */
|
|
6626
|
-
oauth_token?: string;
|
|
6627
|
-
/** Returns response with indentations and line breaks. */
|
|
6628
|
-
prettyPrint?: boolean;
|
|
6629
|
-
/** 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. */
|
|
6630
|
-
quotaUser?: string;
|
|
6631
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6632
|
-
upload_protocol?: string;
|
|
6633
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6634
|
-
uploadType?: string;
|
|
6635
|
-
},
|
|
6636
|
-
body: UploadPrivateDataRequest
|
|
6637
|
-
): Request<UploadPrivateDataResponse>;
|
|
6638
|
-
}
|
|
6639
|
-
interface V1Resource {
|
|
6640
|
-
privateContent: PrivateContentResource;
|
|
6641
|
-
}
|
|
6642
|
-
interface WalletobjectsResource {
|
|
6643
|
-
v1: V1Resource;
|
|
6644
|
-
}
|
|
6645
6615
|
|
|
6646
6616
|
const eventticketclass: EventticketclassResource;
|
|
6647
6617
|
|
|
@@ -6680,7 +6650,5 @@ declare namespace gapi.client {
|
|
|
6680
6650
|
const transitclass: TransitclassResource;
|
|
6681
6651
|
|
|
6682
6652
|
const transitobject: TransitobjectResource;
|
|
6683
|
-
|
|
6684
|
-
const walletobjects: WalletobjectsResource;
|
|
6685
6653
|
}
|
|
6686
6654
|
}
|
package/package.json
CHANGED
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
|
*/
|