@parra/parra-js-sdk 0.3.550 → 0.3.552
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 +11 -2
- package/dist/ParraAPI.js +13 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -885,6 +885,12 @@ export interface DesignSystem {
|
|
885
885
|
tenant_id: string;
|
886
886
|
themes: Array<ThemeStub>;
|
887
887
|
}
|
888
|
+
export declare enum DesignTokenType {
|
889
|
+
color = "color",
|
890
|
+
component = "component",
|
891
|
+
spacing = "spacing",
|
892
|
+
radius = "radius"
|
893
|
+
}
|
888
894
|
export interface ColorValue {
|
889
895
|
hex_value?: string;
|
890
896
|
}
|
@@ -909,7 +915,7 @@ export interface CreateDesignTokenRequestBody {
|
|
909
915
|
is_deprecated?: boolean;
|
910
916
|
is_active?: boolean;
|
911
917
|
theme_id: string;
|
912
|
-
type:
|
918
|
+
type: DesignTokenType;
|
913
919
|
}
|
914
920
|
export interface DesignToken {
|
915
921
|
id: string;
|
@@ -923,7 +929,7 @@ export interface DesignToken {
|
|
923
929
|
is_deprecated?: boolean;
|
924
930
|
is_active?: boolean;
|
925
931
|
theme_id: string;
|
926
|
-
type:
|
932
|
+
type: DesignTokenType;
|
927
933
|
tenant_id: string;
|
928
934
|
}
|
929
935
|
export interface CreateThemeRequestBody {
|
@@ -5428,6 +5434,9 @@ declare class ParraAPI {
|
|
5428
5434
|
getDesignSystemById: (tenant_id: string, design_system_id: string, options?: Options) => Promise<DesignSystem>;
|
5429
5435
|
updateDesignSystemById: (tenant_id: string, design_system_id: string, body?: UpdateDesignSystemRequestBody, options?: Options) => Promise<DesignSystem>;
|
5430
5436
|
deleteDesignSystemById: (tenant_id: string, design_system_id: string, options?: Options) => Promise<Response>;
|
5437
|
+
listDesignTokensForDesignSystem: (tenant_id: string, design_system_id: string, query?: {
|
5438
|
+
type?: string;
|
5439
|
+
}, options?: Options) => Promise<Array<DesignToken>>;
|
5431
5440
|
createTokenForDesignSystem: (tenant_id: string, design_system_id: string, body: CreateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
5432
5441
|
getDesignTokenById: (tenant_id: string, design_token_id: string, options?: Options) => Promise<DesignToken>;
|
5433
5442
|
updateDesignTokenById: (tenant_id: string, design_token_id: string, body?: UpdateDesignTokenRequestBody, options?: Options) => Promise<DesignToken>;
|
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 = exports.CampaignActionDisplayType = void 0;
|
14
|
+
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.DesignTokenType = 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 = exports.CampaignActionType = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -136,6 +136,13 @@ var ThemeCornerRadiusStyle;
|
|
136
136
|
ThemeCornerRadiusStyle["circle"] = "circle";
|
137
137
|
ThemeCornerRadiusStyle["square"] = "square";
|
138
138
|
})(ThemeCornerRadiusStyle || (exports.ThemeCornerRadiusStyle = ThemeCornerRadiusStyle = {}));
|
139
|
+
var DesignTokenType;
|
140
|
+
(function (DesignTokenType) {
|
141
|
+
DesignTokenType["color"] = "color";
|
142
|
+
DesignTokenType["component"] = "component";
|
143
|
+
DesignTokenType["spacing"] = "spacing";
|
144
|
+
DesignTokenType["radius"] = "radius";
|
145
|
+
})(DesignTokenType || (exports.DesignTokenType = DesignTokenType = {}));
|
139
146
|
var ShareAssetType;
|
140
147
|
(function (ShareAssetType) {
|
141
148
|
ShareAssetType["creatorUpdate"] = "creator_update";
|
@@ -731,6 +738,10 @@ var ParraAPI = /** @class */ (function () {
|
|
731
738
|
if (options === void 0) { options = {}; }
|
732
739
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), method: "delete" }, options));
|
733
740
|
};
|
741
|
+
this.listDesignTokensForDesignSystem = function (tenant_id, design_system_id, query, options) {
|
742
|
+
if (options === void 0) { options = {}; }
|
743
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens"), method: "get", query: query }, options));
|
744
|
+
};
|
734
745
|
this.createTokenForDesignSystem = function (tenant_id, design_system_id, body, options) {
|
735
746
|
if (options === void 0) { options = {}; }
|
736
747
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens"), method: "post", body: JSON.stringify(body), headers: {
|