@parra/parra-js-sdk 0.3.537 → 0.3.539
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 +21 -1
- package/dist/ParraAPI.js +13 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1069,6 +1069,10 @@ export declare enum PurchaseType {
|
|
1069
1069
|
consumable = "consumable",
|
1070
1070
|
subscription = "subscription"
|
1071
1071
|
}
|
1072
|
+
export declare enum PurchaseStatus {
|
1073
|
+
active = "active",
|
1074
|
+
expired = "expired"
|
1075
|
+
}
|
1072
1076
|
export declare enum PurchasePlatform {
|
1073
1077
|
apple = "apple",
|
1074
1078
|
parra = "parra",
|
@@ -1088,6 +1092,7 @@ export declare enum ApplePurchaseType {
|
|
1088
1092
|
autoRenewableSubscription = "Auto-Renewable Subscription"
|
1089
1093
|
}
|
1090
1094
|
export interface ApplePurchase {
|
1095
|
+
is_trial?: boolean | null;
|
1091
1096
|
receipt: string;
|
1092
1097
|
payload: object;
|
1093
1098
|
original_transaction_id: string;
|
@@ -1095,6 +1100,9 @@ export interface ApplePurchase {
|
|
1095
1100
|
purchase_date: string;
|
1096
1101
|
original_purchase_date: string;
|
1097
1102
|
expires_date?: string | null;
|
1103
|
+
auto_renew?: boolean | null;
|
1104
|
+
renewal_date?: string | null;
|
1105
|
+
renewal_price?: Price | null;
|
1098
1106
|
price: Price;
|
1099
1107
|
quantity: number;
|
1100
1108
|
bundle_id: string;
|
@@ -1124,6 +1132,7 @@ export interface UserPurchase {
|
|
1124
1132
|
user?: TenantUserStub;
|
1125
1133
|
product?: ProductStub | null;
|
1126
1134
|
type: PurchaseType;
|
1135
|
+
status: PurchaseStatus;
|
1127
1136
|
platform: PurchasePlatform;
|
1128
1137
|
environment: PurchaseEnvironment;
|
1129
1138
|
environment_description?: string | null;
|
@@ -2108,7 +2117,7 @@ export interface SocialAccountTwitchData {
|
|
2108
2117
|
profile_image_url?: string | null;
|
2109
2118
|
}
|
2110
2119
|
export interface SocialAccountLinkedinData {
|
2111
|
-
handle?: string;
|
2120
|
+
handle?: string | null;
|
2112
2121
|
profile_id: string;
|
2113
2122
|
profile_name?: string | null;
|
2114
2123
|
profile_image_url?: string | null;
|
@@ -2327,6 +2336,16 @@ export interface UpdateFeedRequestBody {
|
|
2327
2336
|
slug?: string;
|
2328
2337
|
description?: string | null;
|
2329
2338
|
}
|
2339
|
+
export interface CreateYoutubeVideoFeedItemRequestBody {
|
2340
|
+
type: string;
|
2341
|
+
youtube_video_id?: string;
|
2342
|
+
youtube_video_url?: string;
|
2343
|
+
}
|
2344
|
+
export interface CreateContentCardFeedItemRequestBody {
|
2345
|
+
type: string;
|
2346
|
+
content_card_id: string;
|
2347
|
+
}
|
2348
|
+
export type CreateFeedItemRequestBody = CreateYoutubeVideoFeedItemRequestBody | CreateContentCardFeedItemRequestBody;
|
2330
2349
|
export interface FeedItem {
|
2331
2350
|
id: string;
|
2332
2351
|
created_at: string;
|
@@ -5466,6 +5485,7 @@ declare class ParraAPI {
|
|
5466
5485
|
getFeedById: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<FeedView>;
|
5467
5486
|
updateFeedById: (tenant_id: string, feed_id_or_slug: string, body?: UpdateFeedRequestBody, options?: Options) => Promise<FeedView>;
|
5468
5487
|
deleteFeedById: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<Response>;
|
5488
|
+
createFeedItem: (tenant_id: string, feed_id_or_slug: string, body?: CreateFeedItemRequestBody, options?: Options) => Promise<FeedItem>;
|
5469
5489
|
paginateItemsForFeed: (tenant_id: string, feed_id_or_slug: string, query?: {
|
5470
5490
|
limit?: number;
|
5471
5491
|
offset?: number;
|
package/dist/ParraAPI.js
CHANGED
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.
|
15
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = void 0;
|
14
|
+
exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.ReactionType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
15
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -150,6 +150,11 @@ var PurchaseType;
|
|
150
150
|
PurchaseType["consumable"] = "consumable";
|
151
151
|
PurchaseType["subscription"] = "subscription";
|
152
152
|
})(PurchaseType || (exports.PurchaseType = PurchaseType = {}));
|
153
|
+
var PurchaseStatus;
|
154
|
+
(function (PurchaseStatus) {
|
155
|
+
PurchaseStatus["active"] = "active";
|
156
|
+
PurchaseStatus["expired"] = "expired";
|
157
|
+
})(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
|
153
158
|
var PurchasePlatform;
|
154
159
|
(function (PurchasePlatform) {
|
155
160
|
PurchasePlatform["apple"] = "apple";
|
@@ -1333,6 +1338,12 @@ var ParraAPI = /** @class */ (function () {
|
|
1333
1338
|
if (options === void 0) { options = {}; }
|
1334
1339
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), method: "delete" }, options));
|
1335
1340
|
};
|
1341
|
+
this.createFeedItem = function (tenant_id, feed_id_or_slug, body, options) {
|
1342
|
+
if (options === void 0) { options = {}; }
|
1343
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items"), method: "post", body: JSON.stringify(body), headers: {
|
1344
|
+
"content-type": "application/json",
|
1345
|
+
} }, options));
|
1346
|
+
};
|
1336
1347
|
this.paginateItemsForFeed = function (tenant_id, feed_id_or_slug, query, options) {
|
1337
1348
|
if (options === void 0) { options = {}; }
|
1338
1349
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items"), method: "get", query: query }, options));
|