@parra/parra-js-sdk 0.3.609 → 0.3.611

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.
@@ -295,6 +295,9 @@ export declare enum TenantArchetype {
295
295
  contentCreator = "content_creator",
296
296
  other = "other"
297
297
  }
298
+ export declare enum TenantBrand {
299
+ contentPage = "content_page"
300
+ }
298
301
  export interface CreateTenantRequestBody {
299
302
  name: string;
300
303
  subdomain?: string | null;
@@ -302,6 +305,7 @@ export interface CreateTenantRequestBody {
302
305
  parent_tenant_id?: string | null;
303
306
  archetype?: TenantArchetype | null;
304
307
  archetype_other_description?: string | null;
308
+ brand?: TenantBrand | null;
305
309
  }
306
310
  export interface TenantAppInfoStub {
307
311
  id: string;
@@ -314,6 +318,7 @@ export interface TenantAppInfoStub {
314
318
  parent_tenant_id?: string | null;
315
319
  archetype?: TenantArchetype | null;
316
320
  archetype_other_description?: string | null;
321
+ brand?: TenantBrand | null;
317
322
  display_name?: string | null;
318
323
  logo?: ImageAssetStub | null;
319
324
  issuer: string;
@@ -430,16 +435,9 @@ export interface TenantMemberTenantStub {
430
435
  export interface TenantMemberTeamMemberStub {
431
436
  id: string;
432
437
  user_id: string;
438
+ admin?: boolean | null;
433
439
  roles?: Array<string> | null;
434
440
  }
435
- export interface TenantMember {
436
- tenant: TenantMemberTenantStub;
437
- team_member: TenantMemberTeamMemberStub;
438
- }
439
- export interface MemberResponse {
440
- tenant: TenantMemberTenantStub;
441
- team_member: TenantMemberTeamMemberStub;
442
- }
443
441
  export declare enum IdentityType {
444
442
  anonymous = "anonymous",
445
443
  username = "username",
@@ -590,7 +588,8 @@ export interface TenantUser {
590
588
  export interface UserInfoResponse {
591
589
  roles?: Array<string>;
592
590
  user?: UserResponse | null;
593
- team_member?: MemberResponse | null;
591
+ tenant?: TenantMemberTenantStub | null;
592
+ team_member?: TenantMemberTeamMemberStub | null;
594
593
  tenant_user?: TenantUser | null;
595
594
  }
596
595
  export interface AuthToken {
@@ -5871,6 +5870,7 @@ export interface Tenant {
5871
5870
  parent_tenant_id?: string | null;
5872
5871
  archetype?: TenantArchetype | null;
5873
5872
  archetype_other_description?: string | null;
5873
+ brand?: TenantBrand | null;
5874
5874
  display_name?: string | null;
5875
5875
  logo?: ImageAssetStub | null;
5876
5876
  issuer: string;
@@ -6319,6 +6319,8 @@ export interface TeamMember {
6319
6319
  name: string;
6320
6320
  email: string;
6321
6321
  avatar?: ImageAssetStub;
6322
+ admin?: boolean | null;
6323
+ roles?: Array<string> | null;
6322
6324
  }
6323
6325
  export interface CreateRoleRequestBody {
6324
6326
  name: string;
@@ -6456,6 +6458,7 @@ export interface CreateTenantForUserRequestBody {
6456
6458
  is_test: boolean;
6457
6459
  archetype?: TenantArchetype | null;
6458
6460
  archetype_other_description?: string | null;
6461
+ brand?: TenantBrand | null;
6459
6462
  }
6460
6463
  export interface CreateMailSenderRequestBody {
6461
6464
  name?: string | null;
@@ -7392,7 +7395,7 @@ declare class ParraAPI {
7392
7395
  createConnectionForIntegration: (tenant_id: string, integration_id: string, body?: CreateIntegrationConnectionRequestBody, options?: Options) => Promise<IntegrationConnection>;
7393
7396
  getInvitationsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TenantInvitation>>;
7394
7397
  createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody, options?: Options) => Promise<TenantInvitation>;
7395
- getTeamMembersForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TeamMember>>;
7398
+ listTeamMembersForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TeamMember>>;
7396
7399
  deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string, options?: Options) => Promise<Response>;
7397
7400
  createRole: (tenant_id: string, body: CreateRoleRequestBody, options?: Options) => Promise<Role>;
7398
7401
  listRoles: (tenant_id: string, options?: Options) => Promise<Array<Role>>;
package/dist/ParraAPI.js CHANGED
@@ -11,9 +11,9 @@ 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.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = 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.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
- 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.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = void 0;
16
- exports.PolicyDocumentVersionStatus = void 0;
14
+ exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = 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.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantBrand = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
+ 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.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = void 0;
16
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = void 0;
17
17
  var TicketType;
18
18
  (function (TicketType) {
19
19
  TicketType["bug"] = "bug";
@@ -88,6 +88,10 @@ var TenantArchetype;
88
88
  TenantArchetype["contentCreator"] = "content_creator";
89
89
  TenantArchetype["other"] = "other";
90
90
  })(TenantArchetype || (exports.TenantArchetype = TenantArchetype = {}));
91
+ var TenantBrand;
92
+ (function (TenantBrand) {
93
+ TenantBrand["contentPage"] = "content_page";
94
+ })(TenantBrand || (exports.TenantBrand = TenantBrand = {}));
91
95
  var AppleSsoScope;
92
96
  (function (AppleSsoScope) {
93
97
  AppleSsoScope["fullName"] = "full_name";
@@ -2624,7 +2628,7 @@ var ParraAPI = /** @class */ (function () {
2624
2628
  "content-type": "application/json",
2625
2629
  } }, options));
2626
2630
  };
2627
- this.getTeamMembersForTenantById = function (tenant_id, options) {
2631
+ this.listTeamMembersForTenantById = function (tenant_id, options) {
2628
2632
  if (options === void 0) { options = {}; }
2629
2633
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), method: "get" }, options));
2630
2634
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.609",
3
+ "version": "0.3.611",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",