@como/como-client 0.9.0 → 0.9.1
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/lib/como.js +58 -53
- package/lib/config/env.js +4 -0
- package/package.json +2 -2
- package/src/como.js +5 -1
package/lib/como.js
CHANGED
|
@@ -1993,7 +1993,12 @@ var Como = function () {
|
|
|
1993
1993
|
}, {
|
|
1994
1994
|
key: 'getFriendReferralInviteLink',
|
|
1995
1995
|
value: function getFriendReferralInviteLink(referral) {
|
|
1996
|
-
|
|
1996
|
+
var _comoData27 = this.comoData,
|
|
1997
|
+
env = _comoData27.env_params,
|
|
1998
|
+
locationId = _comoData27.locationId;
|
|
1999
|
+
|
|
2000
|
+
var cpBaseUrl = env.cp_base_url.replace('{location_id}', locationId);
|
|
2001
|
+
return cpBaseUrl + '/auth/register?onboardingflow=register&ReferralCode=' + referral;
|
|
1997
2002
|
}
|
|
1998
2003
|
|
|
1999
2004
|
/**
|
|
@@ -2038,10 +2043,10 @@ var Como = function () {
|
|
|
2038
2043
|
}, {
|
|
2039
2044
|
key: 'getResourceUrl',
|
|
2040
2045
|
value: function getResourceUrl(resourceId, namespace, version) {
|
|
2041
|
-
var
|
|
2042
|
-
api =
|
|
2043
|
-
env =
|
|
2044
|
-
locationId =
|
|
2046
|
+
var _comoData28 = this.comoData,
|
|
2047
|
+
api = _comoData28.api,
|
|
2048
|
+
env = _comoData28.env_params,
|
|
2049
|
+
locationId = _comoData28.locationId;
|
|
2045
2050
|
|
|
2046
2051
|
return api.getResourceUrl(env.services_root_cdn, resourceId, namespace, version, locationId);
|
|
2047
2052
|
}
|
|
@@ -2067,10 +2072,10 @@ var Como = function () {
|
|
|
2067
2072
|
key: 'sendPushChannel',
|
|
2068
2073
|
value: function sendPushChannel(identifier) {
|
|
2069
2074
|
var isFirebaseProjectMigrated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2070
|
-
var
|
|
2071
|
-
api =
|
|
2072
|
-
locationId =
|
|
2073
|
-
env =
|
|
2075
|
+
var _comoData29 = this.comoData,
|
|
2076
|
+
api = _comoData29.api,
|
|
2077
|
+
locationId = _comoData29.locationId,
|
|
2078
|
+
env = _comoData29.env_params;
|
|
2074
2079
|
|
|
2075
2080
|
return api.sendPushChannel(env.services_root, locationId, identifier, isFirebaseProjectMigrated);
|
|
2076
2081
|
}
|
|
@@ -2078,13 +2083,13 @@ var Como = function () {
|
|
|
2078
2083
|
key: 'getRegionConfig',
|
|
2079
2084
|
value: function () {
|
|
2080
2085
|
var _ref35 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee34() {
|
|
2081
|
-
var
|
|
2086
|
+
var _comoData30, api, locationId, env;
|
|
2082
2087
|
|
|
2083
2088
|
return _regenerator2.default.wrap(function _callee34$(_context34) {
|
|
2084
2089
|
while (1) {
|
|
2085
2090
|
switch (_context34.prev = _context34.next) {
|
|
2086
2091
|
case 0:
|
|
2087
|
-
|
|
2092
|
+
_comoData30 = this.comoData, api = _comoData30.api, locationId = _comoData30.locationId, env = _comoData30.env_params;
|
|
2088
2093
|
return _context34.abrupt('return', api.getClientBusinessBackend(env.zapp_root, locationId));
|
|
2089
2094
|
|
|
2090
2095
|
case 2:
|
|
@@ -2109,10 +2114,10 @@ var Como = function () {
|
|
|
2109
2114
|
}, {
|
|
2110
2115
|
key: 'sendCouponCode',
|
|
2111
2116
|
value: function sendCouponCode(code) {
|
|
2112
|
-
var
|
|
2113
|
-
api =
|
|
2114
|
-
locationId =
|
|
2115
|
-
env =
|
|
2117
|
+
var _comoData31 = this.comoData,
|
|
2118
|
+
api = _comoData31.api,
|
|
2119
|
+
locationId = _comoData31.locationId,
|
|
2120
|
+
env = _comoData31.env_params;
|
|
2116
2121
|
|
|
2117
2122
|
return api.sendCouponCode(env.zapp_root, locationId, code);
|
|
2118
2123
|
}
|
|
@@ -2120,13 +2125,13 @@ var Como = function () {
|
|
|
2120
2125
|
key: 'addPaymentMethod',
|
|
2121
2126
|
value: function () {
|
|
2122
2127
|
var _ref36 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee35(cardToken) {
|
|
2123
|
-
var
|
|
2128
|
+
var _comoData32, api, locationId, token, env;
|
|
2124
2129
|
|
|
2125
2130
|
return _regenerator2.default.wrap(function _callee35$(_context35) {
|
|
2126
2131
|
while (1) {
|
|
2127
2132
|
switch (_context35.prev = _context35.next) {
|
|
2128
2133
|
case 0:
|
|
2129
|
-
|
|
2134
|
+
_comoData32 = this.comoData, api = _comoData32.api, locationId = _comoData32.locationId, token = _comoData32.token, env = _comoData32.env_params;
|
|
2130
2135
|
return _context35.abrupt('return', api.addPaymentMethod(env.services_root, locationId, token, cardToken));
|
|
2131
2136
|
|
|
2132
2137
|
case 2:
|
|
@@ -2147,13 +2152,13 @@ var Como = function () {
|
|
|
2147
2152
|
key: 'knowYourData',
|
|
2148
2153
|
value: function () {
|
|
2149
2154
|
var _ref37 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee36(email) {
|
|
2150
|
-
var
|
|
2155
|
+
var _comoData33, api, locationId, env;
|
|
2151
2156
|
|
|
2152
2157
|
return _regenerator2.default.wrap(function _callee36$(_context36) {
|
|
2153
2158
|
while (1) {
|
|
2154
2159
|
switch (_context36.prev = _context36.next) {
|
|
2155
2160
|
case 0:
|
|
2156
|
-
|
|
2161
|
+
_comoData33 = this.comoData, api = _comoData33.api, locationId = _comoData33.locationId, env = _comoData33.env_params;
|
|
2157
2162
|
return _context36.abrupt('return', api.knowYourData(env.services_root, locationId, email));
|
|
2158
2163
|
|
|
2159
2164
|
case 2:
|
|
@@ -2174,13 +2179,13 @@ var Como = function () {
|
|
|
2174
2179
|
key: 'consentWithdraw',
|
|
2175
2180
|
value: function () {
|
|
2176
2181
|
var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee37(consentData) {
|
|
2177
|
-
var
|
|
2182
|
+
var _comoData34, api, locationId, env;
|
|
2178
2183
|
|
|
2179
2184
|
return _regenerator2.default.wrap(function _callee37$(_context37) {
|
|
2180
2185
|
while (1) {
|
|
2181
2186
|
switch (_context37.prev = _context37.next) {
|
|
2182
2187
|
case 0:
|
|
2183
|
-
|
|
2188
|
+
_comoData34 = this.comoData, api = _comoData34.api, locationId = _comoData34.locationId, env = _comoData34.env_params;
|
|
2184
2189
|
return _context37.abrupt('return', api.consentWithdraw(env.services_root, locationId, consentData));
|
|
2185
2190
|
|
|
2186
2191
|
case 2:
|
|
@@ -2201,13 +2206,13 @@ var Como = function () {
|
|
|
2201
2206
|
key: 'getPaymentMethods',
|
|
2202
2207
|
value: function () {
|
|
2203
2208
|
var _ref39 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee38() {
|
|
2204
|
-
var
|
|
2209
|
+
var _comoData35, env, locationId, api, responseJson;
|
|
2205
2210
|
|
|
2206
2211
|
return _regenerator2.default.wrap(function _callee38$(_context38) {
|
|
2207
2212
|
while (1) {
|
|
2208
2213
|
switch (_context38.prev = _context38.next) {
|
|
2209
2214
|
case 0:
|
|
2210
|
-
|
|
2215
|
+
_comoData35 = this.comoData, env = _comoData35.env_params, locationId = _comoData35.locationId, api = _comoData35.api;
|
|
2211
2216
|
_context38.next = 3;
|
|
2212
2217
|
return api.getPaymentMethods(env.services_root, locationId);
|
|
2213
2218
|
|
|
@@ -2242,13 +2247,13 @@ var Como = function () {
|
|
|
2242
2247
|
key: 'payInApp',
|
|
2243
2248
|
value: function () {
|
|
2244
2249
|
var _ref40 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee39(amount, creditCardToken, itemName, itemNumber, membershipKey) {
|
|
2245
|
-
var
|
|
2250
|
+
var _comoData36, env, token, locationId, api, responseJson;
|
|
2246
2251
|
|
|
2247
2252
|
return _regenerator2.default.wrap(function _callee39$(_context39) {
|
|
2248
2253
|
while (1) {
|
|
2249
2254
|
switch (_context39.prev = _context39.next) {
|
|
2250
2255
|
case 0:
|
|
2251
|
-
|
|
2256
|
+
_comoData36 = this.comoData, env = _comoData36.env_params, token = _comoData36.token, locationId = _comoData36.locationId, api = _comoData36.api;
|
|
2252
2257
|
_context39.next = 3;
|
|
2253
2258
|
return api.payInApp(env.services_root, locationId, token, amount, creditCardToken, itemName, itemNumber, membershipKey);
|
|
2254
2259
|
|
|
@@ -2279,13 +2284,13 @@ var Como = function () {
|
|
|
2279
2284
|
key: 'deletePayment',
|
|
2280
2285
|
value: function () {
|
|
2281
2286
|
var _ref41 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee40(creditCardToken) {
|
|
2282
|
-
var
|
|
2287
|
+
var _comoData37, env, token, locationId, api, responseJson;
|
|
2283
2288
|
|
|
2284
2289
|
return _regenerator2.default.wrap(function _callee40$(_context40) {
|
|
2285
2290
|
while (1) {
|
|
2286
2291
|
switch (_context40.prev = _context40.next) {
|
|
2287
2292
|
case 0:
|
|
2288
|
-
|
|
2293
|
+
_comoData37 = this.comoData, env = _comoData37.env_params, token = _comoData37.token, locationId = _comoData37.locationId, api = _comoData37.api;
|
|
2289
2294
|
_context40.next = 3;
|
|
2290
2295
|
return api.deletePayment(env.services_root, locationId, token, creditCardToken);
|
|
2291
2296
|
|
|
@@ -2317,13 +2322,13 @@ var Como = function () {
|
|
|
2317
2322
|
var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee41(tag, limit, offset) {
|
|
2318
2323
|
var fetchExpiredMessages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
2319
2324
|
|
|
2320
|
-
var
|
|
2325
|
+
var _comoData38, api, locationId, env;
|
|
2321
2326
|
|
|
2322
2327
|
return _regenerator2.default.wrap(function _callee41$(_context41) {
|
|
2323
2328
|
while (1) {
|
|
2324
2329
|
switch (_context41.prev = _context41.next) {
|
|
2325
2330
|
case 0:
|
|
2326
|
-
|
|
2331
|
+
_comoData38 = this.comoData, api = _comoData38.api, locationId = _comoData38.locationId, env = _comoData38.env_params;
|
|
2327
2332
|
_context41.next = 3;
|
|
2328
2333
|
return this.refreshTokenIfNeeded();
|
|
2329
2334
|
|
|
@@ -2352,10 +2357,10 @@ var Como = function () {
|
|
|
2352
2357
|
}, {
|
|
2353
2358
|
key: 'markAsReadMemberMessages',
|
|
2354
2359
|
value: function markAsReadMemberMessages(keysList) {
|
|
2355
|
-
var
|
|
2356
|
-
api =
|
|
2357
|
-
locationId =
|
|
2358
|
-
env =
|
|
2360
|
+
var _comoData39 = this.comoData,
|
|
2361
|
+
api = _comoData39.api,
|
|
2362
|
+
locationId = _comoData39.locationId,
|
|
2363
|
+
env = _comoData39.env_params;
|
|
2359
2364
|
|
|
2360
2365
|
return api.markAsReadMemberMessages(env.services_root, locationId, keysList);
|
|
2361
2366
|
}
|
|
@@ -2371,13 +2376,13 @@ var Como = function () {
|
|
|
2371
2376
|
key: 'budgetTransfer',
|
|
2372
2377
|
value: function () {
|
|
2373
2378
|
var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee42(receiver, sender, amount, wallet) {
|
|
2374
|
-
var
|
|
2379
|
+
var _comoData40, api, locationId, env;
|
|
2375
2380
|
|
|
2376
2381
|
return _regenerator2.default.wrap(function _callee42$(_context42) {
|
|
2377
2382
|
while (1) {
|
|
2378
2383
|
switch (_context42.prev = _context42.next) {
|
|
2379
2384
|
case 0:
|
|
2380
|
-
|
|
2385
|
+
_comoData40 = this.comoData, api = _comoData40.api, locationId = _comoData40.locationId, env = _comoData40.env_params;
|
|
2381
2386
|
return _context42.abrupt('return', api.budgetTransfer(env.services_root, locationId, receiver, sender, amount, wallet));
|
|
2382
2387
|
|
|
2383
2388
|
case 2:
|
|
@@ -2402,9 +2407,9 @@ var Como = function () {
|
|
|
2402
2407
|
}, {
|
|
2403
2408
|
key: 'getCreditClaimData',
|
|
2404
2409
|
value: function getCreditClaimData(claimId) {
|
|
2405
|
-
var
|
|
2406
|
-
api =
|
|
2407
|
-
env =
|
|
2410
|
+
var _comoData41 = this.comoData,
|
|
2411
|
+
api = _comoData41.api,
|
|
2412
|
+
env = _comoData41.env_params;
|
|
2408
2413
|
|
|
2409
2414
|
return api.getCreditClaimData(env.services_root, claimId);
|
|
2410
2415
|
}
|
|
@@ -2417,13 +2422,13 @@ var Como = function () {
|
|
|
2417
2422
|
key: 'budgetTransferClaim',
|
|
2418
2423
|
value: function () {
|
|
2419
2424
|
var _ref44 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee43(claimCode) {
|
|
2420
|
-
var
|
|
2425
|
+
var _comoData42, api, locationId, env;
|
|
2421
2426
|
|
|
2422
2427
|
return _regenerator2.default.wrap(function _callee43$(_context43) {
|
|
2423
2428
|
while (1) {
|
|
2424
2429
|
switch (_context43.prev = _context43.next) {
|
|
2425
2430
|
case 0:
|
|
2426
|
-
|
|
2431
|
+
_comoData42 = this.comoData, api = _comoData42.api, locationId = _comoData42.locationId, env = _comoData42.env_params;
|
|
2427
2432
|
return _context43.abrupt('return', api.budgetTransferClaim(env.services_root, locationId, claimCode));
|
|
2428
2433
|
|
|
2429
2434
|
case 2:
|
|
@@ -2451,10 +2456,10 @@ var Como = function () {
|
|
|
2451
2456
|
}, {
|
|
2452
2457
|
key: 'claim',
|
|
2453
2458
|
value: function claim(assetKey, itemId, tag) {
|
|
2454
|
-
var
|
|
2455
|
-
env =
|
|
2456
|
-
locationId =
|
|
2457
|
-
api =
|
|
2459
|
+
var _comoData43 = this.comoData,
|
|
2460
|
+
env = _comoData43.env_params,
|
|
2461
|
+
locationId = _comoData43.locationId,
|
|
2462
|
+
api = _comoData43.api;
|
|
2458
2463
|
|
|
2459
2464
|
return api.claim(env.zapp_root, locationId, assetKey, itemId, tag);
|
|
2460
2465
|
}
|
|
@@ -2469,13 +2474,13 @@ var Como = function () {
|
|
|
2469
2474
|
key: 'logUserAction',
|
|
2470
2475
|
value: function () {
|
|
2471
2476
|
var _ref45 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee44(action, logData) {
|
|
2472
|
-
var
|
|
2477
|
+
var _comoData44, env, locationId, api;
|
|
2473
2478
|
|
|
2474
2479
|
return _regenerator2.default.wrap(function _callee44$(_context44) {
|
|
2475
2480
|
while (1) {
|
|
2476
2481
|
switch (_context44.prev = _context44.next) {
|
|
2477
2482
|
case 0:
|
|
2478
|
-
|
|
2483
|
+
_comoData44 = this.comoData, env = _comoData44.env_params, locationId = _comoData44.locationId, api = _comoData44.api;
|
|
2479
2484
|
return _context44.abrupt('return', api.logUserAction(env.zapp_root, locationId, action, logData));
|
|
2480
2485
|
|
|
2481
2486
|
case 2:
|
|
@@ -2503,13 +2508,13 @@ var Como = function () {
|
|
|
2503
2508
|
key: 'getPurchaseHistory',
|
|
2504
2509
|
value: function () {
|
|
2505
2510
|
var _ref46 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee45(limit, offset) {
|
|
2506
|
-
var
|
|
2511
|
+
var _comoData45, locationId, api, membership;
|
|
2507
2512
|
|
|
2508
2513
|
return _regenerator2.default.wrap(function _callee45$(_context45) {
|
|
2509
2514
|
while (1) {
|
|
2510
2515
|
switch (_context45.prev = _context45.next) {
|
|
2511
2516
|
case 0:
|
|
2512
|
-
|
|
2517
|
+
_comoData45 = this.comoData, locationId = _comoData45.locationId, api = _comoData45.api, membership = _comoData45.membership;
|
|
2513
2518
|
return _context45.abrupt('return', api.getPurchaseHistory(locationId, membership.Key, limit, offset));
|
|
2514
2519
|
|
|
2515
2520
|
case 2:
|
|
@@ -2534,9 +2539,9 @@ var Como = function () {
|
|
|
2534
2539
|
}, {
|
|
2535
2540
|
key: 'getAppTextsV2',
|
|
2536
2541
|
value: function getAppTextsV2() {
|
|
2537
|
-
var
|
|
2538
|
-
api =
|
|
2539
|
-
locationId =
|
|
2542
|
+
var _comoData46 = this.comoData,
|
|
2543
|
+
api = _comoData46.api,
|
|
2544
|
+
locationId = _comoData46.locationId;
|
|
2540
2545
|
|
|
2541
2546
|
return api.getAllTranslations(locationId);
|
|
2542
2547
|
}
|
|
@@ -2553,13 +2558,13 @@ var Como = function () {
|
|
|
2553
2558
|
var _ref47 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee46() {
|
|
2554
2559
|
var timeToLive = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 60;
|
|
2555
2560
|
|
|
2556
|
-
var
|
|
2561
|
+
var _comoData47, api, locationId, env;
|
|
2557
2562
|
|
|
2558
2563
|
return _regenerator2.default.wrap(function _callee46$(_context46) {
|
|
2559
2564
|
while (1) {
|
|
2560
2565
|
switch (_context46.prev = _context46.next) {
|
|
2561
2566
|
case 0:
|
|
2562
|
-
|
|
2567
|
+
_comoData47 = this.comoData, api = _comoData47.api, locationId = _comoData47.locationId, env = _comoData47.env_params;
|
|
2563
2568
|
return _context46.abrupt('return', api.generateTemporaryToken(env.services_root, locationId, timeToLive));
|
|
2564
2569
|
|
|
2565
2570
|
case 2:
|
package/lib/config/env.js
CHANGED
|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
8
8
|
services_root_cdn: 'https://services.qa.bcomo.com',
|
|
9
9
|
app_modules_root: 'https://app.qa.comosense.com/app-modules',
|
|
10
10
|
app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
|
|
11
|
+
cp_base_url: 'https://{location_id}.qa.comosense.net',
|
|
11
12
|
purchase_connect_base_url: 'https://qr.qa.comosense.com'
|
|
12
13
|
},
|
|
13
14
|
qa: {
|
|
@@ -17,6 +18,7 @@ module.exports = {
|
|
|
17
18
|
services_root_cdn: 'https://services.qa.bcomo.com',
|
|
18
19
|
app_modules_root: 'https://app.qa.comosense.com/app-modules',
|
|
19
20
|
app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
|
|
21
|
+
cp_base_url: 'https://{location_id}.qa.comosense.net',
|
|
20
22
|
purchase_connect_base_url: 'https://qr.qa.comosense.com'
|
|
21
23
|
},
|
|
22
24
|
prod: {
|
|
@@ -26,6 +28,7 @@ module.exports = {
|
|
|
26
28
|
services_root_cdn: 'https://services.prod.bcomo.com',
|
|
27
29
|
app_modules_root: 'https://app.comosense.com/app-modules',
|
|
28
30
|
app_modules_legacy_root: 'https://appmodules.comosense.com',
|
|
31
|
+
cp_base_url: 'https://{location_id}.comosense.net',
|
|
29
32
|
purchase_connect_base_url: 'https://qr.comosense.com'
|
|
30
33
|
},
|
|
31
34
|
test: {
|
|
@@ -35,6 +38,7 @@ module.exports = {
|
|
|
35
38
|
services_root_cdn: 'https://services.qa.bcomo.com',
|
|
36
39
|
app_modules_root: 'https://app.qa.comosense.com/app-modules',
|
|
37
40
|
app_modules_legacy_root: 'https://appmodules.qa.comosense.com',
|
|
41
|
+
cp_base_url: 'https://{location_id}.qa.comosense.net',
|
|
38
42
|
app_payment_purchase: 'https://qr.qa.comosense.com/Purchase/Report',
|
|
39
43
|
purchase_connect_base_url: 'https://qr.qa.comosense.com'
|
|
40
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@como/como-client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Client module for Como's loaylty API",
|
|
5
5
|
"main": "src/como.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,4 +50,4 @@
|
|
|
50
50
|
"webpack": "^4.8.3",
|
|
51
51
|
"webpack-cli": "^2.1.4"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|
package/src/como.js
CHANGED
|
@@ -834,7 +834,11 @@ class Como {
|
|
|
834
834
|
/**
|
|
835
835
|
* Returns the location specific friend referral web url
|
|
836
836
|
*/
|
|
837
|
-
getFriendReferralInviteLink(referral) {
|
|
837
|
+
getFriendReferralInviteLink(referral) {
|
|
838
|
+
const { env_params: env, locationId } = this.comoData;
|
|
839
|
+
const cpBaseUrl = env.cp_base_url.replace('{location_id}', locationId);
|
|
840
|
+
return `${cpBaseUrl}/auth/register?onboardingflow=register&ReferralCode=${referral}`;
|
|
841
|
+
}
|
|
838
842
|
|
|
839
843
|
/**
|
|
840
844
|
* Return the location state
|