@parra/parra-js-sdk 0.3.236 → 0.3.238
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 +33 -25
- package/dist/ParraAPI.js +4 -0
- package/package.json +4 -4
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -604,6 +604,30 @@ export interface BillingPortalSession {
|
|
|
604
604
|
export interface CreateSubscriberRequestBody {
|
|
605
605
|
email: string;
|
|
606
606
|
}
|
|
607
|
+
export interface SubmitFeedbackFormResponseBody {
|
|
608
|
+
}
|
|
609
|
+
export interface FeedbackFormSubmission {
|
|
610
|
+
id: string;
|
|
611
|
+
created_at: string;
|
|
612
|
+
updated_at: string;
|
|
613
|
+
deleted_at?: string | null;
|
|
614
|
+
feedback_form_id: string;
|
|
615
|
+
user_id: string;
|
|
616
|
+
data: SubmitFeedbackFormResponseBody;
|
|
617
|
+
}
|
|
618
|
+
export interface CollectionResponse {
|
|
619
|
+
page: number;
|
|
620
|
+
page_count: number;
|
|
621
|
+
page_size: number;
|
|
622
|
+
total_count: number;
|
|
623
|
+
}
|
|
624
|
+
export interface FeedbackFormSubmissionCollectionResponse {
|
|
625
|
+
page: number;
|
|
626
|
+
page_count: number;
|
|
627
|
+
page_size: number;
|
|
628
|
+
total_count: number;
|
|
629
|
+
data: Array<FeedbackFormSubmission>;
|
|
630
|
+
}
|
|
607
631
|
export declare enum FeedbackFormFieldType {
|
|
608
632
|
text = "text",
|
|
609
633
|
input = "input",
|
|
@@ -650,8 +674,6 @@ export interface FeedbackFormDataStub {
|
|
|
650
674
|
deleted_at?: string | null;
|
|
651
675
|
data: FeedbackFormData;
|
|
652
676
|
}
|
|
653
|
-
export interface SubmitFeedbackFormResponseBody {
|
|
654
|
-
}
|
|
655
677
|
export declare enum QuestionType {
|
|
656
678
|
choice = "choice",
|
|
657
679
|
checkbox = "checkbox",
|
|
@@ -923,12 +945,6 @@ export interface Question {
|
|
|
923
945
|
answer?: Answer;
|
|
924
946
|
metrics?: QuestionMetrics;
|
|
925
947
|
}
|
|
926
|
-
export interface CollectionResponse {
|
|
927
|
-
page: number;
|
|
928
|
-
page_count: number;
|
|
929
|
-
page_size: number;
|
|
930
|
-
total_count: number;
|
|
931
|
-
}
|
|
932
948
|
export interface QuestionCollectionResponse {
|
|
933
949
|
page: number;
|
|
934
950
|
page_count: number;
|
|
@@ -1009,22 +1025,6 @@ export interface FeedbackFormResponse {
|
|
|
1009
1025
|
description?: string | null;
|
|
1010
1026
|
data: FeedbackFormData;
|
|
1011
1027
|
}
|
|
1012
|
-
export interface FeedbackFormSubmission {
|
|
1013
|
-
id: string;
|
|
1014
|
-
created_at: string;
|
|
1015
|
-
updated_at: string;
|
|
1016
|
-
deleted_at?: string | null;
|
|
1017
|
-
feedback_form_id: string;
|
|
1018
|
-
user_id: string;
|
|
1019
|
-
data: SubmitFeedbackFormResponseBody;
|
|
1020
|
-
}
|
|
1021
|
-
export interface FeedbackFormSubmissionCollectionResponse {
|
|
1022
|
-
page: number;
|
|
1023
|
-
page_count: number;
|
|
1024
|
-
page_size: number;
|
|
1025
|
-
total_count: number;
|
|
1026
|
-
data: Array<FeedbackFormSubmission>;
|
|
1027
|
-
}
|
|
1028
1028
|
export interface UpdateAnalyticEventTypeRequestBody {
|
|
1029
1029
|
description?: string | null;
|
|
1030
1030
|
}
|
|
@@ -2520,7 +2520,6 @@ export interface UpdateTenantUserRequestBody {
|
|
|
2520
2520
|
first_name?: string | null;
|
|
2521
2521
|
last_name?: string | null;
|
|
2522
2522
|
properties?: object | null;
|
|
2523
|
-
metadata?: object | null;
|
|
2524
2523
|
}
|
|
2525
2524
|
export interface UserDevice {
|
|
2526
2525
|
id: string;
|
|
@@ -2957,6 +2956,15 @@ declare class ParraAPI {
|
|
|
2957
2956
|
getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
|
|
2958
2957
|
createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
|
|
2959
2958
|
createSubscriberForAudienceById: (audience_id: string, body: CreateSubscriberRequestBody, options?: Options) => Promise<Response>;
|
|
2959
|
+
paginateFeedbackFormResponsesForTenantUser: (tenant_id: string, user_id: string, query?: {
|
|
2960
|
+
$select?: string;
|
|
2961
|
+
$top?: number;
|
|
2962
|
+
$skip?: number;
|
|
2963
|
+
$orderby?: string;
|
|
2964
|
+
$filter?: string;
|
|
2965
|
+
$expand?: string;
|
|
2966
|
+
$search?: string;
|
|
2967
|
+
}, options?: Options) => Promise<FeedbackFormSubmissionCollectionResponse>;
|
|
2960
2968
|
getFormById: (feedback_form_id: string, options?: Options) => Promise<FeedbackFormDataStub>;
|
|
2961
2969
|
submitFormById: (feedback_form_id: string, body?: SubmitFeedbackFormResponseBody, options?: Options) => Promise<Response>;
|
|
2962
2970
|
createQuestion: (body: CreateQuestionRequestBody, options?: Options) => Promise<Question>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -444,6 +444,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
444
444
|
"content-type": "application/json",
|
|
445
445
|
}, raw: true }, options));
|
|
446
446
|
};
|
|
447
|
+
this.paginateFeedbackFormResponsesForTenantUser = function (tenant_id, user_id, query, options) {
|
|
448
|
+
if (options === void 0) { options = {}; }
|
|
449
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(user_id, "/feedback/form/responses"), __assign({ method: "get", query: query }, options));
|
|
450
|
+
};
|
|
447
451
|
this.getFormById = function (feedback_form_id, options) {
|
|
448
452
|
if (options === void 0) { options = {}; }
|
|
449
453
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), __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.
|
|
3
|
+
"version": "0.3.238",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"author": "Parra",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
22
|
-
"prettier": "^3.
|
|
21
|
+
"@types/node": "^22.5.5",
|
|
22
|
+
"prettier": "^3.3.3",
|
|
23
23
|
"typescript": "^5.6.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@parra/http-client": "0.5.
|
|
26
|
+
"@parra/http-client": "0.5.8"
|
|
27
27
|
}
|
|
28
28
|
}
|