@parra/parra-js-sdk 0.3.449 → 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;
@@ -3187,6 +3242,33 @@ export interface LinkCollectionResponse {
3187
3242
  data: Array<Link>;
3188
3243
  }
3189
3244
  export interface CreateLinkRequestBody {
3245
+ domain: string;
3246
+ key: string;
3247
+ url: string;
3248
+ utm_source?: string | null;
3249
+ utm_medium?: string | null;
3250
+ utm_campaign?: string | null;
3251
+ utm_term?: string | null;
3252
+ utm_content?: string | null;
3253
+ proxy?: boolean;
3254
+ rewrite?: boolean;
3255
+ title?: string;
3256
+ description?: string;
3257
+ }
3258
+ export interface UpdateLinkRequestBody {
3259
+ url?: string;
3260
+ short_link?: string;
3261
+ title?: string;
3262
+ description?: string;
3263
+ utm_source?: string | null;
3264
+ utm_medium?: string | null;
3265
+ utm_campaign?: string | null;
3266
+ utm_term?: string | null;
3267
+ utm_content?: string | null;
3268
+ proxy?: boolean;
3269
+ rewrite?: boolean;
3270
+ }
3271
+ export interface CreateClickRequestBody {
3190
3272
  url: string;
3191
3273
  continent: string;
3192
3274
  country: string;
@@ -3211,19 +3293,6 @@ export interface CreateLinkRequestBody {
3211
3293
  ip: string;
3212
3294
  qr: boolean;
3213
3295
  }
3214
- export interface UpdateLinkRequestBody {
3215
- url?: string;
3216
- short_link?: string;
3217
- title?: string;
3218
- description?: string;
3219
- utm_source?: string | null;
3220
- utm_medium?: string | null;
3221
- utm_campaign?: string | null;
3222
- utm_term?: string | null;
3223
- utm_content?: string | null;
3224
- proxy?: boolean;
3225
- rewrite?: boolean;
3226
- }
3227
3296
  export interface LoginTenantUserRequestBody {
3228
3297
  anonymous_token?: string | null;
3229
3298
  }
@@ -3766,25 +3835,30 @@ export interface ConnectedAppTwilioConnectionData {
3766
3835
  messaging_service_sid?: string | null;
3767
3836
  from_number?: string | null;
3768
3837
  }
3838
+ export interface ConnectedAppDiscordConnectionData {
3839
+ guild_id: string;
3840
+ permissions: number;
3841
+ }
3769
3842
  export interface ConnectedAppXConnectionData {
3770
3843
  handle: string;
3771
3844
  name: string;
3772
3845
  }
3773
- export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
3846
+ export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppDiscordConnectionData | ConnectedAppXConnectionData;
3774
3847
  export declare enum ConnectedAppType {
3775
3848
  parra = "parra",
3776
3849
  appStoreConnectApi = "app-store-connect-api",
3777
3850
  apns = "apns",
3778
3851
  resend = "resend",
3779
3852
  sendgrid = "sendgrid",
3780
- slack = "slack",
3781
3853
  twilio = "twilio",
3854
+ github = "github",
3855
+ discord = "discord",
3856
+ slack = "slack",
3782
3857
  x = "x",
3783
3858
  youtube = "youtube",
3784
3859
  tiktok = "tiktok",
3785
3860
  instagram = "instagram",
3786
- facebook = "facebook",
3787
- github = "github"
3861
+ facebook = "facebook"
3788
3862
  }
3789
3863
  export declare enum ConnectedAppConnectionStatus {
3790
3864
  pending = "pending",
@@ -3875,6 +3949,11 @@ export interface CreateSendgridConnectedAppConnectionRequestBody {
3875
3949
  export interface CreateSlackConnectedAppConnectionRequestBody {
3876
3950
  code: string;
3877
3951
  }
3952
+ export interface CreateDiscordConnectedAppConnectionRequestBody {
3953
+ code: string;
3954
+ guild_id: string;
3955
+ permissions: number;
3956
+ }
3878
3957
  export interface CreateYoutubeConnectedAppConnectionRequestBody {
3879
3958
  code: string;
3880
3959
  }
@@ -3888,12 +3967,19 @@ export interface CreateXConnectedAppConnectionRequestBody {
3888
3967
  code: string;
3889
3968
  code_verifier: string;
3890
3969
  }
3891
- export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
3970
+ export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateDiscordConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
3892
3971
  export declare enum IntegrationType {
3893
3972
  parraFeedbackFormBoard = "parra-feedback-form-board",
3894
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",
3895
3979
  slackFeedbackForm = "slack-feedback-form",
3980
+ slackPurchaseCollection = "slack-purchase-collection",
3896
3981
  slackReleaseCollection = "slack-release-collection",
3982
+ slackUserCollection = "slack-user-collection",
3897
3983
  slackCommentReview = "slack-comment-review",
3898
3984
  youtubeVideoFeed = "youtube-video-feed",
3899
3985
  xReleaseCollection = "x-release-collection"
@@ -3941,6 +4027,74 @@ export interface SlackReleaseCollectionIntegrationConnectionData {
3941
4027
  channel: string;
3942
4028
  message: string;
3943
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
+ }
3944
4098
  export interface UpdateSlackCommentReviewIntegrationConnectionData {
3945
4099
  connected_app_connection_id: string;
3946
4100
  channel: string;
@@ -3965,7 +4119,7 @@ export interface XReleaseCollectionIntegrationConnectionData {
3965
4119
  connected_app_connection_id: string;
3966
4120
  text: string;
3967
4121
  }
3968
- 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;
3969
4123
  export interface IntegrationConnection {
3970
4124
  id: string;
3971
4125
  created_at: string;
@@ -4007,8 +4161,8 @@ export interface TenantIntegration {
4007
4161
  export interface UpdateIntegrationConnectionRequestBody {
4008
4162
  active?: boolean;
4009
4163
  }
4010
- export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateParraFeedItemVideoNotificationIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateSlackCommentReviewIntegrationConnectionData | UpdateYoutubeVideoFeedIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
4011
- 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;
4012
4166
  export interface TenantInvitationRequestBody {
4013
4167
  name: string;
4014
4168
  email: string;
@@ -4549,6 +4703,7 @@ declare class ParraAPI {
4549
4703
  createEntitlementForTenantUserById: (tenant_id: string, user_id: string, body: CreateUserEntitlementRequestBody, options?: Options) => Promise<Response>;
4550
4704
  listEntitlementsForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserEntitlement>>;
4551
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>>;
4552
4707
  createBillingSource: (tenant_id: string, body: CreateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
4553
4708
  listBillingSources: (tenant_id: string, options?: Options) => Promise<Array<BillingSource>>;
4554
4709
  getBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
@@ -4978,7 +5133,7 @@ declare class ParraAPI {
4978
5133
  createLinkForTenantById: (tenant_id: string, body: CreateLinkRequestBody, options?: Options) => Promise<Link>;
4979
5134
  updateLinkByIdForTenantById: (tenant_id: string, link_id: string, body?: UpdateLinkRequestBody, options?: Options) => Promise<Link>;
4980
5135
  deleteLinkByIdForTenantById: (tenant_id: string, link_id: string, options?: Options) => Promise<Response>;
4981
- recordClickForLink: (tenant_id: string, link_id: string, body: CreateLinkRequestBody, options?: Options) => Promise<Response>;
5136
+ recordClickForLink: (tenant_id: string, link_id: string, body: CreateClickRequestBody, options?: Options) => Promise<Response>;
4982
5137
  loginUserForTenant: (tenant_id: string, body?: LoginTenantUserRequestBody, options?: Options) => Promise<TenantUserInfo>;
4983
5138
  getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
4984
5139
  logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<AuthLogoutResponseBody>;
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.449",
3
+ "version": "0.3.451",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",