@acceleratxr/core_sdk
Advanced tools
Comparing version 1.19.0-studio to 1.19.0
@@ -57,5 +57,2 @@ "use strict"; | ||
} | ||
if (!this.baseServicePaths.has(services_1.ContactService)) { | ||
this.baseServicePaths.set(services_1.ContactService, "/contacts"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.EventService)) { | ||
@@ -85,8 +82,2 @@ this.baseServicePaths.set(services_1.EventService, "/events"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.OrderService)) { | ||
this.baseServicePaths.set(services_1.OrderService, "/orders"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.PaymentService)) { | ||
this.baseServicePaths.set(services_1.PaymentService, "/payments"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.PersonaService)) { | ||
@@ -101,20 +92,5 @@ this.baseServicePaths.set(services_1.PersonaService, "/personas"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.ProductCategoryService)) { | ||
this.baseServicePaths.set(services_1.ProductCategoryService, "/products/categories"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.ProductFeatureService)) { | ||
this.baseServicePaths.set(services_1.ProductFeatureService, "/products/features"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.ProductService)) { | ||
this.baseServicePaths.set(services_1.ProductService, "/products"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.ProfileService)) { | ||
this.baseServicePaths.set(services_1.ProfileService, "/profiles"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.PromoCodeService)) { | ||
this.baseServicePaths.set(services_1.PromoCodeService, "/promocodes"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.PurchaseService)) { | ||
this.baseServicePaths.set(services_1.PurchaseService, "/purchases"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.QuestDefinitionService)) { | ||
@@ -180,5 +156,2 @@ this.baseServicePaths.set(services_1.QuestDefinitionService, "/quests"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.WalletService)) { | ||
this.baseServicePaths.set(services_1.WalletService, "/wallets"); | ||
} | ||
if (!this.baseServicePaths.has(services_1.ZoneService)) { | ||
@@ -185,0 +158,0 @@ this.baseServicePaths.set(services_1.ZoneService, "/zones"); |
@@ -11,4 +11,2 @@ "use strict"; | ||
__export(require("./AccessControlList")); | ||
var Address_1 = require("./Address"); | ||
exports.Address = Address_1.default; | ||
var ArchetypeActivation_1 = require("./ArchetypeActivation"); | ||
@@ -20,4 +18,2 @@ exports.ArchetypeActivation = ArchetypeActivation_1.default; | ||
exports.AuthToken = AuthToken_1.default; | ||
var Contact_1 = require("./Contact"); | ||
exports.Contact = Contact_1.default; | ||
var Count_1 = require("./Count"); | ||
@@ -27,3 +23,2 @@ exports.Count = Count_1.default; | ||
exports.Criteria = Criteria_1.default; | ||
__export(require("./Currency")); | ||
var Event_1 = require("./Event"); | ||
@@ -47,10 +42,2 @@ exports.Event = Event_1.default; | ||
exports.NewUser = NewUser_1.default; | ||
var Order_1 = require("./Order"); | ||
exports.Order = Order_1.default; | ||
var OrderItem_1 = require("./OrderItem"); | ||
exports.OrderItem = OrderItem_1.default; | ||
var Payment_1 = require("./Payment"); | ||
exports.Payment = Payment_1.default; | ||
var PaymentMethod_1 = require("./PaymentMethod"); | ||
exports.PaymentMethod = PaymentMethod_1.default; | ||
var Persona_1 = require("./Persona"); | ||
@@ -62,12 +49,4 @@ exports.Persona = Persona_1.default; | ||
exports.PersonaStatDefinition = PersonaStatDefinition_1.default; | ||
var Product_1 = require("./Product"); | ||
exports.Product = Product_1.default; | ||
var ProductCategory_1 = require("./ProductCategory"); | ||
exports.ProductCategory = ProductCategory_1.default; | ||
var ProductFeature_1 = require("./ProductFeature"); | ||
exports.ProductFeature = ProductFeature_1.default; | ||
var Profile_1 = require("./Profile"); | ||
exports.Profile = Profile_1.default; | ||
var PromoCode_1 = require("./PromoCode"); | ||
exports.PromoCode = PromoCode_1.default; | ||
var Quest_1 = require("./Quest"); | ||
@@ -115,4 +94,2 @@ exports.Quest = Quest_1.default; | ||
exports.Statistic = Statistic_1.default; | ||
var Purchase_1 = require("./Purchase"); | ||
exports.Purchase = Purchase_1.default; | ||
var Team_1 = require("./Team"); | ||
@@ -134,4 +111,2 @@ exports.Team = Team_1.default; | ||
exports.UserSecret = UserSecret_1.default; | ||
var Wallet_1 = require("./Wallet"); | ||
exports.Wallet = Wallet_1.default; | ||
var Zone_1 = require("./Zone"); | ||
@@ -138,0 +113,0 @@ exports.Zone = Zone_1.default; |
@@ -21,4 +21,2 @@ "use strict"; | ||
exports.AuthTwitterService = AuthTwitterService_1.default; | ||
var ContactService_1 = require("./ContactService"); | ||
exports.ContactService = ContactService_1.default; | ||
var EventService_1 = require("./EventService"); | ||
@@ -40,6 +38,2 @@ exports.EventService = EventService_1.default; | ||
exports.MessageService = MessageService_1.default; | ||
var OrderService_1 = require("./OrderService"); | ||
exports.OrderService = OrderService_1.default; | ||
var PaymentService_1 = require("./PaymentService"); | ||
exports.PaymentService = PaymentService_1.default; | ||
var PersonaService_1 = require("./PersonaService"); | ||
@@ -51,12 +45,4 @@ exports.PersonaService = PersonaService_1.default; | ||
exports.PersonaStatDefinitionService = PersonaStatDefinitionService_1.default; | ||
var ProductCategoryService_1 = require("./ProductCategoryService"); | ||
exports.ProductCategoryService = ProductCategoryService_1.default; | ||
var ProductFeatureService_1 = require("./ProductFeatureService"); | ||
exports.ProductFeatureService = ProductFeatureService_1.default; | ||
var ProductService_1 = require("./ProductService"); | ||
exports.ProductService = ProductService_1.default; | ||
var ProfileService_1 = require("./ProfileService"); | ||
exports.ProfileService = ProfileService_1.default; | ||
var PromoCodeService_1 = require("./PromoCodeService"); | ||
exports.PromoCodeService = PromoCodeService_1.default; | ||
var QuestDefinitionService_1 = require("./QuestDefinitionService"); | ||
@@ -90,4 +76,2 @@ exports.QuestDefinitionService = QuestDefinitionService_1.default; | ||
exports.SnapshotService = SnapshotService_1.default; | ||
var PurchaseService_1 = require("./PurchaseService"); | ||
exports.PurchaseService = PurchaseService_1.default; | ||
var TextAssetService_1 = require("./TextAssetService"); | ||
@@ -105,6 +89,4 @@ exports.TextAssetService = TextAssetService_1.default; | ||
exports.UserSecretService = UserSecretService_1.default; | ||
var WalletService_1 = require("./WalletService"); | ||
exports.WalletService = WalletService_1.default; | ||
var ZoneService_1 = require("./ZoneService"); | ||
exports.ZoneService = ZoneService_1.default; | ||
//# sourceMappingURL=services.js.map |
@@ -153,4 +153,26 @@ "use strict"; | ||
} | ||
/** | ||
* Returns true if an user exists with the given unique identifier, otherwise false. | ||
* @param id | ||
*/ | ||
exists(id) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let url = this.config.getBaseServicePath(UserService) + "/:id"; | ||
if (url) { | ||
url = url.replace(":id", id); | ||
try { | ||
yield this.apiClient.send(url, "HEAD", undefined); | ||
return true; | ||
} | ||
catch (error) { | ||
return false; | ||
} | ||
} | ||
else { | ||
throw new Error("Failed to retrieve service base path. Is it configured properly?"); | ||
} | ||
}); | ||
} | ||
} | ||
exports.default = UserService; | ||
//# sourceMappingURL=UserService.js.map |
export { default as Achievement } from "./Achievement"; | ||
export { default as AchievementDefinition } from "./AchievementDefinition"; | ||
export * from "./AccessControlList"; | ||
export { default as Address } from "./Address"; | ||
export { default as ArchetypeActivation } from "./ArchetypeActivation"; | ||
export { default as ArchetypeDefinition } from "./ArchetypeDefinition"; | ||
export { default as AuthToken } from "./AuthToken"; | ||
export { default as Contact } from "./Contact"; | ||
export { default as Count } from "./Count"; | ||
export { default as Criteria } from "./Criteria"; | ||
export * from "./Currency"; | ||
export { default as Event } from "./Event"; | ||
@@ -21,14 +18,6 @@ export { default as File } from "./File"; | ||
export { default as NewUser } from "./NewUser"; | ||
export { default as Order } from "./Order"; | ||
export { default as OrderItem } from "./OrderItem"; | ||
export { default as Payment } from "./Payment"; | ||
export { default as PaymentMethod } from "./PaymentMethod"; | ||
export { default as Persona } from "./Persona"; | ||
export { default as PersonaStat } from "./PersonaStat"; | ||
export { default as PersonaStatDefinition } from "./PersonaStatDefinition"; | ||
export { default as Product } from "./Product"; | ||
export { default as ProductCategory } from "./ProductCategory"; | ||
export { default as ProductFeature } from "./ProductFeature"; | ||
export { default as Profile } from "./Profile"; | ||
export { default as PromoCode } from "./PromoCode"; | ||
export { default as Quest } from "./Quest"; | ||
@@ -55,3 +44,2 @@ export { default as QuestDefinition } from "./QuestDefinition"; | ||
export { default as Statistic } from "./Statistic"; | ||
export { default as Purchase } from "./Purchase"; | ||
export { default as Team } from "./Team"; | ||
@@ -65,4 +53,3 @@ export { default as TextAsset } from "./TextAsset"; | ||
export { default as UserSecret } from "./UserSecret"; | ||
export { default as Wallet } from "./Wallet"; | ||
export { default as Zone } from "./Zone"; | ||
export * from "./Script"; |
@@ -10,3 +10,2 @@ export { default as AchievementService } from "./AchievementService"; | ||
export { default as AuthTwitterService } from "./AuthTwitterService"; | ||
export { default as ContactService } from "./ContactService"; | ||
export { default as EventService } from "./EventService"; | ||
@@ -20,12 +19,6 @@ export { default as FileService } from "./FileService"; | ||
export { default as MessageService } from "./MessageService"; | ||
export { default as OrderService } from "./OrderService"; | ||
export { default as PaymentService } from "./PaymentService"; | ||
export { default as PersonaService } from "./PersonaService"; | ||
export { default as PersonaStatService } from "./PersonaStatService"; | ||
export { default as PersonaStatDefinitionService } from "./PersonaStatDefinitionService"; | ||
export { default as ProductCategoryService } from "./ProductCategoryService"; | ||
export { default as ProductFeatureService } from "./ProductFeatureService"; | ||
export { default as ProductService } from "./ProductService"; | ||
export { default as ProfileService } from "./ProfileService"; | ||
export { default as PromoCodeService } from "./PromoCodeService"; | ||
export { default as QuestDefinitionService } from "./QuestDefinitionService"; | ||
@@ -45,3 +38,2 @@ export { default as QuestService } from "./QuestService"; | ||
export { default as SnapshotService } from "./SnapshotService"; | ||
export { default as PurchaseService } from "./PurchaseService"; | ||
export { default as TextAssetService } from "./TextAssetService"; | ||
@@ -53,3 +45,2 @@ export { default as TicketService } from "./TicketService"; | ||
export { default as UserSecretService } from "./UserSecretService"; | ||
export { default as WalletService } from "./WalletService"; | ||
export { default as ZoneService } from "./ZoneService"; |
@@ -45,2 +45,7 @@ import ServiceBase from "../ServiceBase"; | ||
verify(id: string): Promise<void>; | ||
/** | ||
* Returns true if an user exists with the given unique identifier, otherwise false. | ||
* @param id | ||
*/ | ||
exists(id: string): Promise<boolean>; | ||
} |
{ | ||
"name": "@acceleratxr/core_sdk", | ||
"version": "1.19.0-studio", | ||
"version": "1.19.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Jean-Philippe Steinmetz <info@acceleratxr.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
3977412
456
14102