@tellescope/schema 1.3.0 → 1.3.2
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/cjs/schema.d.ts +9 -0
- package/lib/cjs/schema.d.ts.map +1 -1
- package/lib/cjs/schema.js +31 -3
- package/lib/cjs/schema.js.map +1 -1
- package/lib/esm/schema.d.ts +9 -0
- package/lib/esm/schema.d.ts.map +1 -1
- package/lib/esm/schema.js +32 -4
- package/lib/esm/schema.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/schema.ts +37 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/schema",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Schema definition for Tellescope models",
|
|
5
5
|
"main": "./lib/cjs/schema.js",
|
|
6
6
|
"module": "./lib/esm/schema.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/tellescope-os/tellescope#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tellescope/constants": "^1.3.
|
|
27
|
-
"@tellescope/types-client": "^1.3.
|
|
28
|
-
"@tellescope/types-models": "^1.3.
|
|
29
|
-
"@tellescope/types-server": "^1.3.
|
|
26
|
+
"@tellescope/constants": "^1.3.2",
|
|
27
|
+
"@tellescope/types-client": "^1.3.2",
|
|
28
|
+
"@tellescope/types-models": "^1.3.2",
|
|
29
|
+
"@tellescope/types-server": "^1.3.2",
|
|
30
30
|
"@tellescope/types-utilities": "^1.2.2",
|
|
31
|
-
"@tellescope/validation": "^1.3.
|
|
31
|
+
"@tellescope/validation": "^1.3.2",
|
|
32
32
|
"validator": "^13.5.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "df1bc04efdaa81af6df1ecb189630bb9b83f5ef2"
|
|
47
47
|
}
|
package/src/schema.ts
CHANGED
|
@@ -109,6 +109,8 @@ import {
|
|
|
109
109
|
previousFormFieldsValidator,
|
|
110
110
|
numberValidator,
|
|
111
111
|
organizationThemeValidator,
|
|
112
|
+
managedContentRecordTypeValidator,
|
|
113
|
+
passwordValidator,
|
|
112
114
|
} from "@tellescope/validation"
|
|
113
115
|
|
|
114
116
|
import {
|
|
@@ -380,6 +382,8 @@ export type PublicActions = {
|
|
|
380
382
|
{ authToken: string }
|
|
381
383
|
>,
|
|
382
384
|
register: CustomAction<{ emailConsent?: boolean, fname?: string, lname?: string, email: string, password: string }, { }>,
|
|
385
|
+
request_password_reset: CustomAction<{ email: string, businessId: string }, { }>,
|
|
386
|
+
reset_password: CustomAction<{ resetToken: string, newPassword: string, businessId: string }, { }>,
|
|
383
387
|
},
|
|
384
388
|
users: {
|
|
385
389
|
request_password_reset: CustomAction<{ email: string }, { }>,
|
|
@@ -659,8 +663,30 @@ export const schema: SchemaV1 = build_schema({
|
|
|
659
663
|
password: { validator: stringValidator100, required: true },
|
|
660
664
|
},
|
|
661
665
|
returns: { } //authToken: { validator: stringValidator5000 } },
|
|
662
|
-
|
|
663
666
|
},
|
|
667
|
+
request_password_reset: {
|
|
668
|
+
op: "custom", access: 'update', method: "post",
|
|
669
|
+
name: 'Request Password Reset',
|
|
670
|
+
path: '/request-enduser-password-reset',
|
|
671
|
+
description: "Sends a password reset email",
|
|
672
|
+
parameters: {
|
|
673
|
+
email: { validator: emailValidator, required: true },
|
|
674
|
+
businessId: { validator: mongoIdStringValidator, required: true },
|
|
675
|
+
},
|
|
676
|
+
returns: { },
|
|
677
|
+
},
|
|
678
|
+
reset_password: {
|
|
679
|
+
op: "custom", access: 'update', method: "post",
|
|
680
|
+
name: 'Reset Password',
|
|
681
|
+
path: '/reset-enduser-password',
|
|
682
|
+
description: "For a code generated by request-enduser-password-reset, sets a new password",
|
|
683
|
+
parameters: {
|
|
684
|
+
resetToken: { validator: stringValidator250, required: true },
|
|
685
|
+
newPassword: { validator: passwordValidator, required: true },
|
|
686
|
+
businessId: { validator: mongoIdStringValidator, required: true },
|
|
687
|
+
},
|
|
688
|
+
returns: { },
|
|
689
|
+
},
|
|
664
690
|
},
|
|
665
691
|
},
|
|
666
692
|
enduser_status_updates: {
|
|
@@ -1348,7 +1374,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
1348
1374
|
description: "For a code generated by request-password-reset, sets a new password",
|
|
1349
1375
|
parameters: {
|
|
1350
1376
|
resetToken: { validator: stringValidator250, required: true },
|
|
1351
|
-
newPassword: { validator:
|
|
1377
|
+
newPassword: { validator: passwordValidator, required: true },
|
|
1352
1378
|
},
|
|
1353
1379
|
returns: { },
|
|
1354
1380
|
},
|
|
@@ -2511,6 +2537,14 @@ export const schema: SchemaV1 = build_schema({
|
|
|
2511
2537
|
validator: stringValidator25000,
|
|
2512
2538
|
examples: ["This is the template message......"],
|
|
2513
2539
|
},
|
|
2540
|
+
type: {
|
|
2541
|
+
validator: managedContentRecordTypeValidator,
|
|
2542
|
+
updatesDisabled: true,
|
|
2543
|
+
},
|
|
2544
|
+
attachments: {
|
|
2545
|
+
validator: listOfChatAttachmentsValidator,
|
|
2546
|
+
},
|
|
2547
|
+
headerPhoto: { validator: stringValidator250 },
|
|
2514
2548
|
publicRead: { validator: booleanValidator },
|
|
2515
2549
|
mode: { validator: messageTemplateModeValidator, },
|
|
2516
2550
|
files: { validator: listOfStringsValidator },
|
|
@@ -2790,6 +2824,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
2790
2824
|
roles: { validator: listOfStringsValidator },
|
|
2791
2825
|
skills: { validator: listOfStringsValidator },
|
|
2792
2826
|
themeColor: { validator: stringValidator100 },
|
|
2827
|
+
customPortalURL: { validator: stringValidator250 },
|
|
2793
2828
|
},
|
|
2794
2829
|
},
|
|
2795
2830
|
|