@parra/parra-js-sdk 0.2.111 → 0.2.113
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 +17 -0
- package/dist/ParraAPI.js +10 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -340,12 +340,16 @@ export declare enum CampaignStatus {
|
|
|
340
340
|
export interface UpdateCampaignRequestBody {
|
|
341
341
|
name?: string;
|
|
342
342
|
description?: string | null;
|
|
343
|
+
start_at?: string | null;
|
|
344
|
+
end_at?: string | null;
|
|
343
345
|
triggers?: UpdateCampaignTriggerList;
|
|
344
346
|
actions?: UpdateCampaignActionList;
|
|
345
347
|
}
|
|
346
348
|
export interface CreateCampaignRequestBody {
|
|
347
349
|
name?: string;
|
|
348
350
|
description?: string | null;
|
|
351
|
+
start_at?: string | null;
|
|
352
|
+
end_at?: string | null;
|
|
349
353
|
triggers?: UpdateCampaignTriggerList;
|
|
350
354
|
actions?: UpdateCampaignActionList;
|
|
351
355
|
}
|
|
@@ -386,8 +390,18 @@ export interface CampaignTrigger {
|
|
|
386
390
|
analytic_event_type_id: string;
|
|
387
391
|
}
|
|
388
392
|
export declare type CampaignTriggerList = Array<CampaignTrigger>;
|
|
393
|
+
export declare enum CampaignActionType {
|
|
394
|
+
question = "question"
|
|
395
|
+
}
|
|
396
|
+
export declare enum CampaignActionDisplayType {
|
|
397
|
+
popup = "popup",
|
|
398
|
+
inline = "inline"
|
|
399
|
+
}
|
|
389
400
|
export interface UpdateCampaignActionRequestBody {
|
|
401
|
+
type: CampaignActionType;
|
|
390
402
|
question_id?: string;
|
|
403
|
+
display_type?: CampaignActionDisplayType | null;
|
|
404
|
+
app_area_id?: string | null;
|
|
391
405
|
}
|
|
392
406
|
export declare type UpdateCampaignActionList = Array<UpdateCampaignActionRequestBody>;
|
|
393
407
|
export interface CampaignAction {
|
|
@@ -395,7 +409,10 @@ export interface CampaignAction {
|
|
|
395
409
|
created_at: string;
|
|
396
410
|
updated_at: string;
|
|
397
411
|
deleted_at?: string | null;
|
|
412
|
+
type: CampaignActionType;
|
|
398
413
|
question_id?: string;
|
|
414
|
+
display_type?: CampaignActionDisplayType | null;
|
|
415
|
+
app_area_id?: string | null;
|
|
399
416
|
}
|
|
400
417
|
export declare type CampaignActionList = Array<CampaignAction>;
|
|
401
418
|
export interface FormResponse {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TemplateType = exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.CampaignStatus = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
|
|
3
|
+
exports.TemplateType = exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CampaignStatus = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
|
|
4
4
|
var Currency;
|
|
5
5
|
(function (Currency) {
|
|
6
6
|
Currency["usd"] = "usd";
|
|
@@ -30,6 +30,15 @@ var CampaignStatus;
|
|
|
30
30
|
CampaignStatus["closed"] = "closed";
|
|
31
31
|
CampaignStatus["archived"] = "archived";
|
|
32
32
|
})(CampaignStatus = exports.CampaignStatus || (exports.CampaignStatus = {}));
|
|
33
|
+
var CampaignActionType;
|
|
34
|
+
(function (CampaignActionType) {
|
|
35
|
+
CampaignActionType["question"] = "question";
|
|
36
|
+
})(CampaignActionType = exports.CampaignActionType || (exports.CampaignActionType = {}));
|
|
37
|
+
var CampaignActionDisplayType;
|
|
38
|
+
(function (CampaignActionDisplayType) {
|
|
39
|
+
CampaignActionDisplayType["popup"] = "popup";
|
|
40
|
+
CampaignActionDisplayType["inline"] = "inline";
|
|
41
|
+
})(CampaignActionDisplayType = exports.CampaignActionDisplayType || (exports.CampaignActionDisplayType = {}));
|
|
33
42
|
var CardItemType;
|
|
34
43
|
(function (CardItemType) {
|
|
35
44
|
CardItemType["question"] = "question";
|