@parra/parra-js-sdk 0.3.38 → 0.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ParraAPI.d.ts +275 -236
- package/dist/ParraAPI.js +122 -67
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -174,12 +174,53 @@ export interface BillingPortalSession {
|
|
|
174
174
|
export interface CreateSubscriberRequestBody {
|
|
175
175
|
email: string;
|
|
176
176
|
}
|
|
177
|
-
export declare enum
|
|
178
|
-
|
|
177
|
+
export declare enum FeedbackFormFieldType {
|
|
178
|
+
text = "text",
|
|
179
|
+
input = "input",
|
|
180
|
+
select = "select"
|
|
179
181
|
}
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
export interface FeedbackFormTextFieldData {
|
|
183
|
+
placeholder?: string;
|
|
184
|
+
lines?: number;
|
|
185
|
+
max_lines?: number;
|
|
186
|
+
min_characters?: number;
|
|
187
|
+
max_characters?: number;
|
|
188
|
+
max_height?: number;
|
|
189
|
+
}
|
|
190
|
+
export interface FeedbackFormSelectFieldOption {
|
|
191
|
+
title: string;
|
|
192
|
+
value: string;
|
|
193
|
+
is_other?: boolean;
|
|
194
|
+
}
|
|
195
|
+
export interface FeedbackFormSelectFieldData {
|
|
196
|
+
placeholder?: string;
|
|
197
|
+
options: Array<FeedbackFormSelectFieldOption>;
|
|
198
|
+
}
|
|
199
|
+
export interface FeedbackFormInputFieldData {
|
|
200
|
+
placeholder?: string;
|
|
201
|
+
}
|
|
202
|
+
export type FeedbackFormFieldData = FeedbackFormTextFieldData | FeedbackFormSelectFieldData | FeedbackFormInputFieldData;
|
|
203
|
+
export interface FeedbackFormField {
|
|
204
|
+
name: string;
|
|
205
|
+
title?: string;
|
|
206
|
+
helper_text?: string | null;
|
|
207
|
+
type: FeedbackFormFieldType;
|
|
208
|
+
required?: boolean;
|
|
209
|
+
data: FeedbackFormFieldData;
|
|
210
|
+
}
|
|
211
|
+
export interface FeedbackFormData {
|
|
212
|
+
title: string;
|
|
213
|
+
description?: string | null;
|
|
214
|
+
fields: Array<FeedbackFormField>;
|
|
215
|
+
}
|
|
216
|
+
export interface FeedbackFormDataStub {
|
|
217
|
+
id: string;
|
|
218
|
+
created_at: string;
|
|
219
|
+
updated_at: string;
|
|
220
|
+
deleted_at?: string | null;
|
|
221
|
+
data: FeedbackFormData;
|
|
222
|
+
}
|
|
223
|
+
export interface SubmitFeedbackFormResponseBody {
|
|
183
224
|
}
|
|
184
225
|
export declare enum QuestionType {
|
|
185
226
|
choice = "choice",
|
|
@@ -207,19 +248,79 @@ export interface MutableChoiceQuestionOption {
|
|
|
207
248
|
value: string;
|
|
208
249
|
is_other?: boolean | null;
|
|
209
250
|
}
|
|
210
|
-
export interface
|
|
251
|
+
export interface MutableChoiceQuestionBody {
|
|
252
|
+
options: Array<MutableChoiceQuestionOption>;
|
|
253
|
+
}
|
|
254
|
+
export interface MutableCheckboxQuestionOption {
|
|
211
255
|
title: string;
|
|
212
256
|
value: string;
|
|
213
257
|
is_other?: boolean | null;
|
|
214
|
-
id: string;
|
|
215
258
|
}
|
|
216
|
-
export interface
|
|
217
|
-
options: Array<
|
|
259
|
+
export interface MutableCheckboxQuestionBody {
|
|
260
|
+
options: Array<MutableCheckboxQuestionOption>;
|
|
218
261
|
}
|
|
219
|
-
export interface
|
|
262
|
+
export interface MutableImageQuestionOption {
|
|
263
|
+
image_asset_id: string;
|
|
264
|
+
title?: string | null;
|
|
265
|
+
value: string;
|
|
266
|
+
}
|
|
267
|
+
export interface MutableImageQuestionBody {
|
|
268
|
+
options: Array<MutableImageQuestionOption>;
|
|
269
|
+
}
|
|
270
|
+
export interface MutableRatingQuestionOption {
|
|
271
|
+
title: string;
|
|
272
|
+
value: number;
|
|
273
|
+
}
|
|
274
|
+
export interface MutableRatingQuestionBody {
|
|
275
|
+
options: Array<MutableRatingQuestionOption>;
|
|
276
|
+
leading_label?: string;
|
|
277
|
+
center_label?: string;
|
|
278
|
+
trailing_label?: string;
|
|
279
|
+
}
|
|
280
|
+
export interface MutableStarQuestionBody {
|
|
281
|
+
star_count: number;
|
|
282
|
+
leading_label?: string;
|
|
283
|
+
center_label?: string;
|
|
284
|
+
trailing_label?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface MutableShortTextQuestionBody {
|
|
287
|
+
placeholder?: string | null;
|
|
288
|
+
min_length?: number | null;
|
|
289
|
+
max_length?: number | null;
|
|
290
|
+
}
|
|
291
|
+
export interface MutableLongTextQuestionBody {
|
|
292
|
+
placeholder?: string | null;
|
|
293
|
+
min_length?: number | null;
|
|
294
|
+
max_length?: number | null;
|
|
295
|
+
}
|
|
296
|
+
export interface MutableBooleanQuestionOption {
|
|
297
|
+
title: string;
|
|
298
|
+
value: string;
|
|
299
|
+
}
|
|
300
|
+
export interface MutableBooleanQuestionBody {
|
|
301
|
+
options: Array<MutableBooleanQuestionOption>;
|
|
302
|
+
}
|
|
303
|
+
export type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody | MutableRatingQuestionBody | MutableStarQuestionBody | MutableShortTextQuestionBody | MutableLongTextQuestionBody | MutableBooleanQuestionBody;
|
|
304
|
+
export interface UpdateQuestionRequestBody {
|
|
305
|
+
title: string;
|
|
306
|
+
subtitle?: string | null;
|
|
307
|
+
data: MutableQuestionData;
|
|
308
|
+
}
|
|
309
|
+
export interface CreateQuestionRequestBody {
|
|
310
|
+
title: string;
|
|
311
|
+
subtitle?: string | null;
|
|
312
|
+
data: MutableQuestionData;
|
|
313
|
+
type: QuestionType;
|
|
314
|
+
kind: QuestionKind;
|
|
315
|
+
}
|
|
316
|
+
export interface ChoiceQuestionOption {
|
|
220
317
|
title: string;
|
|
221
318
|
value: string;
|
|
222
319
|
is_other?: boolean | null;
|
|
320
|
+
id: string;
|
|
321
|
+
}
|
|
322
|
+
export interface ChoiceQuestionBody {
|
|
323
|
+
options: Array<ChoiceQuestionOption>;
|
|
223
324
|
}
|
|
224
325
|
export interface CheckboxQuestionOption {
|
|
225
326
|
title: string;
|
|
@@ -230,11 +331,6 @@ export interface CheckboxQuestionOption {
|
|
|
230
331
|
export interface CheckboxQuestionBody {
|
|
231
332
|
options: Array<CheckboxQuestionOption>;
|
|
232
333
|
}
|
|
233
|
-
export interface MutableImageQuestionOption {
|
|
234
|
-
image_asset_id: string;
|
|
235
|
-
title?: string | null;
|
|
236
|
-
value: string;
|
|
237
|
-
}
|
|
238
334
|
export interface ImageQuestionOption {
|
|
239
335
|
image_asset_id: string;
|
|
240
336
|
title?: string | null;
|
|
@@ -245,10 +341,6 @@ export interface ImageQuestionOption {
|
|
|
245
341
|
export interface ImageQuestionBody {
|
|
246
342
|
options: Array<ImageQuestionOption>;
|
|
247
343
|
}
|
|
248
|
-
export interface MutableRatingQuestionOption {
|
|
249
|
-
title: string;
|
|
250
|
-
value: number;
|
|
251
|
-
}
|
|
252
344
|
export interface RatingQuestionOption {
|
|
253
345
|
title: string;
|
|
254
346
|
value: number;
|
|
@@ -276,10 +368,6 @@ export interface LongTextQuestionBody {
|
|
|
276
368
|
min_length?: number | null;
|
|
277
369
|
max_length?: number | null;
|
|
278
370
|
}
|
|
279
|
-
export interface MutableBooleanQuestionOption {
|
|
280
|
-
title: string;
|
|
281
|
-
value: string;
|
|
282
|
-
}
|
|
283
371
|
export interface BooleanQuestionOption {
|
|
284
372
|
title: string;
|
|
285
373
|
value: string;
|
|
@@ -405,190 +493,12 @@ export interface Question {
|
|
|
405
493
|
answer?: Answer;
|
|
406
494
|
metrics?: QuestionMetrics;
|
|
407
495
|
}
|
|
408
|
-
export type CardItemData = Question;
|
|
409
|
-
export interface CardItem {
|
|
410
|
-
id: string;
|
|
411
|
-
campaign_id: string;
|
|
412
|
-
campaign_action_id: string;
|
|
413
|
-
question_id?: string | null;
|
|
414
|
-
type: CardItemType;
|
|
415
|
-
display_type?: CardItemDisplayType;
|
|
416
|
-
version: string;
|
|
417
|
-
data: CardItemData;
|
|
418
|
-
}
|
|
419
|
-
export interface CardsResponse {
|
|
420
|
-
items: Array<CardItem>;
|
|
421
|
-
}
|
|
422
|
-
export interface FeedbackFormStub {
|
|
423
|
-
id: string;
|
|
424
|
-
created_at: string;
|
|
425
|
-
updated_at: string;
|
|
426
|
-
deleted_at?: string | null;
|
|
427
|
-
title: string;
|
|
428
|
-
description?: string | null;
|
|
429
|
-
}
|
|
430
496
|
export interface CollectionResponse {
|
|
431
497
|
page: number;
|
|
432
498
|
page_count: number;
|
|
433
499
|
page_size: number;
|
|
434
500
|
total_count: number;
|
|
435
501
|
}
|
|
436
|
-
export interface FeedbackFormCollectionResponse {
|
|
437
|
-
page: number;
|
|
438
|
-
page_count: number;
|
|
439
|
-
page_size: number;
|
|
440
|
-
total_count: number;
|
|
441
|
-
data: Array<FeedbackFormStub>;
|
|
442
|
-
}
|
|
443
|
-
export declare enum FeedbackFormFieldType {
|
|
444
|
-
text = "text",
|
|
445
|
-
input = "input",
|
|
446
|
-
select = "select"
|
|
447
|
-
}
|
|
448
|
-
export interface FeedbackFormTextFieldData {
|
|
449
|
-
placeholder?: string;
|
|
450
|
-
lines?: number;
|
|
451
|
-
max_lines?: number;
|
|
452
|
-
min_characters?: number;
|
|
453
|
-
max_characters?: number;
|
|
454
|
-
max_height?: number;
|
|
455
|
-
}
|
|
456
|
-
export interface FeedbackFormSelectFieldOption {
|
|
457
|
-
title: string;
|
|
458
|
-
value: string;
|
|
459
|
-
is_other?: boolean;
|
|
460
|
-
}
|
|
461
|
-
export interface FeedbackFormSelectFieldData {
|
|
462
|
-
placeholder?: string;
|
|
463
|
-
options: Array<FeedbackFormSelectFieldOption>;
|
|
464
|
-
}
|
|
465
|
-
export interface FeedbackFormInputFieldData {
|
|
466
|
-
placeholder?: string;
|
|
467
|
-
}
|
|
468
|
-
export type FeedbackFormFieldData = FeedbackFormTextFieldData | FeedbackFormSelectFieldData | FeedbackFormInputFieldData;
|
|
469
|
-
export interface FeedbackFormField {
|
|
470
|
-
name: string;
|
|
471
|
-
title?: string;
|
|
472
|
-
helper_text?: string | null;
|
|
473
|
-
type: FeedbackFormFieldType;
|
|
474
|
-
required?: boolean;
|
|
475
|
-
data: FeedbackFormFieldData;
|
|
476
|
-
}
|
|
477
|
-
export interface FeedbackFormData {
|
|
478
|
-
title: string;
|
|
479
|
-
description?: string | null;
|
|
480
|
-
fields: Array<FeedbackFormField>;
|
|
481
|
-
}
|
|
482
|
-
export interface UpdateFeedbackFormRequestBody {
|
|
483
|
-
title: string;
|
|
484
|
-
description?: string | null;
|
|
485
|
-
data: FeedbackFormData;
|
|
486
|
-
}
|
|
487
|
-
export interface CreateFeedbackFormRequestBody {
|
|
488
|
-
title: string;
|
|
489
|
-
description?: string | null;
|
|
490
|
-
data: FeedbackFormData;
|
|
491
|
-
}
|
|
492
|
-
export declare enum FormIntegrationType {
|
|
493
|
-
board = "board"
|
|
494
|
-
}
|
|
495
|
-
export interface FormBoardIntegration {
|
|
496
|
-
board_id: string;
|
|
497
|
-
board_ticket_title?: string | null;
|
|
498
|
-
board_ticket_description?: string | null;
|
|
499
|
-
}
|
|
500
|
-
export type FormIntegrationData = FormBoardIntegration;
|
|
501
|
-
export interface FormIntegration {
|
|
502
|
-
id: string;
|
|
503
|
-
created_at: string;
|
|
504
|
-
updated_at: string;
|
|
505
|
-
deleted_at?: string | null;
|
|
506
|
-
type: FormIntegrationType;
|
|
507
|
-
enabled: boolean;
|
|
508
|
-
data: FormIntegrationData;
|
|
509
|
-
}
|
|
510
|
-
export interface FeedbackFormResponse {
|
|
511
|
-
id: string;
|
|
512
|
-
created_at: string;
|
|
513
|
-
updated_at: string;
|
|
514
|
-
deleted_at?: string | null;
|
|
515
|
-
title: string;
|
|
516
|
-
description?: string | null;
|
|
517
|
-
data: FeedbackFormData;
|
|
518
|
-
integrations?: Array<FormIntegration> | null;
|
|
519
|
-
}
|
|
520
|
-
export interface SubmitFeedbackFormResponseBody {
|
|
521
|
-
}
|
|
522
|
-
export interface FeedbackFormSubmission {
|
|
523
|
-
id: string;
|
|
524
|
-
created_at: string;
|
|
525
|
-
updated_at: string;
|
|
526
|
-
deleted_at?: string | null;
|
|
527
|
-
feedback_form_id: string;
|
|
528
|
-
user_id: string;
|
|
529
|
-
data: SubmitFeedbackFormResponseBody;
|
|
530
|
-
}
|
|
531
|
-
export interface FeedbackFormSubmissionCollectionResponse {
|
|
532
|
-
page: number;
|
|
533
|
-
page_count: number;
|
|
534
|
-
page_size: number;
|
|
535
|
-
total_count: number;
|
|
536
|
-
data: Array<FeedbackFormSubmission>;
|
|
537
|
-
}
|
|
538
|
-
export interface FeedbackFormDataStub {
|
|
539
|
-
id: string;
|
|
540
|
-
created_at: string;
|
|
541
|
-
updated_at: string;
|
|
542
|
-
deleted_at?: string | null;
|
|
543
|
-
data: FeedbackFormData;
|
|
544
|
-
}
|
|
545
|
-
export interface MutableChoiceQuestionBody {
|
|
546
|
-
options: Array<MutableChoiceQuestionOption>;
|
|
547
|
-
}
|
|
548
|
-
export interface MutableCheckboxQuestionBody {
|
|
549
|
-
options: Array<MutableCheckboxQuestionOption>;
|
|
550
|
-
}
|
|
551
|
-
export interface MutableImageQuestionBody {
|
|
552
|
-
options: Array<MutableImageQuestionOption>;
|
|
553
|
-
}
|
|
554
|
-
export interface MutableRatingQuestionBody {
|
|
555
|
-
options: Array<MutableRatingQuestionOption>;
|
|
556
|
-
leading_label?: string;
|
|
557
|
-
center_label?: string;
|
|
558
|
-
trailing_label?: string;
|
|
559
|
-
}
|
|
560
|
-
export interface MutableStarQuestionBody {
|
|
561
|
-
star_count: number;
|
|
562
|
-
leading_label?: string;
|
|
563
|
-
center_label?: string;
|
|
564
|
-
trailing_label?: string;
|
|
565
|
-
}
|
|
566
|
-
export interface MutableShortTextQuestionBody {
|
|
567
|
-
placeholder?: string | null;
|
|
568
|
-
min_length?: number | null;
|
|
569
|
-
max_length?: number | null;
|
|
570
|
-
}
|
|
571
|
-
export interface MutableLongTextQuestionBody {
|
|
572
|
-
placeholder?: string | null;
|
|
573
|
-
min_length?: number | null;
|
|
574
|
-
max_length?: number | null;
|
|
575
|
-
}
|
|
576
|
-
export interface MutableBooleanQuestionBody {
|
|
577
|
-
options: Array<MutableBooleanQuestionOption>;
|
|
578
|
-
}
|
|
579
|
-
export type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody | MutableRatingQuestionBody | MutableStarQuestionBody | MutableShortTextQuestionBody | MutableLongTextQuestionBody | MutableBooleanQuestionBody;
|
|
580
|
-
export interface UpdateQuestionRequestBody {
|
|
581
|
-
title: string;
|
|
582
|
-
subtitle?: string | null;
|
|
583
|
-
data: MutableQuestionData;
|
|
584
|
-
}
|
|
585
|
-
export interface CreateQuestionRequestBody {
|
|
586
|
-
title: string;
|
|
587
|
-
subtitle?: string | null;
|
|
588
|
-
data: MutableQuestionData;
|
|
589
|
-
type: QuestionType;
|
|
590
|
-
kind: QuestionKind;
|
|
591
|
-
}
|
|
592
502
|
export interface QuestionCollectionResponse {
|
|
593
503
|
page: number;
|
|
594
504
|
page_count: number;
|
|
@@ -613,6 +523,27 @@ export interface BulkAnswerQuestionBody {
|
|
|
613
523
|
data: AnswerData;
|
|
614
524
|
}
|
|
615
525
|
export type BulkAnswersQuestionBody = Array<BulkAnswerQuestionBody>;
|
|
526
|
+
export declare enum CardItemType {
|
|
527
|
+
question = "question"
|
|
528
|
+
}
|
|
529
|
+
export declare enum CardItemDisplayType {
|
|
530
|
+
inline = "inline",
|
|
531
|
+
popup = "popup"
|
|
532
|
+
}
|
|
533
|
+
export type CardItemData = Question;
|
|
534
|
+
export interface CardItem {
|
|
535
|
+
id: string;
|
|
536
|
+
campaign_id: string;
|
|
537
|
+
campaign_action_id: string;
|
|
538
|
+
question_id?: string | null;
|
|
539
|
+
type: CardItemType;
|
|
540
|
+
display_type?: CardItemDisplayType;
|
|
541
|
+
version: string;
|
|
542
|
+
data: CardItemData;
|
|
543
|
+
}
|
|
544
|
+
export interface CardsResponse {
|
|
545
|
+
items: Array<CardItem>;
|
|
546
|
+
}
|
|
616
547
|
export interface UpdateAnalyticEventTypeRequestBody {
|
|
617
548
|
description?: string | null;
|
|
618
549
|
}
|
|
@@ -821,13 +752,6 @@ export declare enum TicketType {
|
|
|
821
752
|
feature = "feature",
|
|
822
753
|
improvement = "improvement"
|
|
823
754
|
}
|
|
824
|
-
export interface CreateTicketRequestBody {
|
|
825
|
-
title: string;
|
|
826
|
-
type: TicketType;
|
|
827
|
-
description?: string | null;
|
|
828
|
-
voting_enabled: boolean;
|
|
829
|
-
is_public: boolean;
|
|
830
|
-
}
|
|
831
755
|
export declare enum TicketStatus {
|
|
832
756
|
open = "open",
|
|
833
757
|
planning = "planning",
|
|
@@ -837,20 +761,74 @@ export declare enum TicketStatus {
|
|
|
837
761
|
closed = "closed",
|
|
838
762
|
archived = "archived"
|
|
839
763
|
}
|
|
840
|
-
export interface
|
|
764
|
+
export interface CreateTicketRequestBody {
|
|
765
|
+
title: string;
|
|
766
|
+
type: TicketType;
|
|
767
|
+
status: TicketStatus;
|
|
768
|
+
description?: string | null;
|
|
769
|
+
voting_enabled: boolean;
|
|
770
|
+
is_public: boolean;
|
|
771
|
+
}
|
|
772
|
+
export declare enum ReleaseStatus {
|
|
773
|
+
pending = "pending",
|
|
774
|
+
scheduled = "scheduled",
|
|
775
|
+
released = "released"
|
|
776
|
+
}
|
|
777
|
+
export declare enum ReleaseType {
|
|
778
|
+
major = "major",
|
|
779
|
+
minor = "minor",
|
|
780
|
+
patch = "patch",
|
|
781
|
+
launch = "launch"
|
|
782
|
+
}
|
|
783
|
+
export interface CreateReleaseRequestBody {
|
|
784
|
+
name: string;
|
|
785
|
+
version: string;
|
|
786
|
+
description?: string | null;
|
|
787
|
+
type: ReleaseType;
|
|
788
|
+
}
|
|
789
|
+
export interface ReleaseStub {
|
|
790
|
+
id: string;
|
|
791
|
+
created_at: string;
|
|
792
|
+
updated_at: string;
|
|
793
|
+
deleted_at?: string | null;
|
|
794
|
+
name: string;
|
|
795
|
+
version: string;
|
|
796
|
+
description?: string | null;
|
|
797
|
+
type: ReleaseType;
|
|
798
|
+
tenant_id: string;
|
|
799
|
+
release_number: number;
|
|
800
|
+
status: ReleaseStatus;
|
|
801
|
+
}
|
|
802
|
+
export interface TicketStub {
|
|
841
803
|
id: string;
|
|
842
804
|
created_at: string;
|
|
843
805
|
updated_at: string;
|
|
844
806
|
deleted_at?: string | null;
|
|
845
807
|
title: string;
|
|
846
808
|
type: TicketType;
|
|
809
|
+
status: TicketStatus;
|
|
847
810
|
description?: string | null;
|
|
848
811
|
voting_enabled: boolean;
|
|
849
812
|
is_public: boolean;
|
|
850
813
|
ticket_number: string;
|
|
851
814
|
tenant_id: string;
|
|
852
815
|
vote_count: number;
|
|
816
|
+
}
|
|
817
|
+
export interface Ticket {
|
|
818
|
+
id: string;
|
|
819
|
+
created_at: string;
|
|
820
|
+
updated_at: string;
|
|
821
|
+
deleted_at?: string | null;
|
|
822
|
+
title: string;
|
|
823
|
+
type: TicketType;
|
|
853
824
|
status: TicketStatus;
|
|
825
|
+
description?: string | null;
|
|
826
|
+
voting_enabled: boolean;
|
|
827
|
+
is_public: boolean;
|
|
828
|
+
ticket_number: string;
|
|
829
|
+
tenant_id: string;
|
|
830
|
+
vote_count: number;
|
|
831
|
+
release?: ReleaseStub;
|
|
854
832
|
}
|
|
855
833
|
export interface TicketCollectionResponse {
|
|
856
834
|
page: number;
|
|
@@ -931,6 +909,71 @@ export interface UserTicket {
|
|
|
931
909
|
voting_enabled: boolean;
|
|
932
910
|
voted: boolean;
|
|
933
911
|
}
|
|
912
|
+
export interface ReleaseItemStub {
|
|
913
|
+
id: string;
|
|
914
|
+
created_at: string;
|
|
915
|
+
updated_at: string;
|
|
916
|
+
deleted_at?: string | null;
|
|
917
|
+
release_id: string;
|
|
918
|
+
ticket_id: string;
|
|
919
|
+
}
|
|
920
|
+
export interface ReleaseItem {
|
|
921
|
+
id: string;
|
|
922
|
+
created_at: string;
|
|
923
|
+
updated_at: string;
|
|
924
|
+
deleted_at?: string | null;
|
|
925
|
+
release_id: string;
|
|
926
|
+
ticket_id: string;
|
|
927
|
+
ticket: Ticket;
|
|
928
|
+
}
|
|
929
|
+
export interface Release {
|
|
930
|
+
id: string;
|
|
931
|
+
created_at: string;
|
|
932
|
+
updated_at: string;
|
|
933
|
+
deleted_at?: string | null;
|
|
934
|
+
name: string;
|
|
935
|
+
version: string;
|
|
936
|
+
description?: string | null;
|
|
937
|
+
type: ReleaseType;
|
|
938
|
+
tenant_id: string;
|
|
939
|
+
release_number: number;
|
|
940
|
+
status: ReleaseStatus;
|
|
941
|
+
items: Array<ReleaseItem>;
|
|
942
|
+
}
|
|
943
|
+
export interface ReleaseCollectionResponse {
|
|
944
|
+
page: number;
|
|
945
|
+
page_count: number;
|
|
946
|
+
page_size: number;
|
|
947
|
+
total_count: number;
|
|
948
|
+
data: Array<ReleaseStub>;
|
|
949
|
+
}
|
|
950
|
+
export interface UpdateReleaseRequestBody {
|
|
951
|
+
name?: string;
|
|
952
|
+
version?: string;
|
|
953
|
+
description?: string | null;
|
|
954
|
+
type?: ReleaseType;
|
|
955
|
+
}
|
|
956
|
+
export interface CreateReleaseItemRequestBody {
|
|
957
|
+
ticket_id: string;
|
|
958
|
+
}
|
|
959
|
+
export interface UpdateAppVersionRequestBody {
|
|
960
|
+
version_string: string;
|
|
961
|
+
description?: string | null;
|
|
962
|
+
}
|
|
963
|
+
export interface CreateAppVersionRequestBody {
|
|
964
|
+
version_string: string;
|
|
965
|
+
description?: string | null;
|
|
966
|
+
}
|
|
967
|
+
export declare enum AppVersionStatus {
|
|
968
|
+
pending = "pending",
|
|
969
|
+
released = "released",
|
|
970
|
+
rejected = "rejected"
|
|
971
|
+
}
|
|
972
|
+
export interface AppVersion {
|
|
973
|
+
version_string: string;
|
|
974
|
+
version_number: number;
|
|
975
|
+
status: AppVersionStatus;
|
|
976
|
+
}
|
|
934
977
|
export declare enum ApplicationType {
|
|
935
978
|
ios = "ios"
|
|
936
979
|
}
|
|
@@ -1236,33 +1279,6 @@ declare class ParraAPI {
|
|
|
1236
1279
|
getPlansForTenantById: (tenant_id: string) => Promise<TenantPlansResponse>;
|
|
1237
1280
|
createBillingPortalSession: (tenant_id: string) => Promise<BillingPortalSession>;
|
|
1238
1281
|
createSubscriberForAudienceById: (audience_id: string, body: CreateSubscriberRequestBody) => Promise<Response>;
|
|
1239
|
-
getCards: (query?: {
|
|
1240
|
-
app_area_id?: string;
|
|
1241
|
-
}) => Promise<CardsResponse>;
|
|
1242
|
-
paginateFeedbackFormsForTenantById: (tenant_id: string, query?: {
|
|
1243
|
-
$select?: string;
|
|
1244
|
-
$top?: number;
|
|
1245
|
-
$skip?: number;
|
|
1246
|
-
$orderby?: string;
|
|
1247
|
-
$filter?: string;
|
|
1248
|
-
$expand?: string;
|
|
1249
|
-
$search?: string;
|
|
1250
|
-
}) => Promise<FeedbackFormCollectionResponse>;
|
|
1251
|
-
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1252
|
-
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1253
|
-
include?: string;
|
|
1254
|
-
}) => Promise<FeedbackFormResponse>;
|
|
1255
|
-
updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1256
|
-
deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
|
|
1257
|
-
paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1258
|
-
$select?: string;
|
|
1259
|
-
$top?: number;
|
|
1260
|
-
$skip?: number;
|
|
1261
|
-
$orderby?: string;
|
|
1262
|
-
$filter?: string;
|
|
1263
|
-
$expand?: string;
|
|
1264
|
-
$search?: string;
|
|
1265
|
-
}) => Promise<FeedbackFormSubmissionCollectionResponse>;
|
|
1266
1282
|
getFormById: (feedback_form_id: string) => Promise<FeedbackFormDataStub>;
|
|
1267
1283
|
submitFormById: (feedback_form_id: string, body?: SubmitFeedbackFormResponseBody) => Promise<Response>;
|
|
1268
1284
|
createQuestion: (body: CreateQuestionRequestBody) => Promise<Question>;
|
|
@@ -1291,6 +1307,9 @@ declare class ParraAPI {
|
|
|
1291
1307
|
}) => Promise<AnswerCollectionResponse>;
|
|
1292
1308
|
answerQuestionById: (question_id: string, body: AnswerQuestionBody) => Promise<Response>;
|
|
1293
1309
|
bulkAnswerQuestions: (body?: BulkAnswersQuestionBody) => Promise<Response>;
|
|
1310
|
+
getCardsForTenantById: (tenant_id: string, query?: {
|
|
1311
|
+
app_area_id?: string;
|
|
1312
|
+
}) => Promise<CardsResponse>;
|
|
1294
1313
|
createAnalyticEventTypeForTenantById: (tenant_id: string, body: CreateAnalyticEventTypeRequestBody) => Promise<AnalyticEventType>;
|
|
1295
1314
|
paginateAnalyticEventTypesForTenantById: (tenant_id: string, query?: {
|
|
1296
1315
|
$select?: string;
|
|
@@ -1365,10 +1384,30 @@ declare class ParraAPI {
|
|
|
1365
1384
|
}) => Promise<UserNoteCollectionResponse>;
|
|
1366
1385
|
deleteUserNoteById: (tenant_id: string, user_note_id: string) => Promise<Response>;
|
|
1367
1386
|
linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
|
|
1387
|
+
getTicketById: (tenant_id: string, ticket_id: string) => Promise<Ticket>;
|
|
1368
1388
|
updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
|
|
1369
1389
|
deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1370
1390
|
voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1371
1391
|
removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1392
|
+
createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
|
|
1393
|
+
paginateReleasesForTenantById: (tenant_id: string, query?: {
|
|
1394
|
+
$select?: string;
|
|
1395
|
+
$top?: number;
|
|
1396
|
+
$skip?: number;
|
|
1397
|
+
$orderby?: string;
|
|
1398
|
+
$filter?: string;
|
|
1399
|
+
$expand?: string;
|
|
1400
|
+
$search?: string;
|
|
1401
|
+
}) => Promise<ReleaseCollectionResponse>;
|
|
1402
|
+
getReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Release>;
|
|
1403
|
+
updateReleaseForTenantById: (tenant_id: string, release_id: string, body?: UpdateReleaseRequestBody) => Promise<Release>;
|
|
1404
|
+
deleteReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Response>;
|
|
1405
|
+
createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody) => Promise<ReleaseItem>;
|
|
1406
|
+
createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody) => Promise<AppVersion>;
|
|
1407
|
+
listVersionsForTenantApplication: (tenant_id: string, application_id: string) => Promise<Array<AppVersion>>;
|
|
1408
|
+
getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
|
|
1409
|
+
updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody) => Promise<AppVersion>;
|
|
1410
|
+
deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<Response>;
|
|
1372
1411
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1373
1412
|
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1374
1413
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.
|
|
3
|
+
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
4
4
|
var Interval;
|
|
5
5
|
(function (Interval) {
|
|
6
6
|
Interval["monthly"] = "monthly";
|
|
@@ -20,15 +20,12 @@ var SubscriptionStatus;
|
|
|
20
20
|
SubscriptionStatus["canceled"] = "canceled";
|
|
21
21
|
SubscriptionStatus["unpaid"] = "unpaid";
|
|
22
22
|
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
|
23
|
-
var
|
|
24
|
-
(function (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(
|
|
29
|
-
CardItemDisplayType["inline"] = "inline";
|
|
30
|
-
CardItemDisplayType["popup"] = "popup";
|
|
31
|
-
})(CardItemDisplayType || (exports.CardItemDisplayType = CardItemDisplayType = {}));
|
|
23
|
+
var FeedbackFormFieldType;
|
|
24
|
+
(function (FeedbackFormFieldType) {
|
|
25
|
+
FeedbackFormFieldType["text"] = "text";
|
|
26
|
+
FeedbackFormFieldType["input"] = "input";
|
|
27
|
+
FeedbackFormFieldType["select"] = "select";
|
|
28
|
+
})(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
|
|
32
29
|
var QuestionType;
|
|
33
30
|
(function (QuestionType) {
|
|
34
31
|
QuestionType["choice"] = "choice";
|
|
@@ -52,16 +49,15 @@ var QuestionKind;
|
|
|
52
49
|
QuestionKind["rankedChoice"] = "ranked-choice";
|
|
53
50
|
QuestionKind["tag"] = "tag";
|
|
54
51
|
})(QuestionKind || (exports.QuestionKind = QuestionKind = {}));
|
|
55
|
-
var
|
|
56
|
-
(function (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
})(FormIntegrationType || (exports.FormIntegrationType = FormIntegrationType = {}));
|
|
52
|
+
var CardItemType;
|
|
53
|
+
(function (CardItemType) {
|
|
54
|
+
CardItemType["question"] = "question";
|
|
55
|
+
})(CardItemType || (exports.CardItemType = CardItemType = {}));
|
|
56
|
+
var CardItemDisplayType;
|
|
57
|
+
(function (CardItemDisplayType) {
|
|
58
|
+
CardItemDisplayType["inline"] = "inline";
|
|
59
|
+
CardItemDisplayType["popup"] = "popup";
|
|
60
|
+
})(CardItemDisplayType || (exports.CardItemDisplayType = CardItemDisplayType = {}));
|
|
65
61
|
var CampaignActionType;
|
|
66
62
|
(function (CampaignActionType) {
|
|
67
63
|
CampaignActionType["question"] = "question";
|
|
@@ -102,6 +98,19 @@ var TicketStatus;
|
|
|
102
98
|
TicketStatus["closed"] = "closed";
|
|
103
99
|
TicketStatus["archived"] = "archived";
|
|
104
100
|
})(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
|
|
101
|
+
var ReleaseStatus;
|
|
102
|
+
(function (ReleaseStatus) {
|
|
103
|
+
ReleaseStatus["pending"] = "pending";
|
|
104
|
+
ReleaseStatus["scheduled"] = "scheduled";
|
|
105
|
+
ReleaseStatus["released"] = "released";
|
|
106
|
+
})(ReleaseStatus || (exports.ReleaseStatus = ReleaseStatus = {}));
|
|
107
|
+
var ReleaseType;
|
|
108
|
+
(function (ReleaseType) {
|
|
109
|
+
ReleaseType["major"] = "major";
|
|
110
|
+
ReleaseType["minor"] = "minor";
|
|
111
|
+
ReleaseType["patch"] = "patch";
|
|
112
|
+
ReleaseType["launch"] = "launch";
|
|
113
|
+
})(ReleaseType || (exports.ReleaseType = ReleaseType = {}));
|
|
105
114
|
var UserNoteStatus;
|
|
106
115
|
(function (UserNoteStatus) {
|
|
107
116
|
UserNoteStatus["pending"] = "pending";
|
|
@@ -116,6 +125,12 @@ var TicketDisplayStatus;
|
|
|
116
125
|
TicketDisplayStatus["live"] = "live";
|
|
117
126
|
TicketDisplayStatus["rejected"] = "rejected";
|
|
118
127
|
})(TicketDisplayStatus || (exports.TicketDisplayStatus = TicketDisplayStatus = {}));
|
|
128
|
+
var AppVersionStatus;
|
|
129
|
+
(function (AppVersionStatus) {
|
|
130
|
+
AppVersionStatus["pending"] = "pending";
|
|
131
|
+
AppVersionStatus["released"] = "released";
|
|
132
|
+
AppVersionStatus["rejected"] = "rejected";
|
|
133
|
+
})(AppVersionStatus || (exports.AppVersionStatus = AppVersionStatus = {}));
|
|
119
134
|
var ApplicationType;
|
|
120
135
|
(function (ApplicationType) {
|
|
121
136
|
ApplicationType["ios"] = "ios";
|
|
@@ -219,53 +234,6 @@ var ParraAPI = /** @class */ (function () {
|
|
|
219
234
|
raw: true,
|
|
220
235
|
});
|
|
221
236
|
};
|
|
222
|
-
this.getCards = function (query) {
|
|
223
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/cards"), {
|
|
224
|
-
method: "get",
|
|
225
|
-
query: query,
|
|
226
|
-
});
|
|
227
|
-
};
|
|
228
|
-
this.paginateFeedbackFormsForTenantById = function (tenant_id, query) {
|
|
229
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
|
|
230
|
-
method: "get",
|
|
231
|
-
query: query,
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
this.createFeedbackFormForTenantById = function (tenant_id, body) {
|
|
235
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
|
|
236
|
-
method: "post",
|
|
237
|
-
body: JSON.stringify(body),
|
|
238
|
-
headers: {
|
|
239
|
-
"content-type": "application/json",
|
|
240
|
-
},
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query) {
|
|
244
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
245
|
-
method: "get",
|
|
246
|
-
query: query,
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
|
|
250
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
251
|
-
method: "put",
|
|
252
|
-
body: JSON.stringify(body),
|
|
253
|
-
headers: {
|
|
254
|
-
"content-type": "application/json",
|
|
255
|
-
},
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
|
-
this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
|
|
259
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
260
|
-
method: "delete",
|
|
261
|
-
});
|
|
262
|
-
};
|
|
263
|
-
this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query) {
|
|
264
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), {
|
|
265
|
-
method: "get",
|
|
266
|
-
query: query,
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
237
|
this.getFormById = function (feedback_form_id) {
|
|
270
238
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
|
|
271
239
|
method: "get",
|
|
@@ -342,6 +310,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
342
310
|
raw: true,
|
|
343
311
|
});
|
|
344
312
|
};
|
|
313
|
+
this.getCardsForTenantById = function (tenant_id, query) {
|
|
314
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/cards"), {
|
|
315
|
+
method: "get",
|
|
316
|
+
query: query,
|
|
317
|
+
});
|
|
318
|
+
};
|
|
345
319
|
this.createAnalyticEventTypeForTenantById = function (tenant_id, body) {
|
|
346
320
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
|
|
347
321
|
method: "post",
|
|
@@ -506,6 +480,11 @@ var ParraAPI = /** @class */ (function () {
|
|
|
506
480
|
raw: true,
|
|
507
481
|
});
|
|
508
482
|
};
|
|
483
|
+
this.getTicketById = function (tenant_id, ticket_id) {
|
|
484
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
|
|
485
|
+
method: "get",
|
|
486
|
+
});
|
|
487
|
+
};
|
|
509
488
|
this.updateTicketById = function (tenant_id, ticket_id, body) {
|
|
510
489
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
|
|
511
490
|
method: "put",
|
|
@@ -530,6 +509,82 @@ var ParraAPI = /** @class */ (function () {
|
|
|
530
509
|
method: "delete",
|
|
531
510
|
});
|
|
532
511
|
};
|
|
512
|
+
this.createReleaseForTenantById = function (tenant_id, body) {
|
|
513
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
|
|
514
|
+
method: "post",
|
|
515
|
+
body: JSON.stringify(body),
|
|
516
|
+
headers: {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
},
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
this.paginateReleasesForTenantById = function (tenant_id, query) {
|
|
522
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
|
|
523
|
+
method: "get",
|
|
524
|
+
query: query,
|
|
525
|
+
});
|
|
526
|
+
};
|
|
527
|
+
this.getReleaseForTenantById = function (tenant_id, release_id) {
|
|
528
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
|
|
529
|
+
method: "get",
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
this.updateReleaseForTenantById = function (tenant_id, release_id, body) {
|
|
533
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
|
|
534
|
+
method: "put",
|
|
535
|
+
body: JSON.stringify(body),
|
|
536
|
+
headers: {
|
|
537
|
+
"content-type": "application/json",
|
|
538
|
+
},
|
|
539
|
+
});
|
|
540
|
+
};
|
|
541
|
+
this.deleteReleaseForTenantById = function (tenant_id, release_id) {
|
|
542
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
|
|
543
|
+
method: "delete",
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
this.createReleaseItemForReleaseById = function (tenant_id, release_id, body) {
|
|
547
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/items"), {
|
|
548
|
+
method: "post",
|
|
549
|
+
body: JSON.stringify(body),
|
|
550
|
+
headers: {
|
|
551
|
+
"content-type": "application/json",
|
|
552
|
+
},
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
this.createVersionForTenantApplication = function (tenant_id, application_id, body) {
|
|
556
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
|
|
557
|
+
method: "post",
|
|
558
|
+
body: JSON.stringify(body),
|
|
559
|
+
headers: {
|
|
560
|
+
"content-type": "application/json",
|
|
561
|
+
},
|
|
562
|
+
});
|
|
563
|
+
};
|
|
564
|
+
this.listVersionsForTenantApplication = function (tenant_id, application_id) {
|
|
565
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
|
|
566
|
+
method: "get",
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
this.getTenantApplicationVersionById = function (tenant_id, application_id, app_version_id) {
|
|
570
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
|
|
571
|
+
method: "get",
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
this.updateTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, body) {
|
|
575
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
|
|
576
|
+
method: "put",
|
|
577
|
+
body: JSON.stringify(body),
|
|
578
|
+
headers: {
|
|
579
|
+
"content-type": "application/json",
|
|
580
|
+
},
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
this.deleteTenantApplicationVersionById = function (tenant_id, application_id, app_version_id) {
|
|
584
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
|
|
585
|
+
method: "delete",
|
|
586
|
+
});
|
|
587
|
+
};
|
|
533
588
|
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
534
589
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
535
590
|
method: "post",
|