@parra/parra-js-sdk 0.3.319 → 0.3.320

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;
@@ -2199,6 +2200,16 @@ export interface UpdateSettingsViewRequestBody {
2199
2200
  footer_label?: string | null;
2200
2201
  slug?: string;
2201
2202
  }
2203
+ export interface SettingsItemIntegerValue {
2204
+ value?: number | null;
2205
+ }
2206
+ export interface SettingsItemStringValue {
2207
+ value?: string | null;
2208
+ }
2209
+ export interface SettingsItemBooleanDataValue {
2210
+ value?: boolean | null;
2211
+ }
2212
+ export type SettingsItemValue = SettingsItemIntegerValue | SettingsItemStringValue | SettingsItemBooleanDataValue;
2202
2213
  export interface SettingsItemIntegerDataWithValue {
2203
2214
  default_value?: number | null;
2204
2215
  min_value?: number | null;
@@ -2838,6 +2849,11 @@ export interface ConnectedAppAppStoreConnectApiConnectionData {
2838
2849
  key_id: string;
2839
2850
  private_key: string;
2840
2851
  }
2852
+ export interface ConnectedApnsConnectionData {
2853
+ team_id: string;
2854
+ key_id: string;
2855
+ private_key: string;
2856
+ }
2841
2857
  export interface ConnectedAppResendConnectionData {
2842
2858
  api_key: string;
2843
2859
  }
@@ -2860,10 +2876,11 @@ export interface ConnectedAppXConnectionData {
2860
2876
  handle: string;
2861
2877
  name: string;
2862
2878
  }
2863
- export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
2879
+ export type ConnectedAppConnectionData = ConnectedAppAppStoreConnectApiConnectionData | ConnectedApnsConnectionData | ConnectedAppResendConnectionData | ConnectedAppSlackConnectionData | ConnectedAppSendgridConnectionData | ConnectedAppTwilioConnectionData | ConnectedAppXConnectionData;
2864
2880
  export declare enum ConnectedAppType {
2865
2881
  parra = "parra",
2866
2882
  appStoreConnectApi = "app-store-connect-api",
2883
+ apns = "apns",
2867
2884
  resend = "resend",
2868
2885
  sendgrid = "sendgrid",
2869
2886
  slack = "slack",
@@ -2935,6 +2952,9 @@ export interface UpdateConnectedAppConnectionRequestBody {
2935
2952
  app_store_connect_api_issuer?: string;
2936
2953
  app_store_connect_api_key_id?: string;
2937
2954
  app_store_connect_api_private_key?: string;
2955
+ apns_team_id?: string;
2956
+ apns_key_id?: string;
2957
+ apns_private_key?: string;
2938
2958
  twilio_account_sid?: string;
2939
2959
  twilio_auth_token?: string;
2940
2960
  twilio_messaging_service_sid?: string;
@@ -2947,6 +2967,11 @@ export interface CreateAppStoreConnectConnectedAppConnectionRequestBody {
2947
2967
  key_id: string;
2948
2968
  private_key: string;
2949
2969
  }
2970
+ export interface CreateApnsConnectedAppConnectionRequestBody {
2971
+ team_id: string;
2972
+ key_id: string;
2973
+ private_key: string;
2974
+ }
2950
2975
  export interface CreateResendConnectedAppConnectionRequestBody {
2951
2976
  api_key: string;
2952
2977
  }
@@ -2969,7 +2994,7 @@ export interface CreateXConnectedAppConnectionRequestBody {
2969
2994
  code: string;
2970
2995
  code_verifier: string;
2971
2996
  }
2972
- export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
2997
+ export type CreateConnectedAppConnectionRequestBody = CreateAppStoreConnectConnectedAppConnectionRequestBody | CreateApnsConnectedAppConnectionRequestBody | CreateResendConnectedAppConnectionRequestBody | CreateSendgridConnectedAppConnectionRequestBody | CreateSlackConnectedAppConnectionRequestBody | CreateYoutubeConnectedAppConnectionRequestBody | CreateTwilioConnectedAppConnectionRequestBody | CreateXConnectedAppConnectionRequestBody;
2973
2998
  export declare enum IntegrationType {
2974
2999
  parraFeedbackFormBoard = "parra-feedback-form-board",
2975
3000
  slackFeedbackForm = "slack-feedback-form",
@@ -3798,6 +3823,7 @@ declare class ParraAPI {
3798
3823
  }, options?: Options) => Promise<Array<SettingsView>>;
3799
3824
  updateSettingsViewForTenant: (tenant_id: string, settings_view_id: string, body?: UpdateSettingsViewRequestBody, options?: Options) => Promise<SettingsView>;
3800
3825
  deleteSettingsViewForTenant: (tenant_id: string, settings_view_id: string, options?: Options) => Promise<Response>;
3826
+ updateSettingsItemValueForTenantUser: (tenant_id: string, user_id: string, settings_item_id_or_key: string, body?: SettingsItemValue, options?: Options) => Promise<SettingsItemValue>;
3801
3827
  listSettingsViewsForTenantUser: (tenant_id: string, user_id: string, options?: Options) => Promise<Array<UserSettingsView>>;
3802
3828
  getSettingsViewForTenantUser: (tenant_id: string, user_id: string, settings_view_id: string, options?: Options) => Promise<UserSettingsView>;
3803
3829
  createSettingsGroupForSettingsView: (tenant_id: string, settings_view_id: string, body: CreateSettingsGroupRequestBody, options?: Options) => Promise<SettingsGroup>;
package/dist/ParraAPI.js CHANGED
@@ -298,6 +298,7 @@ var ConnectedAppType;
298
298
  (function (ConnectedAppType) {
299
299
  ConnectedAppType["parra"] = "parra";
300
300
  ConnectedAppType["appStoreConnectApi"] = "app-store-connect-api";
301
+ ConnectedAppType["apns"] = "apns";
301
302
  ConnectedAppType["resend"] = "resend";
302
303
  ConnectedAppType["sendgrid"] = "sendgrid";
303
304
  ConnectedAppType["slack"] = "slack";
@@ -1105,6 +1106,12 @@ var ParraAPI = /** @class */ (function () {
1105
1106
  if (options === void 0) { options = {}; }
1106
1107
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "delete" }, options));
1107
1108
  };
1109
+ this.updateSettingsItemValueForTenantUser = function (tenant_id, user_id, settings_item_id_or_key, body, options) {
1110
+ if (options === void 0) { options = {}; }
1111
+ 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: {
1112
+ "content-type": "application/json",
1113
+ } }, options));
1114
+ };
1108
1115
  this.listSettingsViewsForTenantUser = function (tenant_id, user_id, options) {
1109
1116
  if (options === void 0) { options = {}; }
1110
1117
  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.320",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",