@parra/parra-js-sdk 0.3.443 → 0.3.445

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.
@@ -2327,6 +2327,10 @@ export interface TemplateTagCollectionResponse {
2327
2327
  data: Array<TemplateTag>;
2328
2328
  metadata?: TemplateTagCollectionMetadata;
2329
2329
  }
2330
+ export declare enum BoardType {
2331
+ product = "product",
2332
+ content = "content"
2333
+ }
2330
2334
  export interface UpdateBoardRequestBody {
2331
2335
  name: string;
2332
2336
  description?: string | null;
@@ -2334,6 +2338,7 @@ export interface UpdateBoardRequestBody {
2334
2338
  export interface CreateBoardRequestBody {
2335
2339
  name: string;
2336
2340
  description?: string | null;
2341
+ type: BoardType;
2337
2342
  }
2338
2343
  export interface UpdateBoardComponentRequestBody {
2339
2344
  type: string;
@@ -4074,6 +4079,7 @@ export interface UserDevice {
4074
4079
  ad_id?: string | null;
4075
4080
  manufacturer?: string | null;
4076
4081
  model?: string | null;
4082
+ has_push_token: boolean;
4077
4083
  }
4078
4084
  export type UserDeviceListResponse = Array<UserDevice>;
4079
4085
  export interface UserProperties {
@@ -4807,8 +4813,10 @@ declare class ParraAPI {
4807
4813
  $expand?: string;
4808
4814
  $search?: string;
4809
4815
  }, options?: Options) => Promise<TemplateTagCollectionResponse>;
4810
- createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody, options?: Options) => Promise<Board>;
4811
- listBoardsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<Board>>;
4816
+ createBoardForTenantById: (tenant_id: string, body: CreateBoardRequestBody, options?: Options) => Promise<Board>;
4817
+ listBoardsForTenantById: (tenant_id: string, query?: {
4818
+ type?: string;
4819
+ }, options?: Options) => Promise<Array<Board>>;
4812
4820
  createTicketForBoard: (tenant_id: string, board_id: string, body: CreateTicketRequestBody, options?: Options) => Promise<Ticket>;
4813
4821
  paginateTicketsForBoard: (tenant_id: string, board_id: string, query?: {
4814
4822
  $select?: string;
@@ -5038,7 +5046,7 @@ declare class ParraAPI {
5038
5046
  deleteRoleById: (tenant_id: string, role_id: string, options?: Options) => Promise<Response>;
5039
5047
  addRolesToUser: (tenant_id: string, user_id: string, body?: AddRolesToUserRequestBody, options?: Options) => Promise<Response>;
5040
5048
  removeRoleFromUser: (tenant_id: string, user_id: string, user_role_id: string, options?: Options) => Promise<Response>;
5041
- getUsersMetricsForTenantById: (tenant_id: string, query?: {
5049
+ getUserMetricsForTenantById: (tenant_id: string, query?: {
5042
5050
  start_at?: string;
5043
5051
  end_at?: string;
5044
5052
  metric?: string;
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.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.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 = void 0;
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;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -287,6 +287,11 @@ var TemplateType;
287
287
  (function (TemplateType) {
288
288
  TemplateType["question"] = "question";
289
289
  })(TemplateType || (exports.TemplateType = TemplateType = {}));
290
+ var BoardType;
291
+ (function (BoardType) {
292
+ BoardType["product"] = "product";
293
+ BoardType["content"] = "content";
294
+ })(BoardType || (exports.BoardType = BoardType = {}));
290
295
  var TicketLinkType;
291
296
  (function (TicketLinkType) {
292
297
  TicketLinkType["notion"] = "notion";
@@ -1287,9 +1292,9 @@ var ParraAPI = /** @class */ (function () {
1287
1292
  "content-type": "application/json",
1288
1293
  } }, options));
1289
1294
  };
1290
- this.listBoardsForTenantById = function (tenant_id, options) {
1295
+ this.listBoardsForTenantById = function (tenant_id, query, options) {
1291
1296
  if (options === void 0) { options = {}; }
1292
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "get" }, options));
1297
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "get", query: query }, options));
1293
1298
  };
1294
1299
  this.createTicketForBoard = function (tenant_id, board_id, body, options) {
1295
1300
  if (options === void 0) { options = {}; }
@@ -1989,7 +1994,7 @@ var ParraAPI = /** @class */ (function () {
1989
1994
  if (options === void 0) { options = {}; }
1990
1995
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles/").concat(user_role_id), __assign({ method: "delete" }, options));
1991
1996
  };
1992
- this.getUsersMetricsForTenantById = function (tenant_id, query, options) {
1997
+ this.getUserMetricsForTenantById = function (tenant_id, query, options) {
1993
1998
  if (options === void 0) { options = {}; }
1994
1999
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/metrics"), __assign({ method: "get", query: query }, options));
1995
2000
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.443",
3
+ "version": "0.3.445",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",