@parra/parra-js-sdk 0.3.442 → 0.3.444
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.
- package/dist/ParraAPI.d.ts +12 -5
- package/dist/ParraAPI.js +10 -5
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -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;
|
@@ -4042,8 +4047,8 @@ export interface TenantUserMetricsQuery {
|
|
4042
4047
|
metric: TenantUserMetricType;
|
4043
4048
|
}
|
4044
4049
|
export interface TenantUserMetricsData {
|
4045
|
-
date
|
4046
|
-
value
|
4050
|
+
date: string;
|
4051
|
+
value: number;
|
4047
4052
|
}
|
4048
4053
|
export interface TenantUserMetrics {
|
4049
4054
|
message?: string | null;
|
@@ -4807,8 +4812,10 @@ declare class ParraAPI {
|
|
4807
4812
|
$expand?: string;
|
4808
4813
|
$search?: string;
|
4809
4814
|
}, options?: Options) => Promise<TemplateTagCollectionResponse>;
|
4810
|
-
createBoardForTenantById: (tenant_id: string, body
|
4811
|
-
listBoardsForTenantById: (tenant_id: string,
|
4815
|
+
createBoardForTenantById: (tenant_id: string, body: CreateBoardRequestBody, options?: Options) => Promise<Board>;
|
4816
|
+
listBoardsForTenantById: (tenant_id: string, query?: {
|
4817
|
+
type?: string;
|
4818
|
+
}, options?: Options) => Promise<Array<Board>>;
|
4812
4819
|
createTicketForBoard: (tenant_id: string, board_id: string, body: CreateTicketRequestBody, options?: Options) => Promise<Ticket>;
|
4813
4820
|
paginateTicketsForBoard: (tenant_id: string, board_id: string, query?: {
|
4814
4821
|
$select?: string;
|
@@ -5038,7 +5045,7 @@ declare class ParraAPI {
|
|
5038
5045
|
deleteRoleById: (tenant_id: string, role_id: string, options?: Options) => Promise<Response>;
|
5039
5046
|
addRolesToUser: (tenant_id: string, user_id: string, body?: AddRolesToUserRequestBody, options?: Options) => Promise<Response>;
|
5040
5047
|
removeRoleFromUser: (tenant_id: string, user_id: string, user_role_id: string, options?: Options) => Promise<Response>;
|
5041
|
-
|
5048
|
+
getUserMetricsForTenantById: (tenant_id: string, query?: {
|
5042
5049
|
start_at?: string;
|
5043
5050
|
end_at?: string;
|
5044
5051
|
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.
|
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.
|
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
|
};
|