@vergelijkdirect/insurance-transmission-client 1.3.74 → 1.3.76
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/package.json +1 -1
- package/src/js/models/configuration/configuration.model.d.ts +2 -0
- package/src/js/models/configuration/configuration.model.js +4 -0
- package/src/js/models/configuration/default-configuration.model.js +1 -0
- package/src/js/resources/data.resource.d.ts +1 -0
- package/src/js/resources/data.resource.js +7 -0
- package/src/js/services/data.service.d.ts +1 -0
- package/src/js/services/data.service.js +3 -0
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ declare class ConfigurationModel {
|
|
|
6
6
|
protected configurations: any;
|
|
7
7
|
protected partnerPixels: any;
|
|
8
8
|
protected showSaveForLater: boolean;
|
|
9
|
+
protected funnelQuizzes: any;
|
|
9
10
|
constructor(configurations?: any);
|
|
10
11
|
configure(configurations: any): void;
|
|
11
12
|
getPartnerId(): number;
|
|
@@ -16,5 +17,6 @@ declare class ConfigurationModel {
|
|
|
16
17
|
getAllConfigurations(): any;
|
|
17
18
|
getServices(comparison: string, funnel: string): [];
|
|
18
19
|
saveForLaterEnabled(): boolean;
|
|
20
|
+
getAllFunnelQuizzes(): any;
|
|
19
21
|
}
|
|
20
22
|
export default ConfigurationModel;
|
|
@@ -15,6 +15,7 @@ var ConfigurationModel = /** @class */ (function () {
|
|
|
15
15
|
this.partnerPixels = configurations.partner_pixels;
|
|
16
16
|
this.configurations = configurations.configurations;
|
|
17
17
|
this.showSaveForLater = configurations.show_save_for_later;
|
|
18
|
+
this.funnelQuizzes = configurations.funnelQuizzes;
|
|
18
19
|
};
|
|
19
20
|
ConfigurationModel.prototype.getPartnerId = function () {
|
|
20
21
|
return this.partnerId;
|
|
@@ -52,6 +53,9 @@ var ConfigurationModel = /** @class */ (function () {
|
|
|
52
53
|
ConfigurationModel.prototype.saveForLaterEnabled = function () {
|
|
53
54
|
return this.showSaveForLater;
|
|
54
55
|
};
|
|
56
|
+
ConfigurationModel.prototype.getAllFunnelQuizzes = function () {
|
|
57
|
+
return this.funnelQuizzes;
|
|
58
|
+
};
|
|
55
59
|
return ConfigurationModel;
|
|
56
60
|
}());
|
|
57
61
|
exports.default = ConfigurationModel;
|
|
@@ -21,5 +21,6 @@ declare class DataResource extends BaseResource {
|
|
|
21
21
|
sentKickbiteTracking(data: any): Promise<any>;
|
|
22
22
|
sentOpenAITracking(data: any): Promise<any>;
|
|
23
23
|
getProfessions(sbiCode?: string): Promise<ProfessionsInterface[]>;
|
|
24
|
+
sentFacebookTracking(data: any): Promise<any>;
|
|
24
25
|
}
|
|
25
26
|
export default DataResource;
|
|
@@ -142,6 +142,13 @@ var DataResource = /** @class */ (function (_super) {
|
|
|
142
142
|
url: "/data/professions?sbiCode=".concat(sbiCode),
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
+
DataResource.prototype.sentFacebookTracking = function (data) {
|
|
146
|
+
return this.http({
|
|
147
|
+
method: 'post',
|
|
148
|
+
url: '/data/analytics/facebook/event',
|
|
149
|
+
data: data,
|
|
150
|
+
});
|
|
151
|
+
};
|
|
145
152
|
return DataResource;
|
|
146
153
|
}(base_resource_1.default));
|
|
147
154
|
exports.default = DataResource;
|
|
@@ -21,5 +21,6 @@ declare class DataService {
|
|
|
21
21
|
sentKickbiteTracking(data: any): Promise<any>;
|
|
22
22
|
sentOpenAITracking(data: any): Promise<any>;
|
|
23
23
|
getProfessions(sbiCode?: string): Promise<ProfessionsInterface[]>;
|
|
24
|
+
sentFacebookTracking(data: any): Promise<any>;
|
|
24
25
|
}
|
|
25
26
|
export default DataService;
|
|
@@ -109,6 +109,9 @@ var DataService = /** @class */ (function () {
|
|
|
109
109
|
if (sbiCode === void 0) { sbiCode = ''; }
|
|
110
110
|
return this.client.getProfessions(sbiCode);
|
|
111
111
|
};
|
|
112
|
+
DataService.prototype.sentFacebookTracking = function (data) {
|
|
113
|
+
return this.client.sentFacebookTracking(data);
|
|
114
|
+
};
|
|
112
115
|
return DataService;
|
|
113
116
|
}());
|
|
114
117
|
exports.default = DataService;
|