@parra/parra-js-sdk 0.3.450 → 0.3.451

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.
@@ -926,6 +926,68 @@ export interface ConsumeEntitlementRequestBody {
926
926
  note?: string | null;
927
927
  metadata?: object | null;
928
928
  }
929
+ export interface TenantUserStub {
930
+ id: string;
931
+ tenant_id: string;
932
+ name?: string | null;
933
+ avatar?: ImageAssetStub | null;
934
+ verified?: boolean | null;
935
+ roles?: Array<TenantUserRoleStub> | null;
936
+ }
937
+ export declare enum PurchaseType {
938
+ consumable = "consumable",
939
+ subscription = "subscription"
940
+ }
941
+ export declare enum PurchasePlatform {
942
+ apple = "apple"
943
+ }
944
+ export declare enum PurchaseEnvironment {
945
+ production = "production",
946
+ test = "test"
947
+ }
948
+ export declare enum ApplePurchaseEnvironment {
949
+ production = "Production",
950
+ sandbox = "Sandbox",
951
+ xcode = "Xcode"
952
+ }
953
+ export declare enum ApplePurchaseType {
954
+ consumable = "Consumable",
955
+ autoRenewableSubscription = "Auto-Renewable Subscription"
956
+ }
957
+ export interface ApplePurchase {
958
+ receipt: string;
959
+ payload: object;
960
+ original_transaction_id: string;
961
+ product_id: string;
962
+ purchase_date: string;
963
+ original_purchase_date: string;
964
+ expires_date?: string | null;
965
+ price: Price;
966
+ quantity: number;
967
+ bundle_id: string;
968
+ environment: ApplePurchaseEnvironment;
969
+ type: ApplePurchaseType;
970
+ }
971
+ export interface UserPurchase {
972
+ id: string;
973
+ created_at: string;
974
+ updated_at: string;
975
+ deleted_at?: string | null;
976
+ tenant_id: string;
977
+ user_id: string;
978
+ application_id: string;
979
+ product_id?: string | null;
980
+ user?: TenantUserStub;
981
+ product?: ProductStub | null;
982
+ type: PurchaseType;
983
+ platform: PurchasePlatform;
984
+ environment: PurchaseEnvironment;
985
+ environment_description?: string | null;
986
+ title?: string;
987
+ description?: string | null;
988
+ apple?: ApplePurchase | null;
989
+ entitlements?: Array<UserEntitlement> | null;
990
+ }
929
991
  export declare enum BillingSourceType {
930
992
  stripe = "stripe",
931
993
  paypal = "paypal",
@@ -1078,14 +1140,6 @@ export declare enum ChatChannelStatus {
1078
1140
  locked = "locked",
1079
1141
  archived = "archived"
1080
1142
  }
1081
- export interface TenantUserStub {
1082
- id: string;
1083
- tenant_id: string;
1084
- name?: string | null;
1085
- avatar?: ImageAssetStub | null;
1086
- verified?: boolean | null;
1087
- roles?: Array<TenantUserRoleStub> | null;
1088
- }
1089
1143
  export declare enum ChannelMemberType {
1090
1144
  tenantUser = "tenant_user",
1091
1145
  user = "user",
@@ -1408,7 +1462,8 @@ export interface UpdateCreatorUpdateTemplateRequestBody {
1408
1462
  attachment_visibility?: CreatorUpdateVisibilityType;
1409
1463
  }
1410
1464
  export interface CreateCreatorUpdateRequestBody {
1411
- publish?: boolean | null;
1465
+ publish?: boolean;
1466
+ schedule_at?: string;
1412
1467
  template_id?: string | null;
1413
1468
  topic?: CreatorUpdateTopic | null;
1414
1469
  title?: string | null;
@@ -3780,25 +3835,30 @@ export interface ConnectedAppTwilioConnectionData {
3780
3835
  messaging_service_sid?: string | null;
3781
3836
  from_number?: string | null;
3782
3837
  }
3838
+ export interface ConnectedAppDiscordConnectionData {
3839
+ guild_id: string;
3840
+ permissions: number;
3841
+ }
3783
3842
  export interface ConnectedAppXConnectionData {
3784
3843
  handle: string;
3785
3844
  name: string;
3786
3845
  }
3787
- export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
3846
+ export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppDiscordConnectionData | ConnectedAppXConnectionData;
3788
3847
  export declare enum ConnectedAppType {
3789
3848
  parra = "parra",
3790
3849
  appStoreConnectApi = "app-store-connect-api",
3791
3850
  apns = "apns",
3792
3851
  resend = "resend",
3793
3852
  sendgrid = "sendgrid",
3794
- slack = "slack",
3795
3853
  twilio = "twilio",
3854
+ github = "github",
3855
+ discord = "discord",
3856
+ slack = "slack",
3796
3857
  x = "x",
3797
3858
  youtube = "youtube",
3798
3859
  tiktok = "tiktok",
3799
3860
  instagram = "instagram",
3800
- facebook = "facebook",
3801
- github = "github"
3861
+ facebook = "facebook"
3802
3862
  }
3803
3863
  export declare enum ConnectedAppConnectionStatus {
3804
3864
  pending = "pending",
@@ -3889,6 +3949,11 @@ export interface CreateSendgridConnectedAppConnectionRequestBody {
3889
3949
  export interface CreateSlackConnectedAppConnectionRequestBody {
3890
3950
  code: string;
3891
3951
  }
3952
+ export interface CreateDiscordConnectedAppConnectionRequestBody {
3953
+ code: string;
3954
+ guild_id: string;
3955
+ permissions: number;
3956
+ }
3892
3957
  export interface CreateYoutubeConnectedAppConnectionRequestBody {
3893
3958
  code: string;
3894
3959
  }
@@ -3902,12 +3967,19 @@ export interface CreateXConnectedAppConnectionRequestBody {
3902
3967
  code: string;
3903
3968
  code_verifier: string;
3904
3969
  }
3905
- export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
3970
+ export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateDiscordConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
3906
3971
  export declare enum IntegrationType {
3907
3972
  parraFeedbackFormBoard = "parra-feedback-form-board",
3908
3973
  parraFeedItemVideoNotification = "parra-feed-item-video-notification",
3974
+ discordFeedbackForm = "discord-feedback-form",
3975
+ discordPurchaseCollection = "discord-purchase-collection",
3976
+ discordReleaseCollection = "discord-release-collection",
3977
+ discordUserCollection = "discord-user-collection",
3978
+ discordCommentReview = "discord-comment-review",
3909
3979
  slackFeedbackForm = "slack-feedback-form",
3980
+ slackPurchaseCollection = "slack-purchase-collection",
3910
3981
  slackReleaseCollection = "slack-release-collection",
3982
+ slackUserCollection = "slack-user-collection",
3911
3983
  slackCommentReview = "slack-comment-review",
3912
3984
  youtubeVideoFeed = "youtube-video-feed",
3913
3985
  xReleaseCollection = "x-release-collection"
@@ -3955,6 +4027,74 @@ export interface SlackReleaseCollectionIntegrationConnectionData {
3955
4027
  channel: string;
3956
4028
  message: string;
3957
4029
  }
4030
+ export interface UpdateSlackPurchaseCollectionIntegrationConnectionData {
4031
+ connected_app_connection_id: string;
4032
+ channel: string;
4033
+ message: string;
4034
+ }
4035
+ export interface SlackPurchaseCollectionIntegrationConnectionData {
4036
+ connected_app_connection_id: string;
4037
+ channel: string;
4038
+ message: string;
4039
+ }
4040
+ export interface UpdateSlackUserCollectionIntegrationConnectionData {
4041
+ connected_app_connection_id: string;
4042
+ channel: string;
4043
+ message: string;
4044
+ }
4045
+ export interface SlackUserCollectionIntegrationConnectionData {
4046
+ connected_app_connection_id: string;
4047
+ channel: string;
4048
+ message: string;
4049
+ }
4050
+ export interface UpdateDiscordCommentReviewIntegrationConnectionData {
4051
+ connected_app_connection_id: string;
4052
+ channel: string;
4053
+ }
4054
+ export interface DiscordCommentReviewIntegrationConnectionData {
4055
+ connected_app_connection_id: string;
4056
+ channel: string;
4057
+ }
4058
+ export interface UpdateDiscordFeedbackFormIntegrationConnectionData {
4059
+ connected_app_connection_id: string;
4060
+ channel: string;
4061
+ message: string;
4062
+ }
4063
+ export interface DiscordFeedbackFormIntegrationConnectionData {
4064
+ connected_app_connection_id: string;
4065
+ channel: string;
4066
+ message: string;
4067
+ }
4068
+ export interface UpdateDiscordReleaseCollectionIntegrationConnectionData {
4069
+ connected_app_connection_id: string;
4070
+ channel: string;
4071
+ message: string;
4072
+ }
4073
+ export interface DiscordReleaseCollectionIntegrationConnectionData {
4074
+ connected_app_connection_id: string;
4075
+ channel: string;
4076
+ message: string;
4077
+ }
4078
+ export interface UpdateDiscordPurchaseCollectionIntegrationConnectionData {
4079
+ connected_app_connection_id: string;
4080
+ channel: string;
4081
+ message: string;
4082
+ }
4083
+ export interface DiscordPurchaseCollectionIntegrationConnectionData {
4084
+ connected_app_connection_id: string;
4085
+ channel: string;
4086
+ message: string;
4087
+ }
4088
+ export interface UpdateDiscordUserCollectionIntegrationConnectionData {
4089
+ connected_app_connection_id: string;
4090
+ channel: string;
4091
+ message: string;
4092
+ }
4093
+ export interface DiscordUserCollectionIntegrationConnectionData {
4094
+ connected_app_connection_id: string;
4095
+ channel: string;
4096
+ message: string;
4097
+ }
3958
4098
  export interface UpdateSlackCommentReviewIntegrationConnectionData {
3959
4099
  connected_app_connection_id: string;
3960
4100
  channel: string;
@@ -3979,7 +4119,7 @@ export interface XReleaseCollectionIntegrationConnectionData {
3979
4119
  connected_app_connection_id: string;
3980
4120
  text: string;
3981
4121
  }
3982
- export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4122
+ export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | DiscordUserCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
3983
4123
  export interface IntegrationConnection {
3984
4124
  id: string;
3985
4125
  created_at: string;
@@ -4021,8 +4161,8 @@ export interface TenantIntegration {
4021
4161
  export interface UpdateIntegrationConnectionRequestBody {
4022
4162
  active?: boolean;
4023
4163
  }
4024
- export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateParraFeedItemVideoNotificationIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateSlackCommentReviewIntegrationConnectionData | UpdateYoutubeVideoFeedIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
4025
- export type CreateIntegrationConnectionRequestBody = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4164
+ export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateParraFeedItemVideoNotificationIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateSlackPurchaseCollectionIntegrationConnectionData | UpdateSlackUserCollectionIntegrationConnectionData | UpdateDiscordCommentReviewIntegrationConnectionData | UpdateDiscordFeedbackFormIntegrationConnectionData | UpdateDiscordReleaseCollectionIntegrationConnectionData | UpdateDiscordPurchaseCollectionIntegrationConnectionData | UpdateDiscordUserCollectionIntegrationConnectionData | UpdateYoutubeVideoFeedIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
4165
+ export type CreateIntegrationConnectionRequestBody = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4026
4166
  export interface TenantInvitationRequestBody {
4027
4167
  name: string;
4028
4168
  email: string;
@@ -4563,6 +4703,7 @@ declare class ParraAPI {
4563
4703
  createEntitlementForTenantUserById: (tenant_id: string, user_id: string, body: CreateUserEntitlementRequestBody, options?: Options) => Promise<Response>;
4564
4704
  listEntitlementsForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserEntitlement>>;
4565
4705
  consumeEntitlementForTenantUserById: (tenant_id: string, user_id: string, entitlement_id_or_key: string, body: ConsumeEntitlementRequestBody, options?: Options) => Promise<Array<UserEntitlement>>;
4706
+ listPurchasesForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserPurchase>>;
4566
4707
  createBillingSource: (tenant_id: string, body: CreateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
4567
4708
  listBillingSources: (tenant_id: string, options?: Options) => Promise<Array<BillingSource>>;
4568
4709
  getBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
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.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.ReactionType = exports.FeedItemType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.PaywallIapType = exports.AppPaywallType = 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.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = void 0;
14
+ 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.ReactionType = exports.FeedItemType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = 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.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -141,6 +141,31 @@ var PaywallIapType;
141
141
  PaywallIapType["subscription"] = "subscription";
142
142
  PaywallIapType["subscriptionGroup"] = "subscription_group";
143
143
  })(PaywallIapType || (exports.PaywallIapType = PaywallIapType = {}));
144
+ var PurchaseType;
145
+ (function (PurchaseType) {
146
+ PurchaseType["consumable"] = "consumable";
147
+ PurchaseType["subscription"] = "subscription";
148
+ })(PurchaseType || (exports.PurchaseType = PurchaseType = {}));
149
+ var PurchasePlatform;
150
+ (function (PurchasePlatform) {
151
+ PurchasePlatform["apple"] = "apple";
152
+ })(PurchasePlatform || (exports.PurchasePlatform = PurchasePlatform = {}));
153
+ var PurchaseEnvironment;
154
+ (function (PurchaseEnvironment) {
155
+ PurchaseEnvironment["production"] = "production";
156
+ PurchaseEnvironment["test"] = "test";
157
+ })(PurchaseEnvironment || (exports.PurchaseEnvironment = PurchaseEnvironment = {}));
158
+ var ApplePurchaseEnvironment;
159
+ (function (ApplePurchaseEnvironment) {
160
+ ApplePurchaseEnvironment["production"] = "Production";
161
+ ApplePurchaseEnvironment["sandbox"] = "Sandbox";
162
+ ApplePurchaseEnvironment["xcode"] = "Xcode";
163
+ })(ApplePurchaseEnvironment || (exports.ApplePurchaseEnvironment = ApplePurchaseEnvironment = {}));
164
+ var ApplePurchaseType;
165
+ (function (ApplePurchaseType) {
166
+ ApplePurchaseType["consumable"] = "Consumable";
167
+ ApplePurchaseType["autoRenewableSubscription"] = "Auto-Renewable Subscription";
168
+ })(ApplePurchaseType || (exports.ApplePurchaseType = ApplePurchaseType = {}));
144
169
  var BillingSourceType;
145
170
  (function (BillingSourceType) {
146
171
  BillingSourceType["stripe"] = "stripe";
@@ -408,14 +433,15 @@ var ConnectedAppType;
408
433
  ConnectedAppType["apns"] = "apns";
409
434
  ConnectedAppType["resend"] = "resend";
410
435
  ConnectedAppType["sendgrid"] = "sendgrid";
411
- ConnectedAppType["slack"] = "slack";
412
436
  ConnectedAppType["twilio"] = "twilio";
437
+ ConnectedAppType["github"] = "github";
438
+ ConnectedAppType["discord"] = "discord";
439
+ ConnectedAppType["slack"] = "slack";
413
440
  ConnectedAppType["x"] = "x";
414
441
  ConnectedAppType["youtube"] = "youtube";
415
442
  ConnectedAppType["tiktok"] = "tiktok";
416
443
  ConnectedAppType["instagram"] = "instagram";
417
444
  ConnectedAppType["facebook"] = "facebook";
418
- ConnectedAppType["github"] = "github";
419
445
  })(ConnectedAppType || (exports.ConnectedAppType = ConnectedAppType = {}));
420
446
  var ConnectedAppConnectionStatus;
421
447
  (function (ConnectedAppConnectionStatus) {
@@ -428,8 +454,15 @@ var IntegrationType;
428
454
  (function (IntegrationType) {
429
455
  IntegrationType["parraFeedbackFormBoard"] = "parra-feedback-form-board";
430
456
  IntegrationType["parraFeedItemVideoNotification"] = "parra-feed-item-video-notification";
457
+ IntegrationType["discordFeedbackForm"] = "discord-feedback-form";
458
+ IntegrationType["discordPurchaseCollection"] = "discord-purchase-collection";
459
+ IntegrationType["discordReleaseCollection"] = "discord-release-collection";
460
+ IntegrationType["discordUserCollection"] = "discord-user-collection";
461
+ IntegrationType["discordCommentReview"] = "discord-comment-review";
431
462
  IntegrationType["slackFeedbackForm"] = "slack-feedback-form";
463
+ IntegrationType["slackPurchaseCollection"] = "slack-purchase-collection";
432
464
  IntegrationType["slackReleaseCollection"] = "slack-release-collection";
465
+ IntegrationType["slackUserCollection"] = "slack-user-collection";
433
466
  IntegrationType["slackCommentReview"] = "slack-comment-review";
434
467
  IntegrationType["youtubeVideoFeed"] = "youtube-video-feed";
435
468
  IntegrationType["xReleaseCollection"] = "x-release-collection";
@@ -670,6 +703,10 @@ var ParraAPI = /** @class */ (function () {
670
703
  "content-type": "application/json",
671
704
  } }, options));
672
705
  };
706
+ this.listPurchasesForTenantUser = function (tenant_id, user_id, options) {
707
+ if (options === void 0) { options = {}; }
708
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/purchases"), __assign({ method: "get" }, options));
709
+ };
673
710
  this.createBillingSource = function (tenant_id, body, options) {
674
711
  if (options === void 0) { options = {}; }
675
712
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), __assign({ method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.450",
3
+ "version": "0.3.451",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",