@parra/parra-js-sdk 0.3.43 → 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 +244 -270
- package/dist/ParraAPI.js +86 -80
- 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
|
}
|
|
@@ -838,6 +769,51 @@ export interface CreateTicketRequestBody {
|
|
|
838
769
|
voting_enabled: boolean;
|
|
839
770
|
is_public: boolean;
|
|
840
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 {
|
|
803
|
+
id: string;
|
|
804
|
+
created_at: string;
|
|
805
|
+
updated_at: string;
|
|
806
|
+
deleted_at?: string | null;
|
|
807
|
+
title: string;
|
|
808
|
+
type: TicketType;
|
|
809
|
+
status: TicketStatus;
|
|
810
|
+
description?: string | null;
|
|
811
|
+
voting_enabled: boolean;
|
|
812
|
+
is_public: boolean;
|
|
813
|
+
ticket_number: string;
|
|
814
|
+
tenant_id: string;
|
|
815
|
+
vote_count: number;
|
|
816
|
+
}
|
|
841
817
|
export interface Ticket {
|
|
842
818
|
id: string;
|
|
843
819
|
created_at: string;
|
|
@@ -852,6 +828,7 @@ export interface Ticket {
|
|
|
852
828
|
ticket_number: string;
|
|
853
829
|
tenant_id: string;
|
|
854
830
|
vote_count: number;
|
|
831
|
+
release?: ReleaseStub;
|
|
855
832
|
}
|
|
856
833
|
export interface TicketCollectionResponse {
|
|
857
834
|
page: number;
|
|
@@ -932,21 +909,22 @@ export interface UserTicket {
|
|
|
932
909
|
voting_enabled: boolean;
|
|
933
910
|
voted: boolean;
|
|
934
911
|
}
|
|
935
|
-
export
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
name: string;
|
|
943
|
-
description?: string | null;
|
|
944
|
-
type: ReleaseType;
|
|
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;
|
|
945
919
|
}
|
|
946
|
-
export interface
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
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;
|
|
950
928
|
}
|
|
951
929
|
export interface Release {
|
|
952
930
|
id: string;
|
|
@@ -954,9 +932,47 @@ export interface Release {
|
|
|
954
932
|
updated_at: string;
|
|
955
933
|
deleted_at?: string | null;
|
|
956
934
|
name: string;
|
|
935
|
+
version: string;
|
|
957
936
|
description?: string | null;
|
|
958
937
|
type: ReleaseType;
|
|
959
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;
|
|
960
976
|
}
|
|
961
977
|
export declare enum ApplicationType {
|
|
962
978
|
ios = "ios"
|
|
@@ -1263,33 +1279,6 @@ declare class ParraAPI {
|
|
|
1263
1279
|
getPlansForTenantById: (tenant_id: string) => Promise<TenantPlansResponse>;
|
|
1264
1280
|
createBillingPortalSession: (tenant_id: string) => Promise<BillingPortalSession>;
|
|
1265
1281
|
createSubscriberForAudienceById: (audience_id: string, body: CreateSubscriberRequestBody) => Promise<Response>;
|
|
1266
|
-
getCards: (query?: {
|
|
1267
|
-
app_area_id?: string;
|
|
1268
|
-
}) => Promise<CardsResponse>;
|
|
1269
|
-
paginateFeedbackFormsForTenantById: (tenant_id: string, query?: {
|
|
1270
|
-
$select?: string;
|
|
1271
|
-
$top?: number;
|
|
1272
|
-
$skip?: number;
|
|
1273
|
-
$orderby?: string;
|
|
1274
|
-
$filter?: string;
|
|
1275
|
-
$expand?: string;
|
|
1276
|
-
$search?: string;
|
|
1277
|
-
}) => Promise<FeedbackFormCollectionResponse>;
|
|
1278
|
-
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1279
|
-
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1280
|
-
include?: string;
|
|
1281
|
-
}) => Promise<FeedbackFormResponse>;
|
|
1282
|
-
updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1283
|
-
deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
|
|
1284
|
-
paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1285
|
-
$select?: string;
|
|
1286
|
-
$top?: number;
|
|
1287
|
-
$skip?: number;
|
|
1288
|
-
$orderby?: string;
|
|
1289
|
-
$filter?: string;
|
|
1290
|
-
$expand?: string;
|
|
1291
|
-
$search?: string;
|
|
1292
|
-
}) => Promise<FeedbackFormSubmissionCollectionResponse>;
|
|
1293
1282
|
getFormById: (feedback_form_id: string) => Promise<FeedbackFormDataStub>;
|
|
1294
1283
|
submitFormById: (feedback_form_id: string, body?: SubmitFeedbackFormResponseBody) => Promise<Response>;
|
|
1295
1284
|
createQuestion: (body: CreateQuestionRequestBody) => Promise<Question>;
|
|
@@ -1318,6 +1307,9 @@ declare class ParraAPI {
|
|
|
1318
1307
|
}) => Promise<AnswerCollectionResponse>;
|
|
1319
1308
|
answerQuestionById: (question_id: string, body: AnswerQuestionBody) => Promise<Response>;
|
|
1320
1309
|
bulkAnswerQuestions: (body?: BulkAnswersQuestionBody) => Promise<Response>;
|
|
1310
|
+
getCardsForTenantById: (tenant_id: string, query?: {
|
|
1311
|
+
app_area_id?: string;
|
|
1312
|
+
}) => Promise<CardsResponse>;
|
|
1321
1313
|
createAnalyticEventTypeForTenantById: (tenant_id: string, body: CreateAnalyticEventTypeRequestBody) => Promise<AnalyticEventType>;
|
|
1322
1314
|
paginateAnalyticEventTypesForTenantById: (tenant_id: string, query?: {
|
|
1323
1315
|
$select?: string;
|
|
@@ -1397,15 +1389,7 @@ declare class ParraAPI {
|
|
|
1397
1389
|
deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1398
1390
|
voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1399
1391
|
removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1400
|
-
createReleaseForTenantById: (tenant_id: string, body
|
|
1401
|
-
$select?: string;
|
|
1402
|
-
$top?: number;
|
|
1403
|
-
$skip?: number;
|
|
1404
|
-
$orderby?: string;
|
|
1405
|
-
$filter?: string;
|
|
1406
|
-
$expand?: string;
|
|
1407
|
-
$search?: string;
|
|
1408
|
-
}) => Promise<Release>;
|
|
1392
|
+
createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
|
|
1409
1393
|
paginateReleasesForTenantById: (tenant_id: string, query?: {
|
|
1410
1394
|
$select?: string;
|
|
1411
1395
|
$top?: number;
|
|
@@ -1414,26 +1398,16 @@ declare class ParraAPI {
|
|
|
1414
1398
|
$filter?: string;
|
|
1415
1399
|
$expand?: string;
|
|
1416
1400
|
$search?: string;
|
|
1417
|
-
}) => Promise<
|
|
1418
|
-
getReleaseForTenantById: (tenant_id: string, release_id: string
|
|
1419
|
-
|
|
1420
|
-
$top?: number;
|
|
1421
|
-
$skip?: number;
|
|
1422
|
-
$orderby?: string;
|
|
1423
|
-
$filter?: string;
|
|
1424
|
-
$expand?: string;
|
|
1425
|
-
$search?: string;
|
|
1426
|
-
}) => Promise<Release>;
|
|
1427
|
-
updateReleaseForTenantById: (tenant_id: string, release_id: string, body: UpdateReleaseRequestBody, query?: {
|
|
1428
|
-
$select?: string;
|
|
1429
|
-
$top?: number;
|
|
1430
|
-
$skip?: number;
|
|
1431
|
-
$orderby?: string;
|
|
1432
|
-
$filter?: string;
|
|
1433
|
-
$expand?: string;
|
|
1434
|
-
$search?: string;
|
|
1435
|
-
}) => Promise<Release>;
|
|
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>;
|
|
1436
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>;
|
|
1437
1411
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1438
1412
|
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1439
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.
|
|
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,13 +125,12 @@ var TicketDisplayStatus;
|
|
|
116
125
|
TicketDisplayStatus["live"] = "live";
|
|
117
126
|
TicketDisplayStatus["rejected"] = "rejected";
|
|
118
127
|
})(TicketDisplayStatus || (exports.TicketDisplayStatus = TicketDisplayStatus = {}));
|
|
119
|
-
var
|
|
120
|
-
(function (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})(ReleaseType || (exports.ReleaseType = ReleaseType = {}));
|
|
128
|
+
var AppVersionStatus;
|
|
129
|
+
(function (AppVersionStatus) {
|
|
130
|
+
AppVersionStatus["pending"] = "pending";
|
|
131
|
+
AppVersionStatus["released"] = "released";
|
|
132
|
+
AppVersionStatus["rejected"] = "rejected";
|
|
133
|
+
})(AppVersionStatus || (exports.AppVersionStatus = AppVersionStatus = {}));
|
|
126
134
|
var ApplicationType;
|
|
127
135
|
(function (ApplicationType) {
|
|
128
136
|
ApplicationType["ios"] = "ios";
|
|
@@ -226,53 +234,6 @@ var ParraAPI = /** @class */ (function () {
|
|
|
226
234
|
raw: true,
|
|
227
235
|
});
|
|
228
236
|
};
|
|
229
|
-
this.getCards = function (query) {
|
|
230
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/cards"), {
|
|
231
|
-
method: "get",
|
|
232
|
-
query: query,
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
this.paginateFeedbackFormsForTenantById = function (tenant_id, query) {
|
|
236
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
|
|
237
|
-
method: "get",
|
|
238
|
-
query: query,
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
this.createFeedbackFormForTenantById = function (tenant_id, body) {
|
|
242
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
|
|
243
|
-
method: "post",
|
|
244
|
-
body: JSON.stringify(body),
|
|
245
|
-
headers: {
|
|
246
|
-
"content-type": "application/json",
|
|
247
|
-
},
|
|
248
|
-
});
|
|
249
|
-
};
|
|
250
|
-
this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query) {
|
|
251
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
252
|
-
method: "get",
|
|
253
|
-
query: query,
|
|
254
|
-
});
|
|
255
|
-
};
|
|
256
|
-
this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
|
|
257
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
258
|
-
method: "put",
|
|
259
|
-
body: JSON.stringify(body),
|
|
260
|
-
headers: {
|
|
261
|
-
"content-type": "application/json",
|
|
262
|
-
},
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
|
|
266
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
267
|
-
method: "delete",
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query) {
|
|
271
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), {
|
|
272
|
-
method: "get",
|
|
273
|
-
query: query,
|
|
274
|
-
});
|
|
275
|
-
};
|
|
276
237
|
this.getFormById = function (feedback_form_id) {
|
|
277
238
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
|
|
278
239
|
method: "get",
|
|
@@ -349,6 +310,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
349
310
|
raw: true,
|
|
350
311
|
});
|
|
351
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
|
+
};
|
|
352
319
|
this.createAnalyticEventTypeForTenantById = function (tenant_id, body) {
|
|
353
320
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
|
|
354
321
|
method: "post",
|
|
@@ -542,10 +509,9 @@ var ParraAPI = /** @class */ (function () {
|
|
|
542
509
|
method: "delete",
|
|
543
510
|
});
|
|
544
511
|
};
|
|
545
|
-
this.createReleaseForTenantById = function (tenant_id, body
|
|
512
|
+
this.createReleaseForTenantById = function (tenant_id, body) {
|
|
546
513
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
|
|
547
514
|
method: "post",
|
|
548
|
-
query: query,
|
|
549
515
|
body: JSON.stringify(body),
|
|
550
516
|
headers: {
|
|
551
517
|
"content-type": "application/json",
|
|
@@ -558,16 +524,14 @@ var ParraAPI = /** @class */ (function () {
|
|
|
558
524
|
query: query,
|
|
559
525
|
});
|
|
560
526
|
};
|
|
561
|
-
this.getReleaseForTenantById = function (tenant_id, release_id
|
|
527
|
+
this.getReleaseForTenantById = function (tenant_id, release_id) {
|
|
562
528
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
|
|
563
529
|
method: "get",
|
|
564
|
-
query: query,
|
|
565
530
|
});
|
|
566
531
|
};
|
|
567
|
-
this.updateReleaseForTenantById = function (tenant_id, release_id, body
|
|
532
|
+
this.updateReleaseForTenantById = function (tenant_id, release_id, body) {
|
|
568
533
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
|
|
569
534
|
method: "put",
|
|
570
|
-
query: query,
|
|
571
535
|
body: JSON.stringify(body),
|
|
572
536
|
headers: {
|
|
573
537
|
"content-type": "application/json",
|
|
@@ -579,6 +543,48 @@ var ParraAPI = /** @class */ (function () {
|
|
|
579
543
|
method: "delete",
|
|
580
544
|
});
|
|
581
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
|
+
};
|
|
582
588
|
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
583
589
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
584
590
|
method: "post",
|