@databricks/sdk-marketplaces 0.1.0-dev.2 → 0.1.0-dev.3
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/dist/v1/client.d.ts +36 -36
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +36 -36
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/model.d.ts +88 -88
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +81 -116
- package/dist/v1/model.js.map +1 -1
- package/package.json +6 -5
- package/src/v1/client.ts +178 -215
- package/src/v1/index.ts +35 -35
- package/src/v1/model.ts +164 -232
package/src/v1/client.ts
CHANGED
|
@@ -29,54 +29,58 @@ import type {
|
|
|
29
29
|
CreateExchangeRequest,
|
|
30
30
|
CreateExchangeResponse,
|
|
31
31
|
CreateFileRequest,
|
|
32
|
-
|
|
32
|
+
CreateFileResponse,
|
|
33
|
+
CreateInstallationResponse,
|
|
33
34
|
CreateListingRequest,
|
|
34
|
-
|
|
35
|
+
CreateListingResponse,
|
|
35
36
|
CreatePersonalizationRequest,
|
|
36
|
-
|
|
37
|
+
CreatePersonalizationResponse,
|
|
37
38
|
CreateProviderAnalyticsDashboardRequest,
|
|
38
|
-
|
|
39
|
+
CreateProviderAnalyticsDashboardResponse,
|
|
39
40
|
CreateProviderRequest,
|
|
40
|
-
|
|
41
|
+
CreateProviderResponse,
|
|
41
42
|
DeleteExchangeFilterRequest,
|
|
42
43
|
DeleteExchangeFilterResponse,
|
|
43
44
|
DeleteExchangeRequest,
|
|
44
45
|
DeleteExchangeResponse,
|
|
45
46
|
DeleteFileRequest,
|
|
46
|
-
|
|
47
|
+
DeleteFileResponse,
|
|
48
|
+
DeleteInstallationResponse,
|
|
47
49
|
DeleteListingRequest,
|
|
48
|
-
|
|
50
|
+
DeleteListingResponse,
|
|
49
51
|
DeleteProviderRequest,
|
|
50
|
-
|
|
52
|
+
DeleteProviderResponse,
|
|
51
53
|
Exchange,
|
|
52
54
|
ExchangeFilter,
|
|
53
55
|
ExchangeListing,
|
|
54
56
|
FileInfo,
|
|
57
|
+
GetAllPersonalizationRequestsForConsumerResponse,
|
|
55
58
|
GetExchangeRequest,
|
|
56
59
|
GetExchangeResponse,
|
|
57
60
|
GetFileRequest,
|
|
58
|
-
|
|
61
|
+
GetFileResponse,
|
|
59
62
|
GetInstallationDetails,
|
|
60
|
-
GetInstallationDetails_Response,
|
|
61
63
|
GetLatestVersionProviderAnalyticsDashboardRequest,
|
|
62
|
-
|
|
64
|
+
GetLatestVersionProviderAnalyticsDashboardResponse,
|
|
63
65
|
GetListingContent,
|
|
64
|
-
|
|
66
|
+
GetListingContentMetadataResponse,
|
|
65
67
|
GetListingRequest,
|
|
66
|
-
|
|
68
|
+
GetListingResponse,
|
|
69
|
+
GetListingsResponse,
|
|
67
70
|
GetPersonalizationRequestsForConsumer,
|
|
68
|
-
|
|
71
|
+
GetPersonalizationRequestsForConsumerResponse,
|
|
69
72
|
GetPersonalizationRequestsForProviderRequest,
|
|
70
|
-
|
|
73
|
+
GetPersonalizationRequestsForProviderResponse,
|
|
71
74
|
GetProviderRequest,
|
|
72
|
-
|
|
75
|
+
GetProviderResponse,
|
|
73
76
|
GetPublishedListingForConsumer,
|
|
74
|
-
|
|
77
|
+
GetPublishedListingForConsumerResponse,
|
|
78
|
+
GetPublishedListingsForConsumerResponse,
|
|
75
79
|
GetPublishedProviderForConsumer,
|
|
76
|
-
|
|
80
|
+
GetPublishedProviderForConsumerResponse,
|
|
77
81
|
InstallListing,
|
|
78
|
-
InstallListing_Response,
|
|
79
82
|
InstallationDetail,
|
|
83
|
+
ListAllInstallationsResponse,
|
|
80
84
|
ListExchangeFiltersRequest,
|
|
81
85
|
ListExchangeFiltersResponse,
|
|
82
86
|
ListExchangesForListingRequest,
|
|
@@ -84,25 +88,22 @@ import type {
|
|
|
84
88
|
ListExchangesRequest,
|
|
85
89
|
ListExchangesResponse,
|
|
86
90
|
ListFilesRequest,
|
|
87
|
-
|
|
91
|
+
ListFilesResponse,
|
|
92
|
+
ListFulfillmentsResponse,
|
|
88
93
|
ListInstallationsRequest,
|
|
89
|
-
|
|
94
|
+
ListInstallationsResponse,
|
|
90
95
|
ListListingFulfillmentsRequest,
|
|
91
|
-
ListListingFulfillmentsRequest_Response,
|
|
92
96
|
ListListingsForExchangeRequest,
|
|
93
97
|
ListListingsForExchangeResponse,
|
|
94
98
|
ListListingsRequest,
|
|
95
|
-
ListListingsRequest_Response,
|
|
96
99
|
ListPersonalizationRequestsForConsumerRequest,
|
|
97
|
-
ListPersonalizationRequestsForConsumerRequest_Response,
|
|
98
100
|
ListProviderAnalyticsDashboardRequest,
|
|
99
|
-
|
|
101
|
+
ListProviderAnalyticsDashboardResponse,
|
|
100
102
|
ListProvidersRequest,
|
|
101
|
-
|
|
103
|
+
ListProvidersResponse,
|
|
102
104
|
ListPublishedListingsForConsumerRequest,
|
|
103
|
-
ListPublishedListingsForConsumerRequest_Response,
|
|
104
105
|
ListPublishedProvidersForConsumer,
|
|
105
|
-
|
|
106
|
+
ListPublishedProvidersForConsumerResponse,
|
|
106
107
|
Listing,
|
|
107
108
|
ListingFulfillment,
|
|
108
109
|
PersonalizationRequest,
|
|
@@ -110,24 +111,23 @@ import type {
|
|
|
110
111
|
RemoveExchangeForListingRequest,
|
|
111
112
|
RemoveExchangeForListingResponse,
|
|
112
113
|
SearchPublishedListingsForConsumer,
|
|
113
|
-
|
|
114
|
+
SearchPublishedListingsForConsumerResponse,
|
|
114
115
|
SharedDataObject,
|
|
115
116
|
UninstallListing,
|
|
116
|
-
UninstallListing_Response,
|
|
117
117
|
UpdateExchangeFilterRequest,
|
|
118
118
|
UpdateExchangeFilterResponse,
|
|
119
119
|
UpdateExchangeRequest,
|
|
120
120
|
UpdateExchangeResponse,
|
|
121
121
|
UpdateInstallationDetail,
|
|
122
|
-
|
|
122
|
+
UpdateInstallationResponse,
|
|
123
123
|
UpdateListingRequest,
|
|
124
|
-
|
|
124
|
+
UpdateListingResponse,
|
|
125
125
|
UpdatePersonalizationRequestStatusRequest,
|
|
126
|
-
|
|
126
|
+
UpdatePersonalizationRequestStatusResponse,
|
|
127
127
|
UpdateProviderAnalyticsDashboardRequest,
|
|
128
|
-
|
|
128
|
+
UpdateProviderAnalyticsDashboardResponse,
|
|
129
129
|
UpdateProviderRequest,
|
|
130
|
-
|
|
130
|
+
UpdateProviderResponse,
|
|
131
131
|
} from './model';
|
|
132
132
|
import {
|
|
133
133
|
marshalAddExchangeForListingRequestSchema,
|
|
@@ -153,51 +153,51 @@ import {
|
|
|
153
153
|
unmarshalBatchGetProvidersResponseSchema,
|
|
154
154
|
unmarshalCreateExchangeFilterResponseSchema,
|
|
155
155
|
unmarshalCreateExchangeResponseSchema,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
unmarshalCreateFileResponseSchema,
|
|
157
|
+
unmarshalCreateInstallationResponseSchema,
|
|
158
|
+
unmarshalCreateListingResponseSchema,
|
|
159
|
+
unmarshalCreatePersonalizationResponseSchema,
|
|
160
|
+
unmarshalCreateProviderAnalyticsDashboardResponseSchema,
|
|
161
|
+
unmarshalCreateProviderResponseSchema,
|
|
161
162
|
unmarshalDeleteExchangeFilterResponseSchema,
|
|
162
163
|
unmarshalDeleteExchangeResponseSchema,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
unmarshalDeleteFileResponseSchema,
|
|
165
|
+
unmarshalDeleteInstallationResponseSchema,
|
|
166
|
+
unmarshalDeleteListingResponseSchema,
|
|
167
|
+
unmarshalDeleteProviderResponseSchema,
|
|
168
|
+
unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema,
|
|
166
169
|
unmarshalGetExchangeResponseSchema,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
unmarshalGetFileResponseSchema,
|
|
171
|
+
unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema,
|
|
172
|
+
unmarshalGetListingContentMetadataResponseSchema,
|
|
173
|
+
unmarshalGetListingResponseSchema,
|
|
174
|
+
unmarshalGetListingsResponseSchema,
|
|
175
|
+
unmarshalGetPersonalizationRequestsForConsumerResponseSchema,
|
|
176
|
+
unmarshalGetPersonalizationRequestsForProviderResponseSchema,
|
|
177
|
+
unmarshalGetProviderResponseSchema,
|
|
178
|
+
unmarshalGetPublishedListingForConsumerResponseSchema,
|
|
179
|
+
unmarshalGetPublishedListingsForConsumerResponseSchema,
|
|
180
|
+
unmarshalGetPublishedProviderForConsumerResponseSchema,
|
|
181
|
+
unmarshalListAllInstallationsResponseSchema,
|
|
178
182
|
unmarshalListExchangeFiltersResponseSchema,
|
|
179
183
|
unmarshalListExchangesForListingResponseSchema,
|
|
180
184
|
unmarshalListExchangesResponseSchema,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
unmarshalListFilesResponseSchema,
|
|
186
|
+
unmarshalListFulfillmentsResponseSchema,
|
|
187
|
+
unmarshalListInstallationsResponseSchema,
|
|
184
188
|
unmarshalListListingsForExchangeResponseSchema,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
unmarshalListProvidersRequest_ResponseSchema,
|
|
189
|
-
unmarshalListPublishedListingsForConsumerRequest_ResponseSchema,
|
|
190
|
-
unmarshalListPublishedProvidersForConsumer_ResponseSchema,
|
|
189
|
+
unmarshalListProviderAnalyticsDashboardResponseSchema,
|
|
190
|
+
unmarshalListProvidersResponseSchema,
|
|
191
|
+
unmarshalListPublishedProvidersForConsumerResponseSchema,
|
|
191
192
|
unmarshalRemoveExchangeForListingResponseSchema,
|
|
192
|
-
|
|
193
|
-
unmarshalUninstallListing_ResponseSchema,
|
|
193
|
+
unmarshalSearchPublishedListingsForConsumerResponseSchema,
|
|
194
194
|
unmarshalUpdateExchangeFilterResponseSchema,
|
|
195
195
|
unmarshalUpdateExchangeResponseSchema,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
196
|
+
unmarshalUpdateInstallationResponseSchema,
|
|
197
|
+
unmarshalUpdateListingResponseSchema,
|
|
198
|
+
unmarshalUpdatePersonalizationRequestStatusResponseSchema,
|
|
199
|
+
unmarshalUpdateProviderAnalyticsDashboardResponseSchema,
|
|
200
|
+
unmarshalUpdateProviderResponseSchema,
|
|
201
201
|
} from './model';
|
|
202
202
|
|
|
203
203
|
// Package identity segment for this client to be used in the User-Agent header.
|
|
@@ -306,10 +306,10 @@ export class MarketplacesClient {
|
|
|
306
306
|
async createPersonalizationRequest(
|
|
307
307
|
req: CreatePersonalizationRequest,
|
|
308
308
|
options?: CallOptions
|
|
309
|
-
): Promise<
|
|
309
|
+
): Promise<CreatePersonalizationResponse> {
|
|
310
310
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
|
|
311
311
|
const body = marshalRequest(req, marshalCreatePersonalizationRequestSchema);
|
|
312
|
-
let resp:
|
|
312
|
+
let resp: CreatePersonalizationResponse | undefined;
|
|
313
313
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
314
314
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
315
315
|
if (this.workspaceId !== undefined) {
|
|
@@ -324,7 +324,7 @@ export class MarketplacesClient {
|
|
|
324
324
|
});
|
|
325
325
|
resp = parseResponse(
|
|
326
326
|
respBody,
|
|
327
|
-
|
|
327
|
+
unmarshalCreatePersonalizationResponseSchema
|
|
328
328
|
);
|
|
329
329
|
};
|
|
330
330
|
await executeCall(call, options);
|
|
@@ -338,7 +338,7 @@ export class MarketplacesClient {
|
|
|
338
338
|
async getInstallationDetails(
|
|
339
339
|
req: GetInstallationDetails,
|
|
340
340
|
options?: CallOptions
|
|
341
|
-
): Promise<
|
|
341
|
+
): Promise<ListInstallationsResponse> {
|
|
342
342
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
|
|
343
343
|
const params = new URLSearchParams();
|
|
344
344
|
if (req.pageToken !== undefined) {
|
|
@@ -349,7 +349,7 @@ export class MarketplacesClient {
|
|
|
349
349
|
}
|
|
350
350
|
const query = params.toString();
|
|
351
351
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
352
|
-
let resp:
|
|
352
|
+
let resp: ListInstallationsResponse | undefined;
|
|
353
353
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
354
354
|
const headers = new Headers();
|
|
355
355
|
if (this.workspaceId !== undefined) {
|
|
@@ -362,10 +362,7 @@ export class MarketplacesClient {
|
|
|
362
362
|
httpClient: this.httpClient,
|
|
363
363
|
logger: this.logger,
|
|
364
364
|
});
|
|
365
|
-
resp = parseResponse(
|
|
366
|
-
respBody,
|
|
367
|
-
unmarshalGetInstallationDetails_ResponseSchema
|
|
368
|
-
);
|
|
365
|
+
resp = parseResponse(respBody, unmarshalListInstallationsResponseSchema);
|
|
369
366
|
};
|
|
370
367
|
await executeCall(call, options);
|
|
371
368
|
if (resp === undefined) {
|
|
@@ -395,7 +392,7 @@ export class MarketplacesClient {
|
|
|
395
392
|
async getListingContent(
|
|
396
393
|
req: GetListingContent,
|
|
397
394
|
options?: CallOptions
|
|
398
|
-
): Promise<
|
|
395
|
+
): Promise<GetListingContentMetadataResponse> {
|
|
399
396
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/content`;
|
|
400
397
|
const params = new URLSearchParams();
|
|
401
398
|
if (req.pageToken !== undefined) {
|
|
@@ -406,7 +403,7 @@ export class MarketplacesClient {
|
|
|
406
403
|
}
|
|
407
404
|
const query = params.toString();
|
|
408
405
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
409
|
-
let resp:
|
|
406
|
+
let resp: GetListingContentMetadataResponse | undefined;
|
|
410
407
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
411
408
|
const headers = new Headers();
|
|
412
409
|
if (this.workspaceId !== undefined) {
|
|
@@ -419,7 +416,10 @@ export class MarketplacesClient {
|
|
|
419
416
|
httpClient: this.httpClient,
|
|
420
417
|
logger: this.logger,
|
|
421
418
|
});
|
|
422
|
-
resp = parseResponse(
|
|
419
|
+
resp = parseResponse(
|
|
420
|
+
respBody,
|
|
421
|
+
unmarshalGetListingContentMetadataResponseSchema
|
|
422
|
+
);
|
|
423
423
|
};
|
|
424
424
|
await executeCall(call, options);
|
|
425
425
|
if (resp === undefined) {
|
|
@@ -449,9 +449,9 @@ export class MarketplacesClient {
|
|
|
449
449
|
async getPersonalizationRequestsForConsumer(
|
|
450
450
|
req: GetPersonalizationRequestsForConsumer,
|
|
451
451
|
options?: CallOptions
|
|
452
|
-
): Promise<
|
|
452
|
+
): Promise<GetPersonalizationRequestsForConsumerResponse> {
|
|
453
453
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
|
|
454
|
-
let resp:
|
|
454
|
+
let resp: GetPersonalizationRequestsForConsumerResponse | undefined;
|
|
455
455
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
456
456
|
const headers = new Headers();
|
|
457
457
|
if (this.workspaceId !== undefined) {
|
|
@@ -466,7 +466,7 @@ export class MarketplacesClient {
|
|
|
466
466
|
});
|
|
467
467
|
resp = parseResponse(
|
|
468
468
|
respBody,
|
|
469
|
-
|
|
469
|
+
unmarshalGetPersonalizationRequestsForConsumerResponseSchema
|
|
470
470
|
);
|
|
471
471
|
};
|
|
472
472
|
await executeCall(call, options);
|
|
@@ -480,9 +480,9 @@ export class MarketplacesClient {
|
|
|
480
480
|
async getPublishedListingForConsumer(
|
|
481
481
|
req: GetPublishedListingForConsumer,
|
|
482
482
|
options?: CallOptions
|
|
483
|
-
): Promise<
|
|
483
|
+
): Promise<GetPublishedListingForConsumerResponse> {
|
|
484
484
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.id ?? ''}`;
|
|
485
|
-
let resp:
|
|
485
|
+
let resp: GetPublishedListingForConsumerResponse | undefined;
|
|
486
486
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
487
487
|
const headers = new Headers();
|
|
488
488
|
if (this.workspaceId !== undefined) {
|
|
@@ -497,7 +497,7 @@ export class MarketplacesClient {
|
|
|
497
497
|
});
|
|
498
498
|
resp = parseResponse(
|
|
499
499
|
respBody,
|
|
500
|
-
|
|
500
|
+
unmarshalGetPublishedListingForConsumerResponseSchema
|
|
501
501
|
);
|
|
502
502
|
};
|
|
503
503
|
await executeCall(call, options);
|
|
@@ -511,9 +511,9 @@ export class MarketplacesClient {
|
|
|
511
511
|
async getPublishedProviderForConsumer(
|
|
512
512
|
req: GetPublishedProviderForConsumer,
|
|
513
513
|
options?: CallOptions
|
|
514
|
-
): Promise<
|
|
514
|
+
): Promise<GetPublishedProviderForConsumerResponse> {
|
|
515
515
|
const url = `${this.host}/api/2.0/marketplace-consumer/providers/${req.id ?? ''}`;
|
|
516
|
-
let resp:
|
|
516
|
+
let resp: GetPublishedProviderForConsumerResponse | undefined;
|
|
517
517
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
518
518
|
const headers = new Headers();
|
|
519
519
|
if (this.workspaceId !== undefined) {
|
|
@@ -528,7 +528,7 @@ export class MarketplacesClient {
|
|
|
528
528
|
});
|
|
529
529
|
resp = parseResponse(
|
|
530
530
|
respBody,
|
|
531
|
-
|
|
531
|
+
unmarshalGetPublishedProviderForConsumerResponseSchema
|
|
532
532
|
);
|
|
533
533
|
};
|
|
534
534
|
await executeCall(call, options);
|
|
@@ -542,10 +542,10 @@ export class MarketplacesClient {
|
|
|
542
542
|
async installListing(
|
|
543
543
|
req: InstallListing,
|
|
544
544
|
options?: CallOptions
|
|
545
|
-
): Promise<
|
|
545
|
+
): Promise<CreateInstallationResponse> {
|
|
546
546
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
|
|
547
547
|
const body = marshalRequest(req, marshalInstallListingSchema);
|
|
548
|
-
let resp:
|
|
548
|
+
let resp: CreateInstallationResponse | undefined;
|
|
549
549
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
550
550
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
551
551
|
if (this.workspaceId !== undefined) {
|
|
@@ -558,7 +558,7 @@ export class MarketplacesClient {
|
|
|
558
558
|
httpClient: this.httpClient,
|
|
559
559
|
logger: this.logger,
|
|
560
560
|
});
|
|
561
|
-
resp = parseResponse(respBody,
|
|
561
|
+
resp = parseResponse(respBody, unmarshalCreateInstallationResponseSchema);
|
|
562
562
|
};
|
|
563
563
|
await executeCall(call, options);
|
|
564
564
|
if (resp === undefined) {
|
|
@@ -571,7 +571,7 @@ export class MarketplacesClient {
|
|
|
571
571
|
async listInstallations(
|
|
572
572
|
req: ListInstallationsRequest,
|
|
573
573
|
options?: CallOptions
|
|
574
|
-
): Promise<
|
|
574
|
+
): Promise<ListAllInstallationsResponse> {
|
|
575
575
|
const url = `${this.host}/api/2.0/marketplace-consumer/installations`;
|
|
576
576
|
const params = new URLSearchParams();
|
|
577
577
|
if (req.pageToken !== undefined) {
|
|
@@ -582,7 +582,7 @@ export class MarketplacesClient {
|
|
|
582
582
|
}
|
|
583
583
|
const query = params.toString();
|
|
584
584
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
585
|
-
let resp:
|
|
585
|
+
let resp: ListAllInstallationsResponse | undefined;
|
|
586
586
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
587
587
|
const headers = new Headers();
|
|
588
588
|
if (this.workspaceId !== undefined) {
|
|
@@ -597,7 +597,7 @@ export class MarketplacesClient {
|
|
|
597
597
|
});
|
|
598
598
|
resp = parseResponse(
|
|
599
599
|
respBody,
|
|
600
|
-
|
|
600
|
+
unmarshalListAllInstallationsResponseSchema
|
|
601
601
|
);
|
|
602
602
|
};
|
|
603
603
|
await executeCall(call, options);
|
|
@@ -632,7 +632,7 @@ export class MarketplacesClient {
|
|
|
632
632
|
async listListingFulfillments(
|
|
633
633
|
req: ListListingFulfillmentsRequest,
|
|
634
634
|
options?: CallOptions
|
|
635
|
-
): Promise<
|
|
635
|
+
): Promise<ListFulfillmentsResponse> {
|
|
636
636
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/fulfillments`;
|
|
637
637
|
const params = new URLSearchParams();
|
|
638
638
|
if (req.pageToken !== undefined) {
|
|
@@ -643,7 +643,7 @@ export class MarketplacesClient {
|
|
|
643
643
|
}
|
|
644
644
|
const query = params.toString();
|
|
645
645
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
646
|
-
let resp:
|
|
646
|
+
let resp: ListFulfillmentsResponse | undefined;
|
|
647
647
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
648
648
|
const headers = new Headers();
|
|
649
649
|
if (this.workspaceId !== undefined) {
|
|
@@ -656,10 +656,7 @@ export class MarketplacesClient {
|
|
|
656
656
|
httpClient: this.httpClient,
|
|
657
657
|
logger: this.logger,
|
|
658
658
|
});
|
|
659
|
-
resp = parseResponse(
|
|
660
|
-
respBody,
|
|
661
|
-
unmarshalListListingFulfillmentsRequest_ResponseSchema
|
|
662
|
-
);
|
|
659
|
+
resp = parseResponse(respBody, unmarshalListFulfillmentsResponseSchema);
|
|
663
660
|
};
|
|
664
661
|
await executeCall(call, options);
|
|
665
662
|
if (resp === undefined) {
|
|
@@ -689,7 +686,7 @@ export class MarketplacesClient {
|
|
|
689
686
|
async listPersonalizationRequestsForConsumer(
|
|
690
687
|
req: ListPersonalizationRequestsForConsumerRequest,
|
|
691
688
|
options?: CallOptions
|
|
692
|
-
): Promise<
|
|
689
|
+
): Promise<GetAllPersonalizationRequestsForConsumerResponse> {
|
|
693
690
|
const url = `${this.host}/api/2.0/marketplace-consumer/personalization-requests`;
|
|
694
691
|
const params = new URLSearchParams();
|
|
695
692
|
if (req.pageToken !== undefined) {
|
|
@@ -700,9 +697,7 @@ export class MarketplacesClient {
|
|
|
700
697
|
}
|
|
701
698
|
const query = params.toString();
|
|
702
699
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
703
|
-
let resp:
|
|
704
|
-
| ListPersonalizationRequestsForConsumerRequest_Response
|
|
705
|
-
| undefined;
|
|
700
|
+
let resp: GetAllPersonalizationRequestsForConsumerResponse | undefined;
|
|
706
701
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
707
702
|
const headers = new Headers();
|
|
708
703
|
if (this.workspaceId !== undefined) {
|
|
@@ -717,7 +712,7 @@ export class MarketplacesClient {
|
|
|
717
712
|
});
|
|
718
713
|
resp = parseResponse(
|
|
719
714
|
respBody,
|
|
720
|
-
|
|
715
|
+
unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema
|
|
721
716
|
);
|
|
722
717
|
};
|
|
723
718
|
await executeCall(call, options);
|
|
@@ -751,7 +746,7 @@ export class MarketplacesClient {
|
|
|
751
746
|
async listPublishedListingsForConsumer(
|
|
752
747
|
req: ListPublishedListingsForConsumerRequest,
|
|
753
748
|
options?: CallOptions
|
|
754
|
-
): Promise<
|
|
749
|
+
): Promise<GetPublishedListingsForConsumerResponse> {
|
|
755
750
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings`;
|
|
756
751
|
const params = new URLSearchParams();
|
|
757
752
|
if (req.pageToken !== undefined) {
|
|
@@ -787,7 +782,7 @@ export class MarketplacesClient {
|
|
|
787
782
|
}
|
|
788
783
|
const query = params.toString();
|
|
789
784
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
790
|
-
let resp:
|
|
785
|
+
let resp: GetPublishedListingsForConsumerResponse | undefined;
|
|
791
786
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
792
787
|
const headers = new Headers();
|
|
793
788
|
if (this.workspaceId !== undefined) {
|
|
@@ -802,7 +797,7 @@ export class MarketplacesClient {
|
|
|
802
797
|
});
|
|
803
798
|
resp = parseResponse(
|
|
804
799
|
respBody,
|
|
805
|
-
|
|
800
|
+
unmarshalGetPublishedListingsForConsumerResponseSchema
|
|
806
801
|
);
|
|
807
802
|
};
|
|
808
803
|
await executeCall(call, options);
|
|
@@ -836,7 +831,7 @@ export class MarketplacesClient {
|
|
|
836
831
|
async listPublishedProvidersForConsumer(
|
|
837
832
|
req: ListPublishedProvidersForConsumer,
|
|
838
833
|
options?: CallOptions
|
|
839
|
-
): Promise<
|
|
834
|
+
): Promise<ListPublishedProvidersForConsumerResponse> {
|
|
840
835
|
const url = `${this.host}/api/2.0/marketplace-consumer/providers`;
|
|
841
836
|
const params = new URLSearchParams();
|
|
842
837
|
if (req.pageToken !== undefined) {
|
|
@@ -850,7 +845,7 @@ export class MarketplacesClient {
|
|
|
850
845
|
}
|
|
851
846
|
const query = params.toString();
|
|
852
847
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
853
|
-
let resp:
|
|
848
|
+
let resp: ListPublishedProvidersForConsumerResponse | undefined;
|
|
854
849
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
855
850
|
const headers = new Headers();
|
|
856
851
|
if (this.workspaceId !== undefined) {
|
|
@@ -865,7 +860,7 @@ export class MarketplacesClient {
|
|
|
865
860
|
});
|
|
866
861
|
resp = parseResponse(
|
|
867
862
|
respBody,
|
|
868
|
-
|
|
863
|
+
unmarshalListPublishedProvidersForConsumerResponseSchema
|
|
869
864
|
);
|
|
870
865
|
};
|
|
871
866
|
await executeCall(call, options);
|
|
@@ -902,7 +897,7 @@ export class MarketplacesClient {
|
|
|
902
897
|
async searchPublishedListingsForConsumer(
|
|
903
898
|
req: SearchPublishedListingsForConsumer,
|
|
904
899
|
options?: CallOptions
|
|
905
|
-
): Promise<
|
|
900
|
+
): Promise<SearchPublishedListingsForConsumerResponse> {
|
|
906
901
|
const url = `${this.host}/api/2.0/marketplace-consumer/search-listings`;
|
|
907
902
|
const params = new URLSearchParams();
|
|
908
903
|
if (req.query !== undefined) {
|
|
@@ -931,7 +926,7 @@ export class MarketplacesClient {
|
|
|
931
926
|
}
|
|
932
927
|
const query = params.toString();
|
|
933
928
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
934
|
-
let resp:
|
|
929
|
+
let resp: SearchPublishedListingsForConsumerResponse | undefined;
|
|
935
930
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
936
931
|
const headers = new Headers();
|
|
937
932
|
if (this.workspaceId !== undefined) {
|
|
@@ -946,7 +941,7 @@ export class MarketplacesClient {
|
|
|
946
941
|
});
|
|
947
942
|
resp = parseResponse(
|
|
948
943
|
respBody,
|
|
949
|
-
|
|
944
|
+
unmarshalSearchPublishedListingsForConsumerResponseSchema
|
|
950
945
|
);
|
|
951
946
|
};
|
|
952
947
|
await executeCall(call, options);
|
|
@@ -980,9 +975,9 @@ export class MarketplacesClient {
|
|
|
980
975
|
async uninstallListing(
|
|
981
976
|
req: UninstallListing,
|
|
982
977
|
options?: CallOptions
|
|
983
|
-
): Promise<
|
|
978
|
+
): Promise<DeleteInstallationResponse> {
|
|
984
979
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
|
|
985
|
-
let resp:
|
|
980
|
+
let resp: DeleteInstallationResponse | undefined;
|
|
986
981
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
987
982
|
const headers = new Headers();
|
|
988
983
|
if (this.workspaceId !== undefined) {
|
|
@@ -995,7 +990,7 @@ export class MarketplacesClient {
|
|
|
995
990
|
httpClient: this.httpClient,
|
|
996
991
|
logger: this.logger,
|
|
997
992
|
});
|
|
998
|
-
resp = parseResponse(respBody,
|
|
993
|
+
resp = parseResponse(respBody, unmarshalDeleteInstallationResponseSchema);
|
|
999
994
|
};
|
|
1000
995
|
await executeCall(call, options);
|
|
1001
996
|
if (resp === undefined) {
|
|
@@ -1013,10 +1008,10 @@ export class MarketplacesClient {
|
|
|
1013
1008
|
async updateInstallationDetail(
|
|
1014
1009
|
req: UpdateInstallationDetail,
|
|
1015
1010
|
options?: CallOptions
|
|
1016
|
-
): Promise<
|
|
1011
|
+
): Promise<UpdateInstallationResponse> {
|
|
1017
1012
|
const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
|
|
1018
1013
|
const body = marshalRequest(req, marshalUpdateInstallationDetailSchema);
|
|
1019
|
-
let resp:
|
|
1014
|
+
let resp: UpdateInstallationResponse | undefined;
|
|
1020
1015
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1021
1016
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1022
1017
|
if (this.workspaceId !== undefined) {
|
|
@@ -1029,10 +1024,7 @@ export class MarketplacesClient {
|
|
|
1029
1024
|
httpClient: this.httpClient,
|
|
1030
1025
|
logger: this.logger,
|
|
1031
1026
|
});
|
|
1032
|
-
resp = parseResponse(
|
|
1033
|
-
respBody,
|
|
1034
|
-
unmarshalUpdateInstallationDetail_ResponseSchema
|
|
1035
|
-
);
|
|
1027
|
+
resp = parseResponse(respBody, unmarshalUpdateInstallationResponseSchema);
|
|
1036
1028
|
};
|
|
1037
1029
|
await executeCall(call, options);
|
|
1038
1030
|
if (resp === undefined) {
|
|
@@ -1138,10 +1130,10 @@ export class MarketplacesClient {
|
|
|
1138
1130
|
async createFile(
|
|
1139
1131
|
req: CreateFileRequest,
|
|
1140
1132
|
options?: CallOptions
|
|
1141
|
-
): Promise<
|
|
1133
|
+
): Promise<CreateFileResponse> {
|
|
1142
1134
|
const url = `${this.host}/api/2.0/marketplace-provider/files`;
|
|
1143
1135
|
const body = marshalRequest(req, marshalCreateFileRequestSchema);
|
|
1144
|
-
let resp:
|
|
1136
|
+
let resp: CreateFileResponse | undefined;
|
|
1145
1137
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1146
1138
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1147
1139
|
if (this.workspaceId !== undefined) {
|
|
@@ -1154,7 +1146,7 @@ export class MarketplacesClient {
|
|
|
1154
1146
|
httpClient: this.httpClient,
|
|
1155
1147
|
logger: this.logger,
|
|
1156
1148
|
});
|
|
1157
|
-
resp = parseResponse(respBody,
|
|
1149
|
+
resp = parseResponse(respBody, unmarshalCreateFileResponseSchema);
|
|
1158
1150
|
};
|
|
1159
1151
|
await executeCall(call, options);
|
|
1160
1152
|
if (resp === undefined) {
|
|
@@ -1167,10 +1159,10 @@ export class MarketplacesClient {
|
|
|
1167
1159
|
async createListing(
|
|
1168
1160
|
req: CreateListingRequest,
|
|
1169
1161
|
options?: CallOptions
|
|
1170
|
-
): Promise<
|
|
1162
|
+
): Promise<CreateListingResponse> {
|
|
1171
1163
|
const url = `${this.host}/api/2.0/marketplace-provider/listing`;
|
|
1172
1164
|
const body = marshalRequest(req, marshalCreateListingRequestSchema);
|
|
1173
|
-
let resp:
|
|
1165
|
+
let resp: CreateListingResponse | undefined;
|
|
1174
1166
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1175
1167
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1176
1168
|
if (this.workspaceId !== undefined) {
|
|
@@ -1183,10 +1175,7 @@ export class MarketplacesClient {
|
|
|
1183
1175
|
httpClient: this.httpClient,
|
|
1184
1176
|
logger: this.logger,
|
|
1185
1177
|
});
|
|
1186
|
-
resp = parseResponse(
|
|
1187
|
-
respBody,
|
|
1188
|
-
unmarshalCreateListingRequest_ResponseSchema
|
|
1189
|
-
);
|
|
1178
|
+
resp = parseResponse(respBody, unmarshalCreateListingResponseSchema);
|
|
1190
1179
|
};
|
|
1191
1180
|
await executeCall(call, options);
|
|
1192
1181
|
if (resp === undefined) {
|
|
@@ -1199,10 +1188,10 @@ export class MarketplacesClient {
|
|
|
1199
1188
|
async createProvider(
|
|
1200
1189
|
req: CreateProviderRequest,
|
|
1201
1190
|
options?: CallOptions
|
|
1202
|
-
): Promise<
|
|
1191
|
+
): Promise<CreateProviderResponse> {
|
|
1203
1192
|
const url = `${this.host}/api/2.0/marketplace-provider/provider`;
|
|
1204
1193
|
const body = marshalRequest(req, marshalCreateProviderRequestSchema);
|
|
1205
|
-
let resp:
|
|
1194
|
+
let resp: CreateProviderResponse | undefined;
|
|
1206
1195
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1207
1196
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1208
1197
|
if (this.workspaceId !== undefined) {
|
|
@@ -1215,10 +1204,7 @@ export class MarketplacesClient {
|
|
|
1215
1204
|
httpClient: this.httpClient,
|
|
1216
1205
|
logger: this.logger,
|
|
1217
1206
|
});
|
|
1218
|
-
resp = parseResponse(
|
|
1219
|
-
respBody,
|
|
1220
|
-
unmarshalCreateProviderRequest_ResponseSchema
|
|
1221
|
-
);
|
|
1207
|
+
resp = parseResponse(respBody, unmarshalCreateProviderResponseSchema);
|
|
1222
1208
|
};
|
|
1223
1209
|
await executeCall(call, options);
|
|
1224
1210
|
if (resp === undefined) {
|
|
@@ -1231,13 +1217,13 @@ export class MarketplacesClient {
|
|
|
1231
1217
|
async createProviderAnalyticsDashboard(
|
|
1232
1218
|
req: CreateProviderAnalyticsDashboardRequest,
|
|
1233
1219
|
options?: CallOptions
|
|
1234
|
-
): Promise<
|
|
1220
|
+
): Promise<CreateProviderAnalyticsDashboardResponse> {
|
|
1235
1221
|
const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard`;
|
|
1236
1222
|
const body = marshalRequest(
|
|
1237
1223
|
req,
|
|
1238
1224
|
marshalCreateProviderAnalyticsDashboardRequestSchema
|
|
1239
1225
|
);
|
|
1240
|
-
let resp:
|
|
1226
|
+
let resp: CreateProviderAnalyticsDashboardResponse | undefined;
|
|
1241
1227
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1242
1228
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1243
1229
|
if (this.workspaceId !== undefined) {
|
|
@@ -1252,7 +1238,7 @@ export class MarketplacesClient {
|
|
|
1252
1238
|
});
|
|
1253
1239
|
resp = parseResponse(
|
|
1254
1240
|
respBody,
|
|
1255
|
-
|
|
1241
|
+
unmarshalCreateProviderAnalyticsDashboardResponseSchema
|
|
1256
1242
|
);
|
|
1257
1243
|
};
|
|
1258
1244
|
await executeCall(call, options);
|
|
@@ -1325,9 +1311,9 @@ export class MarketplacesClient {
|
|
|
1325
1311
|
async deleteFile(
|
|
1326
1312
|
req: DeleteFileRequest,
|
|
1327
1313
|
options?: CallOptions
|
|
1328
|
-
): Promise<
|
|
1314
|
+
): Promise<DeleteFileResponse> {
|
|
1329
1315
|
const url = `${this.host}/api/2.0/marketplace-provider/files/${req.fileId ?? ''}`;
|
|
1330
|
-
let resp:
|
|
1316
|
+
let resp: DeleteFileResponse | undefined;
|
|
1331
1317
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1332
1318
|
const headers = new Headers();
|
|
1333
1319
|
if (this.workspaceId !== undefined) {
|
|
@@ -1340,7 +1326,7 @@ export class MarketplacesClient {
|
|
|
1340
1326
|
httpClient: this.httpClient,
|
|
1341
1327
|
logger: this.logger,
|
|
1342
1328
|
});
|
|
1343
|
-
resp = parseResponse(respBody,
|
|
1329
|
+
resp = parseResponse(respBody, unmarshalDeleteFileResponseSchema);
|
|
1344
1330
|
};
|
|
1345
1331
|
await executeCall(call, options);
|
|
1346
1332
|
if (resp === undefined) {
|
|
@@ -1353,9 +1339,9 @@ export class MarketplacesClient {
|
|
|
1353
1339
|
async deleteListing(
|
|
1354
1340
|
req: DeleteListingRequest,
|
|
1355
1341
|
options?: CallOptions
|
|
1356
|
-
): Promise<
|
|
1342
|
+
): Promise<DeleteListingResponse> {
|
|
1357
1343
|
const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
|
|
1358
|
-
let resp:
|
|
1344
|
+
let resp: DeleteListingResponse | undefined;
|
|
1359
1345
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1360
1346
|
const headers = new Headers();
|
|
1361
1347
|
if (this.workspaceId !== undefined) {
|
|
@@ -1368,10 +1354,7 @@ export class MarketplacesClient {
|
|
|
1368
1354
|
httpClient: this.httpClient,
|
|
1369
1355
|
logger: this.logger,
|
|
1370
1356
|
});
|
|
1371
|
-
resp = parseResponse(
|
|
1372
|
-
respBody,
|
|
1373
|
-
unmarshalDeleteListingRequest_ResponseSchema
|
|
1374
|
-
);
|
|
1357
|
+
resp = parseResponse(respBody, unmarshalDeleteListingResponseSchema);
|
|
1375
1358
|
};
|
|
1376
1359
|
await executeCall(call, options);
|
|
1377
1360
|
if (resp === undefined) {
|
|
@@ -1384,9 +1367,9 @@ export class MarketplacesClient {
|
|
|
1384
1367
|
async deleteProvider(
|
|
1385
1368
|
req: DeleteProviderRequest,
|
|
1386
1369
|
options?: CallOptions
|
|
1387
|
-
): Promise<
|
|
1370
|
+
): Promise<DeleteProviderResponse> {
|
|
1388
1371
|
const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
|
|
1389
|
-
let resp:
|
|
1372
|
+
let resp: DeleteProviderResponse | undefined;
|
|
1390
1373
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1391
1374
|
const headers = new Headers();
|
|
1392
1375
|
if (this.workspaceId !== undefined) {
|
|
@@ -1399,10 +1382,7 @@ export class MarketplacesClient {
|
|
|
1399
1382
|
httpClient: this.httpClient,
|
|
1400
1383
|
logger: this.logger,
|
|
1401
1384
|
});
|
|
1402
|
-
resp = parseResponse(
|
|
1403
|
-
respBody,
|
|
1404
|
-
unmarshalDeleteProviderRequest_ResponseSchema
|
|
1405
|
-
);
|
|
1385
|
+
resp = parseResponse(respBody, unmarshalDeleteProviderResponseSchema);
|
|
1406
1386
|
};
|
|
1407
1387
|
await executeCall(call, options);
|
|
1408
1388
|
if (resp === undefined) {
|
|
@@ -1443,9 +1423,9 @@ export class MarketplacesClient {
|
|
|
1443
1423
|
async getFile(
|
|
1444
1424
|
req: GetFileRequest,
|
|
1445
1425
|
options?: CallOptions
|
|
1446
|
-
): Promise<
|
|
1426
|
+
): Promise<GetFileResponse> {
|
|
1447
1427
|
const url = `${this.host}/api/2.0/marketplace-provider/files/${req.fileId ?? ''}`;
|
|
1448
|
-
let resp:
|
|
1428
|
+
let resp: GetFileResponse | undefined;
|
|
1449
1429
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1450
1430
|
const headers = new Headers();
|
|
1451
1431
|
if (this.workspaceId !== undefined) {
|
|
@@ -1458,7 +1438,7 @@ export class MarketplacesClient {
|
|
|
1458
1438
|
httpClient: this.httpClient,
|
|
1459
1439
|
logger: this.logger,
|
|
1460
1440
|
});
|
|
1461
|
-
resp = parseResponse(respBody,
|
|
1441
|
+
resp = parseResponse(respBody, unmarshalGetFileResponseSchema);
|
|
1462
1442
|
};
|
|
1463
1443
|
await executeCall(call, options);
|
|
1464
1444
|
if (resp === undefined) {
|
|
@@ -1471,11 +1451,9 @@ export class MarketplacesClient {
|
|
|
1471
1451
|
async getLatestVersionProviderAnalyticsDashboard(
|
|
1472
1452
|
_req: GetLatestVersionProviderAnalyticsDashboardRequest,
|
|
1473
1453
|
options?: CallOptions
|
|
1474
|
-
): Promise<
|
|
1454
|
+
): Promise<GetLatestVersionProviderAnalyticsDashboardResponse> {
|
|
1475
1455
|
const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard/latest`;
|
|
1476
|
-
let resp:
|
|
1477
|
-
| GetLatestVersionProviderAnalyticsDashboardRequest_Response
|
|
1478
|
-
| undefined;
|
|
1456
|
+
let resp: GetLatestVersionProviderAnalyticsDashboardResponse | undefined;
|
|
1479
1457
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1480
1458
|
const headers = new Headers();
|
|
1481
1459
|
if (this.workspaceId !== undefined) {
|
|
@@ -1490,7 +1468,7 @@ export class MarketplacesClient {
|
|
|
1490
1468
|
});
|
|
1491
1469
|
resp = parseResponse(
|
|
1492
1470
|
respBody,
|
|
1493
|
-
|
|
1471
|
+
unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema
|
|
1494
1472
|
);
|
|
1495
1473
|
};
|
|
1496
1474
|
await executeCall(call, options);
|
|
@@ -1504,9 +1482,9 @@ export class MarketplacesClient {
|
|
|
1504
1482
|
async getListing(
|
|
1505
1483
|
req: GetListingRequest,
|
|
1506
1484
|
options?: CallOptions
|
|
1507
|
-
): Promise<
|
|
1485
|
+
): Promise<GetListingResponse> {
|
|
1508
1486
|
const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
|
|
1509
|
-
let resp:
|
|
1487
|
+
let resp: GetListingResponse | undefined;
|
|
1510
1488
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1511
1489
|
const headers = new Headers();
|
|
1512
1490
|
if (this.workspaceId !== undefined) {
|
|
@@ -1519,7 +1497,7 @@ export class MarketplacesClient {
|
|
|
1519
1497
|
httpClient: this.httpClient,
|
|
1520
1498
|
logger: this.logger,
|
|
1521
1499
|
});
|
|
1522
|
-
resp = parseResponse(respBody,
|
|
1500
|
+
resp = parseResponse(respBody, unmarshalGetListingResponseSchema);
|
|
1523
1501
|
};
|
|
1524
1502
|
await executeCall(call, options);
|
|
1525
1503
|
if (resp === undefined) {
|
|
@@ -1535,7 +1513,7 @@ export class MarketplacesClient {
|
|
|
1535
1513
|
async getPersonalizationRequestsForProvider(
|
|
1536
1514
|
req: GetPersonalizationRequestsForProviderRequest,
|
|
1537
1515
|
options?: CallOptions
|
|
1538
|
-
): Promise<
|
|
1516
|
+
): Promise<GetPersonalizationRequestsForProviderResponse> {
|
|
1539
1517
|
const url = `${this.host}/api/2.0/marketplace-provider/personalization-requests`;
|
|
1540
1518
|
const params = new URLSearchParams();
|
|
1541
1519
|
if (req.pageToken !== undefined) {
|
|
@@ -1546,7 +1524,7 @@ export class MarketplacesClient {
|
|
|
1546
1524
|
}
|
|
1547
1525
|
const query = params.toString();
|
|
1548
1526
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
1549
|
-
let resp:
|
|
1527
|
+
let resp: GetPersonalizationRequestsForProviderResponse | undefined;
|
|
1550
1528
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1551
1529
|
const headers = new Headers();
|
|
1552
1530
|
if (this.workspaceId !== undefined) {
|
|
@@ -1561,7 +1539,7 @@ export class MarketplacesClient {
|
|
|
1561
1539
|
});
|
|
1562
1540
|
resp = parseResponse(
|
|
1563
1541
|
respBody,
|
|
1564
|
-
|
|
1542
|
+
unmarshalGetPersonalizationRequestsForProviderResponseSchema
|
|
1565
1543
|
);
|
|
1566
1544
|
};
|
|
1567
1545
|
await executeCall(call, options);
|
|
@@ -1595,9 +1573,9 @@ export class MarketplacesClient {
|
|
|
1595
1573
|
async getProvider(
|
|
1596
1574
|
req: GetProviderRequest,
|
|
1597
1575
|
options?: CallOptions
|
|
1598
|
-
): Promise<
|
|
1576
|
+
): Promise<GetProviderResponse> {
|
|
1599
1577
|
const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
|
|
1600
|
-
let resp:
|
|
1578
|
+
let resp: GetProviderResponse | undefined;
|
|
1601
1579
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1602
1580
|
const headers = new Headers();
|
|
1603
1581
|
if (this.workspaceId !== undefined) {
|
|
@@ -1610,10 +1588,7 @@ export class MarketplacesClient {
|
|
|
1610
1588
|
httpClient: this.httpClient,
|
|
1611
1589
|
logger: this.logger,
|
|
1612
1590
|
});
|
|
1613
|
-
resp = parseResponse(
|
|
1614
|
-
respBody,
|
|
1615
|
-
unmarshalGetProviderRequest_ResponseSchema
|
|
1616
|
-
);
|
|
1591
|
+
resp = parseResponse(respBody, unmarshalGetProviderResponseSchema);
|
|
1617
1592
|
};
|
|
1618
1593
|
await executeCall(call, options);
|
|
1619
1594
|
if (resp === undefined) {
|
|
@@ -1800,7 +1775,7 @@ export class MarketplacesClient {
|
|
|
1800
1775
|
async listFiles(
|
|
1801
1776
|
req: ListFilesRequest,
|
|
1802
1777
|
options?: CallOptions
|
|
1803
|
-
): Promise<
|
|
1778
|
+
): Promise<ListFilesResponse> {
|
|
1804
1779
|
const url = `${this.host}/api/2.0/marketplace-provider/files`;
|
|
1805
1780
|
const params = new URLSearchParams();
|
|
1806
1781
|
if (req.fileParent !== undefined) {
|
|
@@ -1818,7 +1793,7 @@ export class MarketplacesClient {
|
|
|
1818
1793
|
}
|
|
1819
1794
|
const query = params.toString();
|
|
1820
1795
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
1821
|
-
let resp:
|
|
1796
|
+
let resp: ListFilesResponse | undefined;
|
|
1822
1797
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1823
1798
|
const headers = new Headers();
|
|
1824
1799
|
if (this.workspaceId !== undefined) {
|
|
@@ -1831,7 +1806,7 @@ export class MarketplacesClient {
|
|
|
1831
1806
|
httpClient: this.httpClient,
|
|
1832
1807
|
logger: this.logger,
|
|
1833
1808
|
});
|
|
1834
|
-
resp = parseResponse(respBody,
|
|
1809
|
+
resp = parseResponse(respBody, unmarshalListFilesResponseSchema);
|
|
1835
1810
|
};
|
|
1836
1811
|
await executeCall(call, options);
|
|
1837
1812
|
if (resp === undefined) {
|
|
@@ -1861,7 +1836,7 @@ export class MarketplacesClient {
|
|
|
1861
1836
|
async listListings(
|
|
1862
1837
|
req: ListListingsRequest,
|
|
1863
1838
|
options?: CallOptions
|
|
1864
|
-
): Promise<
|
|
1839
|
+
): Promise<GetListingsResponse> {
|
|
1865
1840
|
const url = `${this.host}/api/2.0/marketplace-provider/listings`;
|
|
1866
1841
|
const params = new URLSearchParams();
|
|
1867
1842
|
if (req.pageToken !== undefined) {
|
|
@@ -1872,7 +1847,7 @@ export class MarketplacesClient {
|
|
|
1872
1847
|
}
|
|
1873
1848
|
const query = params.toString();
|
|
1874
1849
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
1875
|
-
let resp:
|
|
1850
|
+
let resp: GetListingsResponse | undefined;
|
|
1876
1851
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1877
1852
|
const headers = new Headers();
|
|
1878
1853
|
if (this.workspaceId !== undefined) {
|
|
@@ -1885,10 +1860,7 @@ export class MarketplacesClient {
|
|
|
1885
1860
|
httpClient: this.httpClient,
|
|
1886
1861
|
logger: this.logger,
|
|
1887
1862
|
});
|
|
1888
|
-
resp = parseResponse(
|
|
1889
|
-
respBody,
|
|
1890
|
-
unmarshalListListingsRequest_ResponseSchema
|
|
1891
|
-
);
|
|
1863
|
+
resp = parseResponse(respBody, unmarshalGetListingsResponseSchema);
|
|
1892
1864
|
};
|
|
1893
1865
|
await executeCall(call, options);
|
|
1894
1866
|
if (resp === undefined) {
|
|
@@ -1978,9 +1950,9 @@ export class MarketplacesClient {
|
|
|
1978
1950
|
async listProviderAnalyticsDashboard(
|
|
1979
1951
|
_req: ListProviderAnalyticsDashboardRequest,
|
|
1980
1952
|
options?: CallOptions
|
|
1981
|
-
): Promise<
|
|
1953
|
+
): Promise<ListProviderAnalyticsDashboardResponse> {
|
|
1982
1954
|
const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard`;
|
|
1983
|
-
let resp:
|
|
1955
|
+
let resp: ListProviderAnalyticsDashboardResponse | undefined;
|
|
1984
1956
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1985
1957
|
const headers = new Headers();
|
|
1986
1958
|
if (this.workspaceId !== undefined) {
|
|
@@ -1995,7 +1967,7 @@ export class MarketplacesClient {
|
|
|
1995
1967
|
});
|
|
1996
1968
|
resp = parseResponse(
|
|
1997
1969
|
respBody,
|
|
1998
|
-
|
|
1970
|
+
unmarshalListProviderAnalyticsDashboardResponseSchema
|
|
1999
1971
|
);
|
|
2000
1972
|
};
|
|
2001
1973
|
await executeCall(call, options);
|
|
@@ -2009,7 +1981,7 @@ export class MarketplacesClient {
|
|
|
2009
1981
|
async listProviders(
|
|
2010
1982
|
req: ListProvidersRequest,
|
|
2011
1983
|
options?: CallOptions
|
|
2012
|
-
): Promise<
|
|
1984
|
+
): Promise<ListProvidersResponse> {
|
|
2013
1985
|
const url = `${this.host}/api/2.0/marketplace-provider/providers`;
|
|
2014
1986
|
const params = new URLSearchParams();
|
|
2015
1987
|
if (req.pageToken !== undefined) {
|
|
@@ -2020,7 +1992,7 @@ export class MarketplacesClient {
|
|
|
2020
1992
|
}
|
|
2021
1993
|
const query = params.toString();
|
|
2022
1994
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
2023
|
-
let resp:
|
|
1995
|
+
let resp: ListProvidersResponse | undefined;
|
|
2024
1996
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
2025
1997
|
const headers = new Headers();
|
|
2026
1998
|
if (this.workspaceId !== undefined) {
|
|
@@ -2033,10 +2005,7 @@ export class MarketplacesClient {
|
|
|
2033
2005
|
httpClient: this.httpClient,
|
|
2034
2006
|
logger: this.logger,
|
|
2035
2007
|
});
|
|
2036
|
-
resp = parseResponse(
|
|
2037
|
-
respBody,
|
|
2038
|
-
unmarshalListProvidersRequest_ResponseSchema
|
|
2039
|
-
);
|
|
2008
|
+
resp = parseResponse(respBody, unmarshalListProvidersResponseSchema);
|
|
2040
2009
|
};
|
|
2041
2010
|
await executeCall(call, options);
|
|
2042
2011
|
if (resp === undefined) {
|
|
@@ -2158,10 +2127,10 @@ export class MarketplacesClient {
|
|
|
2158
2127
|
async updateListing(
|
|
2159
2128
|
req: UpdateListingRequest,
|
|
2160
2129
|
options?: CallOptions
|
|
2161
|
-
): Promise<
|
|
2130
|
+
): Promise<UpdateListingResponse> {
|
|
2162
2131
|
const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
|
|
2163
2132
|
const body = marshalRequest(req, marshalUpdateListingRequestSchema);
|
|
2164
|
-
let resp:
|
|
2133
|
+
let resp: UpdateListingResponse | undefined;
|
|
2165
2134
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
2166
2135
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
2167
2136
|
if (this.workspaceId !== undefined) {
|
|
@@ -2174,10 +2143,7 @@ export class MarketplacesClient {
|
|
|
2174
2143
|
httpClient: this.httpClient,
|
|
2175
2144
|
logger: this.logger,
|
|
2176
2145
|
});
|
|
2177
|
-
resp = parseResponse(
|
|
2178
|
-
respBody,
|
|
2179
|
-
unmarshalUpdateListingRequest_ResponseSchema
|
|
2180
|
-
);
|
|
2146
|
+
resp = parseResponse(respBody, unmarshalUpdateListingResponseSchema);
|
|
2181
2147
|
};
|
|
2182
2148
|
await executeCall(call, options);
|
|
2183
2149
|
if (resp === undefined) {
|
|
@@ -2190,13 +2156,13 @@ export class MarketplacesClient {
|
|
|
2190
2156
|
async updatePersonalizationRequestStatus(
|
|
2191
2157
|
req: UpdatePersonalizationRequestStatusRequest,
|
|
2192
2158
|
options?: CallOptions
|
|
2193
|
-
): Promise<
|
|
2159
|
+
): Promise<UpdatePersonalizationRequestStatusResponse> {
|
|
2194
2160
|
const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.listingId ?? ''}/personalization-requests/${req.requestId ?? ''}/request-status`;
|
|
2195
2161
|
const body = marshalRequest(
|
|
2196
2162
|
req,
|
|
2197
2163
|
marshalUpdatePersonalizationRequestStatusRequestSchema
|
|
2198
2164
|
);
|
|
2199
|
-
let resp:
|
|
2165
|
+
let resp: UpdatePersonalizationRequestStatusResponse | undefined;
|
|
2200
2166
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
2201
2167
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
2202
2168
|
if (this.workspaceId !== undefined) {
|
|
@@ -2211,7 +2177,7 @@ export class MarketplacesClient {
|
|
|
2211
2177
|
});
|
|
2212
2178
|
resp = parseResponse(
|
|
2213
2179
|
respBody,
|
|
2214
|
-
|
|
2180
|
+
unmarshalUpdatePersonalizationRequestStatusResponseSchema
|
|
2215
2181
|
);
|
|
2216
2182
|
};
|
|
2217
2183
|
await executeCall(call, options);
|
|
@@ -2225,10 +2191,10 @@ export class MarketplacesClient {
|
|
|
2225
2191
|
async updateProvider(
|
|
2226
2192
|
req: UpdateProviderRequest,
|
|
2227
2193
|
options?: CallOptions
|
|
2228
|
-
): Promise<
|
|
2194
|
+
): Promise<UpdateProviderResponse> {
|
|
2229
2195
|
const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
|
|
2230
2196
|
const body = marshalRequest(req, marshalUpdateProviderRequestSchema);
|
|
2231
|
-
let resp:
|
|
2197
|
+
let resp: UpdateProviderResponse | undefined;
|
|
2232
2198
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
2233
2199
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
2234
2200
|
if (this.workspaceId !== undefined) {
|
|
@@ -2241,10 +2207,7 @@ export class MarketplacesClient {
|
|
|
2241
2207
|
httpClient: this.httpClient,
|
|
2242
2208
|
logger: this.logger,
|
|
2243
2209
|
});
|
|
2244
|
-
resp = parseResponse(
|
|
2245
|
-
respBody,
|
|
2246
|
-
unmarshalUpdateProviderRequest_ResponseSchema
|
|
2247
|
-
);
|
|
2210
|
+
resp = parseResponse(respBody, unmarshalUpdateProviderResponseSchema);
|
|
2248
2211
|
};
|
|
2249
2212
|
await executeCall(call, options);
|
|
2250
2213
|
if (resp === undefined) {
|
|
@@ -2257,13 +2220,13 @@ export class MarketplacesClient {
|
|
|
2257
2220
|
async updateProviderAnalyticsDashboard(
|
|
2258
2221
|
req: UpdateProviderAnalyticsDashboardRequest,
|
|
2259
2222
|
options?: CallOptions
|
|
2260
|
-
): Promise<
|
|
2223
|
+
): Promise<UpdateProviderAnalyticsDashboardResponse> {
|
|
2261
2224
|
const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard/${req.id ?? ''}`;
|
|
2262
2225
|
const body = marshalRequest(
|
|
2263
2226
|
req,
|
|
2264
2227
|
marshalUpdateProviderAnalyticsDashboardRequestSchema
|
|
2265
2228
|
);
|
|
2266
|
-
let resp:
|
|
2229
|
+
let resp: UpdateProviderAnalyticsDashboardResponse | undefined;
|
|
2267
2230
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
2268
2231
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
2269
2232
|
if (this.workspaceId !== undefined) {
|
|
@@ -2278,7 +2241,7 @@ export class MarketplacesClient {
|
|
|
2278
2241
|
});
|
|
2279
2242
|
resp = parseResponse(
|
|
2280
2243
|
respBody,
|
|
2281
|
-
|
|
2244
|
+
unmarshalUpdateProviderAnalyticsDashboardResponseSchema
|
|
2282
2245
|
);
|
|
2283
2246
|
};
|
|
2284
2247
|
await executeCall(call, options);
|