Repository URL to install this package:
|
Version:
2.0.21 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { clientNamespace, cartNamespace } = require('./config');
const absoluteUrlConfig = {
getKeyTokenUrl: `https://encrypt-stg.skavaone.com/apiadmin/remote/skavakeystore/getKeyForToken`,
getServiceToken: `https://encrypt-stg.skavaone.com/apiadmin/v1/token/create`,
};
const configJSON = {
viewbag: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER',
},
createbag: 'xact',
addtobag: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/items',
},
deletefrombag: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/items',
},
deleteallfrombag: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER',
},
updatebag: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/items',
},
addpromo: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/promos',
},
deletepromo: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/promos',
},
getpromo: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER',
},
topcategory: {
type: 'core',
partner: clientNamespace + 'skavastore',
},
category: {
type: 'core',
partner: clientNamespace + 'skavastore',
orchestrationService: '/catalogservices',
orchestrationServiceType: '/storefront',
pathParams: '/categories',
},
search: {
type: 'core',
partner: clientNamespace + 'skavastore',
orchestrationService: '/storefront',
orchestrationServiceType: '/search',
pathParams: '',
},
searchsuggestion: {
type: 'core',
partner: clientNamespace + 'skavastore',
orchestrationService: '/storefront',
orchestrationServiceType: '/suggestions',
pathParams: '',
},
productlist: {
type: 'core',
partner: clientNamespace + 'skavastore',
orchestrationService: '/catalogservices',
orchestrationServiceType: '/storefront',
pathParams: '/categories',
},
product: {
type: 'core',
partner: clientNamespace + 'skavastore',
orchestrationService: '/catalogservices',
orchestrationServiceType: '/storefront',
pathParams: '/products',
},
recommendation: 'marketing',
recentlyviewed: 'marketing',
mostviewed: 'marketing',
recordAction: 'marketing',
validatecart: 'xact',
postalLookup: 'xact',
shippingmethods: 'xact',
addressverification: 'xact',
checkaddress: 'xact',
getbillingaddress: 'xact',
setbillingaddress: 'xact',
getshippingaddress: 'xact',
'setshippingaddress/update': {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/addresses',
},
gettaxinfo: 'xact',
getshippingcost: 'xact',
getgift: 'xact',
addgift: 'xact',
deletegift: 'xact',
getcoupons: 'xact',
addcoupon: 'xact',
deletecoupon: 'xact',
cardencryption: 'xact',
setshippingaddress: {
// type: 'xact',
// partner: cartNamespace + 'cartandcheckout',
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER',
},
payment: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice',
orchestrationServiceType: '/bags',
pathParams: '/USER/payments',
},
submitorder: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
orchestrationService: '/cartservice/checkoutservice',
orchestrationServiceType: '/orders',
pathParams: '/USER',
},
suspendcart: {
type: 'custom',
partner: clientNamespace + 'skavastore',
clientVersion: 'v1',
},
removeshippingaddress: 'xact',
removebillingaddress: 'xact',
getinventory: 'xact',
deletecard: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/payments',
},
addcard: {
type: 'xact',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/payments',
},
setshippingmethods: 'xact',
setpaymentmethod: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/payments',
},
estimate: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
},
updateshippingmethods: {
type: 'xact',
partner: cartNamespace + 'cartandcheckout',
},
user: {
type: 'loyalty',
partner: clientNamespace + 'loyalty',
},
orderhistory: 'xact',
orderdetails: {
type: 'xact',
partner: clientNamespace + 'skavaoms',
orchestrationService: '/omsservice',
orchestrationServiceType: '',
pathParams: '/orders',
},
'submitorder/return': {
type: 'xact',
partner: clientNamespace + 'skavaoms',
orchestrationService: '/omsservice',
orchestrationServiceType: '/orders',
pathParams: '',
},
'submitorder/cancel': {
type: 'xact',
partner: clientNamespace + 'skavaoms',
orchestrationService: '/omsservice',
orchestrationServiceType: '/orders',
pathParams: '',
},
easyreorder: 'xact',
orderstatus: 'xact',
favoritelistview: 'xact',
metadata: 'xact',
productdetails: 'core',
login: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/login',
pathParams: '',
},
refreshtoken: 'xact',
checkuserexists: 'xact',
register: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '',
},
logout: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '',
pathParams: '/logout',
},
getprofile: {
type: 'xact',
partner: clientNamespace + 'skavauser',
},
updateprofile: {
type: 'xact',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '',
},
getaddress: 'xact',
addaddress: 'xact',
updateaddress: 'xact',
deleteaddress: 'xact',
getcreditcard: 'xact',
addcreditcard: 'xact',
updatecreditcard: 'xact',
deletecreditcard: 'xact',
recoverpwdbyemail: 'xact',
reminderquestion: 'xact',
getpasswordauth: 'xact',
resetpassword: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/resetpassword',
},
resetpasswordbyemail: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/resetpassword',
},
getsecurityquestion: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/securityquestions',
},
updatepassword: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/password',
},
personalization: 'xact',
profile: {
type: 'xact',
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '',
},
changerecipient: 'xact',
loginverificationstatus: 'xact',
createregister: 'xact',
createuser: 'xact',
messagecampaigns: '',
update: 'xact',
checkoutauth: {
type: 'xact',
partner: clientNamespace + 'skavauser',
},
rating: 'ratingreview',
ratingcount: 'ratingreview',
reviews: {
type: 'ratingreview',
partner: clientNamespace + 'skavastore',
},
submitreview: {
type: 'ratingreview',
partner: clientNamespace + 'skavastore',
},
reviewstats: 'ratingreview',
reviewsummary: 'ratingreview',
searchreview: 'ratingreview',
getstores: {
type: 'util',
partner: clientNamespace + 'skavastore',
},
storeinfo: 'util',
event: 'util',
sendmail: 'util',
validation: 'util',
sendemail: 'util',
createOrGetUser: clientNamespace + 'listv2',
getlists: {
type: 'wishlist',
partner: clientNamespace + 'listv2',
},
createlist: {
type: 'xact',
partner: clientNamespace + 'listv2',
},
additem: {
type: 'wishlist',
partner: clientNamespace + 'listv2',
},
deleteitem: {
type: 'wishlist',
partner: clientNamespace + 'listv2',
},
getitems: {
type: 'wishlist',
partner: clientNamespace + 'listv2',
},
getKeyForToken: {
isAbsoluteUrl: true,
absoluteUrl: absoluteUrlConfig['getKeyTokenUrl'],
},
'token/create': {
isAbsoluteUrl: true,
absoluteUrl: absoluteUrlConfig['getServiceToken'],
},
loyalty: {
type: 'loyalty',
partner: 'loyalty',
},
addEvent: 'events',
getbalanceforuser: clientNamespace + 'loyalty',
createtransactionforuser: clientNamespace + 'loyalty',
canceltransactionbyid: clientNamespace + 'loyalty',
reconcile: clientNamespace + 'loyalty',
getCatalog: {
type: 'studio',
partner: 'skava',
clientVersion: 'v1',
},
getPages: {
type: 'studio',
partner: 'skava',
clientVersion: 'v1',
},
validateresetpassword: {
type: 'xact',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/password',
},
resetpasswordbysecurityquestion: {
type: 'xact',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/securityquestions/password',
},
useraddresses: {
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/addresses',
},
useractivation: {
partner: clientNamespace + 'skavauser',
orchestrationService: '/customer',
orchestrationServiceType: '/customers',
pathParams: '/activation',
},
accountregister: {
orchestrationService: '/accountsorchestration',
orchestrationServiceType: '/accounts',
pathParams: '',
},
accountprofile: {
orchestrationService: '/accountsorchestration',
orchestrationServiceType: '/accounts',
pathParams: '',
},
accountinvite: {
orchestrationService: '/accountsorchestration',
orchestrationServiceType: '/accounts',
pathParams: '',
},
};
exports.configJSON = configJSON;
Object.freeze(configJSON);
function getStreamDataAccessObjType(daoType) {
return configJSON[daoType] || { '@@empty': true };
}
exports.getStreamDataAccessObjType = getStreamDataAccessObjType;
const dataAccessObj = {
getStreamDataAccessObjType,
// @todo @deprecated
getStreamDAOType: getStreamDataAccessObjType,
};
exports.dataAccessObj = dataAccessObj;
//# sourceMappingURL=STREAMDAO.js.map