@parra/parra-js-sdk 0.3.383 → 0.3.385
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 +42 -18
- package/dist/ParraAPI.js +20 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -561,6 +561,44 @@ export interface ImageAsset {
|
|
561
561
|
blur_hash?: string | null;
|
562
562
|
thumbnails?: ImageAssetThumbnails | null;
|
563
563
|
}
|
564
|
+
export interface ContentCardBackground {
|
565
|
+
image: ImageAssetStub | null;
|
566
|
+
}
|
567
|
+
export interface UpdateContentCardRequestBody {
|
568
|
+
title?: string;
|
569
|
+
description?: string | null;
|
570
|
+
display_title?: string | null;
|
571
|
+
display_description?: string | null;
|
572
|
+
background?: ContentCardBackground | null;
|
573
|
+
action_url?: string | null;
|
574
|
+
action_confirmation_message?: string | null;
|
575
|
+
badge?: string | null;
|
576
|
+
}
|
577
|
+
export interface CreateContentCardRequestBody {
|
578
|
+
title?: string;
|
579
|
+
description?: string | null;
|
580
|
+
display_title?: string | null;
|
581
|
+
display_description?: string | null;
|
582
|
+
background?: ContentCardBackground | null;
|
583
|
+
action_url?: string | null;
|
584
|
+
action_confirmation_message?: string | null;
|
585
|
+
badge?: string | null;
|
586
|
+
}
|
587
|
+
export interface ContentCardAction {
|
588
|
+
url: string;
|
589
|
+
confirmation_message?: string | null;
|
590
|
+
}
|
591
|
+
export interface ContentCard {
|
592
|
+
id: string;
|
593
|
+
created_at: string;
|
594
|
+
updated_at: string;
|
595
|
+
deleted_at?: string | null;
|
596
|
+
background?: ContentCardBackground | null;
|
597
|
+
title?: string | null;
|
598
|
+
description?: string | null;
|
599
|
+
badge?: string | null;
|
600
|
+
action?: ContentCardAction | null;
|
601
|
+
}
|
564
602
|
export interface CreateCheckoutSessionRequestBody {
|
565
603
|
plan_id: string;
|
566
604
|
success_url?: string | null;
|
@@ -1240,24 +1278,6 @@ export interface YoutubeVideo {
|
|
1240
1278
|
live_broadcast_content?: string | null;
|
1241
1279
|
statistics?: YoutubeStatistics | null;
|
1242
1280
|
}
|
1243
|
-
export interface ContentCardBackground {
|
1244
|
-
image: ImageAssetStub | null;
|
1245
|
-
}
|
1246
|
-
export interface ContentCardAction {
|
1247
|
-
url: string;
|
1248
|
-
confirmation_message?: string | null;
|
1249
|
-
}
|
1250
|
-
export interface ContentCard {
|
1251
|
-
id: string;
|
1252
|
-
created_at: string;
|
1253
|
-
updated_at: string;
|
1254
|
-
deleted_at?: string | null;
|
1255
|
-
background?: ContentCardBackground | null;
|
1256
|
-
title?: string | null;
|
1257
|
-
description?: string | null;
|
1258
|
-
badge?: string | null;
|
1259
|
-
action?: ContentCardAction | null;
|
1260
|
-
}
|
1261
1281
|
export interface EntitlementStub {
|
1262
1282
|
id: string;
|
1263
1283
|
title: string;
|
@@ -4099,6 +4119,10 @@ declare class ParraAPI {
|
|
4099
4119
|
uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4100
4120
|
uploadHeaderForTenantRelease: (tenant_id: string, release_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4101
4121
|
uploadAttachmentForTicketById: (tenant_id: string, ticket_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4122
|
+
createContentCard: (tenant_id: string, body: CreateContentCardRequestBody, options?: Options) => Promise<ContentCard>;
|
4123
|
+
listContentCards: (tenant_id: string, options?: Options) => Promise<Array<ContentCard>>;
|
4124
|
+
updateContentCardById: (tenant_id: string, content_card_id: string, body?: UpdateContentCardRequestBody, options?: Options) => Promise<ContentCard>;
|
4125
|
+
deleteContentCardById: (tenant_id: string, content_card_id: string, options?: Options) => Promise<Response>;
|
4102
4126
|
uploadAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4103
4127
|
uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
|
4104
4128
|
createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
|
package/dist/ParraAPI.js
CHANGED
@@ -481,6 +481,26 @@ var ParraAPI = /** @class */ (function () {
|
|
481
481
|
});
|
482
482
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments"), __assign({ method: "post", body: formData, headers: {} }, options));
|
483
483
|
};
|
484
|
+
this.createContentCard = function (tenant_id, body, options) {
|
485
|
+
if (options === void 0) { options = {}; }
|
486
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
487
|
+
"content-type": "application/json",
|
488
|
+
} }, options));
|
489
|
+
};
|
490
|
+
this.listContentCards = function (tenant_id, options) {
|
491
|
+
if (options === void 0) { options = {}; }
|
492
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "get" }, options));
|
493
|
+
};
|
494
|
+
this.updateContentCardById = function (tenant_id, content_card_id, body, options) {
|
495
|
+
if (options === void 0) { options = {}; }
|
496
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
497
|
+
"content-type": "application/json",
|
498
|
+
} }, options));
|
499
|
+
};
|
500
|
+
this.deleteContentCardById = function (tenant_id, content_card_id, options) {
|
501
|
+
if (options === void 0) { options = {}; }
|
502
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "delete" }, options));
|
503
|
+
};
|
484
504
|
this.uploadAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, body, options) {
|
485
505
|
if (options === void 0) { options = {}; }
|
486
506
|
var formData = new FormData();
|