@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1 0.0.20260315 → 0.1.20260601

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 +63 -49
  2. package/package.json +1 -1
  3. package/readme.md +17 -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://cloudcommerceprocurement.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260315
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -42,7 +42,10 @@ declare namespace gapi.client {
42
42
  /** Output only. The reseller parent billing account of the account's corresponding billing account, applicable only when the corresponding billing account is a subaccount of a reseller. Included in responses only for view: ACCOUNT_VIEW_FULL. Format: billingAccounts/{billing_account_id} */
43
43
  resellerParentBillingAccount?: string;
44
44
  /** Output only. The state of the account. This is used to decide whether the customer is in good standing with the provider and is able to make purchases. An account might not be able to make a purchase if the billing account is suspended, for example. */
45
- state?: string;
45
+ state?:
46
+ | 'ACCOUNT_STATE_UNSPECIFIED'
47
+ | 'ACCOUNT_ACTIVATION_REQUESTED'
48
+ | 'ACCOUNT_ACTIVE';
46
49
  /** Output only. The last update timestamp. */
47
50
  updateTime?: string;
48
51
  }
@@ -52,7 +55,7 @@ declare namespace gapi.client {
52
55
  /** Output only. An explanation for the state of the approval. */
53
56
  reason?: string;
54
57
  /** Output only. The state of the approval. */
55
- state?: string;
58
+ state?: 'STATE_UNSPECIFIED' | 'PENDING' | 'APPROVED' | 'REJECTED';
56
59
  /** Optional. The last update timestamp of the approval. */
57
60
  updateTime?: string;
58
61
  }
