@fernir2/saas-kit-cli 0.1.16 → 0.1.18
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/base-repo/app-constants/project-paths.cjs.js +1 -1
- package/base-repo/app-constants/project-paths.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/package.json +3 -3
- package/LICENSE +0 -45
- package/bin/index.js +0 -262
- package/cli/.gitlab-ci.yml +0 -15
- package/cli/.husky/commit-msg +0 -1
- package/cli/.husky/pre-commit +0 -2
- package/cli/README.md +0 -101
- package/cli/bin/index.ts +0 -359
- package/cli/constants/path.js +0 -54
- package/cli/drizzle.config.ts +0 -12
- package/cli/eslint.config.js +0 -10
- package/cli/global-setup.ts +0 -25
- package/cli/next.config.js +0 -55
- package/cli/npm-commands/gen-meta/index.ts +0 -3
- package/cli/npm-commands/gen-schema/index.ts +0 -5
- package/cli/npm-commands/migrate-db/index.ts +0 -5
- package/cli/npm-commands/migrate-db/migrate-db.ts +0 -15
- package/cli/npm-commands/seed-db/index.ts +0 -5
- package/cli/npm-commands/seed-db/seed-db.ts +0 -15
- package/cli/package-template.json +0 -61
- package/cli/playwright.config.ts +0 -34
- package/cli/postcss.config.mjs +0 -9
- package/cli/server.ts +0 -41
- package/cli/src/app/api/v1/[resourceName]/[id]/route.ts/route.ts +0 -11
- package/cli/src/app/api/v1/[resourceName]/route.ts/route.ts +0 -14
- package/cli/src/app/api/v1/[resourceName]/upsert/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/log/route.ts/route.ts +0 -7
- package/cli/src/app/api/v1/otheruser/[id]/route.ts/route.ts +0 -14
- package/cli/src/app/api/v1/otheruser/route.ts/route.ts +0 -7
- package/cli/src/app/api/v1/password/forgotpassword/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/password/resetpassword/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/method/route.ts/route.ts +0 -4
- package/cli/src/app/api/v1/payment/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/verify-fail/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/verify-success/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/preload/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/searchable-resources/route.ts/route.ts +0 -11
- package/cli/src/app/api/v1/searchresult/route.ts/route.ts +0 -35
- package/cli/src/app/api/v1/sign-in/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/sign-out/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/sign-up/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/cancel/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/create/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/update/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/uimeta/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/uimetas/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/userpermission/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/visible-workspace/route.ts/route.ts +0 -5
- package/cli/src/app/api/v1/workspace/change/route.ts/route.ts +0 -5
- package/cli/src/app/favicon.ico +0 -0
- package/cli/src/app/globals.css +0 -1
- package/cli/src/app/layout.tsx +0 -44
- package/cli/src/app/page.tsx +0 -9
- package/cli/src/app/styles/common.css +0 -74
- package/cli/src/app/styles/rich-text-editor.css +0 -130
- package/cli/tailwind.config.ts +0 -13
- package/cli/tsconfig.declaration.json +0 -48
- package/cli/tsconfig.json +0 -65
- package/cli/tsconfig.server.json +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
const oDataNullValue='null';const oDataLambdaAnyFunction='any';const oDataLambdaAllFunction='all';const oDataDefaultTop
|
|
4
|
+
const oDataNullValue='null';const oDataLambdaAnyFunction='any';const oDataLambdaAllFunction='all';const oDataDefaultTop=-0x1fd1*0x1+-0x751*0x1+-0x2*-0x13aa;const oDataPropertySeparator='/';const odataErrors={'valueIsNull':'Value\x20for\x20select\x20cannot\x20be\x20null\x20or\x20empty','valueIsNegative':'Value\x20for\x20top\x20cannot\x20be\x20negative'};
|
|
5
5
|
|
|
6
6
|
exports.oDataDefaultTop = oDataDefaultTop;
|
|
7
7
|
exports.oDataLambdaAllFunction = oDataLambdaAllFunction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
const oDataNullValue='null';const oDataLambdaAnyFunction='any';const oDataLambdaAllFunction='all';const oDataDefaultTop
|
|
2
|
+
const oDataNullValue='null';const oDataLambdaAnyFunction='any';const oDataLambdaAllFunction='all';const oDataDefaultTop=-0x1fd1*0x1+-0x751*0x1+-0x2*-0x13aa;const oDataPropertySeparator='/';const odataErrors={'valueIsNull':'Value\x20for\x20select\x20cannot\x20be\x20null\x20or\x20empty','valueIsNegative':'Value\x20for\x20top\x20cannot\x20be\x20negative'};
|
|
3
3
|
|
|
4
4
|
export { oDataDefaultTop, oDataLambdaAllFunction, oDataLambdaAnyFunction, oDataNullValue, oDataPropertySeparator, odataErrors };
|
|
@@ -6,6 +6,6 @@ var strings = require('../strings/strings.cjs.js');
|
|
|
6
6
|
var odataFilters = require('./services/odata-filters.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=(_0x20bac9,_0x16bc7e)=>__defProp(_0x20bac9,'name',{'value':_0x16bc7e,'configurable':!![]});function getODataParams(_0x1cdbc2){let _0x4b99f8=getFilters(_0x1cdbc2);_0x1cdbc2['skip']&&_0x4b99f8['push']({'name':'skip','value':_0x1cdbc2['skip']['toString']()});_0x1cdbc2['top']&&_0x4b99f8['push']({'name':'top','value':_0x1cdbc2['top']['toString']()});_0x1cdbc2['count']&&_0x4b99f8['push']({'name':'count','value':'true'});_0x1cdbc2['orderBys']&&_0x1cdbc2['orderBys']['length']>0x8f4+0xaf6+0x1*-0x13ea&&_0x1cdbc2['orderBys']['forEach'](_0x262530=>{_0x4b99f8['push']({'name':'orderby','value':getColumnNameAndDirectionForOrderBy(_0x262530['propertyName'],_0x262530['direction'])});});if(_0x1cdbc2['selects']?.['length']||_0x1cdbc2['select']?.['length'])configureSelectOData(_0x1cdbc2,_0x4b99f8);else _0x1cdbc2['expands']&&configureExpandOData(_0x1cdbc2,_0x4b99f8);return _0x4b99f8;}__name(getODataParams,'getODataParams');function getFilters(_0xdbfd01){let _0x368a26=[];if(_0xdbfd01['filters']&&_0xdbfd01['filters']['length']>-0xda+0x1fd+-0x123){let _0x6dee3d={'name':'filter','value':''},_0x10d874=_0xdbfd01['filters']['length'];for(let _0x413413=0x1609+-0x21c6+-0x259*-0x5;_0x413413<_0x10d874;_0x413413++){let _0x3182a9=odataFilters.getODataFilterAsString(_0xdbfd01['filters'][_0x413413]);_0x413413>-0xe4c+-0x49b+0x12e7*0x1?_0xdbfd01['filters'][_0x413413]['logicalOperationType']===odataEnums.oDataLogicalOperationTypes['or']?_0x6dee3d['value']+='\x20or\x20'+_0x3182a9:_0x6dee3d['value']+='\x20and\x20'+_0x3182a9:_0x6dee3d['value']+=_0x3182a9;}_0x368a26['push'](_0x6dee3d);}return _0x368a26;}__name(getFilters,'getFilters');function getColumnNameAndDirectionForOrderBy(_0x1fbddf,_0x49466f){return _0x1fbddf+'\x20'+(_0x49466f===enums.oDataOrderByDirectionConsts['desc']?'desc':'asc');}__name(getColumnNameAndDirectionForOrderBy,'getColumnNameAndDirectionForOrderBy');function configureExpandOData(_0x326d4b,_0x35618d){if(_0x326d4b['expands']&&_0x326d4b['expands']['length']>0xbeb+-0x1187+0x59c){let _0x77e311='';for(let _0x31ce32 of _0x326d4b['expands']){_0x77e311+=_0x31ce32+',';}_0x77e311=strings.trimCharacter(_0x77e311,','),_0x35618d['push']({'name':'expand','value':_0x77e311});}}__name(configureExpandOData,'configureExpandOData');function configureSelectOData(_0x514d5b,_0x565f15){if(_0x514d5b['select']&&_0x514d5b['select']['length']>-0x1ae4+0x200+0x18e4){let _0x5c445b='';for(let _0x5e11c2 of _0x514d5b['select']){_0x5c445b+=_0x5e11c2+',';}_0x5c445b=strings.trimCharacter(_0x5c445b,','),_0x565f15['push']({'name':'select','value':_0x5c445b});}}__name(configureSelectOData,'configureSelectOData');
|
|
10
10
|
|
|
11
11
|
exports.getODataParams = getODataParams;
|
|
@@ -4,6 +4,6 @@ import { trimCharacter } from '../strings/strings.js';
|
|
|
4
4
|
import { getODataFilterAsString } from './services/odata-filters.js';
|
|
5
5
|
import { oDataLogicalOperationTypes } from './odata-enums.js';
|
|
6
6
|
|
|
7
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
7
|
+
var __defProp=Object['defineProperty'],__name=(_0x20bac9,_0x16bc7e)=>__defProp(_0x20bac9,'name',{'value':_0x16bc7e,'configurable':!![]});function getODataParams(_0x1cdbc2){let _0x4b99f8=getFilters(_0x1cdbc2);_0x1cdbc2['skip']&&_0x4b99f8['push']({'name':'skip','value':_0x1cdbc2['skip']['toString']()});_0x1cdbc2['top']&&_0x4b99f8['push']({'name':'top','value':_0x1cdbc2['top']['toString']()});_0x1cdbc2['count']&&_0x4b99f8['push']({'name':'count','value':'true'});_0x1cdbc2['orderBys']&&_0x1cdbc2['orderBys']['length']>0x8f4+0xaf6+0x1*-0x13ea&&_0x1cdbc2['orderBys']['forEach'](_0x262530=>{_0x4b99f8['push']({'name':'orderby','value':getColumnNameAndDirectionForOrderBy(_0x262530['propertyName'],_0x262530['direction'])});});if(_0x1cdbc2['selects']?.['length']||_0x1cdbc2['select']?.['length'])configureSelectOData(_0x1cdbc2,_0x4b99f8);else _0x1cdbc2['expands']&&configureExpandOData(_0x1cdbc2,_0x4b99f8);return _0x4b99f8;}__name(getODataParams,'getODataParams');function getFilters(_0xdbfd01){let _0x368a26=[];if(_0xdbfd01['filters']&&_0xdbfd01['filters']['length']>-0xda+0x1fd+-0x123){let _0x6dee3d={'name':'filter','value':''},_0x10d874=_0xdbfd01['filters']['length'];for(let _0x413413=0x1609+-0x21c6+-0x259*-0x5;_0x413413<_0x10d874;_0x413413++){let _0x3182a9=getODataFilterAsString(_0xdbfd01['filters'][_0x413413]);_0x413413>-0xe4c+-0x49b+0x12e7*0x1?_0xdbfd01['filters'][_0x413413]['logicalOperationType']===oDataLogicalOperationTypes['or']?_0x6dee3d['value']+='\x20or\x20'+_0x3182a9:_0x6dee3d['value']+='\x20and\x20'+_0x3182a9:_0x6dee3d['value']+=_0x3182a9;}_0x368a26['push'](_0x6dee3d);}return _0x368a26;}__name(getFilters,'getFilters');function getColumnNameAndDirectionForOrderBy(_0x1fbddf,_0x49466f){return _0x1fbddf+'\x20'+(_0x49466f===oDataOrderByDirectionConsts['desc']?'desc':'asc');}__name(getColumnNameAndDirectionForOrderBy,'getColumnNameAndDirectionForOrderBy');function configureExpandOData(_0x326d4b,_0x35618d){if(_0x326d4b['expands']&&_0x326d4b['expands']['length']>0xbeb+-0x1187+0x59c){let _0x77e311='';for(let _0x31ce32 of _0x326d4b['expands']){_0x77e311+=_0x31ce32+',';}_0x77e311=trimCharacter(_0x77e311,','),_0x35618d['push']({'name':'expand','value':_0x77e311});}}__name(configureExpandOData,'configureExpandOData');function configureSelectOData(_0x514d5b,_0x565f15){if(_0x514d5b['select']&&_0x514d5b['select']['length']>-0x1ae4+0x200+0x18e4){let _0x5c445b='';for(let _0x5e11c2 of _0x514d5b['select']){_0x5c445b+=_0x5e11c2+',';}_0x5c445b=trimCharacter(_0x5c445b,','),_0x565f15['push']({'name':'select','value':_0x5c445b});}}__name(configureSelectOData,'configureSelectOData');
|
|
8
8
|
|
|
9
9
|
export { getODataParams };
|
|
@@ -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=(_0x494d7,_0xa842f7)=>__defProp(_0x494d7,'name',{'value':_0xa842f7,'configurable':!![]});function getODataFilterAsString(_0x5bcdd4){_0x5bcdd4['operator']??=enums.oDataOperators['equal'];if(_0x5bcdd4['type']===void(-0x93*0x3c+-0x703+0x2977)||_0x5bcdd4['type']===odataEnums.oDataFilterTypes['default']){if(typeof _0x5bcdd4['rightSide']==='number')_0x5bcdd4['type']=odataEnums.oDataFilterTypes['number'];else {if(typeof _0x5bcdd4['rightSide']==='boolean'||typeof _0x5bcdd4['rightSide']==='string')_0x5bcdd4['type']=odataEnums.oDataFilterTypes['string'];else _0x5bcdd4['rightSide']instanceof Date?_0x5bcdd4['type']=odataEnums.oDataFilterTypes['date']:_0x5bcdd4['type']=odataEnums.oDataFilterTypes['string'];}}return typeof _0x5bcdd4['rightSide']==='string'&&!isNaN(Number(_0x5bcdd4['rightSide']))&&(_0x5bcdd4['rightSide']=Number(_0x5bcdd4['rightSide'])),getFilterString(_0x5bcdd4);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x20c1b4){switch(_0x20c1b4['operator']){case enums.oDataOperators['in']:return handleInOperator(_0x20c1b4);case enums.oDataOperators['nin']:return handleInOperator(_0x20c1b4);case enums.oDataOperators['empty']:return '';case enums.oDataOperators['startsWith']:return handleStartsWithOperator(_0x20c1b4);default:return handleDefaultOperators(_0x20c1b4);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x309d63){if(_0x309d63['type']===odataEnums.oDataFilterTypes['guid']){let _0x559e14=oDataFormatGuid(_0x309d63['rightSide']);return _0x309d63['leftSide']+'\x20'+_0x309d63['operator']+'\x20('+_0x559e14+')';}return _0x309d63['leftSide']+'\x20'+_0x309d63['operator']+'\x20('+_0x309d63['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0x3444f7){return _0x3444f7['operator']+'('+_0x3444f7['leftSide']+',\x20'+_0x3444f7['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x5004ec){switch(_0x5004ec['type']){case odataEnums.oDataFilterTypes['string']:return handleStringFilter(_0x5004ec);case odataEnums.oDataFilterTypes['date']:return handleDateFilter(_0x5004ec);case odataEnums.oDataFilterTypes['guid']:return handleGuidFilter(_0x5004ec);case odataEnums.oDataFilterTypes['number']:return handleNumberFilter(_0x5004ec);case odataEnums.oDataFilterTypes['lambda']:return handleLambdaFilter(_0x5004ec);default:throw errors.createError('Unsupported\x20filter\x20type:\x20'+_0x5004ec['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0x1cb8ac){if(_0x1cb8ac['rightSide']===odataConstants.oDataNullValue)return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20'+_0x1cb8ac['rightSide'];if(typeof _0x1cb8ac['rightSide']==='string')return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20\x27'+_0x1cb8ac['rightSide']+'\x27';return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20'+_0x1cb8ac['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0x201e6){return _0x201e6['leftSide']+'\x20'+_0x201e6['operator']+'\x20datetime\x27'+_0x201e6['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0xeee96e){return _0xeee96e['leftSide']+'\x20'+_0xeee96e['operator']+'\x20guid\x27'+_0xeee96e['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x42ecb9){return _0x42ecb9['leftSide']+'\x20'+_0x42ecb9['operator']+'\x20'+_0x42ecb9['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0x4a819b){const _0x181b00=_0x4a819b['lambdaConfig'];if(!_0x181b00)throw errors.createError('Lambda\x20configuration\x20is\x20missing');return _0x181b00['baseEnumerablePropertyName']+'/'+_0x181b00['method']+'(i:i/'+_0x4a819b['leftSide']+'\x20'+_0x4a819b['operator']+'\x20guid\x27'+_0x4a819b['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x1632c7){let _0x5e680f;if(typeof _0x1632c7==='string')_0x5e680f=''+_0x1632c7;else Array['isArray'](_0x1632c7)&&(_0x5e680f=_0x1632c7['map'](_0x41bfc0=>'guid\x27'+_0x41bfc0+'\x27')['join'](','));return _0x5e680f;}__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=(_0x494d7,_0xa842f7)=>__defProp(_0x494d7,'name',{'value':_0xa842f7,'configurable':!![]});function getODataFilterAsString(_0x5bcdd4){_0x5bcdd4['operator']??=oDataOperators['equal'];if(_0x5bcdd4['type']===void(-0x93*0x3c+-0x703+0x2977)||_0x5bcdd4['type']===oDataFilterTypes['default']){if(typeof _0x5bcdd4['rightSide']==='number')_0x5bcdd4['type']=oDataFilterTypes['number'];else {if(typeof _0x5bcdd4['rightSide']==='boolean'||typeof _0x5bcdd4['rightSide']==='string')_0x5bcdd4['type']=oDataFilterTypes['string'];else _0x5bcdd4['rightSide']instanceof Date?_0x5bcdd4['type']=oDataFilterTypes['date']:_0x5bcdd4['type']=oDataFilterTypes['string'];}}return typeof _0x5bcdd4['rightSide']==='string'&&!isNaN(Number(_0x5bcdd4['rightSide']))&&(_0x5bcdd4['rightSide']=Number(_0x5bcdd4['rightSide'])),getFilterString(_0x5bcdd4);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x20c1b4){switch(_0x20c1b4['operator']){case oDataOperators['in']:return handleInOperator(_0x20c1b4);case oDataOperators['nin']:return handleInOperator(_0x20c1b4);case oDataOperators['empty']:return '';case oDataOperators['startsWith']:return handleStartsWithOperator(_0x20c1b4);default:return handleDefaultOperators(_0x20c1b4);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x309d63){if(_0x309d63['type']===oDataFilterTypes['guid']){let _0x559e14=oDataFormatGuid(_0x309d63['rightSide']);return _0x309d63['leftSide']+'\x20'+_0x309d63['operator']+'\x20('+_0x559e14+')';}return _0x309d63['leftSide']+'\x20'+_0x309d63['operator']+'\x20('+_0x309d63['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0x3444f7){return _0x3444f7['operator']+'('+_0x3444f7['leftSide']+',\x20'+_0x3444f7['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x5004ec){switch(_0x5004ec['type']){case oDataFilterTypes['string']:return handleStringFilter(_0x5004ec);case oDataFilterTypes['date']:return handleDateFilter(_0x5004ec);case oDataFilterTypes['guid']:return handleGuidFilter(_0x5004ec);case oDataFilterTypes['number']:return handleNumberFilter(_0x5004ec);case oDataFilterTypes['lambda']:return handleLambdaFilter(_0x5004ec);default:throw createError('Unsupported\x20filter\x20type:\x20'+_0x5004ec['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0x1cb8ac){if(_0x1cb8ac['rightSide']===oDataNullValue)return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20'+_0x1cb8ac['rightSide'];if(typeof _0x1cb8ac['rightSide']==='string')return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20\x27'+_0x1cb8ac['rightSide']+'\x27';return _0x1cb8ac['leftSide']+'\x20'+_0x1cb8ac['operator']+'\x20'+_0x1cb8ac['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0x201e6){return _0x201e6['leftSide']+'\x20'+_0x201e6['operator']+'\x20datetime\x27'+_0x201e6['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0xeee96e){return _0xeee96e['leftSide']+'\x20'+_0xeee96e['operator']+'\x20guid\x27'+_0xeee96e['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x42ecb9){return _0x42ecb9['leftSide']+'\x20'+_0x42ecb9['operator']+'\x20'+_0x42ecb9['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0x4a819b){const _0x181b00=_0x4a819b['lambdaConfig'];if(!_0x181b00)throw createError('Lambda\x20configuration\x20is\x20missing');return _0x181b00['baseEnumerablePropertyName']+'/'+_0x181b00['method']+'(i:i/'+_0x4a819b['leftSide']+'\x20'+_0x4a819b['operator']+'\x20guid\x27'+_0x4a819b['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x1632c7){let _0x5e680f;if(typeof _0x1632c7==='string')_0x5e680f=''+_0x1632c7;else Array['isArray'](_0x1632c7)&&(_0x5e680f=_0x1632c7['map'](_0x41bfc0=>'guid\x27'+_0x41bfc0+'\x27')['join'](','));return _0x5e680f;}__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 _0x117b74 = require('path');
|
|
5
5
|
|
|
6
|
-
var __defProp=Object['defineProperty'],__name=(
|
|
6
|
+
var __defProp=Object['defineProperty'],__name=(_0x3ed070,_0x3b28a7)=>__defProp(_0x3ed070,'name',{'value':_0x3b28a7,'configurable':!![]});function getFileNameWithExtension(_0x380eb4,_0x5c8047){if(!_0x5c8047['startsWith']('.'))return _0x380eb4+'.'+_0x5c8047;return _0x380eb4+_0x5c8047;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x31b6bd,_0x5198ca,..._0x11ecc2){const _0x4e99c0=getFileNameWithExtension(_0x31b6bd,_0x5198ca);return _0x117b74.join(..._0x11ecc2,_0x4e99c0);}__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=(_0x3ed070,_0x3b28a7)=>__defProp(_0x3ed070,'name',{'value':_0x3b28a7,'configurable':!![]});function getFileNameWithExtension(_0x380eb4,_0x5c8047){if(!_0x5c8047['startsWith']('.'))return _0x380eb4+'.'+_0x5c8047;return _0x380eb4+_0x5c8047;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x31b6bd,_0x5198ca,..._0x11ecc2){const _0x4e99c0=getFileNameWithExtension(_0x31b6bd,_0x5198ca);return join(..._0x11ecc2,_0x4e99c0);}__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=(_0x108899,_0x27479b)=>__defProp(_0x108899,'name',{'value':_0x27479b,'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=(_0x108899,_0x27479b)=>__defProp(_0x108899,'name',{'value':_0x27479b,'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=(_0x12c126,_0x5709c3)=>__defProp(_0x12c126,'name',{'value':_0x5709c3,'configurable':!![]});function addQueryParamsToPath(_0x195e63,_0x5406f6){let _0x35c724=_0x195e63;if(_0x5406f6&&Array['isArray'](_0x5406f6))_0x35c724+=convertQueryParamsArrayToString(_0x5406f6);else _0x5406f6&&utils.isPlainObject(_0x5406f6)&&(_0x35c724+=convertQueryParamsObjectToString(_0x5406f6));return _0x35c724;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x4d8b43){const _0x4cf740=_0x4d8b43['map'](_0x4d8783=>_0x4d8783['name']+'='+_0x4d8783['value'])['join']('&');return _0x4cf740?'?'+_0x4cf740:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x5e778b){const _0x1ce80d=Object['entries'](_0x5e778b)['map'](([_0x1f246f,_0x655bfd])=>_0x1f246f+'='+_0x655bfd)['join']('&');return _0x1ce80d?'?'+_0x1ce80d:'';}__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=(_0x12c126,_0x5709c3)=>__defProp(_0x12c126,'name',{'value':_0x5709c3,'configurable':!![]});function addQueryParamsToPath(_0x195e63,_0x5406f6){let _0x35c724=_0x195e63;if(_0x5406f6&&Array['isArray'](_0x5406f6))_0x35c724+=convertQueryParamsArrayToString(_0x5406f6);else _0x5406f6&&isPlainObject(_0x5406f6)&&(_0x35c724+=convertQueryParamsObjectToString(_0x5406f6));return _0x35c724;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x4d8b43){const _0x4cf740=_0x4d8b43['map'](_0x4d8783=>_0x4d8783['name']+'='+_0x4d8783['value'])['join']('&');return _0x4cf740?'?'+_0x4cf740:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x5e778b){const _0x1ce80d=Object['entries'](_0x5e778b)['map'](([_0x1f246f,_0x655bfd])=>_0x1f246f+'='+_0x655bfd)['join']('&');return _0x1ce80d?'?'+_0x1ce80d:'';}__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=(_0x93948,_0x2a5c83)=>__defProp(_0x93948,'name',{'value':_0x2a5c83,'configurable':!![]});function shortenWithEllipsis(_0x2e9458,_0x1557dc=stringsConstants.shortTextLength){if(valueCheckingFunctions.isNullOrUndefined(_0x2e9458))return '';return _0x2e9458['length']<-0x12b1+0x1*0xa93+0x104*0x8?_0x2e9458['length']<=_0x1557dc?_0x2e9458:_0x2e9458['substring'](0x32*-0xa+-0xf53*-0x2+-0x1cb2,_0x1557dc):_0x2e9458['length']<=_0x1557dc?_0x2e9458:_0x2e9458['substring'](0xd7*0x1d+-0x1ffa+0x79f,_0x1557dc-(0xcdf+0x3*-0x971+0x527*0x3))+stringsConstants.ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x40f126,_0x21b380){let _0x571437=_0x40f126;if(Array['isArray'](_0x21b380))for(let _0x2c830a of _0x21b380){(_0x40f126['startsWith'](_0x2c830a)||_0x40f126['endsWith'](_0x2c830a))&&(_0x571437=trimOneCharacter(_0x40f126,_0x2c830a));}else _0x571437=trimOneCharacter(_0x40f126,_0x21b380);return _0x571437;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x430a8f,_0xe8784b){let _0x4cffa9=_0x430a8f;return _0x4cffa9?.['startsWith'](_0xe8784b)&&(_0x4cffa9=_0x4cffa9['substring'](0x5*0x13a+-0xeea+0x8c9)),_0x4cffa9?.['endsWith'](_0xe8784b)&&(_0x4cffa9=_0x4cffa9['substring'](-0xd2f+-0x1*-0x1027+-0x2f8,_0x4cffa9['lastIndexOf'](_0xe8784b))),_0x4cffa9;}__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=(_0x93948,_0x2a5c83)=>__defProp(_0x93948,'name',{'value':_0x2a5c83,'configurable':!![]});function shortenWithEllipsis(_0x2e9458,_0x1557dc=shortTextLength){if(isNullOrUndefined(_0x2e9458))return '';return _0x2e9458['length']<-0x12b1+0x1*0xa93+0x104*0x8?_0x2e9458['length']<=_0x1557dc?_0x2e9458:_0x2e9458['substring'](0x32*-0xa+-0xf53*-0x2+-0x1cb2,_0x1557dc):_0x2e9458['length']<=_0x1557dc?_0x2e9458:_0x2e9458['substring'](0xd7*0x1d+-0x1ffa+0x79f,_0x1557dc-(0xcdf+0x3*-0x971+0x527*0x3))+ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x40f126,_0x21b380){let _0x571437=_0x40f126;if(Array['isArray'](_0x21b380))for(let _0x2c830a of _0x21b380){(_0x40f126['startsWith'](_0x2c830a)||_0x40f126['endsWith'](_0x2c830a))&&(_0x571437=trimOneCharacter(_0x40f126,_0x2c830a));}else _0x571437=trimOneCharacter(_0x40f126,_0x21b380);return _0x571437;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x430a8f,_0xe8784b){let _0x4cffa9=_0x430a8f;return _0x4cffa9?.['startsWith'](_0xe8784b)&&(_0x4cffa9=_0x4cffa9['substring'](0x5*0x13a+-0xeea+0x8c9)),_0x4cffa9?.['endsWith'](_0xe8784b)&&(_0x4cffa9=_0x4cffa9['substring'](-0xd2f+-0x1*-0x1027+-0x2f8,_0x4cffa9['lastIndexOf'](_0xe8784b))),_0x4cffa9;}__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=(_0x30d59f,_0x3f292c)=>__defProp(_0x30d59f,'name',{'value':_0x3f292c,'configurable':!![]});function ensureString(_0x4a4f3a){return isString(_0x4a4f3a)?_0x4a4f3a:String(_0x4a4f3a);}__name(ensureString,'ensureString');function ensureNumber(_0x32242a){if(isNumber(_0x32242a))return _0x32242a;else {if(isString(_0x32242a))return parseFloat(_0x32242a);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x493f61){if(Array['isArray'](_0x493f61)&&_0x493f61['length']>-0x6a*-0x59+0x1278+-0x3752&&isObject(_0x493f61[-0x78+0x91c+-0x8a4])){const _0x3eddb0=[];for(const _0x2e4fae of _0x493f61){if(isObject(_0x2e4fae))_0x3eddb0['push'](_0x2e4fae);}return _0x3eddb0;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x3c0921){let _0x5d0e6d={};return isWithIndexer(_0x3c0921)&&(_0x5d0e6d=_0x3c0921),_0x5d0e6d;}__name(ensureWithIndexer,'ensureWithIndexer');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x421bca){return typeof _0x421bca===types['object']&&_0x421bca!==null;}__name(isObject,'isObject');function isString(_0x25ce7c){return typeof _0x25ce7c===types['string'];}__name(isString,'isString');function isNumber(_0xe6a9b6){return typeof _0xe6a9b6===types['number'];}__name(isNumber,'isNumber');function isWithIndexer(_0x8414c1){return isObject(_0x8414c1)&&!Array['isArray'](_0x8414c1);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x1a7132){return isObject(_0x1a7132)&&Array['isArray'](_0x1a7132);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x5f5512){return isObject(_0x5f5512)&&stripeConflictResponseProperties['detail']in _0x5f5512;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x49c8b1){return typeof _0x49c8b1==='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=(_0x30d59f,_0x3f292c)=>__defProp(_0x30d59f,'name',{'value':_0x3f292c,'configurable':!![]});function ensureString(_0x4a4f3a){return isString(_0x4a4f3a)?_0x4a4f3a:String(_0x4a4f3a);}__name(ensureString,'ensureString');function ensureNumber(_0x32242a){if(isNumber(_0x32242a))return _0x32242a;else {if(isString(_0x32242a))return parseFloat(_0x32242a);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x493f61){if(Array['isArray'](_0x493f61)&&_0x493f61['length']>-0x6a*-0x59+0x1278+-0x3752&&isObject(_0x493f61[-0x78+0x91c+-0x8a4])){const _0x3eddb0=[];for(const _0x2e4fae of _0x493f61){if(isObject(_0x2e4fae))_0x3eddb0['push'](_0x2e4fae);}return _0x3eddb0;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x3c0921){let _0x5d0e6d={};return isWithIndexer(_0x3c0921)&&(_0x5d0e6d=_0x3c0921),_0x5d0e6d;}__name(ensureWithIndexer,'ensureWithIndexer');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x421bca){return typeof _0x421bca===types['object']&&_0x421bca!==null;}__name(isObject,'isObject');function isString(_0x25ce7c){return typeof _0x25ce7c===types['string'];}__name(isString,'isString');function isNumber(_0xe6a9b6){return typeof _0xe6a9b6===types['number'];}__name(isNumber,'isNumber');function isWithIndexer(_0x8414c1){return isObject(_0x8414c1)&&!Array['isArray'](_0x8414c1);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x1a7132){return isObject(_0x1a7132)&&Array['isArray'](_0x1a7132);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x5f5512){return isObject(_0x5f5512)&&stripeConflictResponseProperties['detail']in _0x5f5512;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x49c8b1){return typeof _0x49c8b1==='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=(_0x2adb7b,_0x3ae7e1)=>__defProp(_0x2adb7b,'name',{'value':_0x3ae7e1,'configurable':!![]});const nameOf=__name(_0x3544e5=>_0x3544e5['toString'](),'nameOf');const deepNameOf=__name((_0x151558,_0x2dcd67)=>_0x151558+'.'+_0x2dcd67,'deepNameOf');const nameOfWithType=__name(_0x28cbc2=>_0x28cbc2,'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=(_0x2adb7b,_0x3ae7e1)=>__defProp(_0x2adb7b,'name',{'value':_0x3ae7e1,'configurable':!![]});const nameOf=__name(_0x3544e5=>_0x3544e5['toString'](),'nameOf');const deepNameOf=__name((_0x151558,_0x2dcd67)=>_0x151558+'.'+_0x2dcd67,'deepNameOf');const nameOfWithType=__name(_0x28cbc2=>_0x28cbc2,'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=(_0x533659,_0x2bdc39)=>__defProp(_0x533659,'name',{'value':_0x2bdc39,'configurable':!![]});const withIdProps={'id':nameOf.nameOf('id')};function isResourceWithId(_0x23c395){return _0x23c395&&typeof _0x23c395==='object'&&typeof _0x23c395['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=(_0x533659,_0x2bdc39)=>__defProp(_0x533659,'name',{'value':_0x2bdc39,'configurable':!![]});const withIdProps={'id':nameOf('id')};function isResourceWithId(_0x23c395){return _0x23c395&&typeof _0x23c395==='object'&&typeof _0x23c395['id']==='string';}__name(isResourceWithId,'isResourceWithId');
|
|
5
5
|
|
|
6
6
|
export { isResourceWithId, withIdProps };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fernir2/saas-kit-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "CLI for creating saas-kit apps",
|
|
5
5
|
"bin": {
|
|
6
|
-
"create": "level2/cli/create-saas-kit-app/bin/index.js"
|
|
6
|
+
"create": "packages/level2/cli/create-saas-kit-app/bin/index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"start": "node bin/index.js"
|
|
9
|
+
"start": "node packages/level2/cli/create-saas-kit-app/bin/index.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-s3": "3.879.0",
|
package/LICENSE
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
SaaS Kit License 1.0
|
|
2
|
-
|
|
3
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION AND DISTRIBUTION
|
|
4
|
-
|
|
5
|
-
1. Definitions.
|
|
6
|
-
|
|
7
|
-
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
8
|
-
|
|
9
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
10
|
-
|
|
11
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
12
|
-
|
|
13
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
14
|
-
|
|
15
|
-
"Object" form shall mean npm package @fernir/saas-kit which belongs to Licensor and hosted on npm.com, JSR or other public or private npm package registries.
|
|
16
|
-
|
|
17
|
-
"Work" shall mean the work of authorship in Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
|
|
18
|
-
|
|
19
|
-
2. Grant of Copyright License. Subject to the terms and conditions of this License, Licensor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, publicly display, publicly perform, sublicense, and distribute the Work in Object form. Otherwise provided in this License or required to be permitted by applicable law, you shall not: (i) reverse-engineer or decompile the Work; or, (ii) remove or modify Licensor copyright, patent, trademark, or attribution notices in the Work.
|
|
20
|
-
|
|
21
|
-
3. Redistribution. You may distribute copies of the Work in Object form in any medium, without modifications, provided that You meet the following conditions:
|
|
22
|
-
|
|
23
|
-
You must give any other recipients of the Work a copy of this License;
|
|
24
|
-
|
|
25
|
-
4. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work.
|
|
26
|
-
|
|
27
|
-
5. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
28
|
-
|
|
29
|
-
6. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall Licensor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if Licensor has been advised of the possibility of such damages.
|
|
30
|
-
|
|
31
|
-
7. Accepting Warranty or Additional Liability. While redistributing the Work, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of Licensor, and only if You agree to indemnify, defend, and hold Licensor harmless for any liability incurred by, or claims asserted against, Licensor by reason of your accepting any such warranty or additional liability.
|
|
32
|
-
|
|
33
|
-
8. Different license terms. Subject to the above terms and conditions, the License granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
|
|
34
|
-
|
|
35
|
-
9. Miscellaneous
|
|
36
|
-
|
|
37
|
-
b. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
|
|
38
|
-
|
|
39
|
-
c. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
|
|
40
|
-
|
|
41
|
-
d. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
|
|
42
|
-
|
|
43
|
-
END OF TERMS AND CONDITIONS
|
|
44
|
-
|
|
45
|
-
|