@bisondesk/core-sdk 1.0.54 → 1.0.55

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.
@@ -0,0 +1,15 @@
1
+ import { PhoneNumberRawValue, PhoneNumberValue } from '@bisondesk/commons-sdk/lib/types';
2
+ export declare type ContactFormRequest = {
3
+ email: string;
4
+ name: string;
5
+ message: string;
6
+ phone: PhoneNumberRawValue;
7
+ };
8
+ export declare type ValidContactFormRequest = Omit<ContactFormRequest, 'phone'> & {
9
+ phone: PhoneNumberValue;
10
+ };
11
+ export declare type ContactFormEvent = {
12
+ tenantId: string;
13
+ payload: ValidContactFormRequest;
14
+ };
15
+ //# sourceMappingURL=website.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/types/website.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,oBAAY,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,GAAG;IACxE,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=website.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website.js","sourceRoot":"","sources":["../../src/types/website.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/core-sdk",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rm -rf build dist lib *.tsbuildinfo",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "author": "Ivo Anastácio",
13
13
  "dependencies": {
14
- "@bisondesk/commons-sdk": "^1.0.54",
14
+ "@bisondesk/commons-sdk": "^1.0.55",
15
15
  "joi": "17.4.0"
16
16
  },
17
17
  "devDependencies": {
@@ -0,0 +1,17 @@
1
+ import { PhoneNumberRawValue, PhoneNumberValue } from '@bisondesk/commons-sdk/lib/types';
2
+
3
+ export type ContactFormRequest = {
4
+ email: string;
5
+ name: string;
6
+ message: string;
7
+ phone: PhoneNumberRawValue;
8
+ };
9
+
10
+ export type ValidContactFormRequest = Omit<ContactFormRequest, 'phone'> & {
11
+ phone: PhoneNumberValue;
12
+ };
13
+
14
+ export type ContactFormEvent = {
15
+ tenantId: string;
16
+ payload: ValidContactFormRequest;
17
+ };
@@ -301,6 +301,11 @@
301
301
  "signature": "6b21c8243a725708324d0ed2f1adaa86135598b7ab251e90bae93117e74de6b6",
302
302
  "affectsGlobalScope": false
303
303
  },
304
+ "./src/types/website.ts": {
305
+ "version": "e32f8c9f4e66457189ed380b59757ff66f85cee7de3f03c7ca28f8968ab345df",
306
+ "signature": "2831cc65b91e0b88f39086349ee8601133456c8459ef8f2bed9a9f01d1d8e8b1",
307
+ "affectsGlobalScope": false
308
+ },
304
309
  "../../node_modules/@types/node/globals.d.ts": {
305
310
  "version": "25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d",
306
311
  "signature": "25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d",
@@ -1991,6 +1996,9 @@
1991
1996
  "../commons-sdk/lib/hyperdms.d.ts",
1992
1997
  "../commons-sdk/lib/types.d.ts",
1993
1998
  "./src/types/fields.ts"
1999
+ ],
2000
+ "./src/types/website.ts": [
2001
+ "../commons-sdk/lib/types.d.ts"
1994
2002
  ]
1995
2003
  },
1996
2004
  "exportedModulesMap": {
@@ -2813,6 +2821,9 @@
2813
2821
  "../commons-sdk/lib/hyperdms.d.ts",
2814
2822
  "../commons-sdk/lib/types.d.ts",
2815
2823
  "./src/types/fields.ts"
2824
+ ],
2825
+ "./src/types/website.ts": [
2826
+ "../commons-sdk/lib/types.d.ts"
2816
2827
  ]
2817
2828
  },
2818
2829
  "semanticDiagnosticsPerFile": [
@@ -3044,7 +3055,8 @@
3044
3055
  "./src/types/tenants.ts",
3045
3056
  "./src/types/users.ts",
3046
3057
  "./src/types/utils.ts",
3047
- "./src/types/vehicles.ts"
3058
+ "./src/types/vehicles.ts",
3059
+ "./src/types/website.ts"
3048
3060
  ]
3049
3061
  },
3050
3062
  "version": "4.2.3"