@accrescent/console-client-sdk-angular 0.6.1 → 0.8.0

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 (21) hide show
  1. package/LICENSE +201 -0
  2. package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs +1880 -0
  3. package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs.map +1 -0
  4. package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs +364 -0
  5. package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs.map +1 -0
  6. package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs +584 -0
  7. package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs.map +1 -0
  8. package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs +94 -0
  9. package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs.map +1 -0
  10. package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs +32 -0
  11. package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs.map +1 -0
  12. package/fesm2022/accrescent-console-client-sdk-angular.mjs +3 -2282
  13. package/fesm2022/accrescent-console-client-sdk-angular.mjs.map +1 -1
  14. package/package.json +27 -10
  15. package/types/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.d.ts +3021 -0
  16. package/types/accrescent-console-client-sdk-angular-buf-validate.d.ts +4770 -0
  17. package/types/accrescent-console-client-sdk-angular-google-api.d.ts +1489 -0
  18. package/types/accrescent-console-client-sdk-angular-google-longrunning.d.ts +401 -0
  19. package/types/accrescent-console-client-sdk-angular-google-rpc.d.ts +52 -0
  20. package/types/accrescent-console-client-sdk-angular.d.ts +1 -1977
  21. package/README.md +0 -185
@@ -1,2287 +1,8 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
3
- import * as i1 from '@angular/common/http';
4
- import { HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';
5
-
6
- /**
7
- * Custom HttpParameterCodec
8
- * Workaround for https://github.com/angular/angular/issues/18261
9
- */
10
- class CustomHttpParameterCodec {
11
- encodeKey(k) {
12
- return encodeURIComponent(k);
13
- }
14
- encodeValue(v) {
15
- return encodeURIComponent(v);
16
- }
17
- decodeKey(k) {
18
- return decodeURIComponent(k);
19
- }
20
- decodeValue(v) {
21
- return decodeURIComponent(v);
22
- }
23
- }
24
- class IdentityHttpParameterCodec {
25
- encodeKey(k) {
26
- return k;
27
- }
28
- encodeValue(v) {
29
- return v;
30
- }
31
- decodeKey(k) {
32
- return k;
33
- }
34
- decodeValue(v) {
35
- return v;
36
- }
37
- }
38
-
39
- var QueryParamStyle;
40
- (function (QueryParamStyle) {
41
- QueryParamStyle[QueryParamStyle["Json"] = 0] = "Json";
42
- QueryParamStyle[QueryParamStyle["Form"] = 1] = "Form";
43
- QueryParamStyle[QueryParamStyle["DeepObject"] = 2] = "DeepObject";
44
- QueryParamStyle[QueryParamStyle["SpaceDelimited"] = 3] = "SpaceDelimited";
45
- QueryParamStyle[QueryParamStyle["PipeDelimited"] = 4] = "PipeDelimited";
46
- })(QueryParamStyle || (QueryParamStyle = {}));
47
- class OpenApiHttpParams {
48
- params = new Map();
49
- defaults;
50
- encoder;
51
- /**
52
- * @param encoder Parameter serializer
53
- * @param defaults Global defaults used when a specific parameter has no explicit options.
54
- * By OpenAPI default, explode is true for query params with style=form.
55
- */
56
- constructor(encoder, defaults) {
57
- this.encoder = encoder || new CustomHttpParameterCodec();
58
- this.defaults = {
59
- explode: defaults?.explode ?? true,
60
- delimiter: defaults?.delimiter ?? ",",
61
- };
62
- }
63
- resolveOptions(local) {
64
- return {
65
- explode: local?.explode ?? this.defaults.explode,
66
- delimiter: local?.delimiter ?? this.defaults.delimiter,
67
- };
68
- }
69
- /**
70
- * Replace the parameter's values and (optionally) its options.
71
- * Options are stored per-parameter (not global).
72
- */
73
- set(key, values, options) {
74
- const arr = Array.isArray(values) ? values.slice() : [values];
75
- const opts = this.resolveOptions(options);
76
- this.params.set(key, { values: arr, options: opts });
77
- return this;
78
- }
79
- /**
80
- * Append a single value to the parameter. If the parameter didn't exist it will be created
81
- * and use resolved options (global defaults merged with any provided options).
82
- */
83
- append(key, value, options) {
84
- const entry = this.params.get(key);
85
- if (entry) {
86
- // If new options provided, override the stored options for subsequent serialization
87
- if (options) {
88
- entry.options = this.resolveOptions({ ...entry.options, ...options });
89
- }
90
- entry.values.push(value);
91
- }
92
- else {
93
- this.set(key, [value], options);
94
- }
95
- return this;
96
- }
97
- /**
98
- * Serialize to a query string according to per-parameter OpenAPI options.
99
- * - If explode=true for that parameter → repeated key=value pairs (each value encoded).
100
- * - If explode=false for that parameter → single key=value where values are individually encoded
101
- * and joined using the configured delimiter. The delimiter character is inserted AS-IS
102
- * (not percent-encoded).
103
- */
104
- toString() {
105
- const records = this.toRecord();
106
- const parts = [];
107
- for (const key in records) {
108
- parts.push(`${key}=${records[key]}`);
109
- }
110
- return parts.join("&");
111
- }
112
- /**
113
- * Return parameters as a plain record.
114
- * - If a parameter has exactly one value, returns that value directly.
115
- * - If a parameter has multiple values, returns a readonly array of values.
116
- */
117
- toRecord() {
118
- const parts = {};
119
- for (const [key, entry] of this.params.entries()) {
120
- const encodedKey = this.encoder.encodeKey(key);
121
- if (entry.options.explode) {
122
- parts[encodedKey] = entry.values.map((v) => this.encoder.encodeValue(v));
123
- }
124
- else {
125
- const encodedValues = entry.values.map((v) => this.encoder.encodeValue(v));
126
- // join with the delimiter *unencoded*
127
- parts[encodedKey] = encodedValues.join(entry.options.delimiter);
128
- }
129
- }
130
- return parts;
131
- }
132
- /**
133
- * Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
134
- */
135
- toHttpParams() {
136
- const records = this.toRecord();
137
- let httpParams = new HttpParams({ encoder: new IdentityHttpParameterCodec() });
138
- return httpParams.appendAll(records);
139
- }
140
- }
141
- function concatHttpParamsObject(httpParams, key, item, delimiter) {
142
- let keyAndValues = [];
143
- for (const k in item) {
144
- keyAndValues.push(k);
145
- const value = item[k];
146
- if (Array.isArray(value)) {
147
- keyAndValues.push(...value.map(convertToString));
148
- }
149
- else {
150
- keyAndValues.push(convertToString(value));
151
- }
152
- }
153
- return httpParams.set(key, keyAndValues, { explode: false, delimiter: delimiter });
154
- }
155
- function convertToString(value) {
156
- if (value instanceof Date) {
157
- return value.toISOString();
158
- }
159
- else {
160
- return value.toString();
161
- }
162
- }
163
-
164
- const BASE_PATH = new InjectionToken('basePath');
165
- const COLLECTION_FORMATS = {
166
- 'csv': ',',
167
- 'tsv': ' ',
168
- 'ssv': ' ',
169
- 'pipes': '|'
170
- };
171
-
172
- class Configuration {
173
- /**
174
- * @deprecated Since 5.0. Use credentials instead
175
- */
176
- apiKeys;
177
- username;
178
- password;
179
- /**
180
- * @deprecated Since 5.0. Use credentials instead
181
- */
182
- accessToken;
183
- basePath;
184
- withCredentials;
185
- /**
186
- * Takes care of encoding query- and form-parameters.
187
- */
188
- encoder;
189
- /**
190
- * Encoding of various path parameter
191
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
192
- * <p>
193
- * See {@link README.md} for more details
194
- * </p>
195
- */
196
- encodeParam;
197
- /**
198
- * The keys are the names in the securitySchemes section of the OpenAPI
199
- * document. They should map to the value used for authentication
200
- * minus any standard prefixes such as 'Basic' or 'Bearer'.
201
- */
202
- credentials;
203
- constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials } = {}) {
204
- if (apiKeys) {
205
- this.apiKeys = apiKeys;
206
- }
207
- if (username !== undefined) {
208
- this.username = username;
209
- }
210
- if (password !== undefined) {
211
- this.password = password;
212
- }
213
- if (accessToken !== undefined) {
214
- this.accessToken = accessToken;
215
- }
216
- if (basePath !== undefined) {
217
- this.basePath = basePath;
218
- }
219
- if (withCredentials !== undefined) {
220
- this.withCredentials = withCredentials;
221
- }
222
- if (encoder) {
223
- this.encoder = encoder;
224
- }
225
- this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param));
226
- this.credentials = credentials ?? {};
227
- // init default SessionCookie credential
228
- if (!this.credentials['SessionCookie']) {
229
- this.credentials['SessionCookie'] = () => {
230
- if (this.apiKeys === null || this.apiKeys === undefined) {
231
- return undefined;
232
- }
233
- else {
234
- return this.apiKeys['SessionCookie'] || this.apiKeys['Cookie'];
235
- }
236
- };
237
- }
238
- }
239
- /**
240
- * Select the correct content-type to use for a request.
241
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
242
- * If no content type is found return the first found type if the contentTypes is not empty
243
- * @param contentTypes - the array of content types that are available for selection
244
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
245
- */
246
- selectHeaderContentType(contentTypes) {
247
- if (contentTypes.length === 0) {
248
- return undefined;
249
- }
250
- const type = contentTypes.find((x) => this.isJsonMime(x));
251
- if (type === undefined) {
252
- return contentTypes[0];
253
- }
254
- return type;
255
- }
256
- /**
257
- * Select the correct accept content-type to use for a request.
258
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
259
- * If no content type is found return the first found type if the contentTypes is not empty
260
- * @param accepts - the array of content types that are available for selection.
261
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
262
- */
263
- selectHeaderAccept(accepts) {
264
- if (accepts.length === 0) {
265
- return undefined;
266
- }
267
- const type = accepts.find((x) => this.isJsonMime(x));
268
- if (type === undefined) {
269
- return accepts[0];
270
- }
271
- return type;
272
- }
273
- /**
274
- * Check if the given MIME is a JSON MIME.
275
- * JSON MIME examples:
276
- * application/json
277
- * application/json; charset=UTF8
278
- * APPLICATION/JSON
279
- * application/vnd.company+json
280
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
281
- * @return True if the given MIME is JSON, false otherwise.
282
- */
283
- isJsonMime(mime) {
284
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
285
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
286
- }
287
- lookupCredential(key) {
288
- const value = this.credentials[key];
289
- return typeof value === 'function'
290
- ? value()
291
- : value;
292
- }
293
- addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
294
- const value = this.lookupCredential(credentialKey);
295
- return value
296
- ? headers.set(headerName, (prefix ?? '') + value)
297
- : headers;
298
- }
299
- addCredentialToQuery(credentialKey, paramName, query) {
300
- const value = this.lookupCredential(credentialKey);
301
- return value
302
- ? query.set(paramName, value)
303
- : query;
304
- }
305
- defaultEncodeParam(param) {
306
- // This implementation exists as fallback for missing configuration
307
- // and for backwards compatibility to older typescript-angular generator versions.
308
- // It only works for the 'simple' parameter style.
309
- // Date-handling only works for the 'date-time' format.
310
- // All other styles and Date-formats are probably handled incorrectly.
311
- //
312
- // But: if that's all you need (i.e.: the most common use-case): no need for customization!
313
- const value = param.dataFormat === 'date-time' && param.value instanceof Date
314
- ? param.value.toISOString()
315
- : param.value;
316
- return encodeURIComponent(String(value));
317
- }
318
- }
319
-
320
- /**
321
- * Accrescent console API
322
- *
323
- * Contact: contact@accrescent.app
324
- *
325
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
326
- * https://openapi-generator.tech
327
- * Do not edit the class manually.
328
- */
329
- class BaseService {
330
- basePath = 'https://console-api.accrescent.app:443';
331
- defaultHeaders = new HttpHeaders();
332
- configuration;
333
- encoder;
334
- constructor(basePath, configuration) {
335
- this.configuration = configuration || new Configuration();
336
- if (typeof this.configuration.basePath !== 'string') {
337
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
338
- if (firstBasePath != undefined) {
339
- basePath = firstBasePath;
340
- }
341
- if (typeof basePath !== 'string') {
342
- basePath = this.basePath;
343
- }
344
- this.configuration.basePath = basePath;
345
- }
346
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
347
- }
348
- canConsumeForm(consumes) {
349
- return consumes.indexOf('multipart/form-data') !== -1;
350
- }
351
- addToHttpParams(httpParams, key, value, paramStyle, explode) {
352
- if (value === null || value === undefined) {
353
- return httpParams;
354
- }
355
- if (paramStyle === QueryParamStyle.DeepObject) {
356
- if (typeof value !== 'object') {
357
- throw Error(`An object must be provided for key ${key} as it is a deep object`);
358
- }
359
- return Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams);
360
- }
361
- else if (paramStyle === QueryParamStyle.Json) {
362
- return httpParams.append(key, JSON.stringify(value));
363
- }
364
- else {
365
- // Form-style, SpaceDelimited or PipeDelimited
366
- if (Object(value) !== value) {
367
- // If it is a primitive type, add its string representation
368
- return httpParams.append(key, value.toString());
369
- }
370
- else if (value instanceof Date) {
371
- return httpParams.append(key, value.toISOString());
372
- }
373
- else if (Array.isArray(value)) {
374
- // Otherwise, if it's an array, add each element.
375
- if (paramStyle === QueryParamStyle.Form) {
376
- return httpParams.set(key, value, { explode: explode, delimiter: ',' });
377
- }
378
- else if (paramStyle === QueryParamStyle.SpaceDelimited) {
379
- return httpParams.set(key, value, { explode: explode, delimiter: ' ' });
380
- }
381
- else {
382
- // PipeDelimited
383
- return httpParams.set(key, value, { explode: explode, delimiter: '|' });
384
- }
385
- }
386
- else {
387
- // Otherwise, if it's an object, add each field.
388
- if (paramStyle === QueryParamStyle.Form) {
389
- if (explode) {
390
- Object.keys(value).forEach(k => {
391
- httpParams = this.addToHttpParams(httpParams, k, value[k], paramStyle, explode);
392
- });
393
- return httpParams;
394
- }
395
- else {
396
- return concatHttpParamsObject(httpParams, key, value, ',');
397
- }
398
- }
399
- else if (paramStyle === QueryParamStyle.SpaceDelimited) {
400
- return concatHttpParamsObject(httpParams, key, value, ' ');
401
- }
402
- else {
403
- // PipeDelimited
404
- return concatHttpParamsObject(httpParams, key, value, '|');
405
- }
406
- }
407
- }
408
- }
409
- }
410
-
411
- /**
412
- * Accrescent console API
413
- *
414
- * Contact: contact@accrescent.app
415
- *
416
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
417
- * https://openapi-generator.tech
418
- * Do not edit the class manually.
419
- */
420
- /* tslint:disable:no-unused-variable member-ordering */
421
- class AppDraftsService extends BaseService {
422
- httpClient;
423
- constructor(httpClient, basePath, configuration) {
424
- super(basePath, configuration);
425
- this.httpClient = httpClient;
426
- }
427
- appDraftServiceCreateAppDraft(body, observe = 'body', reportProgress = false, options) {
428
- if (body === null || body === undefined) {
429
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceCreateAppDraft.');
430
- }
431
- let localVarHeaders = this.defaultHeaders;
432
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
433
- 'application/json'
434
- ]);
435
- if (localVarHttpHeaderAcceptSelected !== undefined) {
436
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
437
- }
438
- const localVarHttpContext = options?.context ?? new HttpContext();
439
- const localVarTransferCache = options?.transferCache ?? true;
440
- // to determine the Content-Type header
441
- const consumes = [
442
- 'application/json'
443
- ];
444
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
445
- if (httpContentTypeSelected !== undefined) {
446
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
447
- }
448
- let responseType_ = 'json';
449
- if (localVarHttpHeaderAcceptSelected) {
450
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
451
- responseType_ = 'text';
452
- }
453
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
454
- responseType_ = 'json';
455
- }
456
- else {
457
- responseType_ = 'blob';
458
- }
459
- }
460
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts`;
461
- const { basePath, withCredentials } = this.configuration;
462
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
463
- context: localVarHttpContext,
464
- body: body,
465
- responseType: responseType_,
466
- ...(withCredentials ? { withCredentials } : {}),
467
- headers: localVarHeaders,
468
- observe: observe,
469
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
470
- reportProgress: reportProgress
471
- });
472
- }
473
- appDraftServiceCreateAppDraftListing(appDraftId, language, body, observe = 'body', reportProgress = false, options) {
474
- if (appDraftId === null || appDraftId === undefined) {
475
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceCreateAppDraftListing.');
476
- }
477
- if (language === null || language === undefined) {
478
- throw new Error('Required parameter language was null or undefined when calling appDraftServiceCreateAppDraftListing.');
479
- }
480
- if (body === null || body === undefined) {
481
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceCreateAppDraftListing.');
482
- }
483
- let localVarHeaders = this.defaultHeaders;
484
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
485
- 'application/json'
486
- ]);
487
- if (localVarHttpHeaderAcceptSelected !== undefined) {
488
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
489
- }
490
- const localVarHttpContext = options?.context ?? new HttpContext();
491
- const localVarTransferCache = options?.transferCache ?? true;
492
- // to determine the Content-Type header
493
- const consumes = [
494
- 'application/json'
495
- ];
496
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
497
- if (httpContentTypeSelected !== undefined) {
498
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
499
- }
500
- let responseType_ = 'json';
501
- if (localVarHttpHeaderAcceptSelected) {
502
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
503
- responseType_ = 'text';
504
- }
505
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
506
- responseType_ = 'json';
507
- }
508
- else {
509
- responseType_ = 'blob';
510
- }
511
- }
512
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
513
- const { basePath, withCredentials } = this.configuration;
514
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
515
- context: localVarHttpContext,
516
- body: body,
517
- responseType: responseType_,
518
- ...(withCredentials ? { withCredentials } : {}),
519
- headers: localVarHeaders,
520
- observe: observe,
521
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
522
- reportProgress: reportProgress
523
- });
524
- }
525
- appDraftServiceCreateAppDraftListingIconUploadOperation(appDraftId, language, body, observe = 'body', reportProgress = false, options) {
526
- if (appDraftId === null || appDraftId === undefined) {
527
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceCreateAppDraftListingIconUploadOperation.');
528
- }
529
- if (language === null || language === undefined) {
530
- throw new Error('Required parameter language was null or undefined when calling appDraftServiceCreateAppDraftListingIconUploadOperation.');
531
- }
532
- if (body === null || body === undefined) {
533
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceCreateAppDraftListingIconUploadOperation.');
534
- }
535
- let localVarHeaders = this.defaultHeaders;
536
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
537
- 'application/json'
538
- ]);
539
- if (localVarHttpHeaderAcceptSelected !== undefined) {
540
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
541
- }
542
- const localVarHttpContext = options?.context ?? new HttpContext();
543
- const localVarTransferCache = options?.transferCache ?? true;
544
- // to determine the Content-Type header
545
- const consumes = [
546
- 'application/json'
547
- ];
548
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
549
- if (httpContentTypeSelected !== undefined) {
550
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
551
- }
552
- let responseType_ = 'json';
553
- if (localVarHttpHeaderAcceptSelected) {
554
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
555
- responseType_ = 'text';
556
- }
557
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
558
- responseType_ = 'json';
559
- }
560
- else {
561
- responseType_ = 'blob';
562
- }
563
- }
564
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/icon/upload_operations`;
565
- const { basePath, withCredentials } = this.configuration;
566
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
567
- context: localVarHttpContext,
568
- body: body,
569
- responseType: responseType_,
570
- ...(withCredentials ? { withCredentials } : {}),
571
- headers: localVarHeaders,
572
- observe: observe,
573
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
574
- reportProgress: reportProgress
575
- });
576
- }
577
- appDraftServiceCreateAppDraftUploadOperation(appDraftId, body, observe = 'body', reportProgress = false, options) {
578
- if (appDraftId === null || appDraftId === undefined) {
579
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceCreateAppDraftUploadOperation.');
580
- }
581
- if (body === null || body === undefined) {
582
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceCreateAppDraftUploadOperation.');
583
- }
584
- let localVarHeaders = this.defaultHeaders;
585
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
586
- 'application/json'
587
- ]);
588
- if (localVarHttpHeaderAcceptSelected !== undefined) {
589
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
590
- }
591
- const localVarHttpContext = options?.context ?? new HttpContext();
592
- const localVarTransferCache = options?.transferCache ?? true;
593
- // to determine the Content-Type header
594
- const consumes = [
595
- 'application/json'
596
- ];
597
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
598
- if (httpContentTypeSelected !== undefined) {
599
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
600
- }
601
- let responseType_ = 'json';
602
- if (localVarHttpHeaderAcceptSelected) {
603
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
604
- responseType_ = 'text';
605
- }
606
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
607
- responseType_ = 'json';
608
- }
609
- else {
610
- responseType_ = 'blob';
611
- }
612
- }
613
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/upload_operations`;
614
- const { basePath, withCredentials } = this.configuration;
615
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
616
- context: localVarHttpContext,
617
- body: body,
618
- responseType: responseType_,
619
- ...(withCredentials ? { withCredentials } : {}),
620
- headers: localVarHeaders,
621
- observe: observe,
622
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
623
- reportProgress: reportProgress
624
- });
625
- }
626
- appDraftServiceDeleteAppDraft(appDraftId, observe = 'body', reportProgress = false, options) {
627
- if (appDraftId === null || appDraftId === undefined) {
628
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceDeleteAppDraft.');
629
- }
630
- let localVarHeaders = this.defaultHeaders;
631
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
632
- 'application/json'
633
- ]);
634
- if (localVarHttpHeaderAcceptSelected !== undefined) {
635
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
636
- }
637
- const localVarHttpContext = options?.context ?? new HttpContext();
638
- const localVarTransferCache = options?.transferCache ?? true;
639
- let responseType_ = 'json';
640
- if (localVarHttpHeaderAcceptSelected) {
641
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
642
- responseType_ = 'text';
643
- }
644
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
645
- responseType_ = 'json';
646
- }
647
- else {
648
- responseType_ = 'blob';
649
- }
650
- }
651
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
652
- const { basePath, withCredentials } = this.configuration;
653
- return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
654
- context: localVarHttpContext,
655
- responseType: responseType_,
656
- ...(withCredentials ? { withCredentials } : {}),
657
- headers: localVarHeaders,
658
- observe: observe,
659
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
660
- reportProgress: reportProgress
661
- });
662
- }
663
- appDraftServiceDeleteAppDraftListing(appDraftId, language, observe = 'body', reportProgress = false, options) {
664
- if (appDraftId === null || appDraftId === undefined) {
665
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceDeleteAppDraftListing.');
666
- }
667
- if (language === null || language === undefined) {
668
- throw new Error('Required parameter language was null or undefined when calling appDraftServiceDeleteAppDraftListing.');
669
- }
670
- let localVarHeaders = this.defaultHeaders;
671
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
672
- 'application/json'
673
- ]);
674
- if (localVarHttpHeaderAcceptSelected !== undefined) {
675
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
676
- }
677
- const localVarHttpContext = options?.context ?? new HttpContext();
678
- const localVarTransferCache = options?.transferCache ?? true;
679
- let responseType_ = 'json';
680
- if (localVarHttpHeaderAcceptSelected) {
681
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
682
- responseType_ = 'text';
683
- }
684
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
685
- responseType_ = 'json';
686
- }
687
- else {
688
- responseType_ = 'blob';
689
- }
690
- }
691
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
692
- const { basePath, withCredentials } = this.configuration;
693
- return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
694
- context: localVarHttpContext,
695
- responseType: responseType_,
696
- ...(withCredentials ? { withCredentials } : {}),
697
- headers: localVarHeaders,
698
- observe: observe,
699
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
700
- reportProgress: reportProgress
701
- });
702
- }
703
- appDraftServiceGetAppDraft(appDraftId, observe = 'body', reportProgress = false, options) {
704
- if (appDraftId === null || appDraftId === undefined) {
705
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceGetAppDraft.');
706
- }
707
- let localVarHeaders = this.defaultHeaders;
708
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
709
- 'application/json'
710
- ]);
711
- if (localVarHttpHeaderAcceptSelected !== undefined) {
712
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
713
- }
714
- const localVarHttpContext = options?.context ?? new HttpContext();
715
- const localVarTransferCache = options?.transferCache ?? true;
716
- let responseType_ = 'json';
717
- if (localVarHttpHeaderAcceptSelected) {
718
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
719
- responseType_ = 'text';
720
- }
721
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
722
- responseType_ = 'json';
723
- }
724
- else {
725
- responseType_ = 'blob';
726
- }
727
- }
728
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
729
- const { basePath, withCredentials } = this.configuration;
730
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
731
- context: localVarHttpContext,
732
- responseType: responseType_,
733
- ...(withCredentials ? { withCredentials } : {}),
734
- headers: localVarHeaders,
735
- observe: observe,
736
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
737
- reportProgress: reportProgress
738
- });
739
- }
740
- appDraftServiceGetAppDraftDownloadInfo(appDraftId, observe = 'body', reportProgress = false, options) {
741
- if (appDraftId === null || appDraftId === undefined) {
742
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceGetAppDraftDownloadInfo.');
743
- }
744
- let localVarHeaders = this.defaultHeaders;
745
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
746
- 'application/json'
747
- ]);
748
- if (localVarHttpHeaderAcceptSelected !== undefined) {
749
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
750
- }
751
- const localVarHttpContext = options?.context ?? new HttpContext();
752
- const localVarTransferCache = options?.transferCache ?? true;
753
- let responseType_ = 'json';
754
- if (localVarHttpHeaderAcceptSelected) {
755
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
756
- responseType_ = 'text';
757
- }
758
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
759
- responseType_ = 'json';
760
- }
761
- else {
762
- responseType_ = 'blob';
763
- }
764
- }
765
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/download_info`;
766
- const { basePath, withCredentials } = this.configuration;
767
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
768
- context: localVarHttpContext,
769
- responseType: responseType_,
770
- ...(withCredentials ? { withCredentials } : {}),
771
- headers: localVarHeaders,
772
- observe: observe,
773
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
774
- reportProgress: reportProgress
775
- });
776
- }
777
- appDraftServiceGetAppDraftListingIconDownloadInfo(appDraftId, language, observe = 'body', reportProgress = false, options) {
778
- if (appDraftId === null || appDraftId === undefined) {
779
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceGetAppDraftListingIconDownloadInfo.');
780
- }
781
- if (language === null || language === undefined) {
782
- throw new Error('Required parameter language was null or undefined when calling appDraftServiceGetAppDraftListingIconDownloadInfo.');
783
- }
784
- let localVarHeaders = this.defaultHeaders;
785
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
786
- 'application/json'
787
- ]);
788
- if (localVarHttpHeaderAcceptSelected !== undefined) {
789
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
790
- }
791
- const localVarHttpContext = options?.context ?? new HttpContext();
792
- const localVarTransferCache = options?.transferCache ?? true;
793
- let responseType_ = 'json';
794
- if (localVarHttpHeaderAcceptSelected) {
795
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
796
- responseType_ = 'text';
797
- }
798
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
799
- responseType_ = 'json';
800
- }
801
- else {
802
- responseType_ = 'blob';
803
- }
804
- }
805
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/icon/download_info`;
806
- const { basePath, withCredentials } = this.configuration;
807
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
808
- context: localVarHttpContext,
809
- responseType: responseType_,
810
- ...(withCredentials ? { withCredentials } : {}),
811
- headers: localVarHeaders,
812
- observe: observe,
813
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
814
- reportProgress: reportProgress
815
- });
816
- }
817
- appDraftServiceListAppDrafts(organizationId, pageSize, pageToken, observe = 'body', reportProgress = false, options) {
818
- if (organizationId === null || organizationId === undefined) {
819
- throw new Error('Required parameter organizationId was null or undefined when calling appDraftServiceListAppDrafts.');
820
- }
821
- let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
822
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'organizationId', organizationId, QueryParamStyle.Form, false);
823
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageSize', pageSize, QueryParamStyle.Form, false);
824
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageToken', pageToken, QueryParamStyle.Form, false);
825
- let localVarHeaders = this.defaultHeaders;
826
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
827
- 'application/json'
828
- ]);
829
- if (localVarHttpHeaderAcceptSelected !== undefined) {
830
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
831
- }
832
- const localVarHttpContext = options?.context ?? new HttpContext();
833
- const localVarTransferCache = options?.transferCache ?? true;
834
- let responseType_ = 'json';
835
- if (localVarHttpHeaderAcceptSelected) {
836
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
837
- responseType_ = 'text';
838
- }
839
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
840
- responseType_ = 'json';
841
- }
842
- else {
843
- responseType_ = 'blob';
844
- }
845
- }
846
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts`;
847
- const { basePath, withCredentials } = this.configuration;
848
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
849
- context: localVarHttpContext,
850
- params: localVarQueryParameters.toHttpParams(),
851
- responseType: responseType_,
852
- ...(withCredentials ? { withCredentials } : {}),
853
- headers: localVarHeaders,
854
- observe: observe,
855
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
856
- reportProgress: reportProgress
857
- });
858
- }
859
- appDraftServicePublishAppDraft(appDraftId, body, observe = 'body', reportProgress = false, options) {
860
- if (appDraftId === null || appDraftId === undefined) {
861
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServicePublishAppDraft.');
862
- }
863
- if (body === null || body === undefined) {
864
- throw new Error('Required parameter body was null or undefined when calling appDraftServicePublishAppDraft.');
865
- }
866
- let localVarHeaders = this.defaultHeaders;
867
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
868
- 'application/json'
869
- ]);
870
- if (localVarHttpHeaderAcceptSelected !== undefined) {
871
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
872
- }
873
- const localVarHttpContext = options?.context ?? new HttpContext();
874
- const localVarTransferCache = options?.transferCache ?? true;
875
- // to determine the Content-Type header
876
- const consumes = [
877
- 'application/json'
878
- ];
879
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
880
- if (httpContentTypeSelected !== undefined) {
881
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
882
- }
883
- let responseType_ = 'json';
884
- if (localVarHttpHeaderAcceptSelected) {
885
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
886
- responseType_ = 'text';
887
- }
888
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
889
- responseType_ = 'json';
890
- }
891
- else {
892
- responseType_ = 'blob';
893
- }
894
- }
895
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}:publish`;
896
- const { basePath, withCredentials } = this.configuration;
897
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
898
- context: localVarHttpContext,
899
- body: body,
900
- responseType: responseType_,
901
- ...(withCredentials ? { withCredentials } : {}),
902
- headers: localVarHeaders,
903
- observe: observe,
904
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
905
- reportProgress: reportProgress
906
- });
907
- }
908
- appDraftServiceSubmitAppDraft(appDraftId, body, observe = 'body', reportProgress = false, options) {
909
- if (appDraftId === null || appDraftId === undefined) {
910
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceSubmitAppDraft.');
911
- }
912
- if (body === null || body === undefined) {
913
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceSubmitAppDraft.');
914
- }
915
- let localVarHeaders = this.defaultHeaders;
916
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
917
- 'application/json'
918
- ]);
919
- if (localVarHttpHeaderAcceptSelected !== undefined) {
920
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
921
- }
922
- const localVarHttpContext = options?.context ?? new HttpContext();
923
- const localVarTransferCache = options?.transferCache ?? true;
924
- // to determine the Content-Type header
925
- const consumes = [
926
- 'application/json'
927
- ];
928
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
929
- if (httpContentTypeSelected !== undefined) {
930
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
931
- }
932
- let responseType_ = 'json';
933
- if (localVarHttpHeaderAcceptSelected) {
934
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
935
- responseType_ = 'text';
936
- }
937
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
938
- responseType_ = 'json';
939
- }
940
- else {
941
- responseType_ = 'blob';
942
- }
943
- }
944
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}:submit`;
945
- const { basePath, withCredentials } = this.configuration;
946
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
947
- context: localVarHttpContext,
948
- body: body,
949
- responseType: responseType_,
950
- ...(withCredentials ? { withCredentials } : {}),
951
- headers: localVarHeaders,
952
- observe: observe,
953
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
954
- reportProgress: reportProgress
955
- });
956
- }
957
- appDraftServiceUpdateAppDraft(appDraftId, body, observe = 'body', reportProgress = false, options) {
958
- if (appDraftId === null || appDraftId === undefined) {
959
- throw new Error('Required parameter appDraftId was null or undefined when calling appDraftServiceUpdateAppDraft.');
960
- }
961
- if (body === null || body === undefined) {
962
- throw new Error('Required parameter body was null or undefined when calling appDraftServiceUpdateAppDraft.');
963
- }
964
- let localVarHeaders = this.defaultHeaders;
965
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
966
- 'application/json'
967
- ]);
968
- if (localVarHttpHeaderAcceptSelected !== undefined) {
969
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
970
- }
971
- const localVarHttpContext = options?.context ?? new HttpContext();
972
- const localVarTransferCache = options?.transferCache ?? true;
973
- // to determine the Content-Type header
974
- const consumes = [
975
- 'application/json'
976
- ];
977
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
978
- if (httpContentTypeSelected !== undefined) {
979
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
980
- }
981
- let responseType_ = 'json';
982
- if (localVarHttpHeaderAcceptSelected) {
983
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
984
- responseType_ = 'text';
985
- }
986
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
987
- responseType_ = 'json';
988
- }
989
- else {
990
- responseType_ = 'blob';
991
- }
992
- }
993
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
994
- const { basePath, withCredentials } = this.configuration;
995
- return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
996
- context: localVarHttpContext,
997
- body: body,
998
- responseType: responseType_,
999
- ...(withCredentials ? { withCredentials } : {}),
1000
- headers: localVarHeaders,
1001
- observe: observe,
1002
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1003
- reportProgress: reportProgress
1004
- });
1005
- }
1006
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppDraftsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1007
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppDraftsService, providedIn: 'root' });
1008
- }
1009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppDraftsService, decorators: [{
1010
- type: Injectable,
1011
- args: [{
1012
- providedIn: 'root'
1013
- }]
1014
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1015
- type: Optional
1016
- }, {
1017
- type: Inject,
1018
- args: [BASE_PATH]
1019
- }] }, { type: Configuration, decorators: [{
1020
- type: Optional
1021
- }] }] });
1022
-
1023
- /**
1024
- * Accrescent console API
1025
- *
1026
- * Contact: contact@accrescent.app
1027
- *
1028
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1029
- * https://openapi-generator.tech
1030
- * Do not edit the class manually.
1031
- */
1032
- /* tslint:disable:no-unused-variable member-ordering */
1033
- class AppEditsService extends BaseService {
1034
- httpClient;
1035
- constructor(httpClient, basePath, configuration) {
1036
- super(basePath, configuration);
1037
- this.httpClient = httpClient;
1038
- }
1039
- appEditServiceCreateAppEdit(appId, body, observe = 'body', reportProgress = false, options) {
1040
- if (appId === null || appId === undefined) {
1041
- throw new Error('Required parameter appId was null or undefined when calling appEditServiceCreateAppEdit.');
1042
- }
1043
- if (body === null || body === undefined) {
1044
- throw new Error('Required parameter body was null or undefined when calling appEditServiceCreateAppEdit.');
1045
- }
1046
- let localVarHeaders = this.defaultHeaders;
1047
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1048
- 'application/json'
1049
- ]);
1050
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1051
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1052
- }
1053
- const localVarHttpContext = options?.context ?? new HttpContext();
1054
- const localVarTransferCache = options?.transferCache ?? true;
1055
- // to determine the Content-Type header
1056
- const consumes = [
1057
- 'application/json'
1058
- ];
1059
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1060
- if (httpContentTypeSelected !== undefined) {
1061
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1062
- }
1063
- let responseType_ = 'json';
1064
- if (localVarHttpHeaderAcceptSelected) {
1065
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1066
- responseType_ = 'text';
1067
- }
1068
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1069
- responseType_ = 'json';
1070
- }
1071
- else {
1072
- responseType_ = 'blob';
1073
- }
1074
- }
1075
- let localVarPath = `/grpc/accrescent.console.v1alpha1/apps/${this.configuration.encodeParam({ name: "appId", value: appId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/edits`;
1076
- const { basePath, withCredentials } = this.configuration;
1077
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1078
- context: localVarHttpContext,
1079
- body: body,
1080
- responseType: responseType_,
1081
- ...(withCredentials ? { withCredentials } : {}),
1082
- headers: localVarHeaders,
1083
- observe: observe,
1084
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1085
- reportProgress: reportProgress
1086
- });
1087
- }
1088
- appEditServiceCreateAppEditListing(appEditId, language, body, observe = 'body', reportProgress = false, options) {
1089
- if (appEditId === null || appEditId === undefined) {
1090
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceCreateAppEditListing.');
1091
- }
1092
- if (language === null || language === undefined) {
1093
- throw new Error('Required parameter language was null or undefined when calling appEditServiceCreateAppEditListing.');
1094
- }
1095
- if (body === null || body === undefined) {
1096
- throw new Error('Required parameter body was null or undefined when calling appEditServiceCreateAppEditListing.');
1097
- }
1098
- let localVarHeaders = this.defaultHeaders;
1099
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1100
- 'application/json'
1101
- ]);
1102
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1103
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1104
- }
1105
- const localVarHttpContext = options?.context ?? new HttpContext();
1106
- const localVarTransferCache = options?.transferCache ?? true;
1107
- // to determine the Content-Type header
1108
- const consumes = [
1109
- 'application/json'
1110
- ];
1111
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1112
- if (httpContentTypeSelected !== undefined) {
1113
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1114
- }
1115
- let responseType_ = 'json';
1116
- if (localVarHttpHeaderAcceptSelected) {
1117
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1118
- responseType_ = 'text';
1119
- }
1120
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1121
- responseType_ = 'json';
1122
- }
1123
- else {
1124
- responseType_ = 'blob';
1125
- }
1126
- }
1127
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1128
- const { basePath, withCredentials } = this.configuration;
1129
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1130
- context: localVarHttpContext,
1131
- body: body,
1132
- responseType: responseType_,
1133
- ...(withCredentials ? { withCredentials } : {}),
1134
- headers: localVarHeaders,
1135
- observe: observe,
1136
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1137
- reportProgress: reportProgress
1138
- });
1139
- }
1140
- appEditServiceCreateAppEditListingIconUploadOperation(appEditId, language, observe = 'body', reportProgress = false, options) {
1141
- if (appEditId === null || appEditId === undefined) {
1142
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceCreateAppEditListingIconUploadOperation.');
1143
- }
1144
- if (language === null || language === undefined) {
1145
- throw new Error('Required parameter language was null or undefined when calling appEditServiceCreateAppEditListingIconUploadOperation.');
1146
- }
1147
- let localVarHeaders = this.defaultHeaders;
1148
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1149
- 'application/json'
1150
- ]);
1151
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1152
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1153
- }
1154
- const localVarHttpContext = options?.context ?? new HttpContext();
1155
- const localVarTransferCache = options?.transferCache ?? true;
1156
- let responseType_ = 'json';
1157
- if (localVarHttpHeaderAcceptSelected) {
1158
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1159
- responseType_ = 'text';
1160
- }
1161
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1162
- responseType_ = 'json';
1163
- }
1164
- else {
1165
- responseType_ = 'blob';
1166
- }
1167
- }
1168
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/icon/upload_operations`;
1169
- const { basePath, withCredentials } = this.configuration;
1170
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1171
- context: localVarHttpContext,
1172
- responseType: responseType_,
1173
- ...(withCredentials ? { withCredentials } : {}),
1174
- headers: localVarHeaders,
1175
- observe: observe,
1176
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1177
- reportProgress: reportProgress
1178
- });
1179
- }
1180
- appEditServiceCreateAppEditUploadOperation(appEditId, body, observe = 'body', reportProgress = false, options) {
1181
- if (appEditId === null || appEditId === undefined) {
1182
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceCreateAppEditUploadOperation.');
1183
- }
1184
- if (body === null || body === undefined) {
1185
- throw new Error('Required parameter body was null or undefined when calling appEditServiceCreateAppEditUploadOperation.');
1186
- }
1187
- let localVarHeaders = this.defaultHeaders;
1188
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1189
- 'application/json'
1190
- ]);
1191
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1192
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1193
- }
1194
- const localVarHttpContext = options?.context ?? new HttpContext();
1195
- const localVarTransferCache = options?.transferCache ?? true;
1196
- // to determine the Content-Type header
1197
- const consumes = [
1198
- 'application/json'
1199
- ];
1200
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1201
- if (httpContentTypeSelected !== undefined) {
1202
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1203
- }
1204
- let responseType_ = 'json';
1205
- if (localVarHttpHeaderAcceptSelected) {
1206
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1207
- responseType_ = 'text';
1208
- }
1209
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1210
- responseType_ = 'json';
1211
- }
1212
- else {
1213
- responseType_ = 'blob';
1214
- }
1215
- }
1216
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/upload_operations`;
1217
- const { basePath, withCredentials } = this.configuration;
1218
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1219
- context: localVarHttpContext,
1220
- body: body,
1221
- responseType: responseType_,
1222
- ...(withCredentials ? { withCredentials } : {}),
1223
- headers: localVarHeaders,
1224
- observe: observe,
1225
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1226
- reportProgress: reportProgress
1227
- });
1228
- }
1229
- appEditServiceDeleteAppEdit(appEditId, observe = 'body', reportProgress = false, options) {
1230
- if (appEditId === null || appEditId === undefined) {
1231
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceDeleteAppEdit.');
1232
- }
1233
- let localVarHeaders = this.defaultHeaders;
1234
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1235
- 'application/json'
1236
- ]);
1237
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1238
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1239
- }
1240
- const localVarHttpContext = options?.context ?? new HttpContext();
1241
- const localVarTransferCache = options?.transferCache ?? true;
1242
- let responseType_ = 'json';
1243
- if (localVarHttpHeaderAcceptSelected) {
1244
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1245
- responseType_ = 'text';
1246
- }
1247
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1248
- responseType_ = 'json';
1249
- }
1250
- else {
1251
- responseType_ = 'blob';
1252
- }
1253
- }
1254
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1255
- const { basePath, withCredentials } = this.configuration;
1256
- return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
1257
- context: localVarHttpContext,
1258
- responseType: responseType_,
1259
- ...(withCredentials ? { withCredentials } : {}),
1260
- headers: localVarHeaders,
1261
- observe: observe,
1262
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1263
- reportProgress: reportProgress
1264
- });
1265
- }
1266
- appEditServiceDeleteAppEditListing(appEditId, language, observe = 'body', reportProgress = false, options) {
1267
- if (appEditId === null || appEditId === undefined) {
1268
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceDeleteAppEditListing.');
1269
- }
1270
- if (language === null || language === undefined) {
1271
- throw new Error('Required parameter language was null or undefined when calling appEditServiceDeleteAppEditListing.');
1272
- }
1273
- let localVarHeaders = this.defaultHeaders;
1274
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1275
- 'application/json'
1276
- ]);
1277
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1278
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1279
- }
1280
- const localVarHttpContext = options?.context ?? new HttpContext();
1281
- const localVarTransferCache = options?.transferCache ?? true;
1282
- let responseType_ = 'json';
1283
- if (localVarHttpHeaderAcceptSelected) {
1284
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1285
- responseType_ = 'text';
1286
- }
1287
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1288
- responseType_ = 'json';
1289
- }
1290
- else {
1291
- responseType_ = 'blob';
1292
- }
1293
- }
1294
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/listings/${this.configuration.encodeParam({ name: "language", value: language, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1295
- const { basePath, withCredentials } = this.configuration;
1296
- return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
1297
- context: localVarHttpContext,
1298
- responseType: responseType_,
1299
- ...(withCredentials ? { withCredentials } : {}),
1300
- headers: localVarHeaders,
1301
- observe: observe,
1302
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1303
- reportProgress: reportProgress
1304
- });
1305
- }
1306
- appEditServiceGetAppEdit(appEditId, observe = 'body', reportProgress = false, options) {
1307
- if (appEditId === null || appEditId === undefined) {
1308
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceGetAppEdit.');
1309
- }
1310
- let localVarHeaders = this.defaultHeaders;
1311
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1312
- 'application/json'
1313
- ]);
1314
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1315
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1316
- }
1317
- const localVarHttpContext = options?.context ?? new HttpContext();
1318
- const localVarTransferCache = options?.transferCache ?? true;
1319
- let responseType_ = 'json';
1320
- if (localVarHttpHeaderAcceptSelected) {
1321
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1322
- responseType_ = 'text';
1323
- }
1324
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1325
- responseType_ = 'json';
1326
- }
1327
- else {
1328
- responseType_ = 'blob';
1329
- }
1330
- }
1331
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1332
- const { basePath, withCredentials } = this.configuration;
1333
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1334
- context: localVarHttpContext,
1335
- responseType: responseType_,
1336
- ...(withCredentials ? { withCredentials } : {}),
1337
- headers: localVarHeaders,
1338
- observe: observe,
1339
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1340
- reportProgress: reportProgress
1341
- });
1342
- }
1343
- appEditServiceGetAppEditDownloadInfo(appEditId, observe = 'body', reportProgress = false, options) {
1344
- if (appEditId === null || appEditId === undefined) {
1345
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceGetAppEditDownloadInfo.');
1346
- }
1347
- let localVarHeaders = this.defaultHeaders;
1348
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1349
- 'application/json'
1350
- ]);
1351
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1352
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1353
- }
1354
- const localVarHttpContext = options?.context ?? new HttpContext();
1355
- const localVarTransferCache = options?.transferCache ?? true;
1356
- let responseType_ = 'json';
1357
- if (localVarHttpHeaderAcceptSelected) {
1358
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1359
- responseType_ = 'text';
1360
- }
1361
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1362
- responseType_ = 'json';
1363
- }
1364
- else {
1365
- responseType_ = 'blob';
1366
- }
1367
- }
1368
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/download_info`;
1369
- const { basePath, withCredentials } = this.configuration;
1370
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1371
- context: localVarHttpContext,
1372
- responseType: responseType_,
1373
- ...(withCredentials ? { withCredentials } : {}),
1374
- headers: localVarHeaders,
1375
- observe: observe,
1376
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1377
- reportProgress: reportProgress
1378
- });
1379
- }
1380
- appEditServiceListAppEdits(appId, pageSize, pageToken, observe = 'body', reportProgress = false, options) {
1381
- if (appId === null || appId === undefined) {
1382
- throw new Error('Required parameter appId was null or undefined when calling appEditServiceListAppEdits.');
1383
- }
1384
- let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
1385
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'appId', appId, QueryParamStyle.Form, false);
1386
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageSize', pageSize, QueryParamStyle.Form, false);
1387
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageToken', pageToken, QueryParamStyle.Form, false);
1388
- let localVarHeaders = this.defaultHeaders;
1389
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1390
- 'application/json'
1391
- ]);
1392
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1393
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1394
- }
1395
- const localVarHttpContext = options?.context ?? new HttpContext();
1396
- const localVarTransferCache = options?.transferCache ?? true;
1397
- let responseType_ = 'json';
1398
- if (localVarHttpHeaderAcceptSelected) {
1399
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1400
- responseType_ = 'text';
1401
- }
1402
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1403
- responseType_ = 'json';
1404
- }
1405
- else {
1406
- responseType_ = 'blob';
1407
- }
1408
- }
1409
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits`;
1410
- const { basePath, withCredentials } = this.configuration;
1411
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1412
- context: localVarHttpContext,
1413
- params: localVarQueryParameters.toHttpParams(),
1414
- responseType: responseType_,
1415
- ...(withCredentials ? { withCredentials } : {}),
1416
- headers: localVarHeaders,
1417
- observe: observe,
1418
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1419
- reportProgress: reportProgress
1420
- });
1421
- }
1422
- appEditServiceSubmitAppEdit(appEditId, body, observe = 'body', reportProgress = false, options) {
1423
- if (appEditId === null || appEditId === undefined) {
1424
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceSubmitAppEdit.');
1425
- }
1426
- if (body === null || body === undefined) {
1427
- throw new Error('Required parameter body was null or undefined when calling appEditServiceSubmitAppEdit.');
1428
- }
1429
- let localVarHeaders = this.defaultHeaders;
1430
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1431
- 'application/json'
1432
- ]);
1433
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1434
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1435
- }
1436
- const localVarHttpContext = options?.context ?? new HttpContext();
1437
- const localVarTransferCache = options?.transferCache ?? true;
1438
- // to determine the Content-Type header
1439
- const consumes = [
1440
- 'application/json'
1441
- ];
1442
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1443
- if (httpContentTypeSelected !== undefined) {
1444
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1445
- }
1446
- let responseType_ = 'json';
1447
- if (localVarHttpHeaderAcceptSelected) {
1448
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1449
- responseType_ = 'text';
1450
- }
1451
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1452
- responseType_ = 'json';
1453
- }
1454
- else {
1455
- responseType_ = 'blob';
1456
- }
1457
- }
1458
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}:submit`;
1459
- const { basePath, withCredentials } = this.configuration;
1460
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1461
- context: localVarHttpContext,
1462
- body: body,
1463
- responseType: responseType_,
1464
- ...(withCredentials ? { withCredentials } : {}),
1465
- headers: localVarHeaders,
1466
- observe: observe,
1467
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1468
- reportProgress: reportProgress
1469
- });
1470
- }
1471
- appEditServiceUpdateAppEdit(appEditId, body, observe = 'body', reportProgress = false, options) {
1472
- if (appEditId === null || appEditId === undefined) {
1473
- throw new Error('Required parameter appEditId was null or undefined when calling appEditServiceUpdateAppEdit.');
1474
- }
1475
- if (body === null || body === undefined) {
1476
- throw new Error('Required parameter body was null or undefined when calling appEditServiceUpdateAppEdit.');
1477
- }
1478
- let localVarHeaders = this.defaultHeaders;
1479
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1480
- 'application/json'
1481
- ]);
1482
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1483
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1484
- }
1485
- const localVarHttpContext = options?.context ?? new HttpContext();
1486
- const localVarTransferCache = options?.transferCache ?? true;
1487
- // to determine the Content-Type header
1488
- const consumes = [
1489
- 'application/json'
1490
- ];
1491
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1492
- if (httpContentTypeSelected !== undefined) {
1493
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1494
- }
1495
- let responseType_ = 'json';
1496
- if (localVarHttpHeaderAcceptSelected) {
1497
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1498
- responseType_ = 'text';
1499
- }
1500
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1501
- responseType_ = 'json';
1502
- }
1503
- else {
1504
- responseType_ = 'blob';
1505
- }
1506
- }
1507
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1508
- const { basePath, withCredentials } = this.configuration;
1509
- return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
1510
- context: localVarHttpContext,
1511
- body: body,
1512
- responseType: responseType_,
1513
- ...(withCredentials ? { withCredentials } : {}),
1514
- headers: localVarHeaders,
1515
- observe: observe,
1516
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1517
- reportProgress: reportProgress
1518
- });
1519
- }
1520
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppEditsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1521
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppEditsService, providedIn: 'root' });
1522
- }
1523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppEditsService, decorators: [{
1524
- type: Injectable,
1525
- args: [{
1526
- providedIn: 'root'
1527
- }]
1528
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1529
- type: Optional
1530
- }, {
1531
- type: Inject,
1532
- args: [BASE_PATH]
1533
- }] }, { type: Configuration, decorators: [{
1534
- type: Optional
1535
- }] }] });
1536
-
1537
- /**
1538
- * Accrescent console API
1539
- *
1540
- * Contact: contact@accrescent.app
1541
- *
1542
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1543
- * https://openapi-generator.tech
1544
- * Do not edit the class manually.
1545
- */
1546
- /* tslint:disable:no-unused-variable member-ordering */
1547
- class AppsService extends BaseService {
1548
- httpClient;
1549
- constructor(httpClient, basePath, configuration) {
1550
- super(basePath, configuration);
1551
- this.httpClient = httpClient;
1552
- }
1553
- appServiceGetApp(appId, observe = 'body', reportProgress = false, options) {
1554
- if (appId === null || appId === undefined) {
1555
- throw new Error('Required parameter appId was null or undefined when calling appServiceGetApp.');
1556
- }
1557
- let localVarHeaders = this.defaultHeaders;
1558
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1559
- 'application/json'
1560
- ]);
1561
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1562
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1563
- }
1564
- const localVarHttpContext = options?.context ?? new HttpContext();
1565
- const localVarTransferCache = options?.transferCache ?? true;
1566
- let responseType_ = 'json';
1567
- if (localVarHttpHeaderAcceptSelected) {
1568
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1569
- responseType_ = 'text';
1570
- }
1571
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1572
- responseType_ = 'json';
1573
- }
1574
- else {
1575
- responseType_ = 'blob';
1576
- }
1577
- }
1578
- let localVarPath = `/grpc/accrescent.console.v1alpha1/apps/${this.configuration.encodeParam({ name: "appId", value: appId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1579
- const { basePath, withCredentials } = this.configuration;
1580
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1581
- context: localVarHttpContext,
1582
- responseType: responseType_,
1583
- ...(withCredentials ? { withCredentials } : {}),
1584
- headers: localVarHeaders,
1585
- observe: observe,
1586
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1587
- reportProgress: reportProgress
1588
- });
1589
- }
1590
- appServiceListApps(organizationId, pageSize, pageToken, observe = 'body', reportProgress = false, options) {
1591
- if (organizationId === null || organizationId === undefined) {
1592
- throw new Error('Required parameter organizationId was null or undefined when calling appServiceListApps.');
1593
- }
1594
- let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
1595
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'organizationId', organizationId, QueryParamStyle.Form, false);
1596
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageSize', pageSize, QueryParamStyle.Form, false);
1597
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageToken', pageToken, QueryParamStyle.Form, false);
1598
- let localVarHeaders = this.defaultHeaders;
1599
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1600
- 'application/json'
1601
- ]);
1602
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1603
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1604
- }
1605
- const localVarHttpContext = options?.context ?? new HttpContext();
1606
- const localVarTransferCache = options?.transferCache ?? true;
1607
- let responseType_ = 'json';
1608
- if (localVarHttpHeaderAcceptSelected) {
1609
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1610
- responseType_ = 'text';
1611
- }
1612
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1613
- responseType_ = 'json';
1614
- }
1615
- else {
1616
- responseType_ = 'blob';
1617
- }
1618
- }
1619
- let localVarPath = `/grpc/accrescent.console.v1alpha1/apps`;
1620
- const { basePath, withCredentials } = this.configuration;
1621
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1622
- context: localVarHttpContext,
1623
- params: localVarQueryParameters.toHttpParams(),
1624
- responseType: responseType_,
1625
- ...(withCredentials ? { withCredentials } : {}),
1626
- headers: localVarHeaders,
1627
- observe: observe,
1628
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1629
- reportProgress: reportProgress
1630
- });
1631
- }
1632
- appServiceUpdateApp(appId, body, observe = 'body', reportProgress = false, options) {
1633
- if (appId === null || appId === undefined) {
1634
- throw new Error('Required parameter appId was null or undefined when calling appServiceUpdateApp.');
1635
- }
1636
- if (body === null || body === undefined) {
1637
- throw new Error('Required parameter body was null or undefined when calling appServiceUpdateApp.');
1638
- }
1639
- let localVarHeaders = this.defaultHeaders;
1640
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1641
- 'application/json'
1642
- ]);
1643
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1644
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1645
- }
1646
- const localVarHttpContext = options?.context ?? new HttpContext();
1647
- const localVarTransferCache = options?.transferCache ?? true;
1648
- // to determine the Content-Type header
1649
- const consumes = [
1650
- 'application/json'
1651
- ];
1652
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1653
- if (httpContentTypeSelected !== undefined) {
1654
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1655
- }
1656
- let responseType_ = 'json';
1657
- if (localVarHttpHeaderAcceptSelected) {
1658
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1659
- responseType_ = 'text';
1660
- }
1661
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1662
- responseType_ = 'json';
1663
- }
1664
- else {
1665
- responseType_ = 'blob';
1666
- }
1667
- }
1668
- let localVarPath = `/grpc/accrescent.console.v1alpha1/apps/${this.configuration.encodeParam({ name: "appId", value: appId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1669
- const { basePath, withCredentials } = this.configuration;
1670
- return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
1671
- context: localVarHttpContext,
1672
- body: body,
1673
- responseType: responseType_,
1674
- ...(withCredentials ? { withCredentials } : {}),
1675
- headers: localVarHeaders,
1676
- observe: observe,
1677
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1678
- reportProgress: reportProgress
1679
- });
1680
- }
1681
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1682
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppsService, providedIn: 'root' });
1683
- }
1684
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppsService, decorators: [{
1685
- type: Injectable,
1686
- args: [{
1687
- providedIn: 'root'
1688
- }]
1689
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1690
- type: Optional
1691
- }, {
1692
- type: Inject,
1693
- args: [BASE_PATH]
1694
- }] }, { type: Configuration, decorators: [{
1695
- type: Optional
1696
- }] }] });
1697
-
1698
- /**
1699
- * Accrescent console API
1700
- *
1701
- * Contact: contact@accrescent.app
1702
- *
1703
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1704
- * https://openapi-generator.tech
1705
- * Do not edit the class manually.
1706
- */
1707
- /* tslint:disable:no-unused-variable member-ordering */
1708
- class OrganizationsService extends BaseService {
1709
- httpClient;
1710
- constructor(httpClient, basePath, configuration) {
1711
- super(basePath, configuration);
1712
- this.httpClient = httpClient;
1713
- }
1714
- organizationServiceGetOrganization(organizationId, observe = 'body', reportProgress = false, options) {
1715
- if (organizationId === null || organizationId === undefined) {
1716
- throw new Error('Required parameter organizationId was null or undefined when calling organizationServiceGetOrganization.');
1717
- }
1718
- let localVarHeaders = this.defaultHeaders;
1719
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1720
- 'application/json'
1721
- ]);
1722
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1723
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1724
- }
1725
- const localVarHttpContext = options?.context ?? new HttpContext();
1726
- const localVarTransferCache = options?.transferCache ?? true;
1727
- let responseType_ = 'json';
1728
- if (localVarHttpHeaderAcceptSelected) {
1729
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1730
- responseType_ = 'text';
1731
- }
1732
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1733
- responseType_ = 'json';
1734
- }
1735
- else {
1736
- responseType_ = 'blob';
1737
- }
1738
- }
1739
- let localVarPath = `/grpc/accrescent.console.v1alpha1/organizations/${this.configuration.encodeParam({ name: "organizationId", value: organizationId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1740
- const { basePath, withCredentials } = this.configuration;
1741
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1742
- context: localVarHttpContext,
1743
- responseType: responseType_,
1744
- ...(withCredentials ? { withCredentials } : {}),
1745
- headers: localVarHeaders,
1746
- observe: observe,
1747
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1748
- reportProgress: reportProgress
1749
- });
1750
- }
1751
- organizationServiceListOrganizations(pageSize, pageToken, observe = 'body', reportProgress = false, options) {
1752
- let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
1753
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageSize', pageSize, QueryParamStyle.Form, false);
1754
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'pageToken', pageToken, QueryParamStyle.Form, false);
1755
- let localVarHeaders = this.defaultHeaders;
1756
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1757
- 'application/json'
1758
- ]);
1759
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1760
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1761
- }
1762
- const localVarHttpContext = options?.context ?? new HttpContext();
1763
- const localVarTransferCache = options?.transferCache ?? true;
1764
- let responseType_ = 'json';
1765
- if (localVarHttpHeaderAcceptSelected) {
1766
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1767
- responseType_ = 'text';
1768
- }
1769
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1770
- responseType_ = 'json';
1771
- }
1772
- else {
1773
- responseType_ = 'blob';
1774
- }
1775
- }
1776
- let localVarPath = `/grpc/accrescent.console.v1alpha1/organizations`;
1777
- const { basePath, withCredentials } = this.configuration;
1778
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1779
- context: localVarHttpContext,
1780
- params: localVarQueryParameters.toHttpParams(),
1781
- responseType: responseType_,
1782
- ...(withCredentials ? { withCredentials } : {}),
1783
- headers: localVarHeaders,
1784
- observe: observe,
1785
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1786
- reportProgress: reportProgress
1787
- });
1788
- }
1789
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OrganizationsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1790
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OrganizationsService, providedIn: 'root' });
1791
- }
1792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OrganizationsService, decorators: [{
1793
- type: Injectable,
1794
- args: [{
1795
- providedIn: 'root'
1796
- }]
1797
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1798
- type: Optional
1799
- }, {
1800
- type: Inject,
1801
- args: [BASE_PATH]
1802
- }] }, { type: Configuration, decorators: [{
1803
- type: Optional
1804
- }] }] });
1805
-
1806
- /**
1807
- * Accrescent console API
1808
- *
1809
- * Contact: contact@accrescent.app
1810
- *
1811
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1812
- * https://openapi-generator.tech
1813
- * Do not edit the class manually.
1814
- */
1815
- /* tslint:disable:no-unused-variable member-ordering */
1816
- class ReviewsService extends BaseService {
1817
- httpClient;
1818
- constructor(httpClient, basePath, configuration) {
1819
- super(basePath, configuration);
1820
- this.httpClient = httpClient;
1821
- }
1822
- reviewServiceCreateAppDraftReview(appDraftId, body, observe = 'body', reportProgress = false, options) {
1823
- if (appDraftId === null || appDraftId === undefined) {
1824
- throw new Error('Required parameter appDraftId was null or undefined when calling reviewServiceCreateAppDraftReview.');
1825
- }
1826
- if (body === null || body === undefined) {
1827
- throw new Error('Required parameter body was null or undefined when calling reviewServiceCreateAppDraftReview.');
1828
- }
1829
- let localVarHeaders = this.defaultHeaders;
1830
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1831
- 'application/json'
1832
- ]);
1833
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1834
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1835
- }
1836
- const localVarHttpContext = options?.context ?? new HttpContext();
1837
- const localVarTransferCache = options?.transferCache ?? true;
1838
- // to determine the Content-Type header
1839
- const consumes = [
1840
- 'application/json'
1841
- ];
1842
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1843
- if (httpContentTypeSelected !== undefined) {
1844
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1845
- }
1846
- let responseType_ = 'json';
1847
- if (localVarHttpHeaderAcceptSelected) {
1848
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1849
- responseType_ = 'text';
1850
- }
1851
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1852
- responseType_ = 'json';
1853
- }
1854
- else {
1855
- responseType_ = 'blob';
1856
- }
1857
- }
1858
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_drafts/${this.configuration.encodeParam({ name: "appDraftId", value: appDraftId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/reviews`;
1859
- const { basePath, withCredentials } = this.configuration;
1860
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1861
- context: localVarHttpContext,
1862
- body: body,
1863
- responseType: responseType_,
1864
- ...(withCredentials ? { withCredentials } : {}),
1865
- headers: localVarHeaders,
1866
- observe: observe,
1867
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1868
- reportProgress: reportProgress
1869
- });
1870
- }
1871
- reviewServiceCreateAppEditReview(appEditId, body, observe = 'body', reportProgress = false, options) {
1872
- if (appEditId === null || appEditId === undefined) {
1873
- throw new Error('Required parameter appEditId was null or undefined when calling reviewServiceCreateAppEditReview.');
1874
- }
1875
- if (body === null || body === undefined) {
1876
- throw new Error('Required parameter body was null or undefined when calling reviewServiceCreateAppEditReview.');
1877
- }
1878
- let localVarHeaders = this.defaultHeaders;
1879
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1880
- 'application/json'
1881
- ]);
1882
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1883
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1884
- }
1885
- const localVarHttpContext = options?.context ?? new HttpContext();
1886
- const localVarTransferCache = options?.transferCache ?? true;
1887
- // to determine the Content-Type header
1888
- const consumes = [
1889
- 'application/json'
1890
- ];
1891
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1892
- if (httpContentTypeSelected !== undefined) {
1893
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1894
- }
1895
- let responseType_ = 'json';
1896
- if (localVarHttpHeaderAcceptSelected) {
1897
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1898
- responseType_ = 'text';
1899
- }
1900
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1901
- responseType_ = 'json';
1902
- }
1903
- else {
1904
- responseType_ = 'blob';
1905
- }
1906
- }
1907
- let localVarPath = `/grpc/accrescent.console.v1alpha1/app_edits/${this.configuration.encodeParam({ name: "appEditId", value: appEditId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/reviews`;
1908
- const { basePath, withCredentials } = this.configuration;
1909
- return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1910
- context: localVarHttpContext,
1911
- body: body,
1912
- responseType: responseType_,
1913
- ...(withCredentials ? { withCredentials } : {}),
1914
- headers: localVarHeaders,
1915
- observe: observe,
1916
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1917
- reportProgress: reportProgress
1918
- });
1919
- }
1920
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ReviewsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1921
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ReviewsService, providedIn: 'root' });
1922
- }
1923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ReviewsService, decorators: [{
1924
- type: Injectable,
1925
- args: [{
1926
- providedIn: 'root'
1927
- }]
1928
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1929
- type: Optional
1930
- }, {
1931
- type: Inject,
1932
- args: [BASE_PATH]
1933
- }] }, { type: Configuration, decorators: [{
1934
- type: Optional
1935
- }] }] });
1936
-
1937
- /**
1938
- * Accrescent console API
1939
- *
1940
- * Contact: contact@accrescent.app
1941
- *
1942
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1943
- * https://openapi-generator.tech
1944
- * Do not edit the class manually.
1945
- */
1946
- /* tslint:disable:no-unused-variable member-ordering */
1947
- class UsersService extends BaseService {
1948
- httpClient;
1949
- constructor(httpClient, basePath, configuration) {
1950
- super(basePath, configuration);
1951
- this.httpClient = httpClient;
1952
- }
1953
- userServiceGetSelf(observe = 'body', reportProgress = false, options) {
1954
- let localVarHeaders = this.defaultHeaders;
1955
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1956
- 'application/json'
1957
- ]);
1958
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1959
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1960
- }
1961
- const localVarHttpContext = options?.context ?? new HttpContext();
1962
- const localVarTransferCache = options?.transferCache ?? true;
1963
- let responseType_ = 'json';
1964
- if (localVarHttpHeaderAcceptSelected) {
1965
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1966
- responseType_ = 'text';
1967
- }
1968
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1969
- responseType_ = 'json';
1970
- }
1971
- else {
1972
- responseType_ = 'blob';
1973
- }
1974
- }
1975
- let localVarPath = `/grpc/accrescent.console.v1alpha1/user`;
1976
- const { basePath, withCredentials } = this.configuration;
1977
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1978
- context: localVarHttpContext,
1979
- responseType: responseType_,
1980
- ...(withCredentials ? { withCredentials } : {}),
1981
- headers: localVarHeaders,
1982
- observe: observe,
1983
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1984
- reportProgress: reportProgress
1985
- });
1986
- }
1987
- userServiceUpdateUser(userId, body, observe = 'body', reportProgress = false, options) {
1988
- if (userId === null || userId === undefined) {
1989
- throw new Error('Required parameter userId was null or undefined when calling userServiceUpdateUser.');
1990
- }
1991
- if (body === null || body === undefined) {
1992
- throw new Error('Required parameter body was null or undefined when calling userServiceUpdateUser.');
1993
- }
1994
- let localVarHeaders = this.defaultHeaders;
1995
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1996
- 'application/json'
1997
- ]);
1998
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1999
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2000
- }
2001
- const localVarHttpContext = options?.context ?? new HttpContext();
2002
- const localVarTransferCache = options?.transferCache ?? true;
2003
- // to determine the Content-Type header
2004
- const consumes = [
2005
- 'application/json'
2006
- ];
2007
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2008
- if (httpContentTypeSelected !== undefined) {
2009
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2010
- }
2011
- let responseType_ = 'json';
2012
- if (localVarHttpHeaderAcceptSelected) {
2013
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2014
- responseType_ = 'text';
2015
- }
2016
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2017
- responseType_ = 'json';
2018
- }
2019
- else {
2020
- responseType_ = 'blob';
2021
- }
2022
- }
2023
- let localVarPath = `/grpc/accrescent.console.v1alpha1/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2024
- const { basePath, withCredentials } = this.configuration;
2025
- return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
2026
- context: localVarHttpContext,
2027
- body: body,
2028
- responseType: responseType_,
2029
- ...(withCredentials ? { withCredentials } : {}),
2030
- headers: localVarHeaders,
2031
- observe: observe,
2032
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
2033
- reportProgress: reportProgress
2034
- });
2035
- }
2036
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: UsersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2037
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: UsersService, providedIn: 'root' });
2038
- }
2039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: UsersService, decorators: [{
2040
- type: Injectable,
2041
- args: [{
2042
- providedIn: 'root'
2043
- }]
2044
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2045
- type: Optional
2046
- }, {
2047
- type: Inject,
2048
- args: [BASE_PATH]
2049
- }] }, { type: Configuration, decorators: [{
2050
- type: Optional
2051
- }] }] });
2052
-
2053
- const APIS = [AppDraftsService, AppEditsService, AppsService, OrganizationsService, ReviewsService, UsersService];
2054
-
2055
- /**
2056
- * Accrescent console API
2057
- *
2058
- * Contact: contact@accrescent.app
2059
- *
2060
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2061
- * https://openapi-generator.tech
2062
- * Do not edit the class manually.
2063
- */
2064
-
2065
- /**
2066
- * Accrescent console API
2067
- *
2068
- * Contact: contact@accrescent.app
2069
- *
2070
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2071
- * https://openapi-generator.tech
2072
- * Do not edit the class manually.
2073
- */
2074
-
2075
- /**
2076
- * Accrescent console API
2077
- *
2078
- * Contact: contact@accrescent.app
2079
- *
2080
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2081
- * https://openapi-generator.tech
2082
- * Do not edit the class manually.
2083
- */
2084
-
2085
- /**
2086
- * Accrescent console API
2087
- *
2088
- * Contact: contact@accrescent.app
2089
- *
2090
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2091
- * https://openapi-generator.tech
2092
- * Do not edit the class manually.
2093
- */
2094
-
2095
- /**
2096
- * Accrescent console API
2097
- *
2098
- * Contact: contact@accrescent.app
2099
- *
2100
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2101
- * https://openapi-generator.tech
2102
- * Do not edit the class manually.
2103
- */
2104
-
2105
- /**
2106
- * Accrescent console API
2107
- *
2108
- * Contact: contact@accrescent.app
2109
- *
2110
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2111
- * https://openapi-generator.tech
2112
- * Do not edit the class manually.
2113
- */
2114
-
2115
- /**
2116
- * Accrescent console API
2117
- *
2118
- * Contact: contact@accrescent.app
2119
- *
2120
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2121
- * https://openapi-generator.tech
2122
- * Do not edit the class manually.
2123
- */
2124
-
2125
- /**
2126
- * Accrescent console API
2127
- *
2128
- * Contact: contact@accrescent.app
2129
- *
2130
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2131
- * https://openapi-generator.tech
2132
- * Do not edit the class manually.
2133
- */
2134
-
2135
- /**
2136
- * Accrescent console API
2137
- *
2138
- * Contact: contact@accrescent.app
2139
- *
2140
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2141
- * https://openapi-generator.tech
2142
- * Do not edit the class manually.
2143
- */
2144
-
2145
- /**
2146
- * Accrescent console API
2147
- *
2148
- * Contact: contact@accrescent.app
2149
- *
2150
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2151
- * https://openapi-generator.tech
2152
- * Do not edit the class manually.
2153
- */
2154
-
2155
- /**
2156
- * Accrescent console API
2157
- *
2158
- * Contact: contact@accrescent.app
2159
- *
2160
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2161
- * https://openapi-generator.tech
2162
- * Do not edit the class manually.
2163
- */
2164
-
2165
- /**
2166
- * Accrescent console API
2167
- *
2168
- * Contact: contact@accrescent.app
2169
- *
2170
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2171
- * https://openapi-generator.tech
2172
- * Do not edit the class manually.
2173
- */
2174
-
2175
- /**
2176
- * Accrescent console API
2177
- *
2178
- * Contact: contact@accrescent.app
2179
- *
2180
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2181
- * https://openapi-generator.tech
2182
- * Do not edit the class manually.
2183
- */
2184
-
2185
- /**
2186
- * Accrescent console API
2187
- *
2188
- * Contact: contact@accrescent.app
2189
- *
2190
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2191
- * https://openapi-generator.tech
2192
- * Do not edit the class manually.
2193
- */
2194
-
2195
- /**
2196
- * Accrescent console API
2197
- *
2198
- * Contact: contact@accrescent.app
2199
- *
2200
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2201
- * https://openapi-generator.tech
2202
- * Do not edit the class manually.
2203
- */
2204
-
2205
- /**
2206
- * Accrescent console API
2207
- *
2208
- * Contact: contact@accrescent.app
2209
- *
2210
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2211
- * https://openapi-generator.tech
2212
- * Do not edit the class manually.
2213
- */
2214
-
2215
- /**
2216
- * Accrescent console API
2217
- *
2218
- * Contact: contact@accrescent.app
2219
- *
2220
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2221
- * https://openapi-generator.tech
2222
- * Do not edit the class manually.
2223
- */
2224
- /**
2225
- * A user authorization role. - USER_ROLE_UNSPECIFIED: The unspecified value. - USER_ROLE_REVIEWER: An app reviewer. - USER_ROLE_PUBLISHER: An app publisher.
2226
- */
2227
- const V1alpha1UserRole = {
2228
- UserRoleUnspecified: 'USER_ROLE_UNSPECIFIED',
2229
- UserRoleReviewer: 'USER_ROLE_REVIEWER',
2230
- UserRolePublisher: 'USER_ROLE_PUBLISHER',
2231
- UnknownDefaultOpenApi: '11184809'
2232
- };
2233
-
2234
- class ApiModule {
2235
- static forRoot(configurationFactory) {
2236
- return {
2237
- ngModule: ApiModule,
2238
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
2239
- };
2240
- }
2241
- constructor(parentModule, http) {
2242
- if (parentModule) {
2243
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
2244
- }
2245
- if (!http) {
2246
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
2247
- 'See also https://github.com/angular/angular/issues/20575');
2248
- }
2249
- }
2250
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
2251
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.4", ngImport: i0, type: ApiModule });
2252
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ApiModule });
2253
- }
2254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: ApiModule, decorators: [{
2255
- type: NgModule,
2256
- args: [{
2257
- imports: [],
2258
- declarations: [],
2259
- exports: [],
2260
- providers: []
2261
- }]
2262
- }], ctorParameters: () => [{ type: ApiModule, decorators: [{
2263
- type: Optional
2264
- }, {
2265
- type: SkipSelf
2266
- }] }, { type: i1.HttpClient, decorators: [{
2267
- type: Optional
2268
- }] }] });
2269
-
2270
- // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
2271
- function provideApi(configOrBasePath) {
2272
- return makeEnvironmentProviders([
2273
- typeof configOrBasePath === "string"
2274
- ? { provide: BASE_PATH, useValue: configOrBasePath }
2275
- : {
2276
- provide: Configuration,
2277
- useValue: new Configuration({ ...configOrBasePath }),
2278
- },
2279
- ]);
2280
- }
1
+ // SPDX-FileCopyrightText: © 2026 Logan Magee
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
2281
4
 
2282
5
  /**
2283
6
  * Generated bundle index. Do not edit.
2284
7
  */
2285
-
2286
- export { APIS, ApiModule, AppDraftsService, AppEditsService, AppsService, BASE_PATH, COLLECTION_FORMATS, Configuration, OrganizationsService, ReviewsService, UsersService, V1alpha1UserRole, provideApi };
2287
8
  //# sourceMappingURL=accrescent-console-client-sdk-angular.mjs.map