Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

feat(domain): add optin routes #150

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 182 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -6906,6 +6906,108 @@ angular.module("ovh-api-services").service("OvhApiDeskaasV6", ["$resource", "Ovh
});
}]);

angular.module("ovh-api-services").service("OvhApiDomainConfigurations", ["$injector", function ($injector) {
"use strict";
return {
ObfuscatedEmails: function () {
return $injector.get("OvhApiDomainConfigurationsObfuscatedEmails");
},
Optin: function () {
return $injector.get("OvhApiDomainConfigurationsOptin");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainConfigurationsObfuscatedEmails", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainConfigurationsObfuscatedEmailsV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainConfigurationsObfuscatedEmailsV6", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainConfigurationsObfuscatedEmailsQueryV6");

var interceptor = {
response: function (response) {
queryCache.removeAll();
return response.data;
}
};

var domain = $resource("/domain/:serviceName/configurations/obfuscatedEmails", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
},
put: {
method: "PUT",
interceptor: interceptor
},
refresh: {
method: "POST",
url: "/domain/:serviceName/configurations/obfuscatedEmails/refresh",
interceptor: interceptor
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
}]);

angular.module("ovh-api-services").service("OvhApiDomainConfigurationsOptin", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainConfigurationsOptinV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainConfigurationsOptinV6", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainConfigurationsOptinQueryV6");

var interceptor = {
response: function (response) {
queryCache.removeAll();
return response.data;
}
};

var domain = $resource("/domain/:serviceName/configurations/optin", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
},
put: {
method: "PUT",
interceptor: interceptor,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
}]);

angular.module("ovh-api-services").service("OvhApiDomain", ["$injector", function ($injector) {
"use strict";
return {
Expand All @@ -6914,6 +7016,12 @@ angular.module("ovh-api-services").service("OvhApiDomain", ["$injector", functio
},
v7: function () {
return $injector.get("OvhApiDomainV7");
},
Configurations: function () {
return $injector.get("OvhApiDomainConfigurations");
},
Rules: function () {
return $injector.get("OvhApiDomainRules");
}
};
}]);
Expand Down Expand Up @@ -6959,6 +7067,80 @@ angular.module("ovh-api-services").service("OvhApiDomainV7", ["apiv7", function
return domainEndpoint;
}]);

angular.module("ovh-api-services").service("OvhApiDomainRules", ["$injector", function ($injector) {
"use strict";
return {
EmailsObfuscation: function () {
return $injector.get("OvhApiDomainRulesEmailsObfuscation");
},
Optin: function () {
return $injector.get("OvhApiDomainRulesOptin");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainRulesEmailsObfuscation", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainRulesEmailsObfuscationV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainRulesEmailsObfuscationV6", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainRulesEmailsObfuscationQueryV6");

var domain = $resource("/domain/:serviceName/rules/emailsObfuscation", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
}]);

angular.module("ovh-api-services").service("OvhApiDomainRulesOptin", ["$injector", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainRulesOptinV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiDomainRulesOptinV6", ["$resource", "$cacheFactory", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainRulesOptinQueryV6");

var domain = $resource("/domain/:serviceName/rules/optin", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
}]);

angular
.module("ovh-api-services")
.service(
Expand Down
23 changes: 12 additions & 11 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/domain/configurations/domain-configurations.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiDomainConfigurations", function ($injector) {
"use strict";
return {
ObfuscatedEmails: function () {
return $injector.get("OvhApiDomainConfigurationsObfuscatedEmails");
},
Optin: function () {
return $injector.get("OvhApiDomainConfigurationsOptin");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiDomainConfigurationsObfuscatedEmails", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainConfigurationsObfuscatedEmailsV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
angular.module("ovh-api-services").service("OvhApiDomainConfigurationsObfuscatedEmailsV6", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainConfigurationsObfuscatedEmailsQueryV6");

var interceptor = {
response: function (response) {
queryCache.removeAll();
return response.data;
}
};

var domain = $resource("/domain/:serviceName/configurations/obfuscatedEmails", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
},
put: {
method: "PUT",
interceptor: interceptor
},
refresh: {
method: "POST",
url: "/domain/:serviceName/configurations/obfuscatedEmails/refresh",
interceptor: interceptor
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiDomainConfigurationsOptin", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainConfigurationsOptinV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
angular.module("ovh-api-services").service("OvhApiDomainConfigurationsOptinV6", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainConfigurationsOptinQueryV6");

var interceptor = {
response: function (response) {
queryCache.removeAll();
return response.data;
}
};

var domain = $resource("/domain/:serviceName/configurations/optin", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
},
put: {
method: "PUT",
interceptor: interceptor,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
});
6 changes: 6 additions & 0 deletions src/domain/domain.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ angular.module("ovh-api-services").service("OvhApiDomain", function ($injector)
},
v7: function () {
return $injector.get("OvhApiDomainV7");
},
Configurations: function () {
return $injector.get("OvhApiDomainConfigurations");
},
Rules: function () {
return $injector.get("OvhApiDomainRules");
}
};
});
11 changes: 11 additions & 0 deletions src/domain/rules/domain-rules.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module("ovh-api-services").service("OvhApiDomainRules", function ($injector) {
"use strict";
return {
EmailsObfuscation: function () {
return $injector.get("OvhApiDomainRulesEmailsObfuscation");
},
Optin: function () {
return $injector.get("OvhApiDomainRulesOptin");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiDomainRulesEmailsObfuscation", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainRulesEmailsObfuscationV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
angular.module("ovh-api-services").service("OvhApiDomainRulesEmailsObfuscationV6", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainRulesEmailsObfuscationQueryV6");

var domain = $resource("/domain/:serviceName/rules/emailsObfuscation", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
});
8 changes: 8 additions & 0 deletions src/domain/rules/optin/domain-rules-optin.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiDomainRulesOptin", function ($injector) {
"use strict";
return {
v6: function () {
return $injector.get("OvhApiDomainRulesOptinV6");
}
};
});
21 changes: 21 additions & 0 deletions src/domain/rules/optin/domain-rules-optin.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
angular.module("ovh-api-services").service("OvhApiDomainRulesOptinV6", function ($resource, $cacheFactory) {
"use strict";

var queryCache = $cacheFactory("OvhApiDomainRulesOptinQueryV6");

var domain = $resource("/domain/:serviceName/rules/optin", {
serviceName: "@serviceName"
}, {
query: {
method: "GET",
cache: queryCache,
isArray: true
}
});

domain.resetQueryCache = function () {
queryCache.removeAll();
};

return domain;
});