@parra/parra-js-sdk 0.3.319 → 0.3.321

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.
@@ -496,6 +496,7 @@ export interface TenantUser {
496
496
  last_seen_at?: string | null;
497
497
  last_login_at?: string | null;
498
498
  has_password: boolean;
499
+ settings: object;
499
500
  properties: object;
500
501
  metadata: object;
501
502
  identities?: Array<Identity> | null;
@@ -802,6 +803,14 @@ export interface CreatorUpdateAttachmentStub {
802
803
  id: string;
803
804
  image?: ImageAssetStub | null;
804
805
  }
806
+ export declare enum CreatorUpdateVisibilityType {
807
+ public = "public",
808
+ private = "private"
809
+ }
810
+ export interface CreatorUpdateVisibility {
811
+ post_visibility: CreatorUpdateVisibilityType;
812
+ attachment_visibility?: CreatorUpdateVisibilityType | null;
813
+ }
805
814
  export declare enum CreatorUpdateChannelType {
806
815
  feed = "feed",
807
816
  notification = "notification"
@@ -838,6 +847,7 @@ export interface CreatorUpdate {
838
847
  sender?: CreatorUpdateSenderStub;
839
848
  template?: CreatorUpdateSenderStub;
840
849
  attachments: Array<CreatorUpdateAttachmentStub>;
850
+ visibility: CreatorUpdateVisibility;
841
851
  channels: Array<CreatorUpdateChannel>;
842
852
  }
843
853
  export interface CreatorUpdateCollectionResponse {
@@ -850,6 +860,8 @@ export interface CreatorUpdateCollectionResponse {
850
860
  export interface UpdateCreatorUpdateRequestBody {
851
861
  title?: string;
852
862
  body?: string;
863
+ post_visibility?: CreatorUpdateVisibilityType;
864
+ attachment_visibility?: CreatorUpdateVisibilityType;
853
865
  }
854
866
  export declare enum FeedItemType {
855
867
  youtubeVideo = "youtube_video",
@@ -2199,6 +2211,16 @@ export interface UpdateSettingsViewRequestBody {
2199
2211
  footer_label?: string | null;
2200
2212
  slug?: string;
2201
2213
  }
2214
+ export interface SettingsItemIntegerValue {
2215
+ value?: number | null;
2216
+ }
2217
+ export interface SettingsItemStringValue {
2218
+ value?: string | null;
2219
+ }
2220
+ export interface SettingsItemBooleanDataValue {
2221
+ value?: boolean | null;
2222
+ }
2223
+ export type SettingsItemValue = SettingsItemIntegerValue | SettingsItemStringValue | SettingsItemBooleanDataValue;
2202
2224
  export interface SettingsItemIntegerDataWithValue {
2203
2225
  default_value?: number | null;
2204
2226
  min_value?: number | null;
@@ -2838,6 +2860,11 @@ export interface ConnectedAppAppStoreConnectApiConnectionData {
2838
2860
  key_id: string;
2839
2861
  private_key: string;
2840
2862
  }
2863
+ export interface ConnectedApnsConnectionData {
2864
+ team_id: string;
2865
+ key_id: string;
2866
+ private_key: string;
2867
+ }
2841
2868
  export interface ConnectedAppResendConnectionData {
2842
2869
  api_key: string;
2843
2870
  }
@@ -2860,10 +2887,11 @@ export interface ConnectedAppXConnectionData {
2860
2887
  handle: string;
2861
2888
  name: string;
2862
2889
  }
2863
- export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
2890
+ export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
2864
2891
  export declare enum ConnectedAppType {
2865
2892
  parra = "parra",
2866
2893
  appStoreConnectApi = "app-store-connect-api",
2894
+ apns = "apns",
2867
2895
  resend = "resend",
2868
2896
  sendgrid = "sendgrid",
2869
2897
  slack = "slack",
@@ -2935,6 +2963,9 @@ export interface UpdateConnectedAppConnectionRequestBody {
2935
2963
  app_store_connect_api_issuer?: string;
2936
2964
  app_store_connect_api_key_id?: string;
2937
2965
  app_store_connect_api_private_key?: string;
2966
+ apns_team_id?: string;
2967
+ apns_key_id?: string;
2968
+ apns_private_key?: string;
2938
2969
  twilio_account_sid?: string;
2939
2970
  twilio_auth_token?: string;
2940
2971
  twilio_messaging_service_sid?: string;
@@ -2947,6 +2978,11 @@ export interface CreateAppStoreConnectConnectedAppConnectionRequestBody {
2947
2978
  key_id: string;
2948
2979
  private_key: string;
2949
2980
  }
2981
+ export interface CreateApnsConnectedAppConnectionRequestBody {
2982
+ team_id: string;
2983
+ key_id: string;
2984
+ private_key: string;
2985
+ }
2950
2986
  export interface CreateResendConnectedAppConnectionRequestBody {
2951
2987
  api_key: string;
2952
2988
  }
@@ -2969,7 +3005,7 @@ export interface CreateXConnectedAppConnectionRequestBody {
2969
3005
  code: string;
2970
3006
  code_verifier: string;
2971
3007
  }
2972
- export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
3008
+ export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
2973
3009
  export declare enum IntegrationType {
2974
3010
  parraFeedbackFormBoard = "parra-feedback-form-board",
2975
3011
  slackFeedbackForm = "slack-feedback-form",
@@ -3798,6 +3834,7 @@ declare class ParraAPI {
3798
3834
  }, options?: Options) => Promise<Array<SettingsView>>;
3799
3835
  updateSettingsViewForTenant: (tenant_id: string, settings_view_id: string, body?: UpdateSettingsViewRequestBody, options?: Options) => Promise<SettingsView>;
3800
3836
  deleteSettingsViewForTenant: (tenant_id: string, settings_view_id: string, options?: Options) => Promise<Response>;
3837
+ updateSettingsItemValueForTenantUser: (tenant_id: string, user_id: string, settings_item_id_or_key: string, body?: SettingsItemValue, options?: Options) => Promise<SettingsItemValue>;
3801
3838
  listSettingsViewsForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserSettingsView>>;
3802
3839
  getSettingsViewForTenantUser: (tenant_id: string, user_id: string, settings_view_id: string, options?: Options) => Promise<UserSettingsView>;
3803
3840
  createSettingsGroupForSettingsView: (tenant_id: string, settings_view_id: string, body: CreateSettingsGroupRequestBody, options?: Options) => Promise<SettingsGroup>;
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.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = 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.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = 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 = void 0;
14
+ exports.MailTemplateVersionStatus = exports.MailTemplateType = 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.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.CreatorUpdateChannelType = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateStatus = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = 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 = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -125,6 +125,11 @@ var CreatorUpdateStatus;
125
125
  CreatorUpdateStatus["draft"] = "draft";
126
126
  CreatorUpdateStatus["published"] = "published";
127
127
  })(CreatorUpdateStatus || (exports.CreatorUpdateStatus = CreatorUpdateStatus = {}));
128
+ var CreatorUpdateVisibilityType;
129
+ (function (CreatorUpdateVisibilityType) {
130
+ CreatorUpdateVisibilityType["public"] = "public";
131
+ CreatorUpdateVisibilityType["private"] = "private";
132
+ })(CreatorUpdateVisibilityType || (exports.CreatorUpdateVisibilityType = CreatorUpdateVisibilityType = {}));
128
133
  var CreatorUpdateChannelType;
129
134
  (function (CreatorUpdateChannelType) {
130
135
  CreatorUpdateChannelType["feed"] = "feed";
@@ -298,6 +303,7 @@ var ConnectedAppType;
298
303
  (function (ConnectedAppType) {
299
304
  ConnectedAppType["parra"] = "parra";
300
305
  ConnectedAppType["appStoreConnectApi"] = "app-store-connect-api";
306
+ ConnectedAppType["apns"] = "apns";
301
307
  ConnectedAppType["resend"] = "resend";
302
308
  ConnectedAppType["sendgrid"] = "sendgrid";
303
309
  ConnectedAppType["slack"] = "slack";
@@ -1105,6 +1111,12 @@ var ParraAPI = /** @class */ (function () {
1105
1111
  if (options === void 0) { options = {}; }
1106
1112
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "delete" }, options));
1107
1113
  };
1114
+ this.updateSettingsItemValueForTenantUser = function (tenant_id, user_id, settings_item_id_or_key, body, options) {
1115
+ if (options === void 0) { options = {}; }
1116
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/items/").concat(settings_item_id_or_key, "/value"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1117
+ "content-type": "application/json",
1118
+ } }, options));
1119
+ };
1108
1120
  this.listSettingsViewsForTenantUser = function (tenant_id, user_id, options) {
1109
1121
  if (options === void 0) { options = {}; }
1110
1122
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views"), __assign({ method: "get" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.319",
3
+ "version": "0.3.321",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",