@parra/parra-js-sdk 0.3.547 → 0.3.549
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 +41 -0
- package/dist/ParraAPI.js +28 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -854,6 +854,7 @@ export interface ThemeStub {
|
|
854
854
|
updated_at: string;
|
855
855
|
deleted_at?: string | null;
|
856
856
|
tenant_id: string;
|
857
|
+
design_system_id: string;
|
857
858
|
name: string;
|
858
859
|
key: string;
|
859
860
|
description?: string | null;
|
@@ -915,6 +916,42 @@ export interface DesignToken {
|
|
915
916
|
type: string;
|
916
917
|
tenant_id: string;
|
917
918
|
}
|
919
|
+
export interface CreateThemeRequestBody {
|
920
|
+
name: string;
|
921
|
+
key: string;
|
922
|
+
is_dark: boolean;
|
923
|
+
}
|
924
|
+
export interface Theme {
|
925
|
+
id: string;
|
926
|
+
created_at: string;
|
927
|
+
updated_at: string;
|
928
|
+
deleted_at?: string | null;
|
929
|
+
tenant_id: string;
|
930
|
+
design_system_id: string;
|
931
|
+
name: string;
|
932
|
+
key: string;
|
933
|
+
description?: string | null;
|
934
|
+
is_dark: boolean;
|
935
|
+
is_active: boolean;
|
936
|
+
is_default: boolean;
|
937
|
+
styles?: ThemeStyles | null;
|
938
|
+
}
|
939
|
+
export declare enum ThemeCornerRadiusStyle {
|
940
|
+
rounded = "rounded",
|
941
|
+
circle = "circle",
|
942
|
+
square = "square"
|
943
|
+
}
|
944
|
+
export interface UpdateThemeRequestBody {
|
945
|
+
name?: string;
|
946
|
+
key?: string;
|
947
|
+
is_dark?: boolean;
|
948
|
+
is_active?: boolean;
|
949
|
+
primary_color_key?: string | null;
|
950
|
+
secondary_color_key?: string | null;
|
951
|
+
tertiary_color_key?: string | null;
|
952
|
+
accent_color_key?: string | null;
|
953
|
+
corner_radius_style?: ThemeCornerRadiusStyle | null;
|
954
|
+
}
|
918
955
|
export declare enum ShareAssetType {
|
919
956
|
creatorUpdate = "creator_update"
|
920
957
|
}
|
@@ -5385,6 +5422,10 @@ declare class ParraAPI {
|
|
5385
5422
|
getDesignTokenById: (tenant_id: string, design_token_id: string, options?: Options) => Promise<DesignToken>;
|
5386
5423
|
updateDesignTokenById: (tenant_id: string, design_token_id: string, body?: UpdateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
5387
5424
|
deleteDesignTokenById: (tenant_id: string, design_token_id: string, options?: Options) => Promise<Response>;
|
5425
|
+
createTheme: (tenant_id: string, body: CreateThemeRequestBody, options?: Options) => Promise<Theme>;
|
5426
|
+
getThemeById: (tenant_id: string, theme_id: string, options?: Options) => Promise<Theme>;
|
5427
|
+
updateThemeById: (tenant_id: string, theme_id: string, body?: UpdateThemeRequestBody, options?: Options) => Promise<Theme>;
|
5428
|
+
deleteThemeById: (tenant_id: string, theme_id: string, options?: Options) => Promise<Response>;
|
5388
5429
|
createShareAsset: (tenant_id: string, body: CreateShareAssetRequestBody, options?: Options) => Promise<ShareAsset>;
|
5389
5430
|
listShareAssets: (tenant_id: string, query?: {
|
5390
5431
|
type?: string | null;
|
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 = exports.TemplateType = exports.CampaignStatus = void 0;
|
14
|
+
exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = 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.ThemeCornerRadiusStyle = 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 = exports.CampaignStatus = exports.CampaignActionDisplayType = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -130,6 +130,12 @@ var SubscriptionStatus;
|
|
130
130
|
SubscriptionStatus["canceled"] = "canceled";
|
131
131
|
SubscriptionStatus["unpaid"] = "unpaid";
|
132
132
|
})(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
|
133
|
+
var ThemeCornerRadiusStyle;
|
134
|
+
(function (ThemeCornerRadiusStyle) {
|
135
|
+
ThemeCornerRadiusStyle["rounded"] = "rounded";
|
136
|
+
ThemeCornerRadiusStyle["circle"] = "circle";
|
137
|
+
ThemeCornerRadiusStyle["square"] = "square";
|
138
|
+
})(ThemeCornerRadiusStyle || (exports.ThemeCornerRadiusStyle = ThemeCornerRadiusStyle = {}));
|
133
139
|
var ShareAssetType;
|
134
140
|
(function (ShareAssetType) {
|
135
141
|
ShareAssetType["creatorUpdate"] = "creator_update";
|
@@ -745,6 +751,26 @@ var ParraAPI = /** @class */ (function () {
|
|
745
751
|
if (options === void 0) { options = {}; }
|
746
752
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "delete" }, options));
|
747
753
|
};
|
754
|
+
this.createTheme = function (tenant_id, body, options) {
|
755
|
+
if (options === void 0) { options = {}; }
|
756
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/themes"), method: "post", body: JSON.stringify(body), headers: {
|
757
|
+
"content-type": "application/json",
|
758
|
+
} }, options));
|
759
|
+
};
|
760
|
+
this.getThemeById = function (tenant_id, theme_id, options) {
|
761
|
+
if (options === void 0) { options = {}; }
|
762
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/themes/").concat(theme_id), method: "get" }, options));
|
763
|
+
};
|
764
|
+
this.updateThemeById = function (tenant_id, theme_id, body, options) {
|
765
|
+
if (options === void 0) { options = {}; }
|
766
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/themes/").concat(theme_id), method: "put", body: JSON.stringify(body), headers: {
|
767
|
+
"content-type": "application/json",
|
768
|
+
} }, options));
|
769
|
+
};
|
770
|
+
this.deleteThemeById = function (tenant_id, theme_id, options) {
|
771
|
+
if (options === void 0) { options = {}; }
|
772
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/themes/").concat(theme_id), method: "delete" }, options));
|
773
|
+
};
|
748
774
|
this.createShareAsset = function (tenant_id, body, options) {
|
749
775
|
if (options === void 0) { options = {}; }
|
750
776
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets"), method: "post", body: JSON.stringify(body), headers: {
|