@parra/parra-js-sdk 0.2.112 → 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.
@@ -390,8 +390,18 @@ export interface CampaignTrigger {
390
390
  analytic_event_type_id: string;
391
391
  }
392
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
+ }
393
400
  export interface UpdateCampaignActionRequestBody {
401
+ type: CampaignActionType;
394
402
  question_id?: string;
403
+ display_type?: CampaignActionDisplayType | null;
404
+ app_area_id?: string | null;
395
405
  }
396
406
  export declare type UpdateCampaignActionList = Array<UpdateCampaignActionRequestBody>;
397
407
  export interface CampaignAction {
@@ -399,7 +409,10 @@ export interface CampaignAction {
399
409
  created_at: string;
400
410
  updated_at: string;
401
411
  deleted_at?: string | null;
412
+ type: CampaignActionType;
402
413
  question_id?: string;
414
+ display_type?: CampaignActionDisplayType | null;
415
+ app_area_id?: string | null;
403
416
  }
404
417
  export declare type CampaignActionList = Array<CampaignAction>;
405
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.112",
3
+ "version": "0.2.113",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",