@parra/parra-js-sdk 0.2.116 → 0.2.118
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 +8 -5
- package/dist/ParraAPI.js +5 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -381,7 +381,8 @@ export interface CampaignCollectionResponse {
|
|
|
381
381
|
}
|
|
382
382
|
export declare type CampaignListResponse = Array<Campaign>;
|
|
383
383
|
export interface UpdateCampaignTriggerRequestBody {
|
|
384
|
-
|
|
384
|
+
type: string;
|
|
385
|
+
analytic_event_type_id?: string | null;
|
|
385
386
|
}
|
|
386
387
|
export declare type UpdateCampaignTriggerList = Array<UpdateCampaignTriggerRequestBody>;
|
|
387
388
|
export interface CampaignTrigger {
|
|
@@ -389,7 +390,8 @@ export interface CampaignTrigger {
|
|
|
389
390
|
created_at: string;
|
|
390
391
|
updated_at: string;
|
|
391
392
|
deleted_at?: string | null;
|
|
392
|
-
|
|
393
|
+
type: string;
|
|
394
|
+
analytic_event_type_id?: string | null;
|
|
393
395
|
}
|
|
394
396
|
export declare type CampaignTriggerList = Array<CampaignTrigger>;
|
|
395
397
|
export declare enum CampaignActionType {
|
|
@@ -1026,6 +1028,7 @@ declare class ParraAPI {
|
|
|
1026
1028
|
updateCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody | undefined) => Promise<Campaign>;
|
|
1027
1029
|
deleteCampaignById: (tenant_id: string, campaign_id: string) => Promise<Response>;
|
|
1028
1030
|
publishCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody | undefined) => Promise<Campaign>;
|
|
1031
|
+
enrollEligibleUsersForCampaignById: (campaign_id: string) => Promise<Response>;
|
|
1029
1032
|
closeCampaignById: (tenant_id: string, campaign_id: string) => Promise<Campaign>;
|
|
1030
1033
|
getCards: (query?: {
|
|
1031
1034
|
app_area_id?: string | undefined;
|
|
@@ -1042,9 +1045,9 @@ declare class ParraAPI {
|
|
|
1042
1045
|
$expand?: string | undefined;
|
|
1043
1046
|
$search?: string | undefined;
|
|
1044
1047
|
} | undefined) => Promise<QuestionCollectionResponse>;
|
|
1045
|
-
getQuestionById: (question_id: string, query
|
|
1046
|
-
campaign_id
|
|
1047
|
-
}) => Promise<Question>;
|
|
1048
|
+
getQuestionById: (question_id: string, query?: {
|
|
1049
|
+
campaign_id?: string | undefined;
|
|
1050
|
+
} | undefined) => Promise<Question>;
|
|
1048
1051
|
updateQuestionById: (question_id: string, body?: UpdateQuestionRequestBody | undefined) => Promise<Question>;
|
|
1049
1052
|
deleteQuestionById: (question_id: string) => Promise<Response>;
|
|
1050
1053
|
createMetricsForQuestionById: (question_id: string, body?: CreateQuestionMetricsRequestBody | undefined) => Promise<QuestionMetrics>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -356,6 +356,11 @@ var ParraAPI = /** @class */ (function () {
|
|
|
356
356
|
},
|
|
357
357
|
});
|
|
358
358
|
};
|
|
359
|
+
this.enrollEligibleUsersForCampaignById = function (campaign_id) {
|
|
360
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/campaigns/").concat(campaign_id, "/enroll"), {
|
|
361
|
+
method: "post",
|
|
362
|
+
});
|
|
363
|
+
};
|
|
359
364
|
this.closeCampaignById = function (tenant_id, campaign_id) {
|
|
360
365
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/close"), {
|
|
361
366
|
method: "post",
|