@glidevvr/storage-payload-types-pkg 1.0.88 → 1.0.90

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/payload-types.ts +175 -300
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glidevvr/storage-payload-types-pkg",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Package for Payload CMS types.",
5
5
  "main": "payload-types.ts",
6
6
  "scripts": {
package/payload-types.ts CHANGED
@@ -797,7 +797,7 @@ export interface Facility {
797
797
  * A soft reservation does not remove a unit from inventory.
798
798
  */
799
799
  disableSoftReservation: boolean;
800
- rentalAppLocation: 'drawer' | 'dialog' | 'external';
800
+ rentalAppLocation: 'external';
801
801
  /**
802
802
  * If you need values mapped to the url, pass them in using the dot notation and the app will "translate".
803
803
  */
@@ -805,12 +805,12 @@ export interface Facility {
805
805
  /**
806
806
  * If the buttons are combined, the reservation app location will default to the location of the rental app.
807
807
  */
808
- reservationAppLocation?: ('drawer' | 'dialog' | 'external') | null;
808
+ reservationAppLocation?: 'external' | null;
809
809
  /**
810
810
  * If you need values mapped to the url, pass them in using the dot notation and the app will "translate".
811
811
  */
812
812
  reservationAppExternalUrl?: string | null;
813
- softReservationAppLocation: 'drawer' | 'dialog' | 'external';
813
+ softReservationAppLocation: 'external';
814
814
  /**
815
815
  * If you need values mapped to the url, pass them in using the dot notation and the app will "translate".
816
816
  */
@@ -1235,126 +1235,21 @@ export interface FormBlock {
1235
1235
  export interface Form {
1236
1236
  id: string;
1237
1237
  tenant?: (string | null) | Tenant;
1238
- createdBy?: string | null;
1239
- updatedBy?: string | null;
1240
1238
  title: string;
1241
- fields?:
1242
- | (
1243
- | {
1244
- name: string;
1245
- label?: string | null;
1246
- width?: number | null;
1247
- required?: boolean | null;
1248
- defaultValue?: boolean | null;
1249
- id?: string | null;
1250
- blockName?: string | null;
1251
- blockType: 'checkbox';
1252
- }
1253
- | {
1254
- name: string;
1255
- label?: string | null;
1256
- width?: number | null;
1257
- required?: boolean | null;
1258
- id?: string | null;
1259
- blockName?: string | null;
1260
- blockType: 'country';
1261
- }
1262
- | {
1263
- name: string;
1264
- label?: string | null;
1265
- width?: number | null;
1266
- defaultValue?: string | null;
1267
- required?: boolean | null;
1268
- id?: string | null;
1269
- blockName?: string | null;
1270
- blockType: 'email';
1271
- }
1272
- | {
1273
- message?: {
1274
- root: {
1275
- type: string;
1276
- children: {
1277
- type: string;
1278
- version: number;
1279
- [k: string]: unknown;
1280
- }[];
1281
- direction: ('ltr' | 'rtl') | null;
1282
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1283
- indent: number;
1284
- version: number;
1285
- };
1286
- [k: string]: unknown;
1287
- } | null;
1288
- id?: string | null;
1289
- blockName?: string | null;
1290
- blockType: 'message';
1291
- }
1292
- | {
1293
- name: string;
1294
- label?: string | null;
1295
- width?: number | null;
1296
- defaultValue?: number | null;
1297
- required?: boolean | null;
1298
- id?: string | null;
1299
- blockName?: string | null;
1300
- blockType: 'number';
1301
- }
1302
- | {
1303
- name: string;
1304
- label?: string | null;
1305
- width?: number | null;
1306
- defaultValue?: string | null;
1307
- placeholder?: string | null;
1308
- options?:
1309
- | {
1310
- label: string;
1311
- value: string;
1312
- id?: string | null;
1313
- }[]
1314
- | null;
1315
- required?: boolean | null;
1316
- id?: string | null;
1317
- blockName?: string | null;
1318
- blockType: 'select';
1319
- }
1320
- | {
1321
- name: string;
1322
- label?: string | null;
1323
- width?: number | null;
1324
- required?: boolean | null;
1325
- id?: string | null;
1326
- blockName?: string | null;
1327
- blockType: 'state';
1328
- }
1329
- | {
1330
- name: string;
1331
- label?: string | null;
1332
- width?: number | null;
1333
- defaultValue?: string | null;
1334
- required?: boolean | null;
1335
- id?: string | null;
1336
- blockName?: string | null;
1337
- blockType: 'text';
1338
- }
1339
- | {
1340
- name: string;
1341
- label?: string | null;
1342
- width?: number | null;
1343
- defaultValue?: string | null;
1344
- required?: boolean | null;
1345
- id?: string | null;
1346
- blockName?: string | null;
1347
- blockType: 'textarea';
1348
- }
1349
- | FacilitySelectField
1350
- | PhoneField
1351
- )[]
1352
- | null;
1239
+ fields: (
1240
+ | FacilitySelectField
1241
+ | EmailField
1242
+ | PhoneField
1243
+ | FirstNameField
1244
+ | LastNameField
1245
+ | MessageField
1246
+ | CurrentCustomerField
1247
+ )[];
1353
1248
  submitButtonLabel?: string | null;
1249
+ confirmationType: 'message';
1354
1250
  /**
1355
- * Choose whether to display an on-page message or redirect to a different page after they submit the form.
1251
+ * The on-page message that will be displayed after the form is submitted.
1356
1252
  */
1357
- confirmationType?: ('message' | 'redirect') | null;
1358
1253
  confirmationMessage?: {
1359
1254
  root: {
1360
1255
  type: string;
@@ -1370,59 +1265,8 @@ export interface Form {
1370
1265
  };
1371
1266
  [k: string]: unknown;
1372
1267
  } | null;
1373
- redirect?: {
1374
- type?: ('reference' | 'custom') | null;
1375
- reference?:
1376
- | ({
1377
- relationTo: 'pages';
1378
- value: string | Page;
1379
- } | null)
1380
- | ({
1381
- relationTo: 'posts';
1382
- value: string | Post;
1383
- } | null)
1384
- | ({
1385
- relationTo: 'facilities';
1386
- value: string | Facility;
1387
- } | null)
1388
- | ({
1389
- relationTo: 'markets';
1390
- value: string | Market;
1391
- } | null);
1392
- url?: string | null;
1393
- };
1394
- /**
1395
- * Send custom emails when the form submits. Use comma separated lists to send the same email to multiple recipients. To reference a value from this form, wrap that field's name with double curly brackets, i.e. {{firstName}}. You can use a wildcard {{*}} to output all data and {{*:table}} to format it as an HTML table in the email.
1396
- */
1397
- emails?:
1398
- | {
1399
- emailTo?: string | null;
1400
- cc?: string | null;
1401
- bcc?: string | null;
1402
- replyTo?: string | null;
1403
- emailFrom?: string | null;
1404
- subject: string;
1405
- /**
1406
- * Enter the message that should be sent in this email.
1407
- */
1408
- message?: {
1409
- root: {
1410
- type: string;
1411
- children: {
1412
- type: string;
1413
- version: number;
1414
- [k: string]: unknown;
1415
- }[];
1416
- direction: ('ltr' | 'rtl') | null;
1417
- format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
1418
- indent: number;
1419
- version: number;
1420
- };
1421
- [k: string]: unknown;
1422
- } | null;
1423
- id?: string | null;
1424
- }[]
1425
- | null;
1268
+ createdBy?: string | null;
1269
+ updatedBy?: string | null;
1426
1270
  updatedAt: string;
1427
1271
  createdAt: string;
1428
1272
  }
@@ -1432,7 +1276,7 @@ export interface Form {
1432
1276
  */
1433
1277
  export interface FacilitySelectField {
1434
1278
  name: string;
1435
- label?: string | null;
1279
+ label: string;
1436
1280
  /**
1437
1281
  * The default value of the field. Enter the SE ID of the facility to be selected by default.
1438
1282
  */
@@ -1444,13 +1288,28 @@ export interface FacilitySelectField {
1444
1288
  blockName?: string | null;
1445
1289
  blockType: 'facilitySelect';
1446
1290
  }
1291
+ /**
1292
+ * This interface was referenced by `Config`'s JSON-Schema
1293
+ * via the `definition` "EmailField".
1294
+ */
1295
+ export interface EmailField {
1296
+ name: string;
1297
+ label: string;
1298
+ defaultValue?: string | null;
1299
+ placeholder?: string | null;
1300
+ width?: number | null;
1301
+ required?: boolean | null;
1302
+ id?: string | null;
1303
+ blockName?: string | null;
1304
+ blockType: 'email';
1305
+ }
1447
1306
  /**
1448
1307
  * This interface was referenced by `Config`'s JSON-Schema
1449
1308
  * via the `definition` "PhoneField".
1450
1309
  */
1451
1310
  export interface PhoneField {
1452
1311
  name: string;
1453
- label?: string | null;
1312
+ label: string;
1454
1313
  defaultValue?: string | null;
1455
1314
  placeholder?: string | null;
1456
1315
  width?: number | null;
@@ -1459,6 +1318,64 @@ export interface PhoneField {
1459
1318
  blockName?: string | null;
1460
1319
  blockType: 'phone';
1461
1320
  }
1321
+ /**
1322
+ * This interface was referenced by `Config`'s JSON-Schema
1323
+ * via the `definition` "FirstNameField".
1324
+ */
1325
+ export interface FirstNameField {
1326
+ name: string;
1327
+ label: string;
1328
+ defaultValue?: string | null;
1329
+ placeholder?: string | null;
1330
+ width?: number | null;
1331
+ required?: boolean | null;
1332
+ id?: string | null;
1333
+ blockName?: string | null;
1334
+ blockType: 'firstName';
1335
+ }
1336
+ /**
1337
+ * This interface was referenced by `Config`'s JSON-Schema
1338
+ * via the `definition` "LastNameField".
1339
+ */
1340
+ export interface LastNameField {
1341
+ name: string;
1342
+ label: string;
1343
+ defaultValue?: string | null;
1344
+ placeholder?: string | null;
1345
+ width?: number | null;
1346
+ required?: boolean | null;
1347
+ id?: string | null;
1348
+ blockName?: string | null;
1349
+ blockType: 'lastName';
1350
+ }
1351
+ /**
1352
+ * This interface was referenced by `Config`'s JSON-Schema
1353
+ * via the `definition` "MessageField".
1354
+ */
1355
+ export interface MessageField {
1356
+ name: string;
1357
+ label: string;
1358
+ defaultValue?: string | null;
1359
+ placeholder?: string | null;
1360
+ width?: number | null;
1361
+ required?: boolean | null;
1362
+ id?: string | null;
1363
+ blockName?: string | null;
1364
+ blockType: 'message';
1365
+ }
1366
+ /**
1367
+ * This interface was referenced by `Config`'s JSON-Schema
1368
+ * via the `definition` "CurrentCustomerField".
1369
+ */
1370
+ export interface CurrentCustomerField {
1371
+ name: string;
1372
+ label: string;
1373
+ defaultValue?: boolean | null;
1374
+ width?: number | null;
1375
+ id?: string | null;
1376
+ blockName?: string | null;
1377
+ blockType: 'currentCustomer';
1378
+ }
1462
1379
  /**
1463
1380
  * This interface was referenced by `Config`'s JSON-Schema
1464
1381
  * via the `definition` "GalleryBlock".
@@ -1862,15 +1779,20 @@ export interface Build {
1862
1779
  createdAt: string;
1863
1780
  }
1864
1781
  /**
1782
+ * Form submissions are sent to the selected facility's email address.
1783
+ *
1865
1784
  * This interface was referenced by `Config`'s JSON-Schema
1866
1785
  * via the `definition` "form-submissions".
1867
1786
  */
1868
1787
  export interface FormSubmission {
1869
1788
  id: string;
1870
1789
  tenant?: (string | null) | Tenant;
1871
- createdBy?: string | null;
1872
- updatedBy?: string | null;
1873
1790
  form: string | Form;
1791
+ status?: string | null;
1792
+ /**
1793
+ * The response message from the SE API, or other error message.
1794
+ */
1795
+ responseMessage?: string | null;
1874
1796
  submissionData?:
1875
1797
  | {
1876
1798
  field: string;
@@ -2948,138 +2870,23 @@ export interface BuildsSelect<T extends boolean = true> {
2948
2870
  */
2949
2871
  export interface FormsSelect<T extends boolean = true> {
2950
2872
  tenant?: T;
2951
- createdBy?: T;
2952
- updatedBy?: T;
2953
2873
  title?: T;
2954
2874
  fields?:
2955
2875
  | T
2956
2876
  | {
2957
- checkbox?:
2958
- | T
2959
- | {
2960
- name?: T;
2961
- label?: T;
2962
- width?: T;
2963
- required?: T;
2964
- defaultValue?: T;
2965
- id?: T;
2966
- blockName?: T;
2967
- };
2968
- country?:
2969
- | T
2970
- | {
2971
- name?: T;
2972
- label?: T;
2973
- width?: T;
2974
- required?: T;
2975
- id?: T;
2976
- blockName?: T;
2977
- };
2978
- email?:
2979
- | T
2980
- | {
2981
- name?: T;
2982
- label?: T;
2983
- width?: T;
2984
- defaultValue?: T;
2985
- required?: T;
2986
- id?: T;
2987
- blockName?: T;
2988
- };
2989
- message?:
2990
- | T
2991
- | {
2992
- message?: T;
2993
- id?: T;
2994
- blockName?: T;
2995
- };
2996
- number?:
2997
- | T
2998
- | {
2999
- name?: T;
3000
- label?: T;
3001
- width?: T;
3002
- defaultValue?: T;
3003
- required?: T;
3004
- id?: T;
3005
- blockName?: T;
3006
- };
3007
- select?:
3008
- | T
3009
- | {
3010
- name?: T;
3011
- label?: T;
3012
- width?: T;
3013
- defaultValue?: T;
3014
- placeholder?: T;
3015
- options?:
3016
- | T
3017
- | {
3018
- label?: T;
3019
- value?: T;
3020
- id?: T;
3021
- };
3022
- required?: T;
3023
- id?: T;
3024
- blockName?: T;
3025
- };
3026
- state?:
3027
- | T
3028
- | {
3029
- name?: T;
3030
- label?: T;
3031
- width?: T;
3032
- required?: T;
3033
- id?: T;
3034
- blockName?: T;
3035
- };
3036
- text?:
3037
- | T
3038
- | {
3039
- name?: T;
3040
- label?: T;
3041
- width?: T;
3042
- defaultValue?: T;
3043
- required?: T;
3044
- id?: T;
3045
- blockName?: T;
3046
- };
3047
- textarea?:
3048
- | T
3049
- | {
3050
- name?: T;
3051
- label?: T;
3052
- width?: T;
3053
- defaultValue?: T;
3054
- required?: T;
3055
- id?: T;
3056
- blockName?: T;
3057
- };
3058
2877
  facilitySelect?: T | FacilitySelectFieldSelect<T>;
2878
+ email?: T | EmailFieldSelect<T>;
3059
2879
  phone?: T | PhoneFieldSelect<T>;
2880
+ firstName?: T | FirstNameFieldSelect<T>;
2881
+ lastName?: T | LastNameFieldSelect<T>;
2882
+ message?: T | MessageFieldSelect<T>;
2883
+ currentCustomer?: T | CurrentCustomerFieldSelect<T>;
3060
2884
  };
3061
2885
  submitButtonLabel?: T;
3062
2886
  confirmationType?: T;
3063
2887
  confirmationMessage?: T;
3064
- redirect?:
3065
- | T
3066
- | {
3067
- type?: T;
3068
- reference?: T;
3069
- url?: T;
3070
- };
3071
- emails?:
3072
- | T
3073
- | {
3074
- emailTo?: T;
3075
- cc?: T;
3076
- bcc?: T;
3077
- replyTo?: T;
3078
- emailFrom?: T;
3079
- subject?: T;
3080
- message?: T;
3081
- id?: T;
3082
- };
2888
+ createdBy?: T;
2889
+ updatedBy?: T;
3083
2890
  updatedAt?: T;
3084
2891
  createdAt?: T;
3085
2892
  }
@@ -3097,6 +2904,20 @@ export interface FacilitySelectFieldSelect<T extends boolean = true> {
3097
2904
  id?: T;
3098
2905
  blockName?: T;
3099
2906
  }
2907
+ /**
2908
+ * This interface was referenced by `Config`'s JSON-Schema
2909
+ * via the `definition` "EmailField_select".
2910
+ */
2911
+ export interface EmailFieldSelect<T extends boolean = true> {
2912
+ name?: T;
2913
+ label?: T;
2914
+ defaultValue?: T;
2915
+ placeholder?: T;
2916
+ width?: T;
2917
+ required?: T;
2918
+ id?: T;
2919
+ blockName?: T;
2920
+ }
3100
2921
  /**
3101
2922
  * This interface was referenced by `Config`'s JSON-Schema
3102
2923
  * via the `definition` "PhoneField_select".
@@ -3111,15 +2932,69 @@ export interface PhoneFieldSelect<T extends boolean = true> {
3111
2932
  id?: T;
3112
2933
  blockName?: T;
3113
2934
  }
2935
+ /**
2936
+ * This interface was referenced by `Config`'s JSON-Schema
2937
+ * via the `definition` "FirstNameField_select".
2938
+ */
2939
+ export interface FirstNameFieldSelect<T extends boolean = true> {
2940
+ name?: T;
2941
+ label?: T;
2942
+ defaultValue?: T;
2943
+ placeholder?: T;
2944
+ width?: T;
2945
+ required?: T;
2946
+ id?: T;
2947
+ blockName?: T;
2948
+ }
2949
+ /**
2950
+ * This interface was referenced by `Config`'s JSON-Schema
2951
+ * via the `definition` "LastNameField_select".
2952
+ */
2953
+ export interface LastNameFieldSelect<T extends boolean = true> {
2954
+ name?: T;
2955
+ label?: T;
2956
+ defaultValue?: T;
2957
+ placeholder?: T;
2958
+ width?: T;
2959
+ required?: T;
2960
+ id?: T;
2961
+ blockName?: T;
2962
+ }
2963
+ /**
2964
+ * This interface was referenced by `Config`'s JSON-Schema
2965
+ * via the `definition` "MessageField_select".
2966
+ */
2967
+ export interface MessageFieldSelect<T extends boolean = true> {
2968
+ name?: T;
2969
+ label?: T;
2970
+ defaultValue?: T;
2971
+ placeholder?: T;
2972
+ width?: T;
2973
+ required?: T;
2974
+ id?: T;
2975
+ blockName?: T;
2976
+ }
2977
+ /**
2978
+ * This interface was referenced by `Config`'s JSON-Schema
2979
+ * via the `definition` "CurrentCustomerField_select".
2980
+ */
2981
+ export interface CurrentCustomerFieldSelect<T extends boolean = true> {
2982
+ name?: T;
2983
+ label?: T;
2984
+ defaultValue?: T;
2985
+ width?: T;
2986
+ id?: T;
2987
+ blockName?: T;
2988
+ }
3114
2989
  /**
3115
2990
  * This interface was referenced by `Config`'s JSON-Schema
3116
2991
  * via the `definition` "form-submissions_select".
3117
2992
  */
3118
2993
  export interface FormSubmissionsSelect<T extends boolean = true> {
3119
2994
  tenant?: T;
3120
- createdBy?: T;
3121
- updatedBy?: T;
3122
2995
  form?: T;
2996
+ status?: T;
2997
+ responseMessage?: T;
3123
2998
  submissionData?:
3124
2999
  | T
3125
3000
  | {