@@ -125,7 +128,15 @@ declare namespace gapi.client {
125
128
  /** Output only. The identifier of the quote that was used to procure. Empty if the order is not purchased using a quote. */
126
129
  quoteExternalName?: string;
127
130
  /** Output only. The state of the entitlement. */
128
- state?: string;
131
+ state?:
132
+ | 'ENTITLEMENT_STATE_UNSPECIFIED'
133
+ | 'ENTITLEMENT_ACTIVATION_REQUESTED'
134
+ | 'ENTITLEMENT_ACTIVE'
135
+ | 'ENTITLEMENT_PENDING_CANCELLATION'
136
+ | 'ENTITLEMENT_CANCELLED'
137
+ | 'ENTITLEMENT_PENDING_PLAN_CHANGE'
138
+ | 'ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL'
139
+ | 'ENTITLEMENT_SUSPENDED';
129
140
  /** Output only. End time for the subscription corresponding to this entitlement. */
130
141
  subscriptionEndTime?: string;
131
142
  /** Output only. The last update timestamp. */
@@ -170,11 +181,11 @@ declare namespace gapi.client {
170
181
  /** Grants an approval on an Account. */
171
182
  approve(request: {
172
183
  /** V1 error format. */
173
- '$.xgafv'?: string;
184
+ '$.xgafv'?: '1' | '2';
174
185
  /** OAuth access token. */
175
186
  access_token?: string;
176
187
  /** Data format for response. */
177
- alt?: string;
188
+ alt?: 'json' | 'media' | 'proto';
178
189
  /** JSONP */
179
190
  callback?: string;
180
191
  /** Selector specifying which fields to include in a partial response. */
@@ -199,11 +210,11 @@ declare namespace gapi.client {
199
210
  approve(
200
211
  request: {
201
212
  /** V1 error format. */
202
- '$.xgafv'?: string;
213
+ '$.xgafv'?: '1' | '2';
203
214
  /** OAuth access token. */
204
215
  access_token?: string;
205
216
  /** Data format for response. */
206
- alt?: string;
217
+ alt?: 'json' | 'media' | 'proto';
207
218
  /** JSONP */
208
219
  callback?: string;
209
220
  /** Selector specifying which fields to include in a partial response. */
@@ -228,11 +239,11 @@ declare namespace gapi.client {
228
239
  /** Gets a requested Account resource. */
229
240
  get(request?: {
230
241
  /** V1 error format. */
231
- '$.xgafv'?: string;
242
+ '$.xgafv'?: '1' | '2';
232
243
  /** OAuth access token. */
233
244
  access_token?: string;
234
245
  /** Data format for response. */
235
- alt?: string;
246
+ alt?: 'json' | 'media' | 'proto';
236
247
  /** JSONP */
237
248
  callback?: string;
238
249
  /** Selector specifying which fields to include in a partial response. */
@@ -252,16 +263,19 @@ declare namespace gapi.client {
252
263
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
253
264
  uploadType?: string;
254
265
  /** Optional. What information to include in the response. */
255
- view?: string;
266
+ view?:
267
+ | 'ACCOUNT_VIEW_UNSPECIFIED'
268
+ | 'ACCOUNT_VIEW_BASIC'
269
+ | 'ACCOUNT_VIEW_FULL';
256
270
  }): Request<Account>;
257
271
  /** Lists Accounts that the provider has access to. */
258
272
  list(request?: {
259
273
  /** V1 error format. */
260
- '$.xgafv'?: string;
274
+ '$.xgafv'?: '1' | '2';
261
275
  /** OAuth access token. */
262
276
  access_token?: string;
263
277
  /** Data format for response. */
264
- alt?: string;
278
+ alt?: 'json' | 'media' | 'proto';
265
279
  /** JSONP */
266
280
  callback?: string;
267
281
  /** Selector specifying which fields to include in a partial response. */
@@ -288,11 +302,11 @@ declare namespace gapi.client {
288
302
  /** Rejects an approval on an Account. */
289
303
  reject(request: {
290
304
  /** V1 error format. */
291
- '$.xgafv'?: string;
305
+ '$.xgafv'?: '1' | '2';
292
306
  /** OAuth access token. */
293
307
  access_token?: string;
294
308
  /** Data format for response. */
295
- alt?: string;
309
+ alt?: 'json' | 'media' | 'proto';
296
310
  /** JSONP */
297
311
  callback?: string;
298
312
  /** Selector specifying which fields to include in a partial response. */
@@ -317,11 +331,11 @@ declare namespace gapi.client {
317
331
  reject(
318
332
  request: {
319
333
  /** V1 error format. */
320
- '$.xgafv'?: string;
334
+ '$.xgafv'?: '1' | '2';
321
335
  /** OAuth access token. */
322
336
  access_token?: string;
323
337
  /** Data format for response. */
324
- alt?: string;
338
+ alt?: 'json' | 'media' | 'proto';
325
339
  /** JSONP */
326
340
  callback?: string;
327
341
  /** Selector specifying which fields to include in a partial response. */
@@ -346,11 +360,11 @@ declare namespace gapi.client {
346
360
  /** Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts. */
347
361
  reset(request: {
348
362
  /** V1 error format. */
349
- '$.xgafv'?: string;
363
+ '$.xgafv'?: '1' | '2';
350
364
  /** OAuth access token. */
351
365
  access_token?: string;
352
366
  /** Data format for response. */
353
- alt?: string;
367
+ alt?: 'json' | 'media' | 'proto';
354
368
  /** JSONP */
355
369
  callback?: string;
356
370
  /** Selector specifying which fields to include in a partial response. */
@@ -375,11 +389,11 @@ declare namespace gapi.client {
375
389
  reset(
376
390
  request: {
377
391
  /** V1 error format. */
378
- '$.xgafv'?: string;
392
+ '$.xgafv'?: '1' | '2';
379
393
  /** OAuth access token. */
380
394
  access_token?: string;
381
395
  /** Data format for response. */
382
- alt?: string;
396
+ alt?: 'json' | 'media' | 'proto';
383
397
  /** JSONP */
384
398
  callback?: string;
385
399
  /** Selector specifying which fields to include in a partial response. */
@@ -406,11 +420,11 @@ declare namespace gapi.client {
406
420
  /** Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource. */
407
421
  approve(request: {
408
422
  /** V1 error format. */
409
- '$.xgafv'?: string;
423
+ '$.xgafv'?: '1' | '2';
410
424
  /** OAuth access token. */
411
425
  access_token?: string;
412
426
  /** Data format for response. */
413
- alt?: string;
427
+ alt?: 'json' | 'media' | 'proto';
414
428
  /** JSONP */
415
429
  callback?: string;
416
430
  /** Selector specifying which fields to include in a partial response. */
@@ -435,11 +449,11 @@ declare namespace gapi.client {
435
449
  approve(
436
450
  request: {
437
451
  /** V1 error format. */
438
- '$.xgafv'?: string;
452
+ '$.xgafv'?: '1' | '2';
439
453
  /** OAuth access token. */
440
454
  access_token?: string;
441
455
  /** Data format for response. */
442
- alt?: string;
456
+ alt?: 'json' | 'media' | 'proto';
443
457
  /** JSONP */
444
458
  callback?: string;
445
459
  /** Selector specifying which fields to include in a partial response. */
@@ -464,11 +478,11 @@ declare namespace gapi.client {
464
478
  /** Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource. */
465
479
  approvePlanChange(request: {
466
480
  /** V1 error format. */
467
- '$.xgafv'?: string;
481
+ '$.xgafv'?: '1' | '2';
468
482
  /** OAuth access token. */
469
483
  access_token?: string;
470
484
  /** Data format for response. */
471
- alt?: string;
485
+ alt?: 'json' | 'media' | 'proto';
472
486
  /** JSONP */
473
487
  callback?: string;
474
488
  /** Selector specifying which fields to include in a partial response. */
@@ -493,11 +507,11 @@ declare namespace gapi.client {
493
507
  approvePlanChange(
494
508
  request: {
495
509
  /** V1 error format. */
496
- '$.xgafv'?: string;
510
+ '$.xgafv'?: '1' | '2';
497
511
  /** OAuth access token. */
498
512
  access_token?: string;
499
513
  /** Data format for response. */
500
- alt?: string;
514
+ alt?: 'json' | 'media' | 'proto';
501
515
  /** JSONP */
502
516
  callback?: string;
503
517
  /** Selector specifying which fields to include in a partial response. */
@@ -522,11 +536,11 @@ declare namespace gapi.client {
522
536
  /** Gets a requested Entitlement resource. */
523
537
  get(request?: {
524
538
  /** V1 error format. */
525
- '$.xgafv'?: string;
539
+ '$.xgafv'?: '1' | '2';
526
540
  /** OAuth access token. */
527
541
  access_token?: string;
528
542
  /** Data format for response. */
529
- alt?: string;
543
+ alt?: 'json' | 'media' | 'proto';
530
544
  /** JSONP */
531
545
  callback?: string;
532
546
  /** Selector specifying which fields to include in a partial response. */
@@ -549,11 +563,11 @@ declare namespace gapi.client {
549
563
  /** Lists Entitlements for which the provider has read access. */
550
564
  list(request?: {
551
565
  /** V1 error format. */
552
- '$.xgafv'?: string;
566
+ '$.xgafv'?: '1' | '2';
553
567
  /** OAuth access token. */
554
568
  access_token?: string;
555
569
  /** Data format for response. */
556
- alt?: string;
570
+ alt?: 'json' | 'media' | 'proto';
557
571
  /** JSONP */
558
572
  callback?: string;
559
573
  /** Selector specifying which fields to include in a partial response. */
@@ -582,11 +596,11 @@ declare namespace gapi.client {
582
596
  /** Updates an existing Entitlement. */
583
597
  patch(request: {
584
598
  /** V1 error format. */
585
- '$.xgafv'?: string;
599
+ '$.xgafv'?: '1' | '2';
586
600
  /** OAuth access token. */
587
601
  access_token?: string;
588
602
  /** Data format for response. */
589
- alt?: string;
603
+ alt?: 'json' | 'media' | 'proto';
590
604
  /** JSONP */
591
605
  callback?: string;
592
606
  /** Selector specifying which fields to include in a partial response. */
@@ -613,11 +627,11 @@ declare namespace gapi.client {
613
627
  patch(
614
628
  request: {
615
629
  /** V1 error format. */
616
- '$.xgafv'?: string;
630
+ '$.xgafv'?: '1' | '2';
617
631
  /** OAuth access token. */
618
632
  access_token?: string;
619
633
  /** Data format for response. */
620
- alt?: string;
634
+ alt?: 'json' | 'media' | 'proto';
621
635
  /** JSONP */
622
636
  callback?: string;
623
637
  /** Selector specifying which fields to include in a partial response. */
@@ -644,11 +658,11 @@ declare namespace gapi.client {
644
658
  /** Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource. */
645
659
  reject(request: {
646
660
  /** V1 error format. */
647
- '$.xgafv'?: string;
661
+ '$.xgafv'?: '1' | '2';
648
662
  /** OAuth access token. */
649
663
  access_token?: string;
650
664
  /** Data format for response. */
651
- alt?: string;
665
+ alt?: 'json' | 'media' | 'proto';
652
666
  /** JSONP */
653
667
  callback?: string;
654
668
  /** Selector specifying which fields to include in a partial response. */
@@ -673,11 +687,11 @@ declare namespace gapi.client {
673
687
  reject(
674
688
  request: {
675
689
  /** V1 error format. */
676
- '$.xgafv'?: string;
690
+ '$.xgafv'?: '1' | '2';
677
691
  /** OAuth access token. */
678
692
  access_token?: string;
679
693
  /** Data format for response. */
680
- alt?: string;
694
+ alt?: 'json' | 'media' | 'proto';
681
695
  /** JSONP */
682
696
  callback?: string;
683
697
  /** Selector specifying which fields to include in a partial response. */
@@ -702,11 +716,11 @@ declare namespace gapi.client {
702
716
  /** Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource. */
703
717
  rejectPlanChange(request: {
704
718
  /** V1 error format. */
705
- '$.xgafv'?: string;
719
+ '$.xgafv'?: '1' | '2';
706
720
  /** OAuth access token. */
707
721
  access_token?: string;
708
722
  /** Data format for response. */
709
- alt?: string;
723
+ alt?: 'json' | 'media' | 'proto';
710
724
  /** JSONP */
711
725
  callback?: string;
712
726
  /** Selector specifying which fields to include in a partial response. */
@@ -731,11 +745,11 @@ declare namespace gapi.client {
731
745
  rejectPlanChange(
732
746
  request: {
733
747
  /** V1 error format. */
734
- '$.xgafv'?: string;
748
+ '$.xgafv'?: '1' | '2';
735
749
  /** OAuth access token. */
736
750
  access_token?: string;
737
751
  /** Data format for response. */
738
- alt?: string;
752
+ alt?: 'json' | 'media' | 'proto';
739
753
  /** JSONP */
740
754
  callback?: string;
741
755
  /** Selector specifying which fields to include in a partial response. */
@@ -760,11 +774,11 @@ declare namespace gapi.client {
760
774
  /** Requests suspension of an active Entitlement. This is not yet supported. */
761
775
  suspend(request: {
762
776
  /** V1 error format. */
763
- '$.xgafv'?: string;
777
+ '$.xgafv'?: '1' | '2';
764
778
  /** OAuth access token. */
765
779
  access_token?: string;
766
780
  /** Data format for response. */
767
- alt?: string;
781
+ alt?: 'json' | 'media' | 'proto';
768
782
  /** JSONP */
769
783
  callback?: string;
770
784
  /** Selector specifying which fields to include in a partial response. */
@@ -789,11 +803,11 @@ declare namespace gapi.client {
789
803
  suspend(
790
804
  request: {
791
805
  /** V1 error format. */
792
- '$.xgafv'?: string;
806
+ '$.xgafv'?: '1' | '2';
793
807
  /** OAuth access token. */
794
808
  access_token?: string;
795
809
  /** Data format for response. */
796
- alt?: string;
810
+ alt?: 'json' | 'media' | 'proto';
797
811
  /** JSONP */
798
812
  callback?: string;
799
813
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1",
3
- "version": "0.0.20260315",
3
+ "version": "0.1.20260601",
4
4
  "description": "TypeScript typings for Cloud Commerce Partner Procurement API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Cloud Commerce Partner Procurement API:
11
11
  npm install @types/gapi.client.cloudcommerceprocurement-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.cloudcommerceprocurement-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: