@fernir2/saas-kit-cli 0.1.31 → 0.1.32
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/base-repo/app-constants/aliases.cjs.js +1 -1
- package/base-repo/app-constants/aliases.js +1 -1
- package/cli/.env +55 -0
- package/level2/cli/create-saas-kit-app/bin/index.cjs.js +4 -4
- package/level2/cli/create-saas-kit-app/bin/index.js +3 -3
- package/level2/fd-toolbox/api/api-client.cjs.js +1 -1
- package/level2/fd-toolbox/api/api-client.js +1 -1
- package/level2/fd-toolbox/api/api-path-names.cjs.js +2 -2
- package/level2/fd-toolbox/api/api-paths.cjs.js +1 -1
- package/level2/fd-toolbox/api/api-paths.js +1 -1
- package/level2/fd-toolbox/api/base-api.cjs.js +1 -1
- package/level2/fd-toolbox/api/base-api.js +1 -1
- package/level2/fd-toolbox/auth/login-states.cjs.js +1 -1
- package/level2/fd-toolbox/auth/login-states.js +1 -1
- package/level2/fd-toolbox/auth/session-storage.cjs.js +1 -1
- package/level2/fd-toolbox/auth/session-storage.js +1 -1
- package/level2/fd-toolbox/auth/tokens.cjs.js +1 -1
- package/level2/fd-toolbox/auth/tokens.js +1 -1
- package/level2/fd-toolbox/constants/constants.cjs.js +1 -1
- package/level2/fd-toolbox/constants/constants.js +1 -1
- package/level2/fd-toolbox/enums/enums.cjs.js +1 -1
- package/level2/fd-toolbox/enums/enums.js +1 -1
- package/level2/fd-toolbox/errors/error-handler.cjs.js +1 -1
- package/level2/fd-toolbox/errors/error-handler.js +1 -1
- package/level2/fd-toolbox/errors/errors.cjs.js +1 -1
- package/level2/fd-toolbox/errors/errors.js +1 -1
- package/level2/fd-toolbox/errors/problem-details.cjs.js +1 -1
- package/level2/fd-toolbox/errors/problem-details.js +1 -1
- package/level2/fd-toolbox/functions/value-checking-functions.cjs.js +1 -1
- package/level2/fd-toolbox/functions/value-checking-functions.js +1 -1
- package/level2/fd-toolbox/http/url/urls.cjs.js +1 -1
- package/level2/fd-toolbox/http/url/urls.js +1 -1
- package/level2/fd-toolbox/infra/env-config.cjs.js +2 -2
- package/level2/fd-toolbox/infra/env-config.js +2 -2
- package/level2/fd-toolbox/infra/env-functions.cjs.js +1 -1
- package/level2/fd-toolbox/infra/env-functions.js +1 -1
- package/level2/fd-toolbox/infra/env-schema.cjs.js +2 -2
- package/level2/fd-toolbox/infra/env-schema.js +2 -2
- package/level2/fd-toolbox/infra/env-store.cjs.js +1 -1
- package/level2/fd-toolbox/infra/env-store.js +1 -1
- package/level2/fd-toolbox/lib/environments.cjs.js +1 -1
- package/level2/fd-toolbox/lib/environments.js +1 -1
- package/level2/fd-toolbox/lib/utils.cjs.js +1 -1
- package/level2/fd-toolbox/lib/utils.js +1 -1
- package/level2/fd-toolbox/local-storage/local-storage.cjs.js +1 -1
- package/level2/fd-toolbox/local-storage/local-storage.js +1 -1
- package/level2/fd-toolbox/logging/loggers.cjs.js +1 -1
- package/level2/fd-toolbox/logging/loggers.js +1 -1
- package/level2/fd-toolbox/notifications.cjs.js +2 -2
- package/level2/fd-toolbox/notifications.js +2 -2
- package/level2/fd-toolbox/odata/odata-constants.cjs.js +1 -1
- package/level2/fd-toolbox/odata/odata-constants.js +1 -1
- package/level2/fd-toolbox/odata/odatas.cjs.js +1 -1
- package/level2/fd-toolbox/odata/odatas.js +1 -1
- package/level2/fd-toolbox/odata/services/odata-filters.cjs.js +1 -1
- package/level2/fd-toolbox/odata/services/odata-filters.js +1 -1
- package/level2/fd-toolbox/paths/paths-names.cjs.js +2 -2
- package/level2/fd-toolbox/paths/paths-names.js +1 -1
- package/level2/fd-toolbox/routing/login-routers.cjs.js +1 -1
- package/level2/fd-toolbox/routing/login-routers.js +1 -1
- package/level2/fd-toolbox/routing/paths.cjs.js +1 -1
- package/level2/fd-toolbox/routing/paths.js +1 -1
- package/level2/fd-toolbox/strings/strings-constants.cjs.js +1 -1
- package/level2/fd-toolbox/strings/strings-constants.js +1 -1
- package/level2/fd-toolbox/strings/strings.cjs.js +1 -1
- package/level2/fd-toolbox/strings/strings.js +1 -1
- package/level2/fd-toolbox/types/ensure-type.cjs.js +1 -1
- package/level2/fd-toolbox/types/ensure-type.js +1 -1
- package/level2/fd-toolbox-core/core/name-of.cjs.js +1 -1
- package/level2/fd-toolbox-core/core/name-of.js +1 -1
- package/level2/fd-toolbox-core/types/resource-with-id.cjs.js +1 -1
- package/level2/fd-toolbox-core/types/resource-with-id.js +1 -1
- package/level2/npm-commands/build-npm/path.cjs.js +1 -1
- package/level2/npm-commands/build-npm/path.js +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,6 @@ var odataConstants = require('../odata-constants.cjs.js');
|
|
|
6
6
|
var errors = require('../../errors/errors.cjs.js');
|
|
7
7
|
var odataEnums = require('../odata-enums.cjs.js');
|
|
8
8
|
|
|
9
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
9
|
+
var __defProp=Object['defineProperty'],__name=(_0x120d97,_0x363bd0)=>__defProp(_0x120d97,'name',{'value':_0x363bd0,'configurable':!![]});function getODataFilterAsString(_0x17d8ae){_0x17d8ae['operator']??=enums.oDataOperators['equal'];if(_0x17d8ae['type']===void(0x5b9*0x5+-0x1227*-0x1+-0x49*0xa4)||_0x17d8ae['type']===odataEnums.oDataFilterTypes['default']){if(typeof _0x17d8ae['rightSide']==='number')_0x17d8ae['type']=odataEnums.oDataFilterTypes['number'];else {if(typeof _0x17d8ae['rightSide']==='boolean'||typeof _0x17d8ae['rightSide']==='string')_0x17d8ae['type']=odataEnums.oDataFilterTypes['string'];else _0x17d8ae['rightSide']instanceof Date?_0x17d8ae['type']=odataEnums.oDataFilterTypes['date']:_0x17d8ae['type']=odataEnums.oDataFilterTypes['string'];}}return typeof _0x17d8ae['rightSide']==='string'&&!isNaN(Number(_0x17d8ae['rightSide']))&&(_0x17d8ae['rightSide']=Number(_0x17d8ae['rightSide'])),getFilterString(_0x17d8ae);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x1370b9){switch(_0x1370b9['operator']){case enums.oDataOperators['in']:return handleInOperator(_0x1370b9);case enums.oDataOperators['nin']:return handleInOperator(_0x1370b9);case enums.oDataOperators['empty']:return '';case enums.oDataOperators['startsWith']:return handleStartsWithOperator(_0x1370b9);default:return handleDefaultOperators(_0x1370b9);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x5f3525){if(_0x5f3525['type']===odataEnums.oDataFilterTypes['guid']){let _0x2232b6=oDataFormatGuid(_0x5f3525['rightSide']);return _0x5f3525['leftSide']+'\x20'+_0x5f3525['operator']+'\x20('+_0x2232b6+')';}return _0x5f3525['leftSide']+'\x20'+_0x5f3525['operator']+'\x20('+_0x5f3525['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0x45ff55){return _0x45ff55['operator']+'('+_0x45ff55['leftSide']+',\x20'+_0x45ff55['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x20841b){switch(_0x20841b['type']){case odataEnums.oDataFilterTypes['string']:return handleStringFilter(_0x20841b);case odataEnums.oDataFilterTypes['date']:return handleDateFilter(_0x20841b);case odataEnums.oDataFilterTypes['guid']:return handleGuidFilter(_0x20841b);case odataEnums.oDataFilterTypes['number']:return handleNumberFilter(_0x20841b);case odataEnums.oDataFilterTypes['lambda']:return handleLambdaFilter(_0x20841b);default:throw errors.createError('Unsupported\x20filter\x20type:\x20'+_0x20841b['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0x56153d){if(_0x56153d['rightSide']===odataConstants.oDataNullValue)return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20'+_0x56153d['rightSide'];if(typeof _0x56153d['rightSide']==='string')return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20\x27'+_0x56153d['rightSide']+'\x27';return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20'+_0x56153d['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0x5ead93){return _0x5ead93['leftSide']+'\x20'+_0x5ead93['operator']+'\x20datetime\x27'+_0x5ead93['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0x2a3af1){return _0x2a3af1['leftSide']+'\x20'+_0x2a3af1['operator']+'\x20guid\x27'+_0x2a3af1['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x31c4fd){return _0x31c4fd['leftSide']+'\x20'+_0x31c4fd['operator']+'\x20'+_0x31c4fd['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0x351f93){const _0x4e8e6b=_0x351f93['lambdaConfig'];if(!_0x4e8e6b)throw errors.createError('Lambda\x20configuration\x20is\x20missing');return _0x4e8e6b['baseEnumerablePropertyName']+'/'+_0x4e8e6b['method']+'(i:i/'+_0x351f93['leftSide']+'\x20'+_0x351f93['operator']+'\x20guid\x27'+_0x351f93['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x375381){let _0x3d261c;if(typeof _0x375381==='string')_0x3d261c=''+_0x375381;else Array['isArray'](_0x375381)&&(_0x3d261c=_0x375381['map'](_0x525182=>'guid\x27'+_0x525182+'\x27')['join'](','));return _0x3d261c;}__name(oDataFormatGuid,'oDataFormatGuid');
|
|
10
10
|
|
|
11
11
|
exports.getODataFilterAsString = getODataFilterAsString;
|
|
@@ -4,6 +4,6 @@ import { oDataNullValue } from '../odata-constants.js';
|
|
|
4
4
|
import { createError } from '../../errors/errors.js';
|
|
5
5
|
import { oDataFilterTypes } from '../odata-enums.js';
|
|
6
6
|
|
|
7
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
7
|
+
var __defProp=Object['defineProperty'],__name=(_0x120d97,_0x363bd0)=>__defProp(_0x120d97,'name',{'value':_0x363bd0,'configurable':!![]});function getODataFilterAsString(_0x17d8ae){_0x17d8ae['operator']??=oDataOperators['equal'];if(_0x17d8ae['type']===void(0x5b9*0x5+-0x1227*-0x1+-0x49*0xa4)||_0x17d8ae['type']===oDataFilterTypes['default']){if(typeof _0x17d8ae['rightSide']==='number')_0x17d8ae['type']=oDataFilterTypes['number'];else {if(typeof _0x17d8ae['rightSide']==='boolean'||typeof _0x17d8ae['rightSide']==='string')_0x17d8ae['type']=oDataFilterTypes['string'];else _0x17d8ae['rightSide']instanceof Date?_0x17d8ae['type']=oDataFilterTypes['date']:_0x17d8ae['type']=oDataFilterTypes['string'];}}return typeof _0x17d8ae['rightSide']==='string'&&!isNaN(Number(_0x17d8ae['rightSide']))&&(_0x17d8ae['rightSide']=Number(_0x17d8ae['rightSide'])),getFilterString(_0x17d8ae);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x1370b9){switch(_0x1370b9['operator']){case oDataOperators['in']:return handleInOperator(_0x1370b9);case oDataOperators['nin']:return handleInOperator(_0x1370b9);case oDataOperators['empty']:return '';case oDataOperators['startsWith']:return handleStartsWithOperator(_0x1370b9);default:return handleDefaultOperators(_0x1370b9);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x5f3525){if(_0x5f3525['type']===oDataFilterTypes['guid']){let _0x2232b6=oDataFormatGuid(_0x5f3525['rightSide']);return _0x5f3525['leftSide']+'\x20'+_0x5f3525['operator']+'\x20('+_0x2232b6+')';}return _0x5f3525['leftSide']+'\x20'+_0x5f3525['operator']+'\x20('+_0x5f3525['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0x45ff55){return _0x45ff55['operator']+'('+_0x45ff55['leftSide']+',\x20'+_0x45ff55['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x20841b){switch(_0x20841b['type']){case oDataFilterTypes['string']:return handleStringFilter(_0x20841b);case oDataFilterTypes['date']:return handleDateFilter(_0x20841b);case oDataFilterTypes['guid']:return handleGuidFilter(_0x20841b);case oDataFilterTypes['number']:return handleNumberFilter(_0x20841b);case oDataFilterTypes['lambda']:return handleLambdaFilter(_0x20841b);default:throw createError('Unsupported\x20filter\x20type:\x20'+_0x20841b['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0x56153d){if(_0x56153d['rightSide']===oDataNullValue)return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20'+_0x56153d['rightSide'];if(typeof _0x56153d['rightSide']==='string')return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20\x27'+_0x56153d['rightSide']+'\x27';return _0x56153d['leftSide']+'\x20'+_0x56153d['operator']+'\x20'+_0x56153d['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0x5ead93){return _0x5ead93['leftSide']+'\x20'+_0x5ead93['operator']+'\x20datetime\x27'+_0x5ead93['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0x2a3af1){return _0x2a3af1['leftSide']+'\x20'+_0x2a3af1['operator']+'\x20guid\x27'+_0x2a3af1['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x31c4fd){return _0x31c4fd['leftSide']+'\x20'+_0x31c4fd['operator']+'\x20'+_0x31c4fd['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0x351f93){const _0x4e8e6b=_0x351f93['lambdaConfig'];if(!_0x4e8e6b)throw createError('Lambda\x20configuration\x20is\x20missing');return _0x4e8e6b['baseEnumerablePropertyName']+'/'+_0x4e8e6b['method']+'(i:i/'+_0x351f93['leftSide']+'\x20'+_0x351f93['operator']+'\x20guid\x27'+_0x351f93['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x375381){let _0x3d261c;if(typeof _0x375381==='string')_0x3d261c=''+_0x375381;else Array['isArray'](_0x375381)&&(_0x3d261c=_0x375381['map'](_0x525182=>'guid\x27'+_0x525182+'\x27')['join'](','));return _0x3d261c;}__name(oDataFormatGuid,'oDataFormatGuid');
|
|
8
8
|
|
|
9
9
|
export { getODataFilterAsString };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _0x27ff26 = require('path');
|
|
5
5
|
|
|
6
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
6
|
+
var __defProp=Object['defineProperty'],__name=(_0x58bce8,_0x17e880)=>__defProp(_0x58bce8,'name',{'value':_0x17e880,'configurable':!![]});function getFileNameWithExtension(_0x41b3f8,_0x1bc73a){if(!_0x1bc73a['startsWith']('.'))return _0x41b3f8+'.'+_0x1bc73a;return _0x41b3f8+_0x1bc73a;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x34c310,_0x3839ba,..._0x169a86){const _0x14126c=getFileNameWithExtension(_0x34c310,_0x3839ba);return _0x27ff26.join(..._0x169a86,_0x14126c);}__name(getFullFilePath,'getFullFilePath');
|
|
7
7
|
|
|
8
8
|
exports.getFileNameWithExtension = getFileNameWithExtension;
|
|
9
9
|
exports.getFullFilePath = getFullFilePath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { join } from 'path';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0x58bce8,_0x17e880)=>__defProp(_0x58bce8,'name',{'value':_0x17e880,'configurable':!![]});function getFileNameWithExtension(_0x41b3f8,_0x1bc73a){if(!_0x1bc73a['startsWith']('.'))return _0x41b3f8+'.'+_0x1bc73a;return _0x41b3f8+_0x1bc73a;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x34c310,_0x3839ba,..._0x169a86){const _0x14126c=getFileNameWithExtension(_0x34c310,_0x3839ba);return join(..._0x169a86,_0x14126c);}__name(getFullFilePath,'getFullFilePath');
|
|
5
5
|
|
|
6
6
|
export { getFileNameWithExtension, getFullFilePath };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var routes = require('./routes.cjs.js');
|
|
5
5
|
|
|
6
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
6
|
+
var __defProp=Object['defineProperty'],__name=(_0x5ee5d4,_0x435840)=>__defProp(_0x5ee5d4,'name',{'value':_0x435840,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes.routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
|
|
7
7
|
|
|
8
8
|
exports.getLoginUrl = getLoginUrl;
|
|
9
9
|
exports.getRelativeLoginUrl = getRelativeLoginUrl;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { routes } from './routes.js';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0x5ee5d4,_0x435840)=>__defProp(_0x5ee5d4,'name',{'value':_0x435840,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
|
|
5
5
|
|
|
6
6
|
export { getLoginUrl, getRelativeLoginUrl, goToLogin };
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
var utils = require('../lib/utils.cjs.js');
|
|
5
5
|
|
|
6
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
6
|
+
var __defProp=Object['defineProperty'],__name=(_0x2901e5,_0x2307da)=>__defProp(_0x2901e5,'name',{'value':_0x2307da,'configurable':!![]});function addQueryParamsToPath(_0x4df638,_0x14ce9f){let _0x138d3c=_0x4df638;if(_0x14ce9f&&Array['isArray'](_0x14ce9f))_0x138d3c+=convertQueryParamsArrayToString(_0x14ce9f);else _0x14ce9f&&utils.isPlainObject(_0x14ce9f)&&(_0x138d3c+=convertQueryParamsObjectToString(_0x14ce9f));return _0x138d3c;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0xa9754c){const _0x360e50=_0xa9754c['map'](_0x2f1a82=>_0x2f1a82['name']+'='+_0x2f1a82['value'])['join']('&');return _0x360e50?'?'+_0x360e50:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x2aadfb){const _0x2a6f75=Object['entries'](_0x2aadfb)['map'](([_0x28b194,_0x291f28])=>_0x28b194+'='+_0x291f28)['join']('&');return _0x2a6f75?'?'+_0x2a6f75:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
|
|
7
7
|
|
|
8
8
|
exports.addQueryParamsToPath = addQueryParamsToPath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { isPlainObject } from '../lib/utils.js';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0x2901e5,_0x2307da)=>__defProp(_0x2901e5,'name',{'value':_0x2307da,'configurable':!![]});function addQueryParamsToPath(_0x4df638,_0x14ce9f){let _0x138d3c=_0x4df638;if(_0x14ce9f&&Array['isArray'](_0x14ce9f))_0x138d3c+=convertQueryParamsArrayToString(_0x14ce9f);else _0x14ce9f&&isPlainObject(_0x14ce9f)&&(_0x138d3c+=convertQueryParamsObjectToString(_0x14ce9f));return _0x138d3c;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0xa9754c){const _0x360e50=_0xa9754c['map'](_0x2f1a82=>_0x2f1a82['name']+'='+_0x2f1a82['value'])['join']('&');return _0x360e50?'?'+_0x360e50:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x2aadfb){const _0x2a6f75=Object['entries'](_0x2aadfb)['map'](([_0x28b194,_0x291f28])=>_0x28b194+'='+_0x291f28)['join']('&');return _0x2a6f75?'?'+_0x2a6f75:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
|
|
5
5
|
|
|
6
6
|
export { addQueryParamsToPath };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var stringsConstants = require('./strings-constants.cjs.js');
|
|
5
5
|
var valueCheckingFunctions = require('../functions/value-checking-functions.cjs.js');
|
|
6
6
|
|
|
7
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
7
|
+
var __defProp=Object['defineProperty'],__name=(_0x5b7d4f,_0x3951c3)=>__defProp(_0x5b7d4f,'name',{'value':_0x3951c3,'configurable':!![]});function shortenWithEllipsis(_0x82fad,_0x2b629b=stringsConstants.shortTextLength){if(valueCheckingFunctions.isNullOrUndefined(_0x82fad))return '';return _0x82fad['length']<-0xc4*0x2f+0xc3+0x137*0x1d?_0x82fad['length']<=_0x2b629b?_0x82fad:_0x82fad['substring'](0x91b*-0x3+0xdc*0x25+-0x47b,_0x2b629b):_0x82fad['length']<=_0x2b629b?_0x82fad:_0x82fad['substring'](-0x1e68+0x1fc5*0x1+0x15d*-0x1,_0x2b629b-(-0x1ce7+0x2224+0x2*-0x29e))+stringsConstants.ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x33bc03,_0x197e8d){let _0x41b276=_0x33bc03;if(Array['isArray'](_0x197e8d))for(let _0x5c0800 of _0x197e8d){(_0x33bc03['startsWith'](_0x5c0800)||_0x33bc03['endsWith'](_0x5c0800))&&(_0x41b276=trimOneCharacter(_0x33bc03,_0x5c0800));}else _0x41b276=trimOneCharacter(_0x33bc03,_0x197e8d);return _0x41b276;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x15a98e,_0x5c3102){let _0x183499=_0x15a98e;return _0x183499?.['startsWith'](_0x5c3102)&&(_0x183499=_0x183499['substring'](-0x1222+0x1db*-0xd+0x2a42)),_0x183499?.['endsWith'](_0x5c3102)&&(_0x183499=_0x183499['substring'](-0x13bd+-0x79d*-0x2+0x483,_0x183499['lastIndexOf'](_0x5c3102))),_0x183499;}__name(trimOneCharacter,'trimOneCharacter');
|
|
8
8
|
|
|
9
9
|
exports.shortenWithEllipsis = shortenWithEllipsis;
|
|
10
10
|
exports.trimCharacter = trimCharacter;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { shortTextLength, ellipsis } from './strings-constants.js';
|
|
3
3
|
import { isNullOrUndefined } from '../functions/value-checking-functions.js';
|
|
4
4
|
|
|
5
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
5
|
+
var __defProp=Object['defineProperty'],__name=(_0x5b7d4f,_0x3951c3)=>__defProp(_0x5b7d4f,'name',{'value':_0x3951c3,'configurable':!![]});function shortenWithEllipsis(_0x82fad,_0x2b629b=shortTextLength){if(isNullOrUndefined(_0x82fad))return '';return _0x82fad['length']<-0xc4*0x2f+0xc3+0x137*0x1d?_0x82fad['length']<=_0x2b629b?_0x82fad:_0x82fad['substring'](0x91b*-0x3+0xdc*0x25+-0x47b,_0x2b629b):_0x82fad['length']<=_0x2b629b?_0x82fad:_0x82fad['substring'](-0x1e68+0x1fc5*0x1+0x15d*-0x1,_0x2b629b-(-0x1ce7+0x2224+0x2*-0x29e))+ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x33bc03,_0x197e8d){let _0x41b276=_0x33bc03;if(Array['isArray'](_0x197e8d))for(let _0x5c0800 of _0x197e8d){(_0x33bc03['startsWith'](_0x5c0800)||_0x33bc03['endsWith'](_0x5c0800))&&(_0x41b276=trimOneCharacter(_0x33bc03,_0x5c0800));}else _0x41b276=trimOneCharacter(_0x33bc03,_0x197e8d);return _0x41b276;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x15a98e,_0x5c3102){let _0x183499=_0x15a98e;return _0x183499?.['startsWith'](_0x5c3102)&&(_0x183499=_0x183499['substring'](-0x1222+0x1db*-0xd+0x2a42)),_0x183499?.['endsWith'](_0x5c3102)&&(_0x183499=_0x183499['substring'](-0x13bd+-0x79d*-0x2+0x483,_0x183499['lastIndexOf'](_0x5c3102))),_0x183499;}__name(trimOneCharacter,'trimOneCharacter');
|
|
6
6
|
|
|
7
7
|
export { shortenWithEllipsis, trimCharacter };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0x20a45a,_0x5df8eb)=>__defProp(_0x20a45a,'name',{'value':_0x5df8eb,'configurable':!![]});function ensureString(_0x143fd8){return isString(_0x143fd8)?_0x143fd8:String(_0x143fd8);}__name(ensureString,'ensureString');function ensureNumber(_0x2e2e63){if(isNumber(_0x2e2e63))return _0x2e2e63;else {if(isString(_0x2e2e63))return parseFloat(_0x2e2e63);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x486614){if(Array['isArray'](_0x486614)&&_0x486614['length']>-0x495+0x1aea+-0x1655&&isObject(_0x486614[-0x1*0xd83+-0x32c*-0x4+0xd3])){const _0x10bdb1=[];for(const _0x554c7a of _0x486614){if(isObject(_0x554c7a))_0x10bdb1['push'](_0x554c7a);}return _0x10bdb1;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x4b1f1d){let _0x545bc5={};return isWithIndexer(_0x4b1f1d)&&(_0x545bc5=_0x4b1f1d),_0x545bc5;}__name(ensureWithIndexer,'ensureWithIndexer');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x113d68){return typeof _0x113d68===types['object']&&_0x113d68!==null;}__name(isObject,'isObject');function isString(_0x597017){return typeof _0x597017===types['string'];}__name(isString,'isString');function isNumber(_0x10883c){return typeof _0x10883c===types['number'];}__name(isNumber,'isNumber');function isWithIndexer(_0x1be9ec){return isObject(_0x1be9ec)&&!Array['isArray'](_0x1be9ec);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x1cc45c){return isObject(_0x1cc45c)&&Array['isArray'](_0x1cc45c);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x45ea68){return isObject(_0x45ea68)&&stripeConflictResponseProperties['detail']in _0x45ea68;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x264027){return typeof _0x264027==='boolean';}__name(isBoolean,'isBoolean');
|
|
5
5
|
|
|
6
6
|
exports.ensureNumber = ensureNumber;
|
|
7
7
|
exports.ensureObjectArray = ensureObjectArray;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
2
|
+
var __defProp=Object['defineProperty'],__name=(_0x20a45a,_0x5df8eb)=>__defProp(_0x20a45a,'name',{'value':_0x5df8eb,'configurable':!![]});function ensureString(_0x143fd8){return isString(_0x143fd8)?_0x143fd8:String(_0x143fd8);}__name(ensureString,'ensureString');function ensureNumber(_0x2e2e63){if(isNumber(_0x2e2e63))return _0x2e2e63;else {if(isString(_0x2e2e63))return parseFloat(_0x2e2e63);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x486614){if(Array['isArray'](_0x486614)&&_0x486614['length']>-0x495+0x1aea+-0x1655&&isObject(_0x486614[-0x1*0xd83+-0x32c*-0x4+0xd3])){const _0x10bdb1=[];for(const _0x554c7a of _0x486614){if(isObject(_0x554c7a))_0x10bdb1['push'](_0x554c7a);}return _0x10bdb1;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x4b1f1d){let _0x545bc5={};return isWithIndexer(_0x4b1f1d)&&(_0x545bc5=_0x4b1f1d),_0x545bc5;}__name(ensureWithIndexer,'ensureWithIndexer');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x113d68){return typeof _0x113d68===types['object']&&_0x113d68!==null;}__name(isObject,'isObject');function isString(_0x597017){return typeof _0x597017===types['string'];}__name(isString,'isString');function isNumber(_0x10883c){return typeof _0x10883c===types['number'];}__name(isNumber,'isNumber');function isWithIndexer(_0x1be9ec){return isObject(_0x1be9ec)&&!Array['isArray'](_0x1be9ec);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x1cc45c){return isObject(_0x1cc45c)&&Array['isArray'](_0x1cc45c);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x45ea68){return isObject(_0x45ea68)&&stripeConflictResponseProperties['detail']in _0x45ea68;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x264027){return typeof _0x264027==='boolean';}__name(isBoolean,'isBoolean');
|
|
3
3
|
|
|
4
4
|
export { ensureNumber, ensureObjectArray, ensureString, ensureWithIndexer, isArray, isBoolean, isErrorResponseWithDetail, isNumber, isObject, isString, isWithIndexer, stripeConflictResponseProperties, types };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0x4f5f5c,_0x101da5)=>__defProp(_0x4f5f5c,'name',{'value':_0x101da5,'configurable':!![]});const nameOf=__name(_0x1240ae=>_0x1240ae['toString'](),'nameOf');const deepNameOf=__name((_0x2cb7f6,_0x1f18ff)=>_0x2cb7f6+'.'+_0x1f18ff,'deepNameOf');const nameOfWithType=__name(_0x525c02=>_0x525c02,'nameOfWithType');
|
|
5
5
|
|
|
6
6
|
exports.deepNameOf = deepNameOf;
|
|
7
7
|
exports.nameOf = nameOf;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
2
|
+
var __defProp=Object['defineProperty'],__name=(_0x4f5f5c,_0x101da5)=>__defProp(_0x4f5f5c,'name',{'value':_0x101da5,'configurable':!![]});const nameOf=__name(_0x1240ae=>_0x1240ae['toString'](),'nameOf');const deepNameOf=__name((_0x2cb7f6,_0x1f18ff)=>_0x2cb7f6+'.'+_0x1f18ff,'deepNameOf');const nameOfWithType=__name(_0x525c02=>_0x525c02,'nameOfWithType');
|
|
3
3
|
|
|
4
4
|
export { deepNameOf, nameOf, nameOfWithType };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var nameOf = require('../core/name-of.cjs.js');
|
|
5
5
|
|
|
6
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
6
|
+
var __defProp=Object['defineProperty'],__name=(_0xfc1df4,_0x16cd2e)=>__defProp(_0xfc1df4,'name',{'value':_0x16cd2e,'configurable':!![]});const withIdProps={'id':nameOf.nameOf('id')};function isResourceWithId(_0xe382fc){return _0xe382fc&&typeof _0xe382fc==='object'&&typeof _0xe382fc['id']==='string';}__name(isResourceWithId,'isResourceWithId');
|
|
7
7
|
|
|
8
8
|
exports.isResourceWithId = isResourceWithId;
|
|
9
9
|
exports.withIdProps = withIdProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { nameOf } from '../core/name-of.js';
|
|
3
3
|
|
|
4
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
4
|
+
var __defProp=Object['defineProperty'],__name=(_0xfc1df4,_0x16cd2e)=>__defProp(_0xfc1df4,'name',{'value':_0x16cd2e,'configurable':!![]});const withIdProps={'id':nameOf('id')};function isResourceWithId(_0xe382fc){return _0xe382fc&&typeof _0xe382fc==='object'&&typeof _0xe382fc['id']==='string';}__name(isResourceWithId,'isResourceWithId');
|
|
5
5
|
|
|
6
6
|
export { isResourceWithId, withIdProps };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var projectPaths = require('../../../base-repo/app-constants/project-paths.cjs.js');
|
|
5
5
|
|
|
6
|
-
const filesToCopy=['','git'];const rootFilesToCopy=['.
|
|
6
|
+
const filesToCopy=['','git'];const rootFilesToCopy=['.gitlab-ci.yml','postcss.config.mjs','tsconfig.declaration.json','README.md','.husky','server.ts'];const appFilesToCopy=[projectPaths.clientPaths['styles'],projectPaths.projectPaths['app']+'/favicon.ico',projectPaths.projectPaths['app']+'/globals.css',projectPaths.projectPaths['app']+'/layout.tsx',projectPaths.projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[projectPaths.projectPaths['apiV1']+'/searchable-resources/route.ts',projectPaths.projectPaths['apiV1']+'/searchresult/route.ts',projectPaths.projectPaths['apiV1']+'/workspace/change/route.ts',projectPaths.projectPaths['apiV1']+'/visible-workspace/route.ts',projectPaths.projectPaths['apiV1']+'/userpermission/route.ts',projectPaths.projectPaths['apiV1']+'/user-feature/is-enabled/route.ts',projectPaths.projectPaths['apiV1']+'/uimetas/route.ts',projectPaths.projectPaths['apiV1']+'/uimeta/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/update/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/create/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/cancel/route.ts',projectPaths.projectPaths['apiV1']+'/sign-up/route.ts',projectPaths.projectPaths['apiV1']+'/sign-out/route.ts',projectPaths.projectPaths['apiV1']+'/sign-in/route.ts',projectPaths.projectPaths['apiV1']+'/preload/route.ts',projectPaths.projectPaths['apiV1']+'/payment/route.ts',projectPaths.projectPaths['apiV1']+'/payment/verify-success/route.ts',projectPaths.projectPaths['apiV1']+'/payment/verify-fail/route.ts',projectPaths.projectPaths['apiV1']+'/payment/method/route.ts',projectPaths.projectPaths['apiV1']+'/password/resetpassword/route.ts',projectPaths.projectPaths['apiV1']+'/password/forgotpassword/route.ts',projectPaths.projectPaths['apiV1']+'/otheruser/route.ts',projectPaths.projectPaths['apiV1']+'/otheruser/[id]/route.ts',projectPaths.projectPaths['apiV1']+'/log/route.ts',projectPaths.projectPaths['apiV1']+'/blob/[filename]/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/upsert/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
|
|
7
7
|
|
|
8
8
|
exports.allFilesToCopy = allFilesToCopy;
|
|
9
9
|
exports.apiRoutesToCopy = apiRoutesToCopy;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import { clientPaths, projectPaths } from '../../../base-repo/app-constants/project-paths.js';
|
|
3
3
|
|
|
4
|
-
const filesToCopy=['','git'];const rootFilesToCopy=['.
|
|
4
|
+
const filesToCopy=['','git'];const rootFilesToCopy=['.gitlab-ci.yml','postcss.config.mjs','tsconfig.declaration.json','README.md','.husky','server.ts'];const appFilesToCopy=[clientPaths['styles'],projectPaths['app']+'/favicon.ico',projectPaths['app']+'/globals.css',projectPaths['app']+'/layout.tsx',projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[projectPaths['apiV1']+'/searchable-resources/route.ts',projectPaths['apiV1']+'/searchresult/route.ts',projectPaths['apiV1']+'/workspace/change/route.ts',projectPaths['apiV1']+'/visible-workspace/route.ts',projectPaths['apiV1']+'/userpermission/route.ts',projectPaths['apiV1']+'/user-feature/is-enabled/route.ts',projectPaths['apiV1']+'/uimetas/route.ts',projectPaths['apiV1']+'/uimeta/route.ts',projectPaths['apiV1']+'/subscription/update/route.ts',projectPaths['apiV1']+'/subscription/create/route.ts',projectPaths['apiV1']+'/subscription/cancel/route.ts',projectPaths['apiV1']+'/sign-up/route.ts',projectPaths['apiV1']+'/sign-out/route.ts',projectPaths['apiV1']+'/sign-in/route.ts',projectPaths['apiV1']+'/preload/route.ts',projectPaths['apiV1']+'/payment/route.ts',projectPaths['apiV1']+'/payment/verify-success/route.ts',projectPaths['apiV1']+'/payment/verify-fail/route.ts',projectPaths['apiV1']+'/payment/method/route.ts',projectPaths['apiV1']+'/password/resetpassword/route.ts',projectPaths['apiV1']+'/password/forgotpassword/route.ts',projectPaths['apiV1']+'/otheruser/route.ts',projectPaths['apiV1']+'/otheruser/[id]/route.ts',projectPaths['apiV1']+'/log/route.ts',projectPaths['apiV1']+'/blob/[filename]/route.ts',projectPaths['apiV1']+'/[resourceName]/route.ts',projectPaths['apiV1']+'/[resourceName]/upsert/route.ts',projectPaths['apiV1']+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
|
|
5
5
|
|
|
6
6
|
export { allFilesToCopy, apiRoutesToCopy, appFilesToCopy, filesToCopy, rootFilesToCopy };
|