@parra/parra-js-sdk 0.3.23 → 0.3.24
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 +61 -3
- package/dist/ParraAPI.js +13 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -43,17 +43,28 @@ export interface TenantUserStub {
|
|
|
43
43
|
updated_at: string;
|
|
44
44
|
deleted_at?: string | null;
|
|
45
45
|
tenant_id: string;
|
|
46
|
-
identity: string;
|
|
47
46
|
name?: string | null;
|
|
47
|
+
avatar?: ImageAssetStub;
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
49
|
+
export interface TenantUserCollectionStub {
|
|
50
50
|
id: string;
|
|
51
51
|
created_at: string;
|
|
52
52
|
updated_at: string;
|
|
53
53
|
deleted_at?: string | null;
|
|
54
54
|
tenant_id: string;
|
|
55
|
+
name?: string | null;
|
|
56
|
+
avatar?: ImageAssetStub;
|
|
55
57
|
identity: string;
|
|
58
|
+
}
|
|
59
|
+
export interface TenantUser {
|
|
60
|
+
id: string;
|
|
61
|
+
created_at: string;
|
|
62
|
+
updated_at: string;
|
|
63
|
+
deleted_at?: string | null;
|
|
64
|
+
tenant_id: string;
|
|
56
65
|
name?: string | null;
|
|
66
|
+
avatar?: ImageAssetStub;
|
|
67
|
+
identity: string;
|
|
57
68
|
properties: object;
|
|
58
69
|
}
|
|
59
70
|
export interface UserInfoResponse {
|
|
@@ -854,6 +865,44 @@ export interface TicketCollectionResponse {
|
|
|
854
865
|
total_count: number;
|
|
855
866
|
data: Array<Ticket>;
|
|
856
867
|
}
|
|
868
|
+
export declare enum UserNoteStatus {
|
|
869
|
+
pending = "pending",
|
|
870
|
+
accepted = "accepted",
|
|
871
|
+
rejected = "rejected"
|
|
872
|
+
}
|
|
873
|
+
export interface UpdateUserNoteRequestBody {
|
|
874
|
+
title: string;
|
|
875
|
+
type: string;
|
|
876
|
+
description?: string | null;
|
|
877
|
+
}
|
|
878
|
+
export interface CreateUserNoteRequestBody {
|
|
879
|
+
title: string;
|
|
880
|
+
type: string;
|
|
881
|
+
description?: string | null;
|
|
882
|
+
}
|
|
883
|
+
export interface UserNote {
|
|
884
|
+
id: string;
|
|
885
|
+
created_at: string;
|
|
886
|
+
updated_at: string;
|
|
887
|
+
deleted_at?: string | null;
|
|
888
|
+
title: string;
|
|
889
|
+
type: string;
|
|
890
|
+
description?: string | null;
|
|
891
|
+
tenant_id: string;
|
|
892
|
+
user_id: string;
|
|
893
|
+
ticket_id?: string | null;
|
|
894
|
+
status: UserNoteStatus;
|
|
895
|
+
accepted_at?: string | null;
|
|
896
|
+
rejected_at?: string | null;
|
|
897
|
+
user?: TenantUserStub;
|
|
898
|
+
}
|
|
899
|
+
export interface UserNoteCollectionResponse {
|
|
900
|
+
page: number;
|
|
901
|
+
page_count: number;
|
|
902
|
+
page_size: number;
|
|
903
|
+
total_count: number;
|
|
904
|
+
data: Array<UserNote>;
|
|
905
|
+
}
|
|
857
906
|
export declare enum ApplicationType {
|
|
858
907
|
ios = "ios"
|
|
859
908
|
}
|
|
@@ -1110,7 +1159,7 @@ export interface TenantUserCollectionResponse {
|
|
|
1110
1159
|
page_count: number;
|
|
1111
1160
|
page_size: number;
|
|
1112
1161
|
total_count: number;
|
|
1113
|
-
data: Array<
|
|
1162
|
+
data: Array<TenantUserCollectionStub>;
|
|
1114
1163
|
}
|
|
1115
1164
|
export interface UpdateTenantRequestBody {
|
|
1116
1165
|
name: string;
|
|
@@ -1277,6 +1326,15 @@ declare class ParraAPI {
|
|
|
1277
1326
|
$expand?: string;
|
|
1278
1327
|
$search?: string;
|
|
1279
1328
|
}) => Promise<TicketCollectionResponse>;
|
|
1329
|
+
paginateUserNotesForBoard: (tenant_id: string, board_id: string, query?: {
|
|
1330
|
+
$select?: string;
|
|
1331
|
+
$top?: number;
|
|
1332
|
+
$skip?: number;
|
|
1333
|
+
$orderby?: string;
|
|
1334
|
+
$filter?: string;
|
|
1335
|
+
$expand?: string;
|
|
1336
|
+
$search?: string;
|
|
1337
|
+
}) => Promise<UserNoteCollectionResponse>;
|
|
1280
1338
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1281
1339
|
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1282
1340
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
3
|
+
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.UserNoteStatus = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
4
4
|
var Interval;
|
|
5
5
|
(function (Interval) {
|
|
6
6
|
Interval["monthly"] = "monthly";
|
|
@@ -102,6 +102,12 @@ var TicketStatus;
|
|
|
102
102
|
TicketStatus["closed"] = "closed";
|
|
103
103
|
TicketStatus["archived"] = "archived";
|
|
104
104
|
})(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
|
|
105
|
+
var UserNoteStatus;
|
|
106
|
+
(function (UserNoteStatus) {
|
|
107
|
+
UserNoteStatus["pending"] = "pending";
|
|
108
|
+
UserNoteStatus["accepted"] = "accepted";
|
|
109
|
+
UserNoteStatus["rejected"] = "rejected";
|
|
110
|
+
})(UserNoteStatus || (exports.UserNoteStatus = UserNoteStatus = {}));
|
|
105
111
|
var ApplicationType;
|
|
106
112
|
(function (ApplicationType) {
|
|
107
113
|
ApplicationType["ios"] = "ios";
|
|
@@ -471,6 +477,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
471
477
|
query: query,
|
|
472
478
|
});
|
|
473
479
|
};
|
|
480
|
+
this.paginateUserNotesForBoard = function (tenant_id, board_id, query) {
|
|
481
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
|
|
482
|
+
method: "get",
|
|
483
|
+
query: query,
|
|
484
|
+
});
|
|
485
|
+
};
|
|
474
486
|
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
475
487
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
476
488
|
method: "post",
|