@adminide-stack/core 12.0.4-alpha.95 → 13.0.1-alpha.0
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/constants/configuration.d.ts +4 -0
- package/lib/constants/configuration.js +5 -1
- package/lib/constants/configuration.js.map +1 -1
- package/lib/constants/defaultIds.d.ts +10 -0
- package/lib/constants/defaultIds.js +14 -0
- package/lib/constants/defaultIds.js.map +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/routes.js.map +1 -1
- package/lib/constants/urls.d.ts +3 -1
- package/lib/constants/urls.js +2 -0
- package/lib/constants/urls.js.map +1 -1
- package/lib/core/BaseDisposable.js.map +1 -1
- package/lib/core/configurations/configuration.js.map +1 -1
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -1
- package/lib/core/configurations/examples/configuration-wrapper-example.d.ts +67 -0
- package/lib/core/configurations/examples/configuration-wrapper.test.d.ts +1 -0
- package/lib/core/configurations/helpers/configuration.js.map +1 -1
- package/lib/core/configurations/index.d.ts +2 -0
- package/lib/core/configurations/models/ConfigurationModel.d.ts +26 -1
- package/lib/core/configurations/models/ConfigurationModel.js +123 -8
- package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
- package/lib/core/configurations/models/ConfigurationModel.multi-identifier.test.d.ts +1 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.d.ts +47 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.js +130 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.js.map +1 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.spec.d.ts +1 -0
- package/lib/core/configurations/models/ConfigurationModelWrapper.test.d.ts +1 -0
- package/lib/core/configurations/models/index.d.ts +1 -0
- package/lib/core/configurations/models/override.compound.test.d.ts +1 -0
- package/lib/core/configurations/models/override.edgecase.test.d.ts +1 -0
- package/lib/core/configurations/models/override.keys.test.d.ts +1 -0
- package/lib/core/configurations/models/override.strict.test.d.ts +1 -0
- package/lib/core/configurations/parser/configurationParser.d.ts +23 -0
- package/lib/core/configurations/parser/configurationParser.js +209 -0
- package/lib/core/configurations/parser/configurationParser.js.map +1 -0
- package/lib/core/configurations/parser/index.d.ts +1 -0
- package/lib/core/configurations/utils/QUICK_REFERENCE.d.ts +103 -0
- package/lib/core/configurations/utils/configurationExtractor.d.ts +224 -0
- package/lib/core/configurations/utils/configurationExtractor.js +315 -0
- package/lib/core/configurations/utils/configurationExtractor.js.map +1 -0
- package/lib/core/configurations/utils/configurationExtractor.test.d.ts +1 -0
- package/lib/core/configurations/utils/index.d.ts +5 -0
- package/lib/core/configurations/utils/model-creation-examples.d.ts +36 -0
- package/lib/core/configurations/utils/preferences-service-integration.d.ts +54 -0
- package/lib/core/configurations/utils/usage-examples.d.ts +39 -0
- package/lib/core/disposable.js.map +1 -1
- package/lib/core/event.js.map +1 -1
- package/lib/core/in-memory-providers/cde-code-provider.js.map +1 -1
- package/lib/core/in-memory-providers/in-memory-value-store.js.map +1 -1
- package/lib/core/organization/configuration.js +1 -1
- package/lib/core/organization/configuration.js.map +1 -1
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -1
- package/lib/core/organization/organization.js.map +1 -1
- package/lib/core/path.js.map +1 -1
- package/lib/errors/auth-error.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/configuration/configuration.js.map +1 -1
- package/lib/interfaces/configuration/configurationRegistry.d.ts +5 -0
- package/lib/interfaces/organization/organization-context.js.map +1 -1
- package/lib/interfaces/permissions.d.ts +2 -2
- package/lib/interfaces/permissions.js.map +1 -1
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/lib/modules/billing-api/enums/index.js.map +1 -1
- package/lib/modules/index.d.ts +0 -1
- package/lib/services/abstract-configuration.js +1 -1
- package/lib/services/abstract-configuration.js.map +1 -1
- package/lib/services/abstract-organization-context-service.js +1 -1
- package/lib/services/abstract-organization-context-service.js.map +1 -1
- package/lib/utils/cdecodeUri.d.ts +1 -1
- package/lib/utils/cdecodeUri.js +40 -7
- package/lib/utils/cdecodeUri.js.map +1 -1
- package/lib/utils/configuration-utils.js.map +1 -1
- package/lib/utils/date-utils.js.map +1 -1
- package/lib/utils/flatten-utils.js.map +1 -1
- package/lib/utils/generate-uri.js.map +1 -1
- package/lib/utils/generatePath.js.map +1 -1
- package/lib/utils/generateUserAlias.js.map +1 -1
- package/lib/utils/generated-settings-id.js +3 -5
- package/lib/utils/generated-settings-id.js.map +1 -1
- package/lib/utils/getLogger.js.map +1 -1
- package/lib/utils/getUserAlias.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/nodeContext.d.ts +3 -1
- package/lib/utils/nodeContext.js +6 -5
- package/lib/utils/nodeContext.js.map +1 -1
- package/lib/utils/omit-deep.js.map +1 -1
- package/lib/utils/preferenceUri.d.ts +6 -5
- package/lib/utils/preferenceUri.js +145 -13
- package/lib/utils/preferenceUri.js.map +1 -1
- package/lib/utils/resourceUriConversion.d.ts +11 -1
- package/lib/utils/resourceUriConversion.js +19 -13
- package/lib/utils/resourceUriConversion.js.map +1 -1
- package/lib/utils/reviveUri.js.map +1 -1
- package/lib/utils/roles-utils.js.map +1 -1
- package/lib/utils/slug-utils.d.ts +87 -0
- package/lib/utils/slug-utils.js +95 -0
- package/lib/utils/slug-utils.js.map +1 -0
- package/lib/utils/splitCdecodeUri.js.map +1 -1
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/validations.js +2 -2
- package/lib/utils/validations.js.map +1 -1
- package/lib/utils/validations.test.d.ts +1 -0
- package/package.json +3 -3
- package/lib/modules/inbox/enums/index.js +0 -26
- package/lib/modules/inbox/enums/index.js.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slug Utilities
|
|
3
|
+
* Provides validation and transformation utilities for slug-compatible strings
|
|
4
|
+
* Used for organization names, team names, project slugs, etc.
|
|
5
|
+
*
|
|
6
|
+
* Slug format rules:
|
|
7
|
+
* - Lowercase letters (a-z)
|
|
8
|
+
* - Numbers (0-9)
|
|
9
|
+
* - Hyphens (-) and underscores (_) as separators
|
|
10
|
+
* - Must start and end with alphanumeric character
|
|
11
|
+
* - No dots, pipes, or special characters
|
|
12
|
+
* - Like domain names but without dots
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Regular expression for validating slug format
|
|
16
|
+
* Allows: lowercase letters, numbers, hyphens, underscores
|
|
17
|
+
* Must start and end with alphanumeric
|
|
18
|
+
*/
|
|
19
|
+
export declare const SLUG_REGEX: RegExp;
|
|
20
|
+
/**
|
|
21
|
+
* Validates if a string is a valid slug
|
|
22
|
+
* @param value - The string to validate
|
|
23
|
+
* @returns true if valid slug, false otherwise
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* isValidSlug('my-org') // true
|
|
27
|
+
* isValidSlug('my_org') // true
|
|
28
|
+
* isValidSlug('org123') // true
|
|
29
|
+
* isValidSlug('My-Org') // false (uppercase)
|
|
30
|
+
* isValidSlug('org-auth0|123') // false (pipe character)
|
|
31
|
+
* isValidSlug('my.org') // false (dot)
|
|
32
|
+
* isValidSlug('-myorg') // false (starts with hyphen)
|
|
33
|
+
*/
|
|
34
|
+
export declare function isValidSlug(value: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Converts a string to a valid slug format
|
|
37
|
+
* - Converts to lowercase
|
|
38
|
+
* - Replaces invalid characters with hyphens
|
|
39
|
+
* - Removes leading/trailing separators
|
|
40
|
+
* - Replaces multiple consecutive separators with single hyphen
|
|
41
|
+
*
|
|
42
|
+
* @param text - The string to slugify
|
|
43
|
+
* @returns A valid slug string
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* slugify('My Organization') // 'my-organization'
|
|
47
|
+
* slugify('user@email.com') // 'user-email-com'
|
|
48
|
+
* slugify('org-auth0|123') // 'org-auth0-123'
|
|
49
|
+
* slugify('Test___Org') // 'test-org'
|
|
50
|
+
* slugify(' -spaces- ') // 'spaces'
|
|
51
|
+
*/
|
|
52
|
+
export declare function slugify(text: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Mongoose validator function for slug fields
|
|
55
|
+
* @param v - The value to validate
|
|
56
|
+
* @returns true if valid slug, false otherwise
|
|
57
|
+
*/
|
|
58
|
+
export declare function slugValidator(v: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Default error message for slug validation failures
|
|
61
|
+
*/
|
|
62
|
+
export declare const SLUG_VALIDATION_MESSAGE = "Invalid slug format. Use lowercase letters, numbers, hyphens, and underscores only (e.g., my-name or my_name)";
|
|
63
|
+
/**
|
|
64
|
+
* Generates a validation message with the invalid value
|
|
65
|
+
* @param value - The invalid value
|
|
66
|
+
* @returns Formatted error message
|
|
67
|
+
*/
|
|
68
|
+
export declare function getSlugValidationMessage(value: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* Mongoose schema validator configuration for slug fields
|
|
71
|
+
* Use this in your Mongoose schema definitions
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* const MySchema = new Schema({
|
|
75
|
+
* name: {
|
|
76
|
+
* type: String,
|
|
77
|
+
* required: true,
|
|
78
|
+
* validate: SLUG_VALIDATOR_CONFIG
|
|
79
|
+
* }
|
|
80
|
+
* });
|
|
81
|
+
*/
|
|
82
|
+
export declare const SLUG_VALIDATOR_CONFIG: {
|
|
83
|
+
validator: typeof slugValidator;
|
|
84
|
+
message: (props: {
|
|
85
|
+
value: string;
|
|
86
|
+
}) => string;
|
|
87
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slug Utilities
|
|
3
|
+
* Provides validation and transformation utilities for slug-compatible strings
|
|
4
|
+
* Used for organization names, team names, project slugs, etc.
|
|
5
|
+
*
|
|
6
|
+
* Slug format rules:
|
|
7
|
+
* - Lowercase letters (a-z)
|
|
8
|
+
* - Numbers (0-9)
|
|
9
|
+
* - Hyphens (-) and underscores (_) as separators
|
|
10
|
+
* - Must start and end with alphanumeric character
|
|
11
|
+
* - No dots, pipes, or special characters
|
|
12
|
+
* - Like domain names but without dots
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Regular expression for validating slug format
|
|
16
|
+
* Allows: lowercase letters, numbers, hyphens, underscores
|
|
17
|
+
* Must start and end with alphanumeric
|
|
18
|
+
*/
|
|
19
|
+
const SLUG_REGEX = /^[a-z0-9]+[a-z0-9_-]*[a-z0-9]+$|^[a-z0-9]$/;
|
|
20
|
+
/**
|
|
21
|
+
* Validates if a string is a valid slug
|
|
22
|
+
* @param value - The string to validate
|
|
23
|
+
* @returns true if valid slug, false otherwise
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* isValidSlug('my-org') // true
|
|
27
|
+
* isValidSlug('my_org') // true
|
|
28
|
+
* isValidSlug('org123') // true
|
|
29
|
+
* isValidSlug('My-Org') // false (uppercase)
|
|
30
|
+
* isValidSlug('org-auth0|123') // false (pipe character)
|
|
31
|
+
* isValidSlug('my.org') // false (dot)
|
|
32
|
+
* isValidSlug('-myorg') // false (starts with hyphen)
|
|
33
|
+
*/
|
|
34
|
+
function isValidSlug(value) {
|
|
35
|
+
return SLUG_REGEX.test(value);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Converts a string to a valid slug format
|
|
39
|
+
* - Converts to lowercase
|
|
40
|
+
* - Replaces invalid characters with hyphens
|
|
41
|
+
* - Removes leading/trailing separators
|
|
42
|
+
* - Replaces multiple consecutive separators with single hyphen
|
|
43
|
+
*
|
|
44
|
+
* @param text - The string to slugify
|
|
45
|
+
* @returns A valid slug string
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* slugify('My Organization') // 'my-organization'
|
|
49
|
+
* slugify('user@email.com') // 'user-email-com'
|
|
50
|
+
* slugify('org-auth0|123') // 'org-auth0-123'
|
|
51
|
+
* slugify('Test___Org') // 'test-org'
|
|
52
|
+
* slugify(' -spaces- ') // 'spaces'
|
|
53
|
+
*/
|
|
54
|
+
function slugify(text) {
|
|
55
|
+
return text.toLowerCase().replace(/[^a-z0-9_-]+/g, '-') // Replace non-slug chars with hyphens
|
|
56
|
+
.replace(/^[_-]+|[_-]+$/g, '') // Remove leading/trailing hyphens/underscores
|
|
57
|
+
.replace(/[_-]{2,}/g, '-'); // Replace multiple consecutive separators with single hyphen
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Mongoose validator function for slug fields
|
|
61
|
+
* @param v - The value to validate
|
|
62
|
+
* @returns true if valid slug, false otherwise
|
|
63
|
+
*/
|
|
64
|
+
function slugValidator(v) {
|
|
65
|
+
return isValidSlug(v);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Default error message for slug validation failures
|
|
69
|
+
*/
|
|
70
|
+
const SLUG_VALIDATION_MESSAGE = 'Invalid slug format. Use lowercase letters, numbers, hyphens, and underscores only (e.g., my-name or my_name)';
|
|
71
|
+
/**
|
|
72
|
+
* Generates a validation message with the invalid value
|
|
73
|
+
* @param value - The invalid value
|
|
74
|
+
* @returns Formatted error message
|
|
75
|
+
*/
|
|
76
|
+
function getSlugValidationMessage(value) {
|
|
77
|
+
return `"${value}" is not a valid slug format. Use lowercase letters, numbers, hyphens, and underscores only (e.g., my-name or my_name)`;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Mongoose schema validator configuration for slug fields
|
|
81
|
+
* Use this in your Mongoose schema definitions
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* const MySchema = new Schema({
|
|
85
|
+
* name: {
|
|
86
|
+
* type: String,
|
|
87
|
+
* required: true,
|
|
88
|
+
* validate: SLUG_VALIDATOR_CONFIG
|
|
89
|
+
* }
|
|
90
|
+
* });
|
|
91
|
+
*/
|
|
92
|
+
const SLUG_VALIDATOR_CONFIG = {
|
|
93
|
+
validator: slugValidator,
|
|
94
|
+
message: props => getSlugValidationMessage(props.value)
|
|
95
|
+
};export{SLUG_REGEX,SLUG_VALIDATION_MESSAGE,SLUG_VALIDATOR_CONFIG,getSlugValidationMessage,isValidSlug,slugValidator,slugify};//# sourceMappingURL=slug-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slug-utils.js","sources":["../../src/utils/slug-utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AAEH;;;;AAIG;AACI,MAAM,UAAU,GAAG;AAE1B;;;;;;;;;;;;;AAaG;AACG,SAAU,WAAW,CAAC,KAAa,EAAA;AACrC,EAAA,OAAA,eAAkB,CAAA,KAAK,CAAA;AAC3B;AAEA;;;;;;;;;;;;;;;;AAgBG;AACG,SAAU,OAAO,CAAC,IAAY,EAAA;AAChC,EAAA,OAAA,IAAO,CAAA,WAAI,EAAA,CAAA,OAAA,CAAA,eAAA,EAAA,GAAA,CAAA;AACN,GAAA,OAAA,CAAA,gBAAa,EAAA,EAAA,CAAA;AACb,GAAA,OAAA,CAAA,WAAQ,EAAA,GAAA,CAAA,CAAA;AACR;AACA;AACT;AAEA;;;;AAIG,EAAA,OAAA,WAAA,CAAA,CAAA,CAAA;AACH;AACI;AACJ;AAEA;;AAEG;AACH;AAGA;;;;AAIG,EAAA,OAAA,CAAA,CAAA,EAAA,KAAA,CAAA,sHAAA,CAAA;AACH;;AAEA;AAEA;;;;;;;;;;;;AAYG,EAAA,SAAA,EAAA,aAAA;AACH,EAAA,OAAO,EAAA,KAAM,IAAA,wBAAwB,CAAA,KAAA,CAAA,KAAA;AACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitCdecodeUri.js","sources":["../../src/utils/splitCdecodeUri.ts"],"sourcesContent":[null],"names":[],"mappings":"mRAwCA;;;AAGG;AACH,SAAS,oBAAoB,CACzB,SAAwD,EAAA;
|
|
1
|
+
{"version":3,"file":"splitCdecodeUri.js","sources":["../../src/utils/splitCdecodeUri.ts"],"sourcesContent":[null],"names":[],"mappings":"mRAwCA;;;AAGG;AACH,SAAS,oBAAoB,CACzB,SAAwD,EAAA;MAExD,CAAA,SAAK,EAAS;AACV,IAAA,OAAA,EAAA;;QAGJ,QAAM,GAAQ,EAAsC;AACpD,EAAA,KAAA,MAAK,CAAA,GAAO,EAAG,UAAQ,MAAI,CAAA,OAAO,CAAA,SAAQ,CAAA,EAAU;AAChD,IAAA,IAAA,CAAA,sBAAK,CAAA,GAAsB,CAAC,EAAA;AACxB,MAAA,QAAA,CAAA,GAAA,CAAA,GAAS,KAAI;;;AAGrB,EAAA,OAAA;AACJ;AAEA;;;;;;;;;;AAUG;AACG,SAAU,eAAe,CAAC,UAAe,EAAA;AAC3C,EAAA,MAAA,YAAe,eAAG,CAAA,UAAgB,CAAA;;AAGlC,EAAA,IAAA,SAAI,CAAA,YAAU,CAAA,YAAa,IAAY,SAAI,CAAA,YAAU,CAAA,UAAa,EAAU;;AAExE,IAAA,MAAA;AACI,MAAA,YAAA,EAAA,SAAc,CAAA,YAAU,CAAA;;;AAI5B,IAAA,IAAA,sBAAc,CAAA,aAAa,EAAA;eACvB,CAAA,yBAA0B,CAAA,YAAU,CAAA;;;;UAKxC,iBAAM,GAAA,oBAAoB,CAAA,mBAA+B,CAAA;AACzD,IAAA,MAAA,MAAM,GAAA,kBAAS,CAAA,UACX,CAAA,SAAW,EAAA,SACX,EAAA,iBACA;;aAIJ,CAAA,YAAA,CAAA;AACA;QACA;AACA,MAAA;iBACI,CAAA;UACH,UAAA,GAAA,UAAA,CAAA,OAAA,CAAA,GAAA,CAAA;QAED,UAAA,GAAA,CAAA,EAAA;gBACA,GAAA,UAAA,CAAA,SAAA,CAAA,UAAA,GAAA,CAAA,CAAA;AACA,IAAA;AAEA;;IAGJ,MAAA,WAAA,GAAA,0BAAA,CAAA,UAAA,CAAA;AACA,IAAA,OAAO;AACX,MAAC,MAAA;AAED,MAAA;;;;;AAKG,IAAA,MAAA,EAAA;AACH,GAAA;AACI;;;;;AAMA;;AAQA,SAAK,WAAgB,CAAA,MAAA,EAAA;QACjB,SAAS,GAAA,eAAa,CAAA,MAAA,CAAA;QACzB;IAED,YAAA;IACA;MACA,sBAAwB;AAEhB;;QAGR,iBAAA,GAAA,oBAAA,CAAA,SAAA,CAAA,SAAA,CAAA;AACA,EAAA,MAAA,UAAM,GAAA,kBAA4B,CAAA,MAAA,CAAA,SAAA,EAAA;;sBAEnB,EAAA,SAAO,CAAA,YAAS,CAAA;;AAE3B,EAAA,IAAA,CAAA,aAAO,EAAA;WACP;AACH,MAAC;KAEF;;;QAGI,UAAA,GAAA,aAAiB,CAAA,OAAA,CAAA,GAAA,CAAA;QACjB,CAAA,iBAAe,EAAA,eAAA,CAAA,GAAA,UAAA,KAAA,EAAA,GAAA,CAAA,aAAA,CAAA,SAAA,CAAA,CAAA,EAAA,UAAA,CAAA,EAAA,aAAA,CAAA,SAAA,CAAA,UAAA,GAAA,CAAA,CAAA,CAAA,GAAA,CAAA,oBAAA,CAAA,QAAA,EAAA,aAAA,CAAA;;AAEvB,EAAC,MAAA,gBAAA,GAAA,GAAA,CAAA,IAAA,CAAA;;;;;;;;;;;;;"}
|
package/lib/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,cAAc,KACvD,SAAS,CAAA,GAAA,CAAA,IAAA,IAAA;AACJ,EAAA,IAAA,cAAa,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;AACV,IAAA,MAAI;AACA,MAAA;QACA,IAAA;;WAEE,GAAA;KACL;AACD,EAAA;AACJ,EAAE,OAAA,IAAA;SACD,CAAA,KAAQ,IAAK,KAAK;AAEpB,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,YAAY,KACnD,SAAS,CAAA,GAAA,CAAA,IAAA,IAAA;AACJ,EAAA,IAAA,YAAa,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;AACV,IAAA,MAAI;eACM;AACN,MAAA,GAAA;KACH,GAAA,IAAA;AACL,IAAE,OAAA,IAAA;;AAGV,CAAA,CAAA,CAAA,MAAO,CAAA,KAAM,IAAM,KAAI;AACb,MAAG,MAAG,GAAA,GAAS,IAAG;QACxB,GAAO,GAAG,QAAO,CAAA,CAAA,EAAA,IAAA,CAAA,GAAA,EAAA,GAAA,IAAA,CAAA,CAAA,EAAA,IAAA,CAAA;AACrB,EAAE,OAAA,GAAA,GAAA,GAAA;"}
|
package/lib/utils/validations.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const validateEmail = function (email) {
|
|
2
|
-
const re = /^\w+([
|
|
1
|
+
const validateEmail = function validateEmail(email) {
|
|
2
|
+
const re = /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,})+$/;
|
|
3
3
|
return re.test(email);
|
|
4
4
|
};export{validateEmail};//# sourceMappingURL=validations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validations.js","sources":["../../src/utils/validations.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"validations.js","sources":["../../src/utils/validations.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG,SAAS,aAAa,CAAC,KAAK,EAAA;QACrD,EAAM,GAAE,4CAAG;AACX,EAAA,OAAA,EAAO,KAAG,CAAA,KAAK,CAAA;AACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.1-alpha.0",
|
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vscode-uri": "^3.0.8"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"common": "
|
|
33
|
+
"common": "13.0.1-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@common-stack/server-core": ">=0.5.21",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"typescript": {
|
|
43
43
|
"definition": "lib/index.d.ts"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "b3175c46e4227c4fa5ea659e883c2c835ff99ccc"
|
|
46
46
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var PreDefineInboxPermissions;
|
|
2
|
-
(function (PreDefineInboxPermissions) {
|
|
3
|
-
//inbox
|
|
4
|
-
//inbox/posts
|
|
5
|
-
PreDefineInboxPermissions["viewPosts"] = "organization.inbox.posts.view";
|
|
6
|
-
PreDefineInboxPermissions["createPost"] = "organization.inbox.posts.create";
|
|
7
|
-
PreDefineInboxPermissions["editPost"] = "organization.inbox.posts.edit";
|
|
8
|
-
PreDefineInboxPermissions["deletePost"] = "organization.inbox.posts.delete";
|
|
9
|
-
//inbox/threads
|
|
10
|
-
PreDefineInboxPermissions["viewThreads"] = "organization.inbox.threads.view";
|
|
11
|
-
PreDefineInboxPermissions["editThread"] = "organization.inbox.threads.edit";
|
|
12
|
-
PreDefineInboxPermissions["deleteThread"] = "organization.inbox.threads.delete";
|
|
13
|
-
PreDefineInboxPermissions["replyThread"] = "organization.inbox.threads.reply";
|
|
14
|
-
//assign threads to members
|
|
15
|
-
PreDefineInboxPermissions["assignThreads"] = "organization.inbox.threads.assignThreads";
|
|
16
|
-
PreDefineInboxPermissions["manageSupportServices"] = "organization.inbox.threads.manageServices";
|
|
17
|
-
PreDefineInboxPermissions["viewThreadReplies"] = "organization.inbox.threads.viewThreadReplies";
|
|
18
|
-
PreDefineInboxPermissions["editThreadReply"] = "organization.inbox.threads.editThreadReply";
|
|
19
|
-
PreDefineInboxPermissions["deleteThreadReply"] = "organization.inbox.threads.deleteThreadReply";
|
|
20
|
-
//Additional permissions
|
|
21
|
-
PreDefineInboxPermissions["editOthersThread"] = "organization.inbox.threads.editOthersThread";
|
|
22
|
-
PreDefineInboxPermissions["deleteOthersThread"] = "organization.inbox.threads.deleteOthersThread";
|
|
23
|
-
PreDefineInboxPermissions["replyOthersThread"] = "organization.inbox.threads.replyOthersThread";
|
|
24
|
-
PreDefineInboxPermissions["editOthersThreadReply"] = "organization.inbox.threads.editOthersThreadReply";
|
|
25
|
-
PreDefineInboxPermissions["deleteOthersThreadReply"] = "organization.inbox.threads.deleteOthersThreadReply";
|
|
26
|
-
})(PreDefineInboxPermissions || (PreDefineInboxPermissions = {}));export{PreDefineInboxPermissions};//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/modules/inbox/enums/index.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,yBAAyB,EAAA;;;AAGjC,EAAA,yBAAA,CAAA,WAAA,CAAA,GAAA,+BAAA;AACA,EAAA,yBAAA,CAAA,YAAA,CAAA,GAAA,iCAAA;AACA,EAAA,yBAAA,CAAA,UAAA,CAAA,GAAA,+BAAA;AACA,EAAA,yBAAA,CAAA,YAAA,CAAA,GAAA,iCAAA;;AAGA,EAAA,yBAAA,CAAA,aAAA,CAAA,GAAA,iCAAA;AACA,EAAA,yBAAA,CAAA,YAAA,CAAA,GAAA,iCAAA;AACA,EAAA,yBAAA,CAAA,cAAA,CAAA,GAAA,mCAAA;AACA,EAAA,yBAAA,CAAA,aAAA,CAAA,GAAA,kCAAA;;AAEA,EAAA,yBAAA,CAAA,eAAA,CAAA,GAAA,0CAAA;AACA,EAAA,yBAAA,CAAA,uBAAA,CAAA,GAAA,2CAAA;AACA,EAAA,yBAAA,CAAA,mBAAA,CAAA,GAAA,8CAAA;AACA,EAAA,yBAAA,CAAA,iBAAA,CAAA,GAAA,4CAAA;AACA,EAAA,yBAAA,CAAA,mBAAA,CAAA,GAAA,8CAAA;;AAGA,EAAA,yBAAA,CAAA,kBAAA,CAAA,GAAA,6CAAA;AACA,EAAA,yBAAA,CAAA,oBAAA,CAAA,GAAA,+CAAA;AACA,EAAA,yBAAA,CAAA,mBAAA,CAAA,GAAA,8CAAA;AACA,EAAA,yBAAA,CAAA,uBAAA,CAAA,GAAA,kDAAA;AACA,EAAA,yBAAA,CAAA,yBAAA,CAAA,GAAA,oDAAA;AACJ,CAAC,EA1BW,yBAAyB,KAAzB,yBAAyB,GA0BpC,EAAA,CAAA,CAAA"}
